Skip to main content
Version: 2023

SalQuickTabs

Namespace: PPJ.Runtime.Windows.QO

Assembly: PPJ.Web.49 (4.9.0.0)

Tab frame window class. Instances of this class should be created as children of cQuickTabsForm objects or cQuickTabsDialog objects.

public class SalQuickTabs : SalUserControl, IExtenderProvider

Constructors

Instance memberSalQuickTabs()

Default Constructor.

Properties

Instance memberAlignment

TabAlignment: Gets or sets the area of the control (for example, along the top) where the tabs are aligned.

Instance memberAllowUserToMoveTabs

Boolean: Returns/Sets whether the user can drag a tab to a different position. (Default: False)

Instance memberImageList

ImageList: Returns/Sets the image list to use to display images on child tabs. (Default: null)

Instance memberItemSize

Size: Gets or sets the fixed size of the tab buttons. It's used when the value of SizeMode is Fixed or Center.

Instance memberOrientation

Orientation: Gets or sets a value indicating the horizontal or vertical orientation of the tabs.

Instance memberPageRectangle

Rectangle: Returns the display area of the tab pages.

Instance memberSelectedIndex

Int32: Returns/Sets the currently selected tab. (Default: 0)

Instance memberSelectedTab

TabPage: Returns/Sets the selected tab page.

Instance memberShowVisibilityMenu

Boolean: Shows/Hides the tab visibility menu. (Default: False)

Instance memberSizeMode

TabSizeMode: Gets or sets whether the tab buttons should fill the control's size, or placed in the center, or use the size set in ItemSize.

Instance memberTabControl

TabControl: Returns the wrapped tab control

Instance memberTabPages

SalTabPageCollection: Returns the collection of tab pages.

Instance memberTabSetup

String: Initial Tab pages collection. Each tab is defined using a string property formatted as: {Name=Name0;Label=Label0;Form=FormClass0}{...} (Default: "")

Methods

Instance memberAdd(bRedraw)

Append a tab. Redraw is optional Return an index

ParameterTypeDescription
bRedrawSalBoolean

Returns: SalNumber.

Instance memberAddPage(sTag, sForm, hWnd)

Add a page. Call this function to add a page to the page list. The page window will not be created until the page is activated. The return value is TRUE or FALSE.

ParameterTypeDescription
sTagSalString
sFormSalString
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberAddPage(pageIndex, pageName)

Adds a tab page at a valid index position.

ParameterTypeDescription
pageIndexSalNumber
pageNameSalString

Returns: SalBoolean.

Instance memberAddPageEx(pageIndex, pageName, imageFile, tooltip)

Adds a tab page at a valid index position. You can include an image and a tooltip.

ParameterTypeDescription
pageIndexSalNumber
pageNameSalString
imageFileSalString
tooltipSalString

Returns: SalBoolean.

Instance memberApplyFormPageChanges()

Apply changes to all pages. Call this function to cause the PAGEM_ApplyChanges message to be sent to all form pages.

Returns: SalBoolean.

Instance memberAssociateChild(pageIndex, child)

Associates a child to a tab page.

ParameterTypeDescription
pageIndexSalNumber
childControl

Returns: SalBoolean.

Instance memberAttachWindow(pageIndex, form)

Assigns a child window created at runtime to the specified tab page as its container window. You can programmatically create a Form Window or Dialog Box as child and assign it to a tab page by using this function.

ParameterTypeDescription
pageIndexSalNumber
formControl

Returns: SalBoolean.

Instance memberBringToTop(nIndex, bRedraw)

Activate a tab

ParameterTypeDescription
nIndexSalNumber
bRedrawSalBoolean

Returns: SalBoolean.

Instance memberCancelMode()

Cancel a user action. This can be called when processing a TABSM_ message.

Returns: SalBoolean.

Instance memberClear(bRedraw)

Clear all tabs from the frame. Redraw is optional.

ParameterTypeDescription
bRedrawSalBoolean

Returns: SalBoolean.

Instance memberClearPages()

