From: Edward H. <ed...@do...> - 2006-09-29 03:03:45
|
Thank you, Mark! I will be keeping a copy of your email handy for reference for future situations like this. Regarding one of the things you mentioned -- Mark Dootson wrote: > Even if wxDefaultDateTime were exported, if you used it in the > constructor of your Wx::DatePickerCtrl, the date would be set to the > current date. (Well, as it isn't exported this can't be tested, but so > the docs say). > > On wxMSW, if you use the wxDP_ALLOWNONE flag and have the control > apparantly toggled 'off', ->GetValue() still returns the date value from > the control. This is a wxWidgets 'feature' rather than anything to do > with wxPerl I think. > If I'm understanding you correctly, wxDP_ALLOWNONE is essentially nonfunctional in wxMSW? The only way to allow null dates and have it work in wxMSW is to roll your own external checkbox to indicate whether or not the date is null? And it's an upstream wxWidgets issue, not a wxPerl one? If that is the case we might be better off going back to our own roll-your-own date solution involving a TextCtrl and a button that triggers a picker dialog with a Wx::Calendar on it. In any case, I appreciate your message; you gave me a fish *and* taught me how to fish. :) Best, Ed |