ImageEn, unit iesettings

TIEGlobalSettings.TwainDialogCentering

TIEGlobalSettings.TwainDialogCentering


Declaration

property TwainDialogCentering: TIEDialogCentering;


Description

Overides the default behavior for centering of the Twain dialog when it is displayed.

Value Description
iecDefaultPosition Default behavior (dialog may not be centered over the calling form)
iecOwnerFormCenter Centering is forced over the calling form once the dialog is displayed (using a Windows hook)
iecScreenCenter Centering is forced on the screen once the dialog is displayed (using a Windows hook)

Default: iecDefaultPosition


Example

// Force dialog to be centered over the calling form
IEGlobalSettings().TwainDialogCentering := iecOwnerFormCenter;

// Force dialog to be centered over the screen
IEGlobalSettings().TwainDialogCentering := iecScreenCenter;


See Also

VisibleDialog
VisibleDialog