フィルターのクリア

Set GUI Color to a Specific Color Code

2 ビュー (過去 30 日間)
Jay
Jay 2016 年 5 月 11 日
回答済み: Image Analyst 2016 年 5 月 11 日
So I have a GUI with the background colour of what I would call aqua (colour code 009999).
I desire to set the edit boxes to the same colour so that when the time comes for that specific edit box to be populated I can turn the colour off (becoming the only white box with no values).
I have
set(handles.EditH(2:106), 'enable', 'off', 'color', '009999' );
which is returning
Error using matlab.ui.control.UIControl/set
There is no color property on the UIControl class.
Is there a way to specify the colour codes (not just red, black, blue, etc.)?

回答 (1 件)

Image Analyst
Image Analyst 2016 年 5 月 11 日
There is no 'Color' property. Try setting the 'BackgroundColor' or 'ForegroundColor' property.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by