DIALOG SHAPETOBMP

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > DIALOGS > Dialog Commands >

DIALOG SHAPETOBMP

 

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