%bm - Bitmap

Purpose

To draw a bitmap.

Syntax

winio@('%bm[bitmap_name]')
winio@('%`bm', handle)
integer(7) handle     (input)

Modifiers

Grave accent (`) - use a Windows API bitmap handle.

Caret (^) - the call-back is called when the user clicks on the bitmap.

Question mark (?) - a help string is supplied.

Description

bitmap_name is standard character string (can be replaced by the @ symbol) giving the name appearing in a resource script.

handle is a value returned by a modified form of the API function LoadBitmap.

bitmap_namecan also take the form of an integer handle surrounded by curly brackets or the name of an external file surrounded by curly brackets.

%`bm[static] gives a "static" image rather than a control that can have a callback function.  The image can be supplied as an argument that has the value returned by a call to LoadResource@.

Example

winio@('%bm[mybitmap]')
mybitmap BITMAP file.bmp      (resource file)

See also

%ic (Icon),%gi (GIF),%im (Image)

 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited