Inputdlg rename cancel button?

10 ビュー (過去 30 日間)
Mate D
Mate D 2020 年 5 月 28 日
回答済み: Bhargavi Maganuru 2020 年 7 月 8 日
Greetings,
is there any way to rename the cancel button of the input dialogbox ? I would like to rename it into "more options"
I know that this is possible for questdlg and listdlg, but could not find any simillar option for inputdlg.

採用された回答

Bhargavi Maganuru
Bhargavi Maganuru 2020 年 7 月 8 日
Hi,
Ok and Cancel buttons are hardcoded in inputdlg. You can copy the code of inputdlg.m and make changes in the CancelHandle String as shown in below code snippet.
CancelHandle=uicontrol(InputFig , ...
BtnInfo , ...
'Position' ,[ FigWidth-BtnWidth-DefOffset DefOffset BtnWidth BtnHeight ] , ...
'KeyPressFcn',@doControlKeyPress , ...
'String' ,'More Options', ... %getString(message('MATLAB:uistring:popupdialogs:Cancel')) , ...
'Callback' ,@doCallback , ...
'Tag' ,'Cancel' , ...
'UserData' ,'Cancel' ...
);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by