CenterPreview

<< Click to Display Table of Contents >>

Navigation:  Management >

CenterPreview

Previous pageReturn to chapter overviewNext page

[GUI Control Only]

The preview-window is centered in the middle of the parent window (= parent form) or desktop.

method void VPE.CenterPreview(

long Width,

long Height,

boolean OnScreen

)

long Width, Height

the width and height of the preview window in pixels, they can take the following special values:

Value

Description

Width

1: the preview's width is kept

Height

1: the preview's height is kept

Width

2: the preview's width is set to the width of the parent window (or desktop)

Height

2: the preview's height is set to the height of the parent window (or desktop)

boolean OnScreen

Value

Description

True

the preview is centered on the desktop (screen)

False

the preview is centered relative to the parent window

Remarks:

Java: The parameter OnScreen has no effect. The preview is always centered on the desktop.