Class Hierarchy
CAdUiComboBox CAcUiComboBox CAcUiAngleComboBox CAcUiMRUComboBox CAcUiNumericComboBox CAcUiStringComboBox CAcUiSymbolComboBox
C++
class CAcUiComboBox : public CAdUiComboBox;
File
acuiComboBox.h
Description
This class specializes CAcUiMRUComboBox for color selection. The color combobox displays color swatches representing selections from AutoCAD's palette. The stock items always present in the control reflect color numbers 1 through 7. Both of the optional items are used: Option1 displays "ByLayer" and Option2 displays "ByBlock". MRU items display "Color nnn" where nnn is the associated color number. The cargo associated with each item indicates an AutoCAD color number (1 to 255), ByBlock is associated with 0, and ByLayer with 256. The Other1 item is enabled and triggers the AutoCAD Color selection dialog. If Other2 is enabled it displays as "Windows..." and by default triggers the Windows Color Selection Common Dialog. If the user selects an item from either of these dialogs, the selection appears in the MRU list and becomes the current item in the control.
Generally, you should use one of the classes derived from CAcUiComboBox that add persistency flags to the ComboBox Control class to verify specific AutoCAD data types:
CAcUiStringComboBox | Persistently adds the AC_ES_STRING flag |
CAcUiSymbolComboBox | Persistently adds the AC_ES_SYMBOL flag |
CAcUiNumericComboBox | Persistently adds the AC_ES_NUMERIC flag |
CAcUiAngleComboBox | Persistently adds the AC_ES_ANGLE flag |
Links
See Also
CAdUiComboBox, CAcUiStringComboBox, CAcUiSymbolComboBox, CAcUiNumericComboBox, CAcUiAngleComboBox