Clear all pages. Call this function to remove all entries from the page list and destroy any existing windows. The return value is TRUE of FALSE.

Returns: SalBoolean.

Instance memberCreatePage(sTag)

Create a page window. This function to causes the page window to be created. Typically it is not necessary to call this function because SetCurrentPage will take care of creating the page window. The page window will not be shown until SetCurrentPage is called.

ParameterTypeDescription
sTagSalString

Returns: SalBoolean.

Instance memberDelete(nIndex, bRedraw)

Delete a tab at a location. Redraw is optional. Return TRUE or FALSE.

ParameterTypeDescription
nIndexSalNumber
bRedrawSalBoolean

Returns: SalBoolean.

Instance memberDestroyPage(sTag)

Destroy a page window. Call this function to destroy a page window. The page is not removed from the list. The page window can be recreated.. The return value is TRUE or FALSE.

ParameterTypeDescription
sTagSalString

Returns: SalBoolean.

Instance memberDetachWindow(pageIndex)

Detaches a child window from the specified tab control.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalWindowHandle.

Instance memberDisablePage(pageIndex)

Disables a tab page.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalBoolean.

Instance memberDisassociateChild(pageIndex, child)

Disassociates a child with a tab page.

ParameterTypeDescription
pageIndexSalNumber
childControl

Returns: SalBoolean.

Instance memberEnable(nIndex, bEnable)

Enable or disable a tab

ParameterTypeDescription
nIndexSalNumber
bEnableSalBoolean

Returns: SalBoolean.

Instance memberEnablePage(pageIndex)

Enables a tab page

ParameterTypeDescription
pageIndexSalNumber

Returns: SalBoolean.

Instance memberFindLabel(sLabel)

Find a tab give a tab label

ParameterTypeDescription
sLabelSalString

Returns: SalNumber.

Instance memberFindName(sName)

Find a tab give a tab name

ParameterTypeDescription
sNameSalString

Returns: SalNumber.

Instance memberFindTabFrame(hWndForm)

Finds the tab frame window on a form or dialog box

ParameterTypeDescription
hWndFormSalWindowHandle

Returns: SalWindowHandle.

Static memberFromHandle(hWnd)

Returns the control associated with the handle.

ParameterTypeDescription
hWndSalWindowHandle

Returns: SalQuickTabs.

Instance memberGetActivePage()

Gets the current active tab page.

Returns: SalNumber.

Instance memberGetClicked()

Get the index of the tab being clicked. This should only be called during a click notification.

Returns: SalNumber.

Instance memberGetContentsBorderRect(nLeft, nTop, nRight, nBottom)

ParameterTypeDescription
nLeftSalNumber&
nTopSalNumber&
nRightSalNumber&
nBottomSalNumber&

Returns: SalBoolean.

Instance memberGetContentsRect(nLeft, nTop, nRight, nBottom)

ParameterTypeDescription
nLeftSalNumber&
nTopSalNumber&
nRightSalNumber&
nBottomSalNumber&

Returns: SalBoolean.

Instance memberGetContentsRectPixels(nLeftPixels, nTopPixels, nRightPixels, nBottomPixels)

ParameterTypeDescription
nLeftPixelsSalNumber&
nTopPixelsSalNumber&
nRightPixelsSalNumber&
nBottomPixelsSalNumber&

Returns: SalBoolean.

Instance memberGetControlTabPages(control)

Returns the names of the tab pages that the control is associated to. The list if names is separated by a semicolon.

ParameterTypeDescription
controlControl

Returns: String.

Instance memberGetCount()

Get the count of tabs

Returns: SalNumber.

Instance memberGetLabel(nIndex, sLabel)

ParameterTypeDescription
nIndexSalNumber
sLabelSalString&

Returns: SalBoolean.

Instance memberGetMarginRect(nLeft, nTop, nRight, nBottom)

ParameterTypeDescription
nLeftSalNumber&
nTopSalNumber&
nRightSalNumber&
nBottomSalNumber&

Returns: SalBoolean.

Instance memberGetName(nIndex, sName)

ParameterTypeDescription
nIndexSalNumber
sNameSalString&

