Check if an element is enabled or not in GUI

3 次查看(过去 30 天)
hi everyone, i would to know if is possible to check if an element is enabled or not in GUI. i need something like:
if "element is enabled"
.....
.....
end

采纳的回答

Image Analyst
Image Analyst 2015-9-22
enableString = get(handles.button1, 'Enable');
isEnabled = strcmp(lower(enableString), 'on');

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by