Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#59 Calendar control set date option

open
Tony Reina
None
5
2012-07-13
2007-06-18
Sof.T
No

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());

Discussion

  • Tony Reina
    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?

     


Anonymous


Cancel   Add attachments