ShowShapeDlg method (ILEADRasterDlgEfx)

Visual Basic example

Visual C++ example

 

Syntax

short ShowShapeDlg(long hWnd);

Overview

Refer to Using Imaging Common Dialogs

Remarks

Displays the Get Shape dialog box, and gets the options for the Shape property and the DrawShape method.

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

Value

Meaning

SHAPE_SHOW_CONTEXTHELP

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

SHAPE_AUTOPREVIEW

[0x00000002] auto preview when options change

SHAPE_SHOW_PREVIEW

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

SHAPE_BACKSTYLE

[0x00000008] back style is an option

SHAPE_FILLSTYLE

[0x00000010] fill style is an option

SHAPE_FORE_BACK_COLOR

[0x00000020] fore and back colors are options

SHAPE_BORDERSTYLE

[0x00000040] border style is an option

SHAPE_BORDERWIDTH

[0x00000080] border width is an option

SHAPE_BORDERCOLOR

[0x00000100] border color is an option

SHAPE_INNERSTYLE

[0x00000200] inner band style is an option

SHAPE_INNERWIDTH

[0x00000400] inner band width is an option

SHAPE_INNER_HILITE_SHADOW

[0x00000800] inner band colors are options

SHAPE_OUTERSTYLE

[0x00001000] outer band style is an option

SHAPE_OUTERWIDTH

[0x00002000] outer band width is an option

SHAPE_OUTER_HILITE_SHADOW

[0x00004000] outer band colors are options

SHAPE_SHADOWCOLOR

[0x00008000] shadow color is an option

SHAPE_SHADOW_X_Y

[0x00010000] shadow x and y are options

SHAPE_BROWSEIMAGE

[0x00020000] browse image button is an option

SHAPE_NO_TREEVIEW

[0x00040000] DO NOT use the TreeView

SHAPE_CLASS_SQUARE

[0x00080000] squares are options

SHAPE_CLASS_RECTANGLE

[0x00100000] rectangles are options

SHAPE_CLASS_PARALLELOGRAM

[0x00200000] parallelograms are options

SHAPE_CLASS_TRAPEZOID

[0x00400000] trapezoids are options

SHAPE_CLASS_TRIANGLE

[0x00800000] triangles are options

SHAPE_CLASS_OTHER

[0x01000000] other polygons are options

SHAPE_CLASS_CIRCLE

[0x02000000] circles are options

SHAPE_CLASS_ELLIPSE

[0x04000000] ellipses are options

SHAPE_CLASS_STAR

[0x08000000] stars are options

SHAPE_CLASS_CROSS

[0x10000000] crosses are options

SHAPE_CLASS_ARROW

[0x20000000] arrows are options

These values may be combined by ORing them.

If you include SHAPE_SHOW_PREVIEW 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 Shape dialog can be seen below:

image\GetShape.gif

See Also

Elements

DrawShape method, ShowHelpButton property, Shape property, UIFlags property