LoadIconStrip( file$ )

Parameters

file$ - File name of an image containing the icons

Description

Creates an iconstrip and returns its handle.

An icon strip is a series of small images that can be attached to items within container gadgets.

Icons must be square, and arranged in a single horizontal strip across the source image.

The number of icons in an iconstrip is determined by dividing the image width by its height. For example,
an iconstrip 64 wide by 8 high is assumed to contain 64/8=8 icons.

Icon strips can be attached to container gadgets using SetGadgetIconStrip

See also: SetGadgetIconStrip, FreeIconStrip.

Example

; Create a window and some labels
win=CreateWindow("Test Labels",100,100,200,100,0,49)
tab=CreateTabber(0,0,200,100,win)
; get bitmap icon from the Blitz directory
appdir$=SystemProperty("appdir")
blitzdir$=Left(appdir,Len(appdir)-5)
icons=LoadIconStrip(blitzdir$+"\cfg\dbg_toolbar.bmp")
SetGadgetIconStrip tab,icons
InsertGadgetItem(tab,0,"Tab 1",0)
InsertGadgetItem(tab,1,"Tab 2",1)

; The simplest event loop possible!
Repeat
Until WaitEvent()=$803
End ; bye!

Index

Click here to view the latest version of this page online