SalQuickTabs

PPJ.Runtime.Windows.QO.SalQuickTabs

Namespace: PPJ.Runtime.Windows.QO

Assembly: PPJ.Runtime.49 (4.9.0.0)

Tab frame window class. Instances of this class should be created as children of SalQuickTabsForm objects or SalQuickTabsDialog objects.

public class SalQuickTabs : SalUserControl, IExtenderProvider

Constructors

Default Constructor.

Properties

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

TabAppearance: Gets or sets the visual appearance of the control's tabs. (Default: Normal)

TabDrawMode: Returns/Sets the way the tab control is drawn. (Default: Normal)

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

Size: Reflects the tab's size

Boolean: Indicates if more than one row of tabs is allowed. (Default: False)

Rectangle: Returns the display area of the tab pages.

Boolean: Indicates whether the layout of the control is right-to-left when the RightToLeft property is set to Yes.

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

SalTabPage: Returns/Sets the selected tab page.

TabSizeMode: Indicates how tabs sized. (Default: Normal)

TabControl: Returns the wrapped tab control

SalTabPageCollection: Returns the collection of tab pages.

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

Boolean: Returns/Sets a value that determines if the tab pages paints the background using visual styles, if supported. (Default: False)

Methods

Append a tab. Redraw is optional Return an index

ParameterTypeDescription

bRedraw

Returns: SalNumber.

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

sTag

sForm

hWnd

Returns: SalBoolean.

Adds a tab page at a valid tab set index position.

ParameterTypeDescription

pageIndex

pageName

Returns: SalBoolean.

Adds a tab page at a valid tab set index position. You can include an image and a tool tip.

ParameterTypeDescription

pageIndex

pageName

imageFile

tooltip

Returns: SalBoolean.

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

Returns: SalBoolean.

Associates a child to a tab page.

ParameterTypeDescription

pageIndex

child

Returns: SalBoolean.

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

pageIndex

form

Returns: SalBoolean.

Activate a tab.

ParameterTypeDescription

nIndex

bRedraw

Returns: SalBoolean.

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

Returns: SalBoolean.

Clear all tabs from the frame. Redraw is optional.

ParameterTypeDescription

bRedraw

Returns: SalBoolean.

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.

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

sTag

Returns: SalBoolean.

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

ParameterTypeDescription

nIndex

bRedraw

Returns: SalBoolean.

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

sTag

Returns: SalBoolean.

Detaches a child window from the specified tab control.

ParameterTypeDescription

pageIndex

Returns: SalWindowHandle.

Disables a tab page.

ParameterTypeDescription

pageIndex

Returns: SalBoolean.

Disassociates a child with a tab page.

ParameterTypeDescription

pageIndex

child

Returns: SalBoolean.

Enable or disable a tab

ParameterTypeDescription

nIndex

bEnable

Returns: SalBoolean.

Enables a tab page

ParameterTypeDescription

pageIndex

Returns: SalBoolean.

Find a tab give a tab label

ParameterTypeDescription

sLabel

Returns: SalNumber.

Find a tab give a tab name

ParameterTypeDescription

sName

Returns: SalNumber.

Finds the tab frame window on a form or dialog box

ParameterTypeDescription

hWndForm

Returns: SalWindowHandle.

Returns the control associated with the handle.

ParameterTypeDescription

hWnd

Returns: SalQuickTabs.

Gets the current active tab page.

Returns: SalNumber.

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

Returns: SalNumber.

ParameterTypeDescription

nLeft

nTop

nRight

nBottom

Returns: SalBoolean.

ParameterTypeDescription

nLeft

nTop

nRight

nBottom

Returns: SalBoolean.

ParameterTypeDescription

nLeftPixels

nTopPixels

nRightPixels

nBottomPixels

Returns: SalBoolean.

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

ParameterTypeDescription

control

Returns: String.

Get the count of tabs

Returns: SalNumber.

ParameterTypeDescription

nIndex

sLabel

Returns: SalBoolean.

ParameterTypeDescription

nLeft

nTop

nRight

nBottom

Returns: SalBoolean.

