Inputdlg rename cancel button?

조회 수: 7 (최근 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 CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by