DEFINE TAB
Creates a Tab Control
Standard Syntax (xBase Style):
DEFINE TAB <ControlName>
[ OF <ParentWindowName> ]
AT <nRow> ,<nCol>
WIDTH <nWidth>
HEIGHT<nHeight>
[ VALUE <nValue> ]
[ FONT <cFontname> SIZE <nFonSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BUTTONS ]
[ FLAT ]
[ HOTTRACK ]
[ VERTICAL ]
[ VERTICAL ]
[ MULTILINE ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ NOTRANSPARENT ]
DEFINE PAGE <cPageCaption> [ IMAGE <cImageName> ]
... Control Definitions...
END PAGE
...
END TAB
Alternate Syntax:
DEFINE TAB <ControlName>
[ PARENT <ParentWindowName> ]
ROW <nRow>
COL <nCol>
WIDTH <nWidth>
HEIGHT <nHeight>
[ VALUE <nValue> ]
[ FONTNAME <cFontname> ]
[ FONTSIZE <nFonSize> ]
[ FONTBOLD <lValue> ]
[ FONTITALIC <lValue> ]
[ FONTUNDERLINE <lValue> ]
[ FONTSTRIKEOUT <lValue> ]
[ TOOLTIP <cToolTipText> ]
[ BUTTONS <lValue> ]
[ FLAT <lValue> ]
[ HOTTRACK <lValue> ]
[ VERTICAL <lValue> ]
[ MULTILINE <lValue> ]
[ ONCHANGE <OnChangeProcedure> | <bBlock> ]
[ NOTRANSPARENT ]
DEFINE PAGE <cPageCaption> [ IMAGE <cImageName> ]
... Control Definitions...
END PAGE
...
END TAB
Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Caption(nPageNumber)
- Fontname
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- Name (R)
- Buttons (D)
- Flat (D)
- HotTrack (D)
- Vertical (D)
- Multiline (D)
D: Available at control definition only R: Read-Only
- OnChange
- Show
- Hide
- Release
- AddPage ( nPageNumber , cCaption [ , cImageName ] )
- DeletePage ( nPageNumber )
- AddControl ( ControlName , nPagenumber , nRow , nCol )
Hints:
- VERTICAL style has no effect when XP or Vista themes are used.
- Since Tab is a container, you can specify when refer to properties or events of its child controls, including page number, ie:
Win1.Tab1(1).Grid1.Value := 10