Returns: SalBoolean.

Instance memberGetPageIndex(pageName)

Gets the tab page index as specified by the tab name.

ParameterTypeDescription
pageNameSalString

Returns: SalNumber.

Instance memberGetPageName(pageIndex)

Sets the name of the tab page (not the title that appears on the tab page at runtime).

ParameterTypeDescription
pageIndexSalNumber

Returns: SalString.

Instance memberGetPageTitle(pageIndex)

Gets the tab page title as specified by the tab index.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalString.

Instance memberGetPageWindow(sTag)

Get the window of a page. Call this function to get the Window Handle of a page. The return value is the Window Handle of the page. hWndNULL is returned if the page window has not been created.

ParameterTypeDescription
sTagSalString

Returns: SalWindowHandle.

Instance memberGetPageWindow(pageIndex)

Gets the window handle of the specified tab page.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalWindowHandle.

Instance memberGetRowCount()

Retrieve the number rows of tabs

Returns: SalNumber.

Instance memberGetTooltip(pageIndex, tooltip, maxLength)

ParameterTypeDescription
pageIndexSalNumber
tooltipSalString&
maxLengthSalNumber

Returns: SalNumber.

Instance memberGetTop()

Get the index of the active tab

Returns: SalNumber.

Instance memberHidePage(pageIndex)

Hides a tab page.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalBoolean.

Instance memberHideWindow(hWnd)

Use this function instead of SalHideWindow. This function will keep the window hidden as tabs are selected. Use the class function ShowWindow to undo the affect of this function.

ParameterTypeDescription
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberHideWindowAndLabel(hWnd)

Use this function instead of SalHideWindowAndLabel. This function will keep the window hidden as tabs are selected. Use the class function ShowWindowWindowAndLabel to undo the affect of this function.

ParameterTypeDescription
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberIndexFromPoint(nX, nY)

Get the tab, if any, under a given point (in pixels). A negative number is returned if the point is not over a tab.

ParameterTypeDescription
nXSalNumber
nYSalNumber

Returns: SalNumber.

Instance memberInitializeFormPages()

Generates the PAGEM_Initialize event for all forms that are bound to tab pages.

Returns: SalBoolean.

Instance memberInsert(nIndex, bRedraw)

Insert a tab at a location. Redraw is optional. Return TRUE or FALSE.

ParameterTypeDescription
nIndexSalNumberThe index where to insert the new tab page.
bRedrawSalBooleanNot used.

Returns: SalBoolean.

Instance memberIsAssociatedWithTab(nIndex, hWnd)

Indicate whether a child window is associated with a tab

ParameterTypeDescription
nIndexSalNumber
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberIsEnabled(nIndex)

Indicate whether a tab is enabled

ParameterTypeDescription
nIndexSalNumber

Returns: SalBoolean.

Instance memberIsWindowVisible(hWnd)

Returns if the specified control is considered to be visible by the tab control and will be shown when the associated tab is selected.

ParameterTypeDescription
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberNext()

Activate the next tab

Returns: SalNumber.

Instance memberPageCount()

Returns the number of tab pages.

Returns: SalNumber.

Instance memberPrev()

Activate the previous tab

Returns: SalNumber.

Instance memberRedraw()

Arranges tabs on the frame and repaints. Call after adding tabs or clearing with a FALSE redraw flag.

Returns: SalBoolean.

Instance memberReloadTabs()

Reloads the original tabs configuration.

Returns: SalBoolean.

Instance memberRemovePage(pageIndex)

Removes a tab page.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalBoolean.

Instance memberRenamePage(pageIndex, pageName)

Renames a tab page.

ParameterTypeDescription
pageIndexSalNumber
pageNameSalString

Returns: SalBoolean.

Instance memberResizePages()

Resize all pages. Call this function to resize all form pages. The active page is resized first. The return value is TRUE or FALSE.

Returns: SalBoolean.

Instance memberResizePages(rect)

Resize all pages. Call this function to resize all form pages. The active page is resized first. The return value is TRUE or FALSE.

