Hello!
How can you disable days in a wxCalendarCtrl? I'm working with historic data, so i can't show future data(it doesn't exist yet). I show a wxCalendarCtrl with the actual day marked. When the user double click in a date, the application shows the file for the selected date. But if the user double click on a future date, no files will appear, and a wxMessageDialog will popup; it would be very good to disable future days; how can i do it?
thanks,
irkaltza!
disable days in a wxCalendarCtrl
-
- Earned some good credits
- Posts: 120
- Joined: Sun Aug 29, 2004 3:09 pm
- Location: Grenoble, France
- Contact:
You can intercept the EVT_CALENDAR (or other changement)
event and prevent it to change. The wxCalendarEvent is derived from wxCommandEvent so you can intercept to prevent changements.
Moreover, you can change the aspect of a day with wxCalendarCtrl::GetAttr.
event and prevent it to change. The wxCalendarEvent is derived from wxCommandEvent so you can intercept to prevent changements.
Moreover, you can change the aspect of a day with wxCalendarCtrl::GetAttr.
What is little and green, witch go up and down ??
Yoda playing with the force.
Yoda playing with the force.