@...BUTTON / DEFINE BUTTON
Creates a button control

 

 

 

Standard Syntax (xBase Style):

 

 

      @ <nRow> ,<nCol>

            BUTTON <ControlName>

            [ OF | PARENT <ParentWindowName> ]

            CAPTION <cCaption> 

            PICTURE <cPictureName> [ TOP | BOTTOM | LEFT | RIGHT ]

            ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock>

            [ WIDTH <nWidth> HEIGHT <nHeight> ]

            [ FONT <cFontName> SIZE <nFontSize> ]

            [ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]

            [ TOOLTIP <cToolTipText> ]

            [ FLAT ]

            [ NOTRANSPARENT ]

            [ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]

            [ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]

            [ NOTABSTOP ]

            [ HELPID <nHelpId> ]

            [ INVISIBLE ]

            [ MULTILINE ]

 

 

Alternate Syntax:

 

 

      DEFINE BUTTON <ButtonName>

            PARENT <ParentWindowName>

            ROW <nValue> 

            COL <nValue>

            CAPTION <cValue> 

            PICTURE <cValue>

            PICTALIGNMENT Top | Left | Right | Bottom

            ONCLICK <ActionProcedure>

            WIDTH <nValue>

            HEIGHT <nValue>

            FONTNAME <cValue>

            FONTSIZE <nValue>

            FONTBOLD <lValue>

            FONTITALIC <lValue>

            FONTUNDERLINE <lValue>

            FONTSTRIKEOUT <lValue>

            TOOLTIP <cValue>

            FLAT <lValue>

            TRANSPARENT <lValue>

            ONGOTFOCUS <ActionProcedure>

            ONLOSTFOCUS <ActionProcedure>

            TABSTOP <lValue>

            HELPID <nValue>

            VISIBLE <lValue>

            MULTILINE <lValue>

      END BUTTON

 

 

Properties:

 

 

      - Enabled

      - Visible

      - Row

      - Col

      - Width

      - Height

      - Caption

      - FontName

      - FontSize

      - FontBold

      - FontItalic

      - FontUnderline

      - FontStrikeout

      - ToolTip

      - Picture

      - Name (R)

      - Parent (D)

      - Flat (D)

      - TabStop (D)

      - HelpId (D)

      - Transparent (D)

      - PictAlignment (D)

      - MultiLine (D)

 

      D: Available at control definition only

      R: Read-Only

 

 

Events:

 

 

      - OnGotFocus

      - OnLostFocus

      - OnClick

 

 

Methods:

 

 

      - Show

      - Hide

      - SetFocus

      - Release

 

 

- Note: Transparence in picture buttons requires 256 or less color depth

bitmaps.