Multiline text widget
Construct multi-line text widget.
Argument | Type | Default | Description |
p | FXComposite | ||
tgt | FXObject | None | |
sel | Int | 0 | |
opts | Int | 0 | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 |
Append n characters of text at the end of the buffer.
Argument | Type | Default | Description |
text | String | ||
n | Int | ||
notify | Bool | False |
Extract n characters of text from position pos.
Argument | Type | Default | Description |
text | String | ||
pos | Int | ||
n | Int |
Return text position at given visible x,y coordinate.
Argument | Type | Default | Description |
x | Int | ||
y | Int |
Insert n characters of text at position pos into the buffer.
Argument | Type | Default | Description |
pos | Int | ||
text | String | ||
n | Int | ||
notify | Bool | False |
Return True if position pos is selected.
Argument | Type | Default | Description |
pos | Int |
Unselect the text.
Argument | Type | Default | Description |
notify | Bool | False |
Return position of end of line containing position pos.
Argument | Type | Default | Description |
pos | Int |
Return position of begin of line containing position pos.
Argument | Type | Default | Description |
pos | Int |
Scroll text to make the given position visible.
Argument | Type | Default | Description |
pos | Int |
Scroll the contents.
Reimplemented from FXScrollArea.
Argument | Type | Default | Description |
x | Int | ||
y | Int |
Move and resize this window in the parent's coordinates.
Reimplemented from FXWindow.
Argument | Type | Default | Description |
x | Int | ||
y | Int | ||
w | Int | ||
h | Int |
Return start of previous line.
Argument | Type | Default | Description |
pos | Int | ||
nl | Int | 1 |
Remove n characters of text at position pos from the buffer.
Argument | Type | Default | Description |
pos | Int | ||
n | Int | ||
notify | Bool | False |
Replace m characters at pos by n characters.
Argument | Type | Default | Description |
pos | Int | ||
m | Int | ||
text | String | ||
n | Int | ||
notify | Bool | False |
Resize this window to the specified width and height.
Reimplemented from FXWindow.
Argument | Type | Default | Description |
w | Int | ||
h | Int |
Change number of columns used for line numbers.
Argument | Type | Default | Description |
cols | Int |
Make line containing pos the bottom line.
Argument | Type | Default | Description |
pos | Int |
Set cursor column.
Argument | Type | Default | Description |
col | Int | ||
notify | Bool | False |
Set the cursor position.
Argument | Type | Default | Description |
pos | Int | ||
notify | Bool | False |
Set cursor row.
Argument | Type | Default | Description |
row | Int | ||
notify | Bool | False |
Change selected background color.
Argument | Type | Default | Description |
clr | FXColor |
Select len characters starting at given position pos.
Argument | Type | Default | Description |
pos | Int | ||
len | Int | ||
notify | Bool | False |
Change selected text color.
Argument | Type | Default | Description |
clr | FXColor |
Change the text.
Argument | Type | Default | Description |
text | String | ||
notify | Bool | False |
Change the text in the buffer to new text.
Argument | Type | Default | Description |
text | String | ||
n | Int | ||
notify | Bool | False |
Text widget options
TEXT_READONLY | Text is NOT editable. |
TEXT_WORDWRAP | Wrap at word breaks. |
TEXT_OVERSTRIKE | Overstrike mode. |
TEXT_FIXEDWRAP | Fixed wrap columns. |
TEXT_NO_TABS | Insert spaces for tabs. |
TEXT_AUTOINDENT | Autoindent. |
TEXT_SHOWACTIVE | Show active line. |
Selection modes
SELECT_CHARS | Select characters. |
SELECT_WORDS | Select words. |
SELECT_LINES | Select lines. |