May 10, 2024, 08:12:15 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Read-Only Edit

Started by Bruce Peaslee, July 04, 2008, 04:30:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bruce Peaslee

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.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

mrainey

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
Software For Metalworking
http://closetolerancesoftware.com

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Bruce Peaslee

Thanks.

I will check it out tomorrow. Fireworks tonight.

Bruce
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

Bruce Peaslee

MODIFYSTYLE is a command. There's nothing like looking at the help file.   ::)

Thanks, guys.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles