wxRuby Documentation Home

# Wx::RichTextStyleComboCtrl

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

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

## Derived from

ComboCtrl

## See also

RichTextStyleListBox, RichTextCtrl overview

## Methods

- RichTextStyleComboCtrl.new
- RichTextStyleComboCtrl#get_rich_text_ctrl
- RichTextStyleComboCtrl#get_style_sheet
- RichTextStyleComboCtrl#set_rich_text_ctrl
- RichTextStyleComboCtrl#set_style_sheet
- RichTextStyleComboCtrl#update_styles

### RichTextStyleComboCtrl.new

RichTextStyleComboCtrl.new(%(arg-type)Window% parent, Integer id = ID_ANY, Point pos = DEFAULT_POSITION, Size size = DEFAULT_SIZE, Integer style = 0)

Constructor.

destructor()

Destructor.

### RichTextStyleComboCtrl#get_rich_text_ctrl

RichTextCtrl get_rich_text_ctrl()

Returns the RichTextCtrl associated with this control.

### RichTextStyleComboCtrl#get_style_sheet

RichTextStyleSheet get_style_sheet()

Returns the style sheet associated with this control.

### RichTextStyleComboCtrl#set_rich_text_ctrl

set_rich_text_ctrl(%(arg-type)RichTextCtrl% ctrl)

Associates the control with a RichTextCtrl.

### RichTextStyleComboCtrl#set_style_sheet

set_style_sheet(%(arg-type)RichTextStyleSheet% styleSheet)

Associates the control with a style sheet.

### RichTextStyleComboCtrl#update_styles

update_styles()

Updates the combo control from the associated style sheet.

[This page automatically generated from the Textile source at 2023-06-09 00:45:27 +0000]