Wild Sam
5th July 2009 19:02 UTC
Avoiding background graying in a read-only text field
Hey guys.
I use InstallOptions to create a custom page with a multiline text window to show some text. The text shouldn't be editable. A thing that makes me filling unlucky is that the text appears on a light-gray background when I set it read-only - both with setting the READONLY flag in the ini as well as with sending EM_SETREADONLY in runtime.
How to get an edit read-only but on a white background? Really need that (besides, it's default) behavior!
Thanks in advance!
Afrow UK
5th July 2009 20:58 UTC
No, as far as I know that is the default behaviour. You may be thinking of rich text controls which are different.
Stu
Wild Sam
5th July 2009 22:11 UTC
Originally posted by Afrow UK
No, as far as I know that is the default behaviour. You may be thinking of rich text controls which are different.
I tried to send EM_SETREADONLY to an edit (I used Delphi and its TMemo), and it got read-only without getting grayed...
Wild Sam
5th July 2009 22:56 UTC
Afrow UK , thanks, you're absolutelly right, that's the default behaviour. Delphi just has some non-default behavior on this.
Anyway, I'm still looking for a solution for the problem - how to make a read-only text field with a white background...
jpderuiter
5th July 2009 23:56 UTC
http://forums.winamp.com/showthread....hreadid=226214
At first they are talking about the MUI add-on, but in the end they explain how to do it for Installoptions as well (it's actually the same, but other macro'names)
Wild Sam
6th July 2009 06:45 UTC
jpderuiter, Afrow UK, thanks a lot, that really works! Shame on me for missing that topic.