Rhino C++ API
8.13
|
#include <RhinoSdkUiOptionsListCtrlItem.h>
Public Member Functions | |
CRhinoUiOptionsListCtrlSeparator (LPCTSTR lpsLabel=NULL, int iIndentLevel=0) | |
virtual | ~CRhinoUiOptionsListCtrlSeparator () |
bool | BeginEditItem (CRhinoUiOptionsListCtrl &list_ctrl, const CRect rEdit, begin_edit_item_reason eir) |
bool | DrawSeparatorLine () const |
int | ItemHeight () const |
void | MoveItemWindow (CRhinoUiOptionsListCtrl &list_ctrl, const CRect rEdit) |
virtual void | OnDrawItem (CDC &dc, const CRect &rItem, const CRect &rDeflate) const |
bool | SetDrawSeparatorLine (bool b) |
void | SetText (LPCTSTR lps) |
Public Member Functions inherited from CRhinoUiOptionsListCtrlItem | |
CRhinoUiOptionsListCtrlItem (const CRhinoUiOptionsListCtrlItem &) | |
CRhinoUiOptionsListCtrlItem (control_type ct=ct_invalid, LPCTSTR lpsLabel=NULL, LPCTSTR lpsText=NULL, int iIndentLevel=0) | |
virtual | ~CRhinoUiOptionsListCtrlItem () |
bool | AutoDelete () const |
control_type | ControlType () const |
void | DrawItemText (CDC &dc, const CString &s, const CRect &rItem, const CRect &rDeflate) const |
bool | GetItemProperty (item_property iprop) const |
bool | GetItemState (item_state istate) const |
CRhinoUiOptionsListCtrl * | GetListCtrl () const |
int | IndentLevel () const |
bool | IsEnabled () const |
bool | IsFullRowItem () const |
bool | IsItemExpandable () const |
bool | IsItemHidden () const |
bool | IsReadOnly () const |
unsigned int | ItemID () const |
LPCTSTR | Label () const |
COLORREF | LabelBackGroundColor () const |
COLORREF | LabelTextColor () const |
const CRhinoUiOptionsListCtrlItem & | operator= (const CRhinoUiOptionsListCtrlItem &) |
int | ParentIndex () const |
bool | SetAutoDelete (bool b) |
int | SetIndentLevel (int iIndentLevel) |
bool | SetIsEnabled (bool b) |
bool | SetIsFullRowItem (bool b) |
bool | SetIsReadOnly (bool b) |
bool | SetItemProperty (item_property iprop, bool bEnabled) |
bool | SetItemState (item_state istate, bool bEnabled) |
bool | SetLabel (LPCTSTR lpsLabel) |
COLORREF | SetLabelBackGroundColor (COLORREF cr) |
COLORREF | SetLabelTextColor (COLORREF cr) |
bool | SetParentIndex (int iItem) |
bool | SetUseLabelColors (bool b) |
virtual LPCTSTR | Text () const |
bool | UseLabelColors () const |
Protected Attributes | |
bool | m_bDrawSeparatorLine |
Protected Attributes inherited from CRhinoUiOptionsListCtrlItem | |
CPoint | m_ptEndTrackSelect |
CRhinoUiOptionsListCtrlSeparator::CRhinoUiOptionsListCtrlSeparator | ( | LPCTSTR | lpsLabel = NULL , |
int | iIndentLevel = 0 |
||
) |
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
See Also: CRhinoUiOptionsListCtrlItem::CRhinoUiOptionsListCtrlItem()
|
virtual |
Description: Destructor
|
virtual |
Description: This method is called when a options list control item is selected. The method should create the control window used to change the items value.
Parameters: list_ctrl [in] The options list control calling this method. rEdit [in] The options list control item value bounding rectangle.
Returns: Should return true if the control has been successfully created; otherwise false.
Implements CRhinoUiOptionsListCtrlItem.
bool CRhinoUiOptionsListCtrlSeparator::DrawSeparatorLine | ( | ) | const |
|
virtual |
Description: This method is called to determine height for this options list control item. Override this method if you want to increase the height of this item.
Returns: Returns height for this item.
See Also: CRhinoUiOptionsListCtrl::LabelItemHeight()
Reimplemented from CRhinoUiOptionsListCtrlItem.
|
virtual |
Description: This method is called when a column or options list control has been resized while a item control is visible.
Parameters: list_ctrl [in] The list control this item is inserted in. rEdit [in] The options list control item value bounding rectangle.
See Also: CRhinoUiOptionsListCtrlItem::BeginEditItem()
Implements CRhinoUiOptionsListCtrlItem.
|
virtual |
Description: This method is overridden to display separator line if enabled
Parameters: See: CRhinoUiOptionsListCtrlItem::OnDrawItem()
See Also: CRhinoUiOptionsListCtrlItem::OnDrawItem()
Reimplemented from CRhinoUiOptionsListCtrlItem.
bool CRhinoUiOptionsListCtrlSeparator::SetDrawSeparatorLine | ( | bool | b | ) |
|
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 CRhinoUiOptionsListCtrlItem.
|
protected |