Share

CAcUiColorComboBox

Class Hierarchy

CAdUiComboBox
    CAcUiComboBox
        CAcUiMRUComboBox
            CAcUiColorComboBox

C++

class CAcUiColorComboBox : public CAcUiMRUComboBox;

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.

Links

CAcUiColorComboBox Methods

Was this information helpful?