ParameterTypeDescription

nIndex

sName

Returns: SalBoolean.

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

ParameterTypeDescription

pageName

Returns: SalNumber.

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

ParameterTypeDescription

pageIndex

Returns: SalString.

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

ParameterTypeDescription

pageIndex

Returns: SalString.

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

sTag

Returns: SalWindowHandle.

Gets the window handle of the specified tab page.

ParameterTypeDescription

pageIndex

Returns: SalWindowHandle.

Retrieve the number rows of tabs

Returns: SalNumber.

ParameterTypeDescription

pageIndex

tooltip

maxLength

Returns: SalNumber.

Get the index of the active tab

Returns: SalNumber.

Hides a tab page.

ParameterTypeDescription

pageIndex

Returns: SalBoolean.

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

hWnd

Returns: SalBoolean.

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

hWnd

Returns: SalBoolean.

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

nX

nY

Returns: SalNumber.

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

Returns: SalBoolean.

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

ParameterTypeDescription

nIndex

bRedraw

Returns: SalBoolean.

Indicate whether a child window is associated with a tab

ParameterTypeDescription

index

wnd

Returns: SalBoolean.

Indicate whether a tab is enabled

ParameterTypeDescription

nIndex

Returns: SalBoolean.

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

hWnd

Returns: SalBoolean.

Activate the next tab

Returns: SalNumber.

Returns the number of tab pages.

Returns: SalNumber.

Activate the previous tab

Returns: SalNumber.

Handles keys to change the selected tab.

ParameterTypeDescription

keyData

Returns: Boolean.

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

Returns: SalBoolean.

Reloads the original tabs configuration.

Returns: SalBoolean.

Removes a tab page.

ParameterTypeDescription

pageIndex

Returns: SalBoolean.

Renames a tab page.

ParameterTypeDescription

pageIndex

pageName

Returns: SalBoolean.

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.

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

rect

Returns: SalBoolean.

Send a message to all child windows associated with a tab

ParameterTypeDescription

nIndex

nMsg

wParam

lParam

Returns: SalBoolean.

Activates a tab specified by a particular tab index.

ParameterTypeDescription

pageIndex

Returns: SalBoolean.

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

ParameterTypeDescription

control

tabNames

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

sTag

Returns: SalBoolean.

Sets the image to associate with the tab.

ParameterTypeDescription

nIndex

tResource

Returns: SalBoolean.

Sets the image to associate with the tab.

ParameterTypeDescription

nIndex

image

Returns: SalBoolean.

Sets the icon to associate with the tab.

ParameterTypeDescription

nIndex

icon

Returns: SalBoolean.

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

ParameterTypeDescription

nIndex

sLabel

bRedraw

Returns: SalBoolean.

Associate a name with a tab

ParameterTypeDescription

nIndex

sName

Returns: SalBoolean.

Defines the location and size of form pages.

ParameterTypeDescription

nLeft

nTop

nRight

nBottom

bResize

Returns: SalBoolean.

Defines the location and size of form pages.

ParameterTypeDescription

rect

bResize

Returns: SalBoolean.

Sets the title of the specified tab page.

ParameterTypeDescription

pageIndex

pageTitle

Returns: SalBoolean.

Sets the tool tip text on the specified tab page. Tool tip text appears only on tab selector, not on a tab container window.

ParameterTypeDescription

pageIndex

tooltip

Returns: SalBoolean.

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

ParameterTypeDescription

nMinWidth

nMinHeight

Returns: SalBoolean.

Shows a tab page

ParameterTypeDescription

pageIndex

Returns: SalBoolean.

Show or hide child windows based on the current tab

Returns: SalBoolean.

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

ParameterTypeDescription

hWnd

Returns: SalBoolean.

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

ParameterTypeDescription

hWnd

Returns: SalBoolean.

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

Returns: SalBoolean.

Events

PaintEventHandler DrawControl event

DrawItemEventHandler DrawItem event

EventHandler Fired when the selected tab has changed.

TabCancelEventHandler Fired when the selected tab is about to change.

Implements

NameDescription

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

Last updated