Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b> pushbutton commands</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  PushButton Commands
--------------------------------------------------------------------------------


 Creating Buttons from        @ <nRow>, <nCol> BUTTON [ <oBtn> ]
 source code                     [ PROMPT <cCaption> ] ;
                                 [ NAME | RESNAME | RESOURCE <cResName1>;
                                 [,<cResName2>] ] ;
                                 [ FILE | FILENAME | DISK <cBmpFile1>;
                                 [,<cBmpFile2>] ] ;
                                 [ SIZE <nWidth>, <nHeight> ] ;
                                 [ ACTION <uAction> ] ;
                                 [ OF | WINDOW | DIALOG <oWnd> ] ;
                                 [ MESSAGE <cMsg> ] ;
                                 [ WHEN <WhenFunc> ] ;
                                 [ ADJUST ] ;
                                 [ DEFAULT ] ;
                                 [ HELP | HELPID | HELP ID <nHelpId> ] ;
                                 [ FONT <oFont> ] ;
                                 [ PIXEL ] ;
                                 [ DESIGN ] ;
                                 [ UPDATE ] ;
                                 [ VALID <ValidFunc> ] ;
                                 [ CANCEL ] ;

 Using Buttons from           REDEFINE BUTTON [<oBtn>] ;
 resources                       [ ID <nId> ] ;
                                 [ PROMPT <cCaption> ] ;
                                 [ OF | BUTTONBAR <oBar> | ] ;
                                 [ | WINDOW | DIALOG <oDlg> ] ;
                                 [ NAME | RESNAME | RESOURCE <cResName1>;
                                 [,<cResName2>] ] ;
                                 [ FILE | FILENAME | DISK <cBmpFile1>;
                                 [,<cBmpFile2>] ] ;
                                 [ ACTION | EXEC> <uAction> ] ;
                                 [ MESSAGE <cMsg> ] ;
                                 [ ADJUST ] ;
                                 [ WHEN <WhenFunc> ] ;
                                 [ HELP | HELPID | HELP ID <nHelpId> ] ;
                                 [ VALID <ValidFunc> ] ;
                                 [ CANCEL ] ;

                              DEFINE BUTTON [ <oBtn> ] ;
                                 [ OF | BUTTONBAR <oBar> ] ;
                                 [ NAME | RESNAME | RESOURCE <cResName1>;
                                 [,<cResName2>] ] ;
                                 [ FILE | FILENAME | DISK <cBmpFile1>;
                                 [,<cBmpFile2>] ] ;
                                 [ ACTION | EXEC <uAction> ] ;
                                 [ GROUP ] ;
                                 [ MESSAGE <cMsg> ] ;
                                 [ ADJUST ] ;
                                 [ WHEN <WhenFunc> ] ;

 <nRow>, <nCol>  The coordinates of the Button. They mimic text mode coordinates.

 <oBtn>          A reference to the Button Object.

 <oBar>          A reference to the Button

 <cCaption>      The label of the Button.

 <cBpFile1>      The file name of the bitmap as a Picture Button.
 <cBmpFile2>     When a second bitmap is provided it is displayed as the
                     Button in a depressed state.

 <nHelpId>        The help topic identifier of the Button.

 <oWnd>           The container window of the Button.

 <uAction>        The action to be performed when the Button is pressed.

 <oFont>          A reference to the Font Object to use with the Button.

 <nWidth>        The dimensions of the Button.
 <nHeigth>

 <cResName1>     The bitmap resource to display as a Picture Button.
 <cResName2>     When a second bitmap resource is provided it is displayed
                     as the Button in a depressed state.

 <cMsg>          The associated message of this control

 <WhenFunc>      It is an expression to evaluate indicating if the control is
                     or not enable.

 <nId>           The numeric resource identifier of the Control.

 <ValidFunc>     An expression to validate when the control is going to
                     lose the focus.


 CLAUSES

 DEFAULT         For default PushButtons: Automatically executes when
                    the user press Enter, even from other controls.

                 Use this clause only when building the Button from
                 source code. When using resources, this clause must
                 be specifies from the resource editor.

 DESIGN      Allows the user to move and resize with the mouse

 PIXEL       To use pixel coordinates instead of Text coordinates.

 UPDATE      This control may be updated from TDialog:Update() METHOD

 CANCEL


See Also: TButton FiveWin.ch

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson