how to remove box outline in GUI matlab using setting menu

13 ビュー (過去 30 日間)
Sagar AS
Sagar AS 2015 年 7 月 9 日
回答済み: Sid 2015 年 7 月 10 日
hello, i have created a GUI like this if i need to remove the outline or make the text box transparent so that it suits the background, can i do it using the settings drop box in guide?

回答 (1 件)

Sid
Sid 2015 年 7 月 10 日
Would something like this work?
% Set the figure color;
f = figure(...
'color',[0 1 0]);
% Add text box component.
txtbox = uicontrol(f,'Style','edit',...
'String','Enter your name here.',...
'Position',[30 50 130 20]);
% Grab the color from the figure, and set it as the backgroundcolor.
set(txtbox,'BackgroundColor',get(f,'Color'));
Of course it's not transparency, but at least some capability to match the background color. You can of course set the color via the set option to any prefered color as well.
Maybe Yair Altman might have a better idea on it (check on the posting here .)
HTH

カテゴリ

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