logo

class

fwt::RichText

sys::Obj
  fwt::Widget
    fwt::RichText

RichText is used to view and edit text styled with different fonts and colors.

Slots

border

const Bool border := true

Draw a border around the text area. Default is true. This field cannot be changed once the widget is constructed.

Source

font

Font font := null

Default font for text absense explicit styling. Defaults to null (system default).

Source

hscroll

const Bool hscroll := true

True use a horizontal scrollbar for multiLine text widget. Default is true. This field cannot be changed once the widget is constructed.

Source

model

RichTextModel model

Backing data model of text document.

Source

multiLine

const Bool multiLine := true

False for text fields and true for multi-line text areas. Default is true. This field cannot be changed once the widget is constructed.

Source

onModify

|Event| onModify

Callback when the text is modified.

Source

text

Str text

Convenience for model.text (model must be installed).

Source

vscroll

const Bool vscroll := true

True use a vertical scrollbar for multiLine text widget. Default is true. This field cannot be changed once the widget is constructed.

Source

wrap

const Bool wrap := false

True to make wrap the text of a multiLine text widget. Default is false. This field cannot be changed once the widget is constructed.

Source