Formatting keys and toolbars

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.

NoteKeyboard 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.

Table 30-2: Keyboard shortcuts for RichText DataWindow objects

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

Print

Ctrl+P

Undo

Ctrl+Z

Toggle display of nonprinting characters

Ctrl+*

Toggle preview mode

Ctrl+F2

Navigating and selecting text

Table 30-3: Keyboard shortcuts for navigating and selecting text

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