Page 1 of 1

Double-click events for CalendarGadget

Posted: Sun Jan 21, 2018 1:57 pm
by Dude
I just found out we can't use #PB_EventType_LeftDoubleClick with CalendarGadgets! :shock: 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?).

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

Re: Double-click events for CalendarGadget

Posted: Sun Jan 21, 2018 2:23 pm
by Shardik
Do you already have taken a look into these examples?
- Fluid Byte
- srod

Re: Double-click events for CalendarGadget

Posted: Sun Jan 21, 2018 10:14 pm
by Dude
Thanks Shardik, I'll check them out. :)

BTW, I didn't see them before because I don't read the German forum, and searching this forum for "calendargadget doubleclick" has only 4 results, which are non-relevant:

http://www.purebasic.fr/english/search. ... oubleclick

Re: Double-click events for CalendarGadget

Posted: Mon May 20, 2019 12:01 pm
by BarryG
+1