I cant seem to be able to set the PASSWORD style for an editline.
I am useing the following method:
call SetStyle("CREATEUSER.PASSWORD","0x20")
Something strange though, I set/unset the password style in formdesign then got the STYLE property both times and there was no change.
So, how do you set the password style for an edit line.
Barry
Hi Barry,
Are you trying to do this after the form has been created? Chances are you may need to destroy the control, set the style and then re-create it again…
Haven't tested this mind, but some controls don't respond to having their style changed on the fly ( try changing a single-select listbox to a multi-select one to see what I mean
![]()
Regards
Carl
Sprezzatura Ltd
Carl
Destroy worked.
I have changed SetStyle to accept a Destroy$ param and detroy if set.
So, I assume there are no hard and fast rules for this…case of suck it and see.
Barry
Barry,
What is that SetStyle function you use?
Are you sure the second parameter is correct? I mean is it in the correct format? Does the function really expect a string "0x20"? Not e.g an integer 2*16+0=32? (Don't be offended. I never get things right myself the first time when there's a hex number involved.)
- Oystein -
]]What is that SetStyle function you use?«
It is the routine from the OI help under STYLE property.
Barry
Barry,
Well, that probably explains it. The SetStyle subroutine expects an integer.
You see the conversions that SetStyle puts the Style variable through? Put your AddStyle (= "0x20") through the same conversions before you feed it to SetStyle. Or just use 32. 32 is the parameter you need.
- Oystein -