Chaning Background color of disabled text area
28 views (last 30 days)
Show older comments
Just wondering if there is a way to change the background color of a text area when the editable property is set to 'off'
When the control is Enabled and Editable, the background changes as expected but when set to uneditable, the background turns grey regardless of background color specified.
I am trying create an output on a GUI similar to the command window in the MatLAB GUI but have a different background color. I also add to it providing information as to what the code is doing and don't want user input in this text area. If there is a better control for this rahther than Text Area I could switch
Any suggestions would be great.
1 Comment
David Friesen
on 29 Mar 2024
I found the solution to this at:
https://www.mathworks.com/matlabcentral/answers/564500-enable-disable-edittext-in-app-designer
Answers (2)
Kennedy Kirkhope
on 3 May 2022
1 Comment
RITAM BASU
on 20 Sep 2022
same problem faced with TextArea in App designer.
Have you found a way out?
Steven Lord
on 3 May 2022
Are you developing this using App Designer, GUIDE, or programmatically?
If App Designer, do you want to use a uitextarea instead of a uieditfield?
For GUIDE, does your uicontrol have Style 'edit' or 'text'?
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!