Re: win32lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Is there any way to determine if the data in a SLE is alpha or
numeric,
> and if its alpha is there a way to force it to be all caps? I would
> appreciate any help I can get esp. if anybody has all ready done
> somthing like this.

Howdy Bret,

Everyone else has been doing things the long way as far as I see it.
Why not let windows do it for you?

All you have to do is add these two constants to your code (or into
win32lib if you like) and you're home and hosed.

In fact - here's a whole pile of constants David left out. Enjoy!

-- mikes WIN32LIB additions

    ES_LOWERCASE    = 16,
-- convert text to lowercase

    ES_UPPERCASE    = 8,
-- convert text to uppercase

    ES_NOHISESEL    = 256,
-- show selection, even when not active

    ES_NUMBER       = #2000,
-- only allow numbers

    ES_OEMCONVERT   = #400,
-- something... ;)

    ES_PASSWORD     = 32,
-- displays * instead of chars

    ES_READONLY     = #800,
-- user cant type into here...

    ES_WANTRETURN   = 4096,
-- adds a \n to the returned text


Happy coding :)
==
Mike Fowler - wildcat_nz at yahoo.com  o__ ---
wildcat_nz at yahoo.com               _,>/'_ ---
"the limitations are limitless"   (_) \(_) ---
 - Beck

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu