

These short example show you how you can see that these (window events)don't working.
In Theory, in the first example you must see the numbers in string gadget changing, but you will see always "0"!!!!! If you try these codes in windows xp you will see different numbers in real time corresponding to the events.
Code: Select all
;Debagging the events!!!
;Fasa software 2006
OpenWindow(0,0,0,400,500,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Experiment") And CreateGadgetList(WindowID(0))
TextGadget(10,80,380,250,20," ")
ButtonGadget(13, 105, 450, 200, 20, "Push button!")
Repeat
EventID=WaitWindowEvent()
SetGadgetText(10,Str(EventID))
Until EventID = #PB_Event_CloseWindow
End
But, i have descovered this problem because i wanted to get the event from the mouse......but also in this case the mouse events don't working!!
Here i report the other code.....
Code: Select all
;debagging the mouse click!
;Fasa software 2006
OpenWindow(0,0,0,400,500,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Experiment2") And CreateGadgetList(WindowID(0))
TextGadget(10,80,380,250,20," ")
ButtonGadget(13, 105, 450, 200, 20, "Push button!!")
Repeat
EventID=WaitWindowEvent()
Select EventID
Case 513
SetGadgetText(10,"working left!!!!!!")
Case 516
SetGadgetText(10,"working right!!!!!!")
EndSelect
Until EventID = #PB_Event_CloseWindow
End
In the purebasicnet area, i found the PB constant.........are the same for mac and win???
can anyone help me???I'm wrong or i'm right?
Thank you in advance..............