This class incorporates a RichTextStyleListBox and
a choice control that allows the user to select the category of style to view.
It is demonstrated in the RichTextCtrl sample in samples/richtext
.
To use RichTextStyleListCtrl, add the control to your window hierarchy and
call set_style_type with
one of RichTextStyleListBox::RICHTEXT_STYLE_ALL, RichTextStyleListBox::RICHTEXT_STYLE_PARAGRAPH,
RichTextStyleListBox::RICHTEXT_STYLE_CHARACTER and RichTextStyleListBox::RICHTEXT_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.
RICHTEXTSTYLELIST_HIDE_TYPE_SELECTOR |
This style hides the category selection control. |
Creates the windows.
Returns the associated rich text control, if any.
Returns the Choice control used for selecting the style category.
Returns the ListBox control used to view the style list.
Returns the associated style sheet, if any.
Returns the type of style to show in the list box.
Associates the control with a RichTextCtrl.
Associates the control with a style sheet.
Sets the style type to display. One of RichTextStyleListBox::RICHTEXT_STYLE_ALL, RichTextStyleListBox::RICHTEXT_STYLE_PARAGRAPH,
RichTextStyleListBox::RICHTEXT_STYLE_CHARACTER and RichTextStyleListBox::RICHTEXT_STYLE_LIST.
Updates the style list box.
[This page automatically generated from the Textile source at 2023-06-03 08:07:35 +0000]