ShowGetTransitionDlg method (LEADDlgEffect Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ShowGetTransitionDlg(TWinControl* AOwnerCtrl);

Delphi Syntax

Function ShowGetTransitionDlg (AOwnerCtrl: TWinControl ): L_INT;

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Displays the Get Transition dialog box, and gets the options for the Transition properties.

The layout and action of the dialog depends on the flags set in the DlgFlags property. Possible options are:

Value

Meaning

DLG_TRANSITION_SHOW_CONTEXTHELP

[$00000001] Dialog should contain a context sensitive help icon.

DLG_TRANSITION_SHOW_PREVIEW

[$00000002] Show a preview of the image in the dialog. The Common Dialog LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

DLG_TRANSITION_AUTOPREVIEW

[$00000004] Auto preview when options change

DLG_TRANSITION_FORECOLOR

[$00000008] Fore color is an option

DLG_TRANSITION_BACKCOLOR

[$00000010] Back color is an option

DLG_TRANSITION_DELAY

[$00000020] Transition delay is an option

DLG_TRANSITION_GRAIN

[$00000040] Transition grain is an option

DLG_TRANSITION_EFFECT

[$00000080] Paint effect is an option

DLG_TRANSITION_PASSES

[$00000100] Transition passes is an option

DLG_TRANSITION_WAND

[$00000200] Wand is an option

DLG_TRANSITION_TRANSPARENT

[$00000400] Transparency is an option

DLG_TRANSITION_GRADIENT

[$00000800] Gradient is an option

These values may be combined by ORing them.

If you include DLG_TRANSITION_SHOW_PREVIEW in the DlgFlags property, the Common Dialog LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

The following properties are associated specifically with this method:

TransitionStyle property

PatternStyle property

Effect property

ForeColor property

BackColor property

StartColor property

EndColor property

GradientStyle property

GradientSteps property

Grain property

Delay property

MaxPass property

Transparent property

TransparentColor property

WandThickness property

WandColor property

To include a Help button in the dialog, set the ShowHelpButton property to TRUE.

The Get Transition dialog can be seen below:

image\GetTransition.gif

See Also

Elements:

TransitionStyle property, Effect property, TransitionEffect property, PaintEffect property, EffectDelay property, EffectGrain property, PaintMaxPasses property, PaintPass property, PaintNotificationDelay property, OnPaintNotify event, UseTransparentColor property, BackColor property, ForeColor property, StartColor property, PatternStyle property, EndColor property, GradientStyle property, DlgFlags property, ShowHelpButton property, Transparent property, TransparentColor property, WandColor property, WandSize property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events