Double-click events for CalendarGadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Double-click events for CalendarGadget

Post 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
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Double-click events for CalendarGadget

Post by Shardik »

Do you already have taken a look into these examples?
- Fluid Byte
- srod
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Double-click events for CalendarGadget

Post 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
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Double-click events for CalendarGadget

Post by BarryG »

+1
Post Reply