Preview

<< Click to Display Table of Contents >>

Navigation:  Programming Techniques >

Preview

Previous pageReturn to chapter overviewNext page

Screenshot on Windows Vista (Whidbey Theme):Screenshot Vista Explained

Mouse Operation and Keyboard Accelerators:

Left mousebutton: magnify view (in Zoom-Tool mode)

Right mousebutton: reduce view (in Zoom-Tool mode)

Middle mousebutton: turn Zoom-Tool mode on / off

Ctrl + Middle mousebutton: fit page-width mode

Shift + Middle mousebutton: fit whole page mode

Ctrl + MouseWheel: magnify / reduce view

Insert: turn Zoom-Tool mode on / magnify view

Ctrl + Insert: fit whole page mode

Delete: reduce view

Ctrl + Delete: fit page-width mode

Home: top of page

End: bottom of page

Ctrl + Page Up: first page

Ctrl + Page Down: last page

Page Up: one page back

Page Down: one page forward

Arrow Up: scroll up

Ctrl + Arrow Up: scroll visible part up

Arrow Down: scroll down

Ctrl + Arrow Down: scroll visible part down

Arrow Right: scroll right

Ctrl + Arrow Right: scroll visible part right

Arrow Left: scroll left

Ctrl + Arrow Left: scroll visible part left

 

The Zoom-Tool:

When activating the Zoom-Tool by clicking onto the zoom-tool button ZoomTool in the toolbar or by pressing the Insert key, the mouse cursor changes to the zoom-tool icon and you have several options:

You can click with the left mouse button somewhere into the preview. This will zoom in by one level and center the preview at the point you had clicked. You can also press the Insert key, this will zoom in by one level using the current center of the preview.

You can click with the left mouse button somewhere into the preview, hold the button down and drag the mouse. In this case a rubber band will appear. When you release the mouse button, the area covered by the rubber band will be zoomed into the preview.

You can click with the right mouse button somewhere into the preview. This will zoom out by one level and center the preview at the point you had clicked.

You can end the zoom tool mode by either pressing the ESC key or by clicking once again onto the zoom-tool button in the toolbar.

 

Special Keys:

Ctrl + O: Open

Ctrl + S: Save

F1: Help

F2: Print

F3: Mail

'g': Turn Grid on / off (only, if the grid button in the toolbar is enabled)

'i': Info Dialog

ENTER: enter a page number to preview

 

All keys listed above can be re-defined by your application, i.e. you can define by code, what key will cause a specific action.

 

Interactive Edition only:

Tab: move the focus to the next enabled Control - if no Control currently owns the focus, the focus is set to the Control with the lowest Tab-ID

Shift + Tab: move the focus to the previous enabled control

ESC: remove the focus, if the focus is currently owned by an Interactive Text or an Interactive Form Field

 

The preview window can be customized in many ways: all keyboard accelerators can be redefind. You can hide buttons and button groups or even the whole toolbar. You can also hide the rulers and the statusbar, or specific controls of the statusbar. For details see "Management Functions" in the reference help files.

 

The closing of the document fires the event AfterDestroyWindow() (VCL: OnDestroyWindow(); DLL: VPE_DESTROYWINDOW) to your application, which can be used in several ways to have control over what is happening. For example you can disable menu entries and buttons in your application, which start report generation - so a report isn't generated a second time - and re-enable them after receiving this event.