Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3904

No DateTimePicker event for current date

$
0
0

I’ve got a DesktopListbox cell that when clicked popups a DateTimePicker in a small window. I grab the selected date with the DateChanged event and process (works fine). However, if the selected date happens to be the current date (I’m just using as “date”, no time component) the control does not seem to process it; nothing happens. None of the available events seems to fire. The calendar just sits there twiddling its thumbs. Is there an event I’m missing here or a “trick” to recognizing the current date has been “clicked”? Using the latest version of Xojo on a new MacBookPro. Thanks!

Update: Still playing with this. So far the only way I’m able to update my listbox cell value is by using the DateTimePicker “closing” event and I compare: If DateTimePicker.SelectedDate.SQLDate = DateTime.Now.SQLDate Then…process it and the listbox cell updates. The control is in another small window that popups up, not sure if that’s why it doesn’t process the same day click (doubt it, will test). Seems silly that the control will not process a same day selection. What if you need to update a date to today’s date? There’s no event to capture that. This all works but the user has to close the window rather than closing it programmatically with a selection.

8 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3904

Trending Articles