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:

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

Events:

  • OnChange

Methods:

  • 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

results matching ""

    No results matching ""