Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 14 SEP 1999 02:15:14PM Don Miller - C3 Inc. wrote:

Have an OI form which contains control information. I don't waht the user to be able to change it so the attribute for the editline is Read-Only. However, I'd like to be able to change it after entering a password. I have the password entry hooked to an Invisible Menu item.

How can I change the Read-Only attribute of the editline from true to false? Don't want to use the ENABLED,FALSE property due to cosmetic issues on the form.

Any suggestions?

Don Miller

C3 Inc.


At 14 SEP 1999 02:53PM Mike Ruane, Quoting Carl Pates wrote:

As posted earlier by Carl…

Dave,

I assume we are talking about standard edit controls here? This is a weird one, you need to use the SendMessage API call with the EM_SETREADONLY message (which is WM_USER + 31 ) to set it, but you have to check the style to see if it is set..

eg to set

Equ WM_USER$ To 1024

Equ WM_SETREADONLY$ To WM_USER$ + 31

hwndEdit=Get_Property( CtrlEntID, "HANDLE" )

Call SendMessage( hwndEdit, WM_SETREADONLY$, TRUE$, 0 )

Carl Pates

Sprezzatura Ltd


At 14 SEP 1999 03:06PM Stephen S. Revelation wrote:

Don,

This is unlikely the best way to do this but here goes:

You could get the STLYE property value of the particular editline before the read-only and record it. Afterwards you could switch the property of the editline in design mode to read-only, then get its STYLE value. These two STLYE values hold the different options of read-only for the editline now and can be set, providing that no other STLYE properties are altered.

I'm not really sure of the Windows (windows.h for example) correlation to these values or how to manipulate them individually off-hand, but I do feel as though the STYLE property is what you are looking for.

-Stephen


At 15 SEP 1999 09:10AM Don Miller wrote:

Mike ..

Thanks. Ain't it grand how well documented this stuff is? In AREV we just set the window variable and got on with our life. Since there was an Include block it was easy.

Don


At 15 SEP 1999 03:03PM Don Miller - C3 Inc. wrote:

Mike .. worketh like a champ.

Don

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/382c969c2f1f2f79852567ec00644591.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1