#PB_EventType_LeftClick dont work with CalendarGadget +today
Posted: Fri Nov 06, 2020 11:44 am
if you click left on the number of current date, no event is triggered:
The current behavior corresponds more to #PB_EventType_Change
The user of my tool should click two times on the gadget to define the start and the end date. And if the start and end date is the same, I get no event from the second click....
Other bug: If I click right and select "today" in the popup (if an other day is selected), then the #PB_EventType_LeftClick event is triggered too. But there is no left click in this case....
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
Code: Select all
If OpenWindow(0, 0, 0, 250, 200, "CalendarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CalendarGadget(0, 10, 10, 230, 180)
Repeat
event = WaitWindowEvent()
If event = #PB_Event_Gadget And EventGadget() = 0 And EventType() = #PB_EventType_LeftClick: Debug "w": EndIf
Until event = #PB_Event_CloseWindow
EndIf
The user of my tool should click two times on the gadget to define the start and the end date. And if the start and end date is the same, I get no event from the second click....
Other bug: If I click right and select "today" in the popup (if an other day is selected), then the #PB_EventType_LeftClick event is triggered too. But there is no left click in this case....
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)