Rhino C++ API
8.21
|
#include <RhinoSdkUiOptionsListCtrlItem.h>
CRhinoUiOptionsListCtrlPrintWidthComboBox
Description: This control will display a simple combo box containing a list loaded line types.
CRhinoUiOptionsListCtrlPrintWidthComboBox::CRhinoUiOptionsListCtrlPrintWidthComboBox | ( | LPCTSTR | lpsLabel = NULL , |
LPCTSTR | lpsText = NULL , |
||
int | iIndentLevel = 0 , |
||
CRhinoUiComboBoxItemData::class_type | ct = CRhinoUiComboBoxItemData::ct_linetype |
||
) |
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
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding width options to combo box.
Returns: Returns true if "By Layer" option should be added to width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByLayer()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByParent | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetypes to combo box.
Returns: Returns true if "By Parent" option should be added to width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByParent()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeDefault | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding plot width options to combo box.
Returns: Returns true if default plot width option should be added to the width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeDefault()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeHairline | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding plot width options to combo box.
Returns: Returns true if "Hairline" option should be added to the width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeNoPrint()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeNoPrint | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding plot width options to combo box.
Returns: Returns true if "No Print" option should be added to the end of the width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeNoPrint()
afx_msg void CRhinoUiOptionsListCtrlPrintWidthComboBox::OnCbnSelchange | ( | ) |
afx_msg void CRhinoUiOptionsListCtrlPrintWidthComboBox::OnEditKillFocus | ( | ) |
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox override, calls base class.
Overridden to save currently selected plot width option
See Also: CRhinoUiOptionsListCtrlComboBox::OnItemComboBoxSelChanged()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox virtual override
Overridden to fill combo box with loaded linetypes
Returns: Returns true if combo box is filled with one or more of the loaded linetypes; otherwise false.
See Also: CRhinoUiOptionsListCtrlComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByLayer() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByLayer | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Layer" width 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: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByParent | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Parent" width 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: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByParent()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeDefault | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of the default option to the width list
Parameters: b [in] If true then default option is added to the width list; otherwise is is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeDefault()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeHairline | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of the "Hairline" option to the width list
Parameters: b [in] If true then "Hairline" option is added to the width list; otherwise is is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeNoPrint()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeNoPrint | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of the "No Print" option to the end of the width list
Parameters: b [in] If true then "No Print" option is added to the end of the width list; otherwise is is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeNoPrint()