Thread Subject: Enable/Disable Uipanel (button group)

Subject: Enable/Disable Uipanel (button group)

From: Michael

Date: 4 Sep, 2009 13:28:02

Message: 1 of 2

Hello,

I have created a GUI using Guide. In this GUI is a button group with three radio butttons. What I would like to
1) Disable the uipanel until a file is loaded.
or
2) Disable two of the button choices until the file load is complete

If statements combined with the set(handles.radiobutton1, 'value',0) in the radio button callbacks could possible accomplish this.

However, is there a better way?

Subject: Enable/Disable Uipanel (button group)

From: Nathan

Date: 4 Sep, 2009 16:00:27

Message: 2 of 2

On Sep 4, 6:28 am, "Michael" <michael.lisow...@gentex.com.extrachar>
wrote:
> Hello,
>
> I have created a GUI using Guide.  In this GUI is a button group with three radio butttons.  What I would like to
> 1)  Disable  the uipanel until a file is loaded.
> or
> 2)  Disable two of the button choices until the file load is complete
>
> If statements combined with the set(handles.radiobutton1, 'value',0) in the radio button callbacks could possible accomplish this.
>
> However, is there a better way?

How about setting the 'Enable' value to 'off'?
Then when files are loaded, reset the 'Enable' value to 'on'.
Simple enough?
-Nathan

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
uipanel buttong... Michael 4 Sep, 2009 09:29:06
rssFeed for this Thread

Contact us at files@mathworks.com