IonicWind Software

IWBasic => GUI Central => Topic started by: Bruce Peaslee on July 04, 2008, 04:30:26 PM

Title: Read-Only Edit
Post by: Bruce Peaslee on July 04, 2008, 04:30:26 PM
I have an edit control with data that I want to switch to read-only and back, based on a button press.

I can't quite get it to work. Anyone tried this?

Thanks.
Title: Re: Read-Only Edit
Post by: mrainey on July 04, 2008, 05:09:46 PM
This works for me.


SetID "EM_SetReadOnly",207
SendMessage WinName,@EM_SetReadOnly,1,0,ControlNumber  : ' read-only
SendMessage WinName,@EM_SetReadOnly,0,0,ControlNumber   : ' not read-only
Title: Re: Read-Only Edit
Post by: LarryMc on July 04, 2008, 05:10:02 PM
Bruce

Use the SEARCH tab of the help file and search for MODIFYSTYLE.
Or in the alphabetical list of key words.   (It's not in the index)

That's the answer you're looking for to change any style.

Larry
Title: Re: Read-Only Edit
Post by: Bruce Peaslee on July 04, 2008, 07:20:21 PM
Thanks.

I will check it out tomorrow. Fireworks tonight.

Bruce
Title: Re: Read-Only Edit
Post by: Bruce Peaslee on July 05, 2008, 09:50:21 AM
MODIFYSTYLE is a command. There's nothing like looking at the help file.   ::)

Thanks, guys.