Hello,
I am unsure why my radio buttons are not showing at all, can anyone direct me as to why? Thank you.
Code:
%Button group
tipinout_choice = uibuttongroup('HandleVisibility','on',...
'Title','Plot:',...
'Position',[50,316,151,101]);
tipin = uicontrol(tipinout_choice,'Style',...
'radiobutton',...
'String','Tip-in',...
'Position',[13,51,87,23],... %[13,51,87,23]
'HandleVisibility','on');
tipout = uicontrol(tipinout_choice,'Style',...
'radiobutton',...
'String','Tip-out',...
'Position',[13,12,87,23],...
'HandleVisibility','on');

 採用された回答

Robert U
Robert U 2019 年 10 月 16 日

1 投票

Hi Mo Jay,
The default Units property is 'normalized'. Your button group is outside the visible area.
GUI.fh = figure;
%Button group
GUI.tipinout_choice = uibuttongroup('Parent',GUI.fh,...
'HandleVisibility','on',...
'Title','Plot:',...
'Units','pixels',...
'Position',[50,316,151,101]);
GUI.tipin = uicontrol(GUI.tipinout_choice,...
'Style','radiobutton',...
'String','Tip-in',...
'Position',[13,51,87,23],... %[13,51,87,23]
'HandleVisibility','on');
GUI.tipout = uicontrol(GUI.tipinout_choice,...
'Style','radiobutton',...
'String','Tip-out',...
'Position',[13,12,87,23],...
'HandleVisibility','on');
Kind regards,
Robert

1 件のコメント

Mo Jay
Mo Jay 2019 年 10 月 16 日
Thank you so much Robert, all working now.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeUpdate figure-Based Apps についてさらに検索

質問済み:

2019 年 10 月 16 日

コメント済み:

2019 年 10 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by