Contents Up Previous Next

wxRichTextStyleComboCtrl

This is a combo control that can display the styles in a wxRichTextStyleSheet, and apply the selection to an associated wxRichTextCtrl.

See samples/richtext for an example of how to use it.

Derived from

wxComboCtrl

Include files

<wx/richtext/richtextstyles.h>

See also

wxRichTextStyleListBox, wxRichTextCtrl overview

Members

wxRichTextStyleComboCtrl::wxRichTextStyleComboCtrl
wxRichTextStyleComboCtrl::~wxRichTextStyleComboCtrl
wxRichTextStyleComboCtrl::GetRichTextCtrl
wxRichTextStyleComboCtrl::GetStyleSheet
wxRichTextStyleComboCtrl::SetRichTextCtrl
wxRichTextStyleComboCtrl::SetStyleSheet
wxRichTextStyleComboCtrl::UpdateStyles


wxRichTextStyleComboCtrl::wxRichTextStyleComboCtrl

wxRichTextStyleComboCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0)

Constructor.


wxRichTextStyleComboCtrl::~wxRichTextStyleComboCtrl

~wxRichTextStyleComboCtrl()

Destructor.


wxRichTextStyleComboCtrl::GetRichTextCtrl

wxRichTextCtrl* GetRichTextCtrl() const

Returns the wxRichTextCtrl associated with this control.


wxRichTextStyleComboCtrl::GetStyleSheet

wxRichTextStyleSheet* GetStyleSheet() const

Returns the style sheet associated with this control.


wxRichTextStyleComboCtrl::SetRichTextCtrl

void SetRichTextCtrl(wxRichTextCtrl* ctrl)

Associates the control with a wxRichTextCtrl.


wxRichTextStyleComboCtrl::SetStyleSheet

void SetStyleSheet(wxRichTextStyleSheet* styleSheet)

Associates the control with a style sheet.


wxRichTextStyleComboCtrl::UpdateStyles

void UpdateStyles()

Updates the combo control from the associated style sheet.