Thursday, September 27, 2012

Keyboard Shortcuts: Recycling the Zoom Key (F5)


I'm old enough to remember back in the early 1960's when aluminum cans required a can opener to break through the tops. I wasn't allowed to drink much soda in those days, certainly not a cola, those were adult beverages when I was a child, but I managed to figure out how to open the occasional can of Seven Up. When pull top cans were invented, they made things a lot easier, but they added to the litter problem, which our new national consciousness was finally beginning to see as a bad thing. Ultimately, the pop-tab was invented and provided the fastest route to a cold beverage. I like the convenience of pop-tabs and I like keyboard shortcuts too.

When developing an application for the Magic xpa Application Platform, a repository is one of the Magic xpa Studio’s basic screens. Magic xpa projects are often very large, mission-critical applications, so it’s important to keep your work organized. The Studio itself helps you in this, by dividing your work into these repositories: Models (SHIFT+F1), Data(SHIFT+F2), Programs(SHIFT+F3), Help Screens(SHIFT+F4), Rights(SHIFT+F5), Menus(SHIFT+F6), and Components Resource Repository (CRR, which is accessible by SHIFT+F7). 
Each of these Magic xpa repositories are divided into a grid, visually similar to a spreadsheet in that every repository has columns and rows. From certain columns, you can “zoom” to an option list or a details window to select data options. When the insertion point is positioned on a zoomable field, for example, the word ZOOM appears on the message line. Every experienced Magic programmer knows that to zoom, you select the F5 key.
The list of Windows compatible keyboard shortcuts that are available as part of the Magic xpa Application Platform depends on the current development context such as Repository Shortcuts, several types of Form Shortcuts, Open Project Shortcuts, Closed Project Shortcuts and Runtime Shortcuts. Some shortcuts are available in more than one development context. The F5 (Zoom) shortcut is available in numerous contexts, but will behave slightly differently depending upon the current development context.
As an aid in your use of keyboard shortcuts, here is a list of Windows-compatible keyboard combinations per development context for your reference:

Repository Shortcuts

Magic xpa Object
Shortcut
Models
SHIFT+F1
Data
SHIFT+F2
Programs
SHIFT+F3
Help Screens
SHIFT+F4
Rights
SHIFT+F5
Menus
SHIFT+F6
Components
SHIFT+F7
Task Properties
CTRL+P
Data View
CTRL+1
Logic
CTRL+2
Form
CTRL+3
Expression Editor
CTRL+E
Data Sources
CTRL+D
I/O Devices
CTRL+I
Sort
CTRL+T
User Events
CTRL+U
Range/Locate
CTRL+R
SQL Command
CTRL+Q
Application Properties
CTRL+SHIFT+P
Export/Import
CTRL+SHIFT+E
Navigator
ALT+F1
Property Sheet
ALT+F2
Checker Result
ALT+F3
Comments
ALT+F12
Switch Panes
CTRL+TAB
SQL Command
CTRL+Q
Variables
CTRL+V
I/O devices
CTRL+I
User Event
CTRL+K
Range/Locate
CTRL+H
Find Reference
CTRL+F
Find Text
CTRL+SHIFT+F
Locate Row
CTRL+L
Locate Next Row
CTRL+N
Locate Previous Row
CTRL+SHIFT+N
Jump to Row
CTRL+J
Jump to Folder
CTRL+SHIFT+J
Next Header Line
ALT+CTRL+N
Previous Header Line
ALT+CTRL+P
Repeat Entry
CTRL+SHIFT+R
Move Entry
CTRL+SHIFT+M
Overwrite Entry
CTRL+SHIFT+O

Closed Project Shortcuts

The table below lists the key combinations for Studio commands when the Magic xpa project is closed.

Command
Key Combination
Location
Open Project
CTRL+O
File
Exit
ALT+F4
File
Cancel
CTRL+F2
Edit
Undo Editing
ALT+Back
Edit
Cut
CTRL+X
Edit
Copy
CTRL+C
Edit
Paste
CTRL+V
Edit
Create Line
F4

Delete Line
F3

Select All
CTRL+A

Zoom
F5

Wide
F6

