Double-click events for CalendarGadget
Posted: Sun Jan 21, 2018 1:57 pm
I just found out we can't use #PB_EventType_LeftDoubleClick with CalendarGadgets!
What the?
If possible, please add this functionality. I'd like to double-click a date to open a prompt for that date.
(In the meantime, can anyone fix my code below to fulfill this request?).

If possible, please add this functionality. I'd like to double-click a date to open a prompt for that date.
(In the meantime, can anyone fix my code below to fulfill this request?).
Code: Select all
If OpenWindow(0,200,200,250,200,"CalendarGadget",#PB_Window_SystemMenu)
cal=CalendarGadget(0,10,10,240,180)
Repeat
ev=WaitWindowEvent()
If ev=#PB_Event_Gadget And EventType()=#PB_EventType_LeftDoubleClick ; Not supported. :(
Debug "Double-click"
EndIf
Until ev=#PB_Event_CloseWindow
EndIf