When the toolbar is visible, you can use its buttons to format text. The changes you make in preview are temporary.
The keystrokes listed in the following tables also assign formatting to selected text.
Keyboard shortcuts do not work in the painter These keystrokes work only when you are running the DataWindow object or the window containing the RichTextEdit control. In PowerBuilder, only keyboard shortcuts defined for menu items in the painter can be used.
Category |
Action |
Key |
---|---|---|
Using the clipboard |
Cut |
Ctrl+X |
Paste |
Ctrl+V, Shift+Insert |
|
Copy |
Ctrl+C |
|
Undo |
Ctrl+Z |
|
Assigning font attributes |
Bold |
Ctrl+B |
Italic |
Ctrl+I |
|
Underline |
Ctrl+U |
|
Subscript |
Ctrl+= |
|
Superscript |
Ctrl+Shift+= |
|
Strikeout |
Ctrl+U |
|
Change font |
Ctrl+Shift+U |
|
Setting line spacing |
Single space |
Ctrl+1 |
Double space |
Ctrl+2 |
|
One and a half space |
Ctrl+5 |
|
Aligning text |
Justify |
Ctrl+J |
Center |
Ctrl+E |
|
Left |
Ctrl+L |
|
Right |
Ctrl+R |
|
Set paragraph formatting |
Ctrl+Shift+S |
|
Editing |
Insert a new paragraph |
Enter |
Insert an empty line |
Ctrl+N |
|
Delete character to right of insertion point |
Delete |
|
Delete character to left of insertion point |
Backspace |
|
Input fields |
Select the input field at the insertion point |
Enter |
Activate the input field at the insertion point |
Space |
|
When input field is active, accept data and exit field |
Enter |
|
When input field is active, exit field without changing data |
Esc |
|
Move to next input field |
Ctrl+Tab |
|
Move to previous input field |
Shift+Ctrl+Tab |
|
Miscellaneous |
Select All |
Ctrl+A |
Ctrl+P |
||
Undo |
Ctrl+Z |
|
Toggle display of nonprinting characters |
Ctrl+* |
|
Toggle preview mode |
Ctrl+F2 |
Move or select |
Navigating key |
Selection key |
---|---|---|
A character to the right or left |
Right Arrow or Left Arrow |
Shift+Right Arrow or Shift+Left Arrow |
A word to the right or left |
Ctrl+Right Arrow or Ctrl+Left Arrow |
Ctrl+Shift+Right Arrow or Ctrl+Shift+Left Arrow |
A line up or down |
Up Arrow or Down Arrow |
Shift+Up Arrow or Shift+Down Arrow |
To start of line |
Home |
Shift+Home |
To end of line |
End |
Shift+End |
To start of document |
Ctrl+Home |
Ctrl+Shift+Home |
To end of document |
Ctrl+End |
Ctrl+Shift+End |
To next input field |
Ctrl+Tab |
|
To previous input field |
Shift+Ctrl+Tab |