ParameterTypeDescription
rectRectangle

Returns: SalBoolean.

Instance memberSendMsgToAssociated(nIndex, nMsg, wParam, lParam)

Send a message to all child windows associated with a tab

ParameterTypeDescription
nIndexSalNumber
nMsgSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalBoolean.

Instance memberSetActivePage(pageIndex)

Activates a tab specified by a particular tab index.

ParameterTypeDescription
pageIndexSalNumber

Returns: SalBoolean.

Instance memberSetControlTabPages(control, tabNames)

Sets the tab pages associated to child control. The list is separated by a semicolon.

ParameterTypeDescription
controlControl
tabNamesString

Instance memberSetCurrentPage(sTag)

Activates a page. Causes the form page associated to the specified tab to be created and/or shown. The current form page will be hidden.

ParameterTypeDescription
sTagSalString

Returns: SalBoolean.

Instance memberSetImage(nIndex, tResource)

Sets the image to associate with the tab.

ParameterTypeDescription
nIndexSalNumber
tResourceSalResource

Returns: SalBoolean.

Instance memberSetImage(nIndex, image)

Sets the image to associate with the tab.

ParameterTypeDescription
nIndexSalNumber
imageImage

Returns: SalBoolean.

Instance memberSetLabel(nIndex, sLabel, bRedraw)

Set the label displayed on a tab. Redraw is optional.

ParameterTypeDescription
nIndexSalNumber
sLabelSalString
bRedrawSalBoolean

Returns: SalBoolean.

Instance memberSetName(nIndex, sName)

Associate a name with a tab

ParameterTypeDescription
nIndexSalNumber
sNameSalString

Returns: SalBoolean.

Instance memberSetPageSize(nLeft, nTop, nRight, nBottom, bResize)

Defines the location and size of form pages.

ParameterTypeDescription
nLeftSalNumber
nTopSalNumber
nRightSalNumber
nBottomSalNumber
bResizeSalBoolean

Returns: SalBoolean.

Instance memberSetPageSize(rect, bResize)

Defines the location and size of form pages.

ParameterTypeDescription
rectRectangle
bResizeSalBoolean

Returns: SalBoolean.

Instance memberSetPageTitle(pageIndex, pageTitle)

Sets the title of the specified tab page.

ParameterTypeDescription
pageIndexSalNumber
pageTitleSalString

Returns: SalBoolean.

Instance memberSetTooltip(pageIndex, tooltip)

Sets the tooltip text on the specified tab page. Tooltip text appears only on tab selector, not on a tab container window.

ParameterTypeDescription
pageIndexSalNumber
tooltipSalString

Returns: SalBoolean.

Instance memberSetWorkspaceBoundary(nMinWidth, nMinHeight)

Define the boundaries of the workspace so that a tiled-to-parent tab frame won't be resized smaller than this boundary.

ParameterTypeDescription
nMinWidthSalNumber
nMinHeightSalNumber

Returns: SalBoolean.

Instance memberShowPage(pageIndex)

Shows a tab page

ParameterTypeDescription
pageIndexSalNumber

Returns: SalBoolean.

Instance memberShowSiblings()

Show or hide child windows based on the current tab

Returns: SalBoolean.

Instance memberShowWindow(hWnd)

Use this function instead of SalShowWindow because it works properly with the class function HideWindow

ParameterTypeDescription
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberShowWindowAndLabel(hWnd)

Use this function instead of SalShowWindowAndLabel because it works properly with the class function HideWindowAndLabel.

ParameterTypeDescription
hWndSalWindowHandle

Returns: SalBoolean.

Instance memberUpdate()

Updates the Tab bar after a SalTabAssociateChild or SalTabDisassociateChild is called.

Returns: SalBoolean.

Events

Instance memberSelectedIndexChanged

EventHandler Fired when the selected tab has changed.

Instance memberSelectedIndexChanging

TabCancelEventHandler Fired when the selected tab is about to change.

Implements

NameDescription
ISalWindowAll Sal windows (Child windows, Forms, Dialogs and MDIs) implement this interface.