Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to disable components in GUI MATLAB temporarily?

Subject: How to disable components in GUI MATLAB temporarily?

From: Nikita Garg

Date: 25 Mar, 2013 06:24:06

Message: 1 of 2

i am implementing AHP using GUI. i have developed the code. i am having problem with disabling the components. for example i want to disable all the other radio buttons when one is selected, or i want to disable the edit text boxes when one radio button is selected. i really need help with this asap.

Subject: How to disable components in GUI MATLAB temporarily?

From: Nasser M. Abbasi

Date: 25 Mar, 2013 06:37:11

Message: 2 of 2

On 3/25/2013 1:24 AM, Nikita Garg wrote:
> i am implementing AHP using GUI. i have developed the code.
>i am having problem with disabling the components. for example i
>want to disable all the other radio buttons when one is selected,
>or i want to disable the edit text boxes when one radio button is
>selected. i really need help with this asap.
>


Just use the handle(s) of the UI control you want to
disable and set its 'Enable' property


The handles of all UI controls in the GUI are available
for you.


http://www.mathworks.com/help/matlab/ref/uicontrol_props.html#bqxoiky

"Enable

     {on} | inactive | off

     Enable or disable the uicontrol. This property controls
how uicontrols respond to mouse button clicks, including
which callback routines execute."


--Nasser

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us