DEFINE TAB
Create a Tab control
  

Creates a tab control.

SYNTAX

DEFINE TAB<ControlName>
[ OF | PARENT<
cParentWindowName> ]
AT <
nRow> ,<nCol>
WIDTH<
nWidth>
HEIGHT<
nHeight>
[ VALUE <
nValue> ]
[ FONT <
cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ BUTTONS ]
[ FLAT ]
[ HOTTRACK 
[ HTFORECOLOR <
anHtForeColor> ]
[ HTINACTIVECOLOR <
anHtInactiveColor> ] ]
[ VERTICAL ]
[ BOTTOM ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ MULTILINE ]
[ NOTABSTOP ]

[ ON INIT <
bInit> ]

[ DEFINE ] [ TAB ] PAGE <cPageCaption> [ IMAGE <cImageName> ]
[ TOOLTIP <
cToolTipPageText> ]

... Control Definitions...

END PAGE

...

END TAB

Standard Window:

@ <nRow> ,<nCol> TAB <ControlName>
[ [<clauses,...>]
HEIGHT <
nHeight
WIDTH <
nWidth
[<moreClauses,...>]




DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the Tab Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the Tab Control
ParentWindowName
A reference to the Parent Window.
nHelpID
The help topic identifier for this Control
nValue
Specifies the startup tab
cFontName
Specifies the Font Name
cFontSize
Specifies the Font Color
cToolTipText
Specifies the Text for the ToolTip
anHtForeColor
Specifies the ? Fore Color
anHtActiveColor
Specifies the ? Active Color
OnChangeProcedure
An action to be performed when control value Changes
 
 
cPageCaption
Specifies the Page Caption
cImageName
Specifies the Image Name
cToolTipPageText
Specifies the Text for the ToolTip of the Page
 
 
BUTTONS
Specifies to make the Tabs look like Buttons
FLAT
Specifies to use a FLAT style
HOTTRACK
?
VERTICAL
Specifies to put the Tabs in Vertical mode (Setting Bottom in vertical Mode puts the Tabs on the right side)
BOTTOM
Specifies to put the Tabs at the bottom the the Tab Page
MULTILINE
Specifies to have multiple lines of Tabs
NOTABSTOP
Stop the control to receive focus and participate in the tabbing sequence


TAB PROPERTIES:

·   Value
Set / Gets Tab value.
·   Enabled
Set / Gets enabled state of a Tab control
·   Visible
Set / Gets visible a Tab control.
·   Caption (nPageNumber)
Set / Gets caption in a Tab
·   Image (nPageNumber)
Get item count in a Tab
·   ItemCount (R)
Get item count in a Tab.
·   Row
Set / Gets row position of a Tab control.
·   Col
Set / Gets column position of a Tab control.
·   Width
Set / Gets width of a Tab control.
·   Height
Set / Gets height of a Tab control.
·   FontName
Set / Gets Tab control's font name.
·   FontSize
Set / Gets Tab control's font size.
·   FontBold
Set / Gets Tab control's font bold property
·   FontItalic
Set / Gets Tab control's font italic property
Set / Gets Tab control's font underline property
Set / Gets Tab control's font strikeout property
·   BackColor
Set / Gets the background color for text within the Tab
Set / Gets the HTFore color for text within the Tab
Set / Gets the HTInactive color for text within the Tab
·   Cargo
Set / Gets user property 'Cargo' for Tab control
·   Name (R)
Retrieves the name of a Tab control.
·   Parent(D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   NoTabStop(D)
Sets whether an element behavior can't receive focus and participate in the tabbing sequence
·   Buttons (D)
 
·   Flat(D)
 
·   HotTrack (D)
 
·   Vertical(D)
 

D: Available at control definition only
R: Read-Only


EVENTS

·   OnChange
Action to be performed when generic changing of the control


METHODS:

·   Show
Shows a Tab control
·   Hide
Hides a Tab control
·   Redraw
Redraw a Control
·   Release
Releases a Tab control from memory
·   AddPage( nPageNumber , cCaption [, cImage] [, cTooltip] )
Add a new item to a Tab control.
·   DeletePage( nPageNumber )
Deletes an item from a Tab control
·   AddControl( ControlName , nPagenumber , nRow , nCol )
Add a new column to a Tab control.
·   SaveAs
Save Tab control as BitMap file.

EXAMPLE:

see demo in :
\Samples\Basic\Tab
      \Samples\Basic\Tab_2
      \Samples\Basic\Tab_3
      \Samples\Basic\Containers\Tab
\Samples\Basic\MAINDEMO_(SYNTAX_I) to _(SYNTAX_IV)

and sample in Chapter:
Getting Organized (TAB Control)