How do I disable a pushbutton while GUI is busy?

조회 수: 2 (최근 30일)
Flávio
Flávio 2013년 3월 6일
So, I have created a GUI with a pushbutton.
Since the code takes a little bit to finish, I want to disable the pushbutton while GUI is busy running that piece of code, and when it finishes I want to enable it again.
Is it possible?
Sorry for my bad English!
Thanks!

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 6일
set(HandleOfPushbutton, 'Enable', 'off')

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by