Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>@ id ... combobox</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
@ ID ... COMBOBOX
Use a combo box control in a dialog
------------------------------------------------------------------------------

Syntax
#include "windows.ch"
#include "topclass.ch"   --or--   #define  NO_C4WCLASS
#include "commands.ch"
@ ID  <nId>  COMBOBOX | DROPDOWNLIST
     [ <clauses> ]

Arguments
See the generic @ ID ... <ControlType> command for details of
the <clauses> and/or parameters allowed.  The most common
clauses are <cCmd> and ITEMS <xInit>.  Here, the <xInit>
should be an array of strings to fill the combo box.

Description
This command allows you to use a combo box in a dialog.
Common styles used include CBS_DROPDOWNLIST with WS_TABSTOP.

See the generic @ ID ... <ControlType> command for more
information.

Example
// From SOURCE\OO\CLASSES\TOOLBDLG.PRG:
@ Id IDD_CBOX  Obj ::oCB   ComboBox  Items {"A List", "Of Choices"}

// Because the above saves the combo box object (in ::oCB), it can
// be controlled by any of the dialog's methods.
// E.g. ::oCB:Position is the current position, and ::oCB:CurItem
// is the current item (a string).


See Also: @ ID ...

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