Assigning Accelerator Keys
\The Sandbox \PB History & Future \New in PB 2 \Painter Features \Window Painter \Accelerator Keys
Aligning Controls
Window Icons
Window
Comments
Tag Values
Accelerator Keys
DragAuto
Attribute
Justifying
StaticText
New Color
Options
New Color
New Control
Attributes
Window Painter
Menu Items
CheckBox and
RadioButton Text
Objects
Comments
Window Pointers
Object Pointers
Text Style
Selecting
Multiple Controls
Sizing Controls
Shortcut Keys
Spacing Controls
User Object
Icons
Using Comments
Keyboard Moving
Controls
Keyboard Sizing
Controls

In the Window and the User Object Painter,

You can use a mouse to select any object and you can use the keyboard to select any object that has a  accelerator key.  Accelerator keys are underlined characters in the text of a menu item or a window object that the user can use instead of the mouse to select a displayed menu item or a window object.  You can assign these keys to any window object that has text.  That is:

    A CheckBox

    A CommandButton

    A DropDownListBox

    A ListBox

    A MultiLineEdit

    A RadioButton

    A SingleLineEdit

    A StaticText

TIP:   To use a accelerator key to select an object when the current object is a DropDownListBox, ListBox, MultiLineEdit, or SingleLineEdit, press Alt+ the underlined character (the accelerator key). 

         To use a accelerator key to select an object when the current object is not a DropDownListBox, ListBox, MultiLineEdit, or SingleLineEdit, press the accelerator key.

To assign a accelerator key:

  1. Open the Window or User Object Painter.
  2. Decide which character in the text for the object you want to designate as the accelerator key.
  3. Enter an ampersand (&) before the character.

When the object displays on the screen, the character following the ampersand is underlined to indicate that it can be used to select the item.  For example, to allow the user to press O to select the Open button, enter an & before the O (&O) in text of the object.  When the object displays on the user's screen, the O in Open is underlined (Open).

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com