Properties
ALT+Enter
Edit
Repeat Entry
CTRL+SHIFT+R
Edit
Move Entry
CTRL+SHIFT+M
Edit
Overwrite Entry
CTRL+SHIFT+O
Edit
Locate Row
CTRL+L
Edit
Locate Next Row
CTRL+SHIFT+L
Edit
Jump to Row
CTRL+J
Edit

Open Project Shortcuts

The table below lists the key combinations for Studio commands when the Magic xpa project is open.

Command
Key Combination
Location
Open Project
CTRL+O
File
Application Properties
CTRL+SHIFT+P
File
Export/Import
CTRL+SHIFT+E
File
Exit
ALT+F4
File
Cancel
CTRL+F2
File
Undo Editing
ALT+Back
Edit
Cut
CTRL+X
Edit
Copy
CTRL+C
Edit
Paste
CTRL+V
Edit
Create Line
F4
Edit
Create Header Line
CTRL+H
Edit
Delete Line
F3
Edit
Enable/Disable Line
CTRL+SHIFT+D (only available from the Logic Editor)
Edit
Select All
CTRL+A
Edit
Zoom
F5
Edit
Wide
F6
Edit
Properties
ALT+ENTER
Edit
Find Reference
CTRL+F
Edit
Find Text
CTRL+SHIFT+F
Edit
Repeat Entry
CTRL+SHIFT+R
Edit
Move Entry
CTRL+SHIFT+M
Edit
Overwrite Entry
CTRL+SHIFT+O
Edit
Locate Row
CTRL+L
Edit
Locate Next Row
CTRL+N
Edit
Locate Previous Row
CTRL+SHIFT+N
Edit
Jump to Row
CTRL+J
Edit
Jump to Folder
CTRL+SHIFT+J
Edit
Next Header Line
ALT+CTRL+N
Edit
Previous Header Line
ALT+CTRL+P
Edit
Goto Match
ALT+CTRL+M
Edit
Edit Node
F2
Edit
Expand Node
+
Edit
Collapse Node
-
Edit
Expand All
CTRL+Plus
Edit
Collapse All
CTRL+Minus
Edit
Next Category
CTRL+Down
Edit
Previous Category
CTRL+Up
Edit
Navigator
ALT+F1
View
Property Sheet
ALT+F2
View
Checker Result
ALT+F3
View
Comments
ALT+F12
View
Switch Panes
CTRL+TAB
View
Show Line Numbers
CTRL+SHIFT+N
View
Models
SHIFT+F1
Project
Data
SHIFT+F2
Project
Programs
SHIFT+F3
Project
Help Screens
SHIFT+F4
Project
Rights
SHIFT+F5
Project
Menus
SHIFT+F6
Project
CRR
SHIFT+F7
Project
Task Properties
CTRL+P
Task
Data View
CTRL+1
Task
Logic
CTRL+2
Task
Forms
CTRL+3
Task
Data Sources
CTRL+D
Task
Expression Editor
CTRL+E
Task
I/O Devices
CTRL+I
Task
Sort
CTRL+T
Task
User Events
CTRL+U
Task
Range/Locate
CTRL+R
Task
SQL Command
CTRL+Q
Task
Check Syntax
F8
Options
Check to End
ALT+F8
Options
Bookmarks
CTRL+SHIFT+B
Options
Comment
F12
Options
Save Program
CTRL+S
Options
Get Definition
F9 (Data repository)
Options
Generate Program
CTRL+G
Options
Generate Form
CTRL+G
Options
Edit Main Form
CTRL+M
Options
Next Checker Message
CTRL+F8
Options
Go to Object*
CTRL+F5
Options
Return from Object*
CTRL+SHIFT+F5
Options
Composite Generator
CTRL+SHIFT+G
Options
Runtime/Continue
F7
Debug
Run in Browser
CTRL+SHIFT+F7 (Lite version)
Debug
Run Project
CTRL+F7
Debug
Break Now
ALT+CTRL+F7
Debug
Step
F10
Debug
Step Into
F11
Debug
Step Out
SHIFT+F11
Debug
Toggle Breakpoint
F9
Debug
Add to Watch
CTRL+F11
Debug
Reset Runtime Engine
CTRL+SHIFT+F9
Debug
Help
F1
Help

General Form Editor Shortcuts

Keyboard shortcuts for forms are listed in the General, Table, Drawing  tables below.

General

Key
When...
Result...
F5
Control is selected
Control properties open
F5
No selection
Form properties open
Click on control

