Navigation:  thinBasic Modules > UI (User Interface) > DIALOGSs >

DIALOG SHAPETOBMP

Previous pageReturn to chapter overviewNext page

 

Description

 

Creates a window region starting from a bitmap file. Window will automatically create a region following bitmap contours.

 

Syntax

 

DIALOG SHAPETOBMP hwnd, BitMapFileName [, TranColor [, ResizeToImage]]

 

Returns

 

None.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the window

BitMapFileName

String

No

Name of the bitmap file to be loaded

TranColor

Number

Yes

Color to be used for transparency.

-1 means automatic (default value)

Common TranColor is magenta: RGB(255, 0, 255) or &HFF00FF

ResizeToImage

Number

Yes

If %TRUE, dialog will be resized to image size

 

Remarks

 

Restrictions

 

See also

 

Examples