wxMaskedTextCtrl v0.0.6 release

Hi Chris,

Oooh, I like the date shortcuts!! I’ll work 'em in…

Thanks!

Jeff

jchilders_98@yahoo.com

···

-----Original Message-----
From: Chris Munchenberg [mailto:cjm@ava.com.au]
Sent: Sunday, February 16, 2003 7:13 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] wxMaskedTextCtrl v0.0.6 release

Hi Jeff,

Awesome!

One thing I find very useful on one program I use is to allow shortcuts for date entry. (Not date/time)

Space/empty = current date (ie today)

1or 2 digits = date in current month (eg 12 would be 12 Feb 2003)

day & month = date in current year (eg 12 01 would be 12 Jan 2003)

day & month & year = explicit date (eg 12 01 02 would be 12 Jan 2002)

Handy for lazy people like me. Just something else to think about.

Chris.

----- Original Message -----
From: J. Childers

To: wxpython-users@lists.wxwindows.org

Sent: Monday, February 17, 2003 5:50 AM

Subject: [wxPython-users] wxMaskedTextCtrl v0.0.6 release

Hi all,

Here’s rev 0.0.6 of my masked data entry control.

Changelog, as usual, follows. Highlights include: wxDateTime used to validate dates and times
(works great, thanks Robin!). Lists can be passed to the control for use as validators. Ranges
supported for numeric types. Several other small improvements to the interface. More options to
play with in the demo (double click the attached file to run it).

All feeback welcome.

Regards,

Jeff Childers
jchilders_98@yahoo.com

CHANGELOG:

====================

Version 0.0.6

1. Fixed regex bug that caused autoformat AGE to invalidate any age ending

in ‘0’.

2. New format character ‘D’ to trigger date type. If the user enters 2 digits in the

year position, the control will expand the value to four digits, using numerals below

50 as 21st century (20+nn) and less than 50 as 20th century (19+nn).

Also, new optional parameter datestyle = set to one of {MDY|DMY|YDM}

3. revalid parameter renamed validRegex to conform to standard for all validation

parameters (see 2 new ones below).

4. New optional init parameter = validRange. Used only for int/dec (numeric) types.

Allows the developer to specify a valid low/high range of values.

5. New optional init parameter = validList. Used for character types. Allows developer

to send a list of values to the control to be used for specific validation.

See the Last Name Only example - it is list restricted to Smith/Jones/Williams.

6. Date type fields now use wxDateTime’s parser to validate the date and time.

This works MUCH better than my kludgy regex!! Thanks to Robin Dunn for pointing

me toward this solution!

7. Date fields now automatically expand 2-digit years when it can. For example,

if the user types “03/10/67”, then “67” will auto-expand to “1967”. If a two-year

date is entered it will be expanded in any case when the user tabs out of the

field.

8. New class functions: SetValidBackColor, SetInvalidBackColor, SetEmptyBackColor,

SetSignedForeColor allow accessto override default class coloring behavior.

9. Documentation updated and improved.

10. Demo - page 2 is now a wxFrame class instead of a wxPyApp class. Works better.

Two new options (checkboxes) - test highlight empty and disallow empty.

11. Home and End now work more intuitively, moving to the first and last user-entry

value, respectively.

12. New class function: SetRequired(bool). Sets the control’s entry required flag

(i.e. disallow empty values if true).


Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day
http://shopping.yahoo.com



To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org