Control properties open. Child controls are also selected.
Click on control
CTRL
Child controls are not selected.
Click on form

Form properties open
Drag a control

Child controls are also selected
SPACE
Control is selected
Control is not selected
ENTER
A Static control is selected
Text entry
ENTER
A Choice control is selected
Moves from choice to choice
Click on choice control
SHIFT
Change layer
Double click on control icon

Control appears in the upper-left corner of the form
ARROWS
Controls are selected and then press ENTER
Moves the selection
ARROWS+SHIFT
Controls are selected and then press ENTER
Sizes the selection
ARROWS
No selection and then press ENTER
Moves the form
ARROWS+SHIFT
No selection and then press ENTER
Sizes the form
TAB

Selects next control
TAB+SHIFT

Selects previous control
HOME

Selects first control
END

Selects last control
CTRL+A
(Also, Edit menu > Select All)
Selects all controls on the form.
When in Edit mode of the Static control, theSelect All option selects the text of the edited control.
Click
On a container control
Selects the container control and all controls attached to it
CTRL+click
On a container control
Selects the container control, but not the controls attached to it. If you use Ctrl+Click and click on several controls one by one, selects several controls that are located on one tab.
This is how you can manipulate (move, delete, change properties) the controls that are attached to one tab.
SHIFT+Click
On a container control
Select just one choice.
This is the mode you want to be in to add fields to one choice.
SHIFT
Dropping a control from the Variable palette
No title appears
Right click

The context menu is displayed

Table Controls

Key
When...
Result...
Click
Dragging the table column
Moves the column divider only, not the controls attached to the column
CTRL+click
Dragging the table column
Adjusts all table columns; moves all the other columns to the right and the attached controls
Click
Dropping a control on a table
Adds a table column after an existing table column
SHIFT+click
Dropping a control on a table
Adds a table column in front of an existing table column
ALT+click
On a column while dragging a control
Places a control on an existing table column
ALT+click
On a column area (park anywhere except for table caption and first row)
Marks a column
TAB
One column is selected
Moves to the next column
ALT+CTRL+click

Selects multiple columns
CTRL+ALT+SHIFT
Clicking on the first and then last column
Selects all columns at once
CTRL+click
Dropping a control on a table
You can drop the control multiple times after an existing table column
CTRL+SHIFT+click
Dropping a control on a table
You can drop the control multiple times before an existing table column
Click
Outside of a control, dragging the rectangular box around all controls
Selects all controls within the area
Click
Dragging column header to new location
Moves the table column

Drawing Controls


The table below lists the key combinations for Form Editor commands. All of these combinations can also be found in the Drawing menu.
Command
Key Combination
Align Left
CTRL+SHIFT+L
Align Right
CTRL+SHIFT+R
Align Top
CTRL+SHIFT+T
Align Bottom
CTRL+SHIFT+B
Horizontal Center
CTRL+SHIFT+H
Vertical Center
CTRL+SHIFT+V
Horizontal Equal Spacing
ALT+CTRL+H
Vertical Equal Spacing
ALT+CTRL+V
Move Forward
CTRL+4
Move Backward
CTRL+5
Send to Back
CTRL+6
Bring Front
CTRL+7
Attach to Table
CTRL+O
Conclude Drawing
F8

Runtime Shortcuts

Magic xpa provides a Windows compliant keyboard mapping scheme. The table below lists the key combinations for Runtime commands.
Command
Key Combination
Location
Cancel
CTRL+F2
Edit
Undo Editing
ALT+F4
Edit
Cut
CTRL+X
Edit
Copy
CTRL+C
Edit
Paste
CTRL+V
Edit
Create Line
F4
Edit
Delete Line
F3
Edit
Select All
CTRL+A
Edit
Zoom
F5
Edit
Wide
F6
Edit
Ditto
CTRL+D
Edit
Set to Null
CTRL+U
Edit
Modify Records
CTRL+M
Options
Create Records
CTRL+E
Options
Query Records
CTRL+Q
Options
Locate
CTRL+L
Options
Locate Next
CTRL+SHIFT+L
Options
Range of Records
CTRL+R
Options
View by Key
CTRL+K
Options
Sort Records
CTRL+S
Options
Redirect File
CTRL+I
Options
Print Data
CTRL+G
Options

No comments:

Post a Comment