Page 1 of 1

How to use BindEvent() -> #PB_Event_LeftClick ?

Posted: Sun Mar 13, 2016 7:17 pm
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.