uiconfirm with one button

18 次查看(过去 30 天)
piero
piero 2023-6-15
编辑: Aman 2023-6-16
hi, it's possibile eliminate one taste? (i want only press "ok")

采纳的回答

Aman
Aman 2023-6-16
编辑:Aman 2023-6-16
Hi Piero,
To create a uiconfirm dialog box with only one button, you can use the 'Option' parameter. Here's an example code snippet that creates a uiconfirm dialog with one button labeled "OK":
fig = uifigure;
msg = 'Salvataggio Settins';
title = 'Predator Gui';
selection = uiconfirm(fig,msg,title, ...
'Options',{'OK'}, ...
'DefaultOption','OK');
In this code, the 'Options' parameter specifies an array of button labels to display in the dialog box. In this case, the array contains only one element, 'OK'.
Here's the output:
You can learn more about uiconfirm from this documentation: Create confirmation dialog box - MATLAB uiconfirm - MathWorks India
Hope this helps!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by