Share

CAcUiLineWeightComboBox

Class Hierarchy

CAdUiComboBox
    CAcUiComboBox
        CAcUiMRUComboBox
            CAcUiLineWeightComboBox

C++

class CAcUiLineWeightComboBox : public CAcUiMRUComboBox;

File

acuiComboBox.h

Description

This class specializes CAcUiMRUComboBox for lineweight selection. The lineweight control displays a small preview of the lineweights AutoCAD supports, ranging from zero to 2.11mm, and optionally includes "Default" (representing AutoCAD's default lineweight). Both metric and imperial values are displayed, depending on the setting of the LWUNITS system variable. Both optional items are used: Option1 displays "ByLayer" and Option2 displays "ByBlock". Each item maintains cargo that corresponds to the item's AcDb::kLnWtxxx value. No additional items are added because AutoCAD probably won't make use of linetypes that aren't already in the list. Even though the lineweight control generally has no need for MRU items, it does benefit from code present in the MRU base class. As such, the CAcUiLineWeight class demonstrates deriving from CAcUiMRUComboBox to easily obtain owner-draw and DrawTip support.

Links

CAcUiLineWeightComboBox Methods

Was this information helpful?