wxrichtextstylelistctrlthis class incorporates a wxrichtextstylelistbox and a choice control that allows the user to select the category of style to view. it is demonstrated in the wxrichtextctrl sample in samples/richtext. to use wxrichtextstylelistctrl, add the control to your window hierarchy and call setstyletype with one of wxrichtextstylelistbox::wxrichtext_style_all, wxrichtextstylelistbox::wxrichtext_style_paragraph, wxrichtextstylelistbox::wxrichtext_style_character and wxrichtextstylelistbox::wxrichtext_style_list to set the current view. associate the control with a style sheet and rich text control with setstylesheet and setrichtextctrl, so that when a style is double-clicked, it is applied to the selection. window styles
derived from include files <wx/richtext/richtextstyles.h> data structures members
wxrichtextstylelistctrl::wxrichtextstylelistctrl
wxrichtextstylelistctrl::wxrichtextstylelistctrlwxrichtextstylelistctrl(wxwindow* parent, wxwindowid id = wxid_any, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0) wxrichtextstylelistctrl() constructors.
wxrichtextstylelistctrl::createbool create(wxwindow* parent, wxwindowid id = wxid_any, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0) creates the windows.
wxrichtextstylelistctrl::getrichtextctrlwxrichtextctrl* getrichtextctrl() const returns the associated rich text control, if any.
wxrichtextstylelistctrl::getstylechoicewxchoice* getstylechoice() const returns the wxchoice control used for selecting the style category.
wxrichtextstylelistctrl::getstylelistboxwxrichtextstylelistbox* getstylelistbox() const returns the wxlistbox control used to view the style list.
wxrichtextstylelistctrl::getstylesheetwxrichtextstylesheet* getstylesheet() const returns the associated style sheet, if any.
wxrichtextstylelistctrl::getstyletypewxrichtextstylelistbox::wxrichtextstyletype getstyletype() const returns the type of style to show in the list box.
wxrichtextstylelistctrl::setrichtextctrlvoid setrichtextctrl(wxrichtextctrl* ctrl) associates the control with a wxrichtextctrl.
wxrichtextstylelistctrl::setstylesheetvoid setstylesheet(wxrichtextstylesheet* stylesheet) associates the control with a style sheet.
wxrichtextstylelistctrl::setstyletypevoid setstyletype(wxrichtextstylelistbox::wxrichtextstyletype styletype) sets the style type to display. one of wxrichtextstylelistbox::wxrichtext_style_all, wxrichtextstylelistbox::wxrichtext_style_paragraph, wxrichtextstylelistbox::wxrichtext_style_character and wxrichtextstylelistbox::wxrichtext_style_list.
wxrichtextstylelistctrl::updatestylesvoid updatestyles() updates the style list box.
|