Ed Leafe wrote:
I also updated the WindowState code to be case-insensitive.

Here's another place where we've been inconsistent. I agree with your desire to be case-insensitive, but can we agree on some rules:

+ prop setters will interpret string values in case-insensitive fashion. (lower() the passed values, eg)

+ prop getters will always return a specific property value in one form, usually title case. For instance, you could set self.Alignment="cENteR", but when you query self.Alignment later you'll get "Center", no matter how the user set the prop.

Based on your recent changes to the WindowStyle I'm certain you agree with the above, but just in case...

I saw a recipe for a case-insensitive string object somewhere that may take the tedium out of implementing this in all our props... I'll see if I can find it.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to