The calendar control sets the date property to the current editing time, then hard codes it to this date. If I write an application I would like to have a property that allows me to say make the calendar always show the current date. This would generate code such as
SetDate(wxDateTime::Now());
Tony Reina
2010-01-29
The SetDate can be called immediately after the GUI section as a manual work around. I think I prefer this method since I can't think of a clean method to do what you are proposing. I guess I could add a flag in the properties (always use current date or something). Or, I could just always use the wxDateTime::Now() since that is probably what 99% of the coders out there would use anyway. Do you have any better suggestions on an elegant way to do this?