Hello,
Is there any workaround to change ReadOnly TextField color.
Any Workaround for
" Windows Info
Changing the TextColor property for a read-only TextField on Windows does not change the color. It is native Windows behavior for the field text to remain black. "
The documentation here: http://documentation.xojo.com/api/deprecated/textfield.html
states:
[code]Windows Info
Changing the TextColor property for a read-only TextField on Windows does not change the color. It is native Windows behavior for the field text to remain black.[/code]
Have you tried: http://documentation.xojo.com/api/deprecated/textarea.html ?
Hello Emile,
Thanks for the information.
I tried the TextArea and I think that works.
No need for me to use the TextField now.
Further, I had a question, is there any way to vertically center align the text in the TextArea.
If your text content is read-only, you might gain better flexibility using a Canvas and the DrawText method.
I hope that helps.
Thanks Scott.
I shall try using Canvas and DrawText Method.
Hi Dave,
I too thought of similar thing. I infact used Label. However, you shall be surprised, since there is no TextChange event associated with Label, once the text changes, the formatting ( such as font size ) reverts back to original values.
I don’t know how to keep them unchanged. They otherwise only react to Open Event.