Re: Another Win32Lib problem...
Davi Figueiredo wrote:
> -- shows asterisks instead of chars
> Sle2 = create( EditText, "", Win, 10, 40, 120, 20, '*'),
By passing a '*', you are passing the number 42 (the ASCII value of '*') as
your edit and window style flags - Win32 apparently read that as a
combination of EX_UPPERCASE and some other flags that I'm too lazy to work
out.
Try instead:
> Sle2 = create( EditText, "", Win, 10, 40, 120, 20, ES_PASSWORD ),
I don't currently have that flag defined; I'll try to get it added to then
next update. It is:
ES_PASSWORD = #20
Here are some other flags, some of which *are* defined in Win32Lib.ew:
ES_LEFT = #0,
ES_CENTER = #1,
ES_RIGHT = #2,
ES_MULTILINE = #4,
ES_UPPERCASE = #8,
ES_LOWERCASE = #10,
ES_PASSWORD = #20,
ES_AUTOVSCROLL = #40,
ES_AUTOHSCROLL = #80,
ES_NOHIDESEL = #100,
ES_OEMCONVERT = #400,
ES_READONLY = #800,
ES_WANTRETURN = #1000,
Hope this helps.
-- David Cuny
|
Not Categorized, Please Help
|
|