From: Edward H. <ed...@do...> - 2006-09-28 21:50:43
|
Hullo -- We've been using our own hand-rolled datepicker control, which pulls up a dialog with a Wx::Calendar on it. Just the thing to replace with a Wx::DatePickerCtrl now that the real Wx::DatePickerCtrl is available! So I've been trying to press Wx::DatePickerCtrl into service. I've been having some problems. First off, I can't 'use Wx::DatePickerCtrl' -- though if I 'use Wx::Calendar' I get Wx::DatePickerCtrl loaded as a side effect. This is pretty counterintuitive. I also am not able to subclass it (use base qw(Wx::DatePickerCtrl))without doing a 'use Wx::Calendar' first to get Wx::DatePickerCtrl loaded, which also took me quite a while to figure out. (Actually I just figured those two out while writing this message, while trying to put together a tiny app to demonstrate the problems I was having with it.) The one problem I still haven't been able to figure out is how to import the constant wxDefaultDateTime so I can test whether the datepicker has a null date (having passed it the style DP_ALLOWNONE). Where is that constant exported from? How can I get to it? sorry for this stream-of-consciousness-like email. I've been wrestling with this stuff with a sleep deficit, which has probably made me a little stupider about it than I might have been. If I've been unclear on anything let me know. Versions involved: wxPerl 0.57 on OS X. built with wxWidgets 2.6.3. Any insight on the wxDateTime constant? Thanks very much, Ed Heil |