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

DIALOG SET IMAGE

Previous pageReturn to chapter overviewNext page

 

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_ImgSize

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

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com