How to use BindEvent() -> #PB_Event_LeftClick ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Arbrakaan
Posts: 91
Joined: Mon Feb 24, 2014 10:54 pm
Location: Geneva
Contact:

How to use BindEvent() -> #PB_Event_LeftClick ?

Post by Arbrakaan »

Hi all,
I cant see how to use the leftclick event.
I get nothing with this code, what i'am doing wrong ?

Code: Select all

Procedure LeftClick()
    Debug "ok"
EndProcedure
  
  If OpenWindow(0, 0, 0, 295, 260, "LeftClick", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_ScreenCentered) 
    BindEvent(#PB_Event_LeftClick , @LeftClick())
  EndIf
SpiderBasic 1.20

Thanks for the help.