Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

2.21B : ButtonImage with #PB_Button_Toggle does not work

by Niffo Fri Nov 09, 2018 5:19 pm

2.21B : ButtonImageGadget() with #PB_Button_Toggle does not work :
(you can try this code on pPB)

Code: Select all
CreateImage(0, 32, 32, 24, RGB(255,0,0))
CreateImage(1, 32, 32, 24, RGB(0,255,0))

OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonImageGadget(0, 10, 10, 40, 40, ImageID(0), #PB_Button_Toggle)
SetGadgetAttribute(0, #PB_Button_PressedImage, ImageID(1))

CompilerIf #PB_Compiler_OS <> #PB_OS_Web
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
CompilerEndIf
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests