If you want to display an image on a ToolButton (right now)- have to use the ImageList to host the image first - then copy into ToolButton, for example:



Break On
 
$Form = CreateObject("Kixtart.Form")
 
$ImageList = $Form.ImageList
$ImageList.ImageSize = 32,32
$ImageList.Images.Add(".\kixtart.bmp")
 
$Button = $Form.ToolButton
$Button.Size = 50,50
$Button.Center
$Button.Icon = $ImageList.Images(0)
 
$Form.Show
While $Form.Visible
 $=Execute($Form.DoEvents)
Loop
 
Exit 1




One of the advantages of this is that you can resize the bitmap using the ImageList ImageSize property. So for example - the LOGO from this BMP gets "shrunk" to 32x32 then displayed on the button.
-Shawn

[ 21. February 2003, 02:10: Message edited by: Shawn ]