ShowGradientDlg method (ILEADRasterDlgEfx)

Visual Basic example

Visual C++ example

 

Syntax

short ShowGradientDlg (long hWnd);

Overview

Refer to Using Imaging Common Dialogs

Remarks

Displays the Gradient dialog box, and gets the options for the Gradient property.

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

Value

Meaning

GRADIENT_SHOW_CONTEXTHELP

[0x00000001] dialog should contain a context sensitive help icon.

GRADIENT_SHOW_PREVIEW

[0x00000002] show a preview of the image in the dialog. The Common Dialog Bitmap property must be assigned a valid bitmap before calling this method.

GRADIENT_AUTOPREVIEW

[0x00000004] auto preview when options change

GRADIENT_STARTCOLOR

[0x00000008] start color is an option

GRADIENT_ENDCOLOR

[0x00000010] end color is an option

GRADIENT_STEPS

[0x00000020] gradient steps is an option

GRADIENT_NO_TREEVIEW

[0x00000040] DO NOT use TreeView

GRADIENT_CLASS_LINEAR

[0x00000080] linear gradients are an option

GRADIENT_CLASS_ANGULAR

[0x00000100] angular gradients are an option

GRADIENT_CLASS_RECTANGULAR

[0x00000200] rectangular gradients are anoption

GRADIENT_CLASS_ELLIPTICAL

[0x00000400] elliptical gradients are an option

GRADIENT_CLASS_CONICAL

[0x00000800] conical gradients are an option

These values may be combined by ORing them.

If you include GRAD_SHOWPREVIEW in the UIFlags property, the Common Dialog Bitmap property must be assigned a valid bitmap before calling this method.

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

The Get Gradient dialog can be seen below:

image\GetGradient.gif

See Also

Elements

GradientStyle property, ShowHelpButton property, UIFlags property