PASSWORD Style for EditLine (OpenInsight Specific)
At 27 AUG 1999 09:55:28PM Barry Stevens wrote:
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
At 28 AUG 1999 06:33PM Carl Pates wrote:
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
At 30 AUG 1999 04:25AM Barry Stevens wrote:
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
At 30 AUG 1999 04:28AM Oystein Reigem wrote:
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 -
At 31 AUG 1999 09:20PM Barry Stevens wrote:
]]What is that SetStyle function you use?«
It is the routine from the OI help under STYLE property.
Barry
At 01 SEP 1999 06:47AM Oystein Reigem wrote:
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 -