Archive: Avoiding background graying in a read-only text field


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!


No, as far as I know that is the default behaviour. You may be thinking of rich text controls which are different.

Stu


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...

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...


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)


jpderuiter, Afrow UK, thanks a lot, that really works! Shame on me for missing that topic.