there are a lot of desktopcontrols that have standard events that does nothing and are never called
since api2 this happens a lot.
there has been a copy-paste in the documentation from api1 and has never been corrected.
you can add an issue with no problem !
In this case it was assumed that clicking on some date in the graphical version of the DateTimePicker should commit to that selection and I’m not convinced that is the expected behavior. As a user I would assume that I could tentatively select one date or another until I finalized my decision. Simply adding a ‘Select’ button next to the Picker would solve the issue.
I don’t see anywhere that this was assumed. I just reported that I can’t make MouseDown/MouseUp work.
The graphical interface updates itself showing a blue indication on the clicked date (for me using dark mode). Depends on the developer/client needs if they want to instantly commit the change or not.
If the MouseDown and MouseUp events are present, they should work. Otherwise they should be removed.
But DateChanged would be the correct event for @Emile_Schwarz’s logic since the user may make changes with the keyboard that would not trigger a properly functioning MouseDown event.
I was referring to issue #78073 that you referred to. The problem described there is that one cannot click on the current date to commit to that selection as the DateChanged event doesn’t fire. But I for one wouldn’t even suppose that one could; from a user’s perspective I would rather expect a button to confirm my selection.
So even if one could catch the MouseDown event, using it to confirm a date selection would be unexpected behavior (that should generally be avoided).
For example: macOS does not offer a button to confirm the selection. Because Xojo wants to offer native controls, the graphical interface is very limited (compared with Windows for example).
Yes, I was referring to other things within the ticket, and even created a different ticket for other thing.
I guess it was strange for me that you reference something extra from the ticket that is not part of what OP needs/wants on this thread.
The main problem for OP is that DesktopDateTimePicker offers MouseUp and MouseDown and they don’t work. Xojo should remove them as available options or make them work for whatever the developer needs.
If Xojo do not want to implement correctly MousDown/MouseUp, removing them will lead to peoeple asking for them.
A solution would be to disable them: preent in the Menu, but not selectable. Of course, if possible.
And wrote something accordingly in the Documentation (preyin for developers to read it).