Rhino C++ API
8.21
|
#include <RhinoSdkUiOptionsListCtrlItem.h>
CRhinoUiOptionsListCtrlColorComboBox::CRhinoUiOptionsListCtrlColorComboBox | ( | LPCTSTR | lpsLabel = NULL , |
LPCTSTR | lpsText = NULL , |
||
int | iIndentLevel = 0 , |
||
CRhinoUiComboBoxItemData::class_type | ct = CRhinoUiComboBoxItemData::ct_color |
||
) |
Description: Constructor
Parameters: lpsLabel [in] Label for this item, appears in left column of options list lpsText [in] Text associated with this item, appears in right column of options list
|
virtual |
Description: Destructor
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox virtual override
Create CRhinoUiOptionsListCtrlComboBox combo box for selecting colors.
Parameters: See CRhinoUiOptionsListCtrlItem::BeginEditItem()
Returns: Returns true if combo box was created; otherwise false.
See Also: CRhinoUiOptionsListCtrlComboBox::BeginEditItem()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
Reimplemented in CRhinoUiOptionsListCtrlLayerComboBox.
bool CRhinoUiOptionsListCtrlColorComboBox::IncludeByDisplay | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding color options to combo box.
Returns: Returns true if "By Display" option should be added to color list; otherwise false.
See Also: CRhinoUiOptionsListCtrlColorComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByDisplay()
bool CRhinoUiOptionsListCtrlColorComboBox::IncludeByLayer | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding color options to combo box.
Returns: Returns true if "By Layer" option should be added to color list; otherwise false.
See Also: CRhinoUiOptionsListCtrlColorComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByLayer()
bool CRhinoUiOptionsListCtrlColorComboBox::IncludeByParent | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding color options to combo box.
Returns: Returns true if "By Parent" option should be added to color list; otherwise false.
See Also: CRhinoUiOptionsListCtrlColorComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByParent()
afx_msg void CRhinoUiOptionsListCtrlColorComboBox::OnCbnSelchange | ( | ) |
|
virtual |
Description: CRhinoUiOptionsListCtrlItem virtual override
This method draws color swatch and color name in value column of options list control.
Parameters: See CRhinoUiOptionsListCtrlItem::OnDrawItem()
See Also: CRhinoUiOptionsListCtrlItem::OnDrawItem()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox override, calls base class.
Overridden to save currently selected color
See Also: CRhinoUiOptionsListCtrlComboBox::OnItemComboBoxSelChanged()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
Reimplemented in CRhinoUiOptionsListCtrlLayerComboBox.
afx_msg void CRhinoUiOptionsListCtrlColorComboBox::OnKillFocus | ( | CWnd * | pNewWnd | ) |
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox virtual override
Overridden to fill combo box with standard color options including "By Layer" if the IncludeByLayer() flag is set.
Returns: Returns true if combo box is filled with one or more standard colors; otherwise false.
See Also: CRhinoUiOptionsListCtrlComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByLayer() CRhinoUiOptionsListCtrlColorComboBox::IncludeByLayer()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
Reimplemented in CRhinoUiOptionsListCtrlLayerComboBox.
bool CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByDisplay | ( | bool | include | ) |
Description: Include a "By Display" color option in the combo box. Parameters: include [in] If true then "By Display" option is added to combo box; otherwise it is not. Returns: Returns the previous value. See Also: CRhinoUiOptionsListCtrlColorComboBox::IncludeByDisplay()
bool CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByLayer | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Layer" color option to combo box.
Parameters: b [in] If truen then "By Layer" option is added to combo box; otherwise it is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlColorComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlColorComboBox::IncludeByLayer()
bool CRhinoUiOptionsListCtrlColorComboBox::SetIncludeByParent | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Parent" color option to combo box.
Parameters: b [in] If truen then "By Parent" option is added to combo box; otherwise it is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlColorComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlColorComboBox::IncludeByLayer() CRhinoUiOptionsListCtrlColorComboBox::IncludeByParent()
|
virtual |
Description: This method is used to set text value for this item. This value is displayed in the right column of the options list control.
Parameters: lps [in] New display text for this item.
See Also: CRhinoUiOptionsListCtrl::Text() CRhinoUiOptionsListCtrl::DrawItemText()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
Reimplemented in CRhinoUiOptionsListCtrlLayerComboBox.
bool CRhinoUiOptionsListCtrlColorComboBox::SetUseAlpha | ( | bool | on | ) |
Description: By default, the combo box will not include alpha settings when showing the custom color dialog. This function allows the alpha controls to be shown. Parameters: on [in] turn the feature on Returns: previous value for using alpha
bool CRhinoUiOptionsListCtrlColorComboBox::UseAlpha | ( | ) | const |
Description: Allow for alpha controls when showing the color dialog for selecting a custom color