Inputdlg rename cancel button?

7 visualizaciones (últimos 30 días)
Mate D
Mate D el 28 de Mayo de 2020
Respondida: Bhargavi Maganuru el 8 de Jul. de 2020
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.

Respuesta aceptada

Bhargavi Maganuru
Bhargavi Maganuru el 8 de Jul. de 2020
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' ...
);

Más respuestas (0)

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by