Why the same code go in mac, but don't go in windows...the image button gadgets don't receive the clicks i think ...and block my program...
Here below i post a little portion of my code:
Code: Select all
IncludeFile "RD-Mac.pbf"
Global numero1
Global numero2
Global risultato
Global test
numero1=0
numero2=0
risultato=0
test=0
UseJPEGImageDecoder()
UsePNGImageDecoder()
Img_RouletteD_0 =CatchImage(#PB_Any ,?sfondo)
Img_RouletteD_1=CatchImage(#PB_Any ,?ResetButton)
Img_RouletteD_2 =CatchImage(#PB_Any ,?Mano1)
Img_RouletteD_2 =CatchImage(#PB_Any ,?Mano2)
Img_RouletteD_4=CatchImage(#PB_Any,?Purelogo)
Img_RouletteD_3=CatchImage(#PB_Any,?Dollaro)
OpenRouletteD()
If LoadFont(0, "Times", 20)
StringGadget(#Messaggi, 220, 20, 320, 90, "RD By Fasa 2016")
SetGadgetFont(#Messaggi, FontID(0))
EndIf
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_CloseWindow
Quit = 1
Case #PB_Event_Gadget ; The Event that the window received
If EventGadget() = #But1
If EventType() = #PB_EventType_LeftClick ; Is the type of Event a LeftClick ?
If test=0
HideGadget(DOLLARO1,0)
If numero1=0
numero1=1
Else
numero2= 1
If numero1<> 0
If numero2<> 0
Gosub ANALISI
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndSelect
Until Quit > 0
Thanks a lot ,
lestroso