Page 1 of 1

ButtonImageGadget with #PB_Button_Toggle

Posted: Mon Mar 27, 2006 1:17 pm
by Sven
Sorry if this was ask before: Is it possible to have a #PB_Button_Toggle-Flag with ButtonImageGadget()?

Code: Select all

Flags = #PB_Button_Toggle
ButtonImageGadget(#Gadget, x, y, Width, Height, ImageID[, Flags])
To update the Image, I would suggest a function

Code: Select all

SetGadgetImage(#Gadget, ImageID())
GetGadgetImage(#Gadget)
so one can get and set the button state with

Code: Select all

SetGadgetState(#Gadget, State)
GetGadgetState(#Gadget) 
and ButtonImageGadget acts like ButtonGadget.

Sven


[/code]