I've written a simple subclass of wxTextCtrl to enter dates. You just type
the digits (ex. 040703), and it adds the dashes for you (04-07-2003).
I'm sending the code as an attachment, if it can be useful to anyone.
I also have made a class for a combobox with freely editable text and
automatic type-ahead based on the provided list of values, and a combo-box
with no editable text and automatic accelerator keys (the feature is not
available in the the stock combobox under wxGTK, it is under wxMSW though).
If anyone is interested, I can send them also...
roger
note: i've had to excise references to a custom date handling class from the
code, so it might need a little bit of tweaking...
datetext.py (4.17 KB)
ยทยทยท
Igor Prischepoff <igor@tyumbit.ru> wrote:
Now another problem, wxTextCtrl really is not good at entering date.
We have more advanced control - wxMaskedTextCtrl (beta), so ideally -
it should be used instead of wxTextCtrl. I've attached 2 files which
try to utilize wxMaskedTextCtrl.