DIALOG SET IMAGE

<< Click to Display Table of Contents >>

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

DIALOG SET IMAGE

 

Description

 

Set the dialog background image.

 

Syntax

 

DIALOG SET IMAGE hwnd, BMPFileName [,ImageMode]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog

BMPFileName

String

No

Full path to a BMP image file.

ImageMode

Number

Yes

Define how to paint image in the window client area. Use one of the following equates:

 

Equate

Meaning

%BK_DrawMode_Stretch

Background image will be dynamically stretched to dialog size

%BK_DrawMode_Tile

Background image will be tiled n times depending on dialog width/height

%BK_DrawMode_WinResize

Dialog client size will be re-dimensioned automatically to the image size.

In this case it is recommended to call DIALOG REDRAW ... just after.

 

If no value is specified, %BK_DrawMode_Stretch will be used.

 

Remarks

 

Restrictions

 

See also

 

Examples