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>combobox commands</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ComboBox Commands
--------------------------------------------------------------------------------

 Creating a ComboBox         @ <nRow>, <nCol> COMBOBOX [ <oCbx> VAR ] <cVar> ;
 from source code               [ ITEMS | PROMPTS <aItems> ] ;
                                [ SIZE <nWidth>, <nHeight> ] ;
                                [ OF | WINDOW | DIALOG <oWnd> ] ;
                                [ HELPID | HELP ID <nHelpId> ] ;
                                [ ON CHANGE <uChange> ] ;
                                [ VALID   <ValidFunc> ] ;
                                [ COLOR | COLORS <nClrText>;
                                [,<nClrBack>] ] ;
                                [ PIXEL ] ;
                                [ FONT <oFont> ] ;
                                [ UPDATE ] ;
                                [ MESSAGE <cMsg> ] ;
                                [ WHEN <WhenFunc> ] ;
                                [ DESIGN ] ;
                                [ BITMAPS <cBitmaps> ] ;
                                [ ON DRAWITEM <uBmpSelect> ] ;

 Creating a ComboBox         REDEFINE COMBOBOX [ <oCbx> VAR ] <cVar> ;
 from resources                 [ ITEMS | PROMPTS <aItems> ] ;
                                [ ID <nId> ] ;
                                [ OF | WINDOW | DIALOG <oWnd> ] ;
                                [ HELPID | HELP ID <nHelpId> ] ;
                                [ ON CHANGE <uChange> ] ;
                                [ VALID   <ValidFunc> ] ;
                                [ COLOR | COLORS <nClrText>;
                                [,<nClrBack>] ] ;
                                [ UPDATE ] ;
                                [ MESSAGE <cMsg> ] ;
                                [ WHEN <WhenFunc> ] ;
                                [ BITMAPS <acBitmaps> ] ;
                                [ ON DRAWITEM <uBmpSelect> ] ;
                                [ STYLE <nStyle> ] ;
                                [ PICTURE <cPicture> ];
                                [ ON EDIT CHANGE <uEChange> ] ;


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

 <oCbx>          A reference to the ComboBox Object.

 <cVar>          A character variable which keeps the actual item selected
                     in the ComboBox.

 <aItems>        The items showed on the ComboBox.

 <nWidth>,       The dimensions of the ComboBox in pixels.
 <nHeight>

 <oWnd>          The container window of the ComboBox.

 <nHelpId>       The help topic numeric identifier of the control.

 <uChange>       An action to be performed every time the selected item
                     changes.

 <cMsg>          The associated message of this control.

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

 <nClrText>      Foreground color as a RGB number, or as a xBase string.

 <nClrBack>      Background color defined as nClrText.

 <oFont>         A reference to the Font Object to be used with the Combobox.

 <WhenFunc>      When expression code block.

 <nId>           The numeric resource identifier of the Control.

 <cBitmaps>      A list of the bitmaps files or resources to use on
                 a ownerdraw ComboBox.

 <uBmpSelect>    A codeblock to select which bitmap to paint on
                 a ownerdraw ComboBox. By default, it uses the corresponding
                 index in the bitmaps list.

 <nStyle>        To specifiy a dropdown ComboBox style. Use:
                 STYLE CBS_DROPDOWN.

 <cPicture>      The picture to use for the contained oGet DATA when
                 using a dropdown ComBoBox, if the STYLE CBS_DROPDOWN
                 has been specified.

 <uEChange>      An expression to be evaluated when the oGet DATA has
                 changed if the STYLE CBS_DROPDOWN has been specified.

CLAUSES

 PIXEL           To use pixel coordinates instead of Text coordinates.

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

 DESIGN          Allows the user to move and resize with the mouse.


See Also: TComboBox FiveWin.ch

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