Thread Subject: how do I use "SelectedObject" property?

Subject: how do I use "SelectedObject" property?

From: Alejandro

Date: 3 Jun, 2009 15:38:01

Message: 1 of 6

Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?

Thanks in advance.

Subject: how do I use "SelectedObject" property?

From: John

Date: 4 Jun, 2009 14:18:02

Message: 2 of 6

You will get an example if you type 'doc uibuttongroup' on the matlab command line.

"Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@fred.mathworks.com>...
> Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
>
> Thanks in advance.

Subject: how do I use "SelectedObject" property?

From: Nabeel Abbood

Date: 13 Feb, 2010 06:54:21

Message: 3 of 6

"Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@fred.mathworks.com>...
> Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
>
> Thanks in advance.

same problem for me.

To sort it out I used this syntax :

h=get(handles.Hot_Streams_Order, 'SelectedObject');
HotOrder=get(h,'Tag')

Where: 'Hot_Streams_Order" is the radio buttons group that I used.

Thanks

Subject: how do I use "SelectedObject" property?

From: John Joo

Date: 28 Mar, 2010 02:28:06

Message: 4 of 6

Thanks! This helped me out a ton as well!

"Nabeel Abbood" <nabeel.abbood@gmail.com> wrote in message <hl5ias$p04$1@fred.mathworks.com>...
> "Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@fred.mathworks.com>...
> > Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
> >
> > Thanks in advance.
>
> same problem for me.
>
> To sort it out I used this syntax :
>
> h=get(handles.Hot_Streams_Order, 'SelectedObject');
> HotOrder=get(h,'Tag')
>
> Where: 'Hot_Streams_Order" is the radio buttons group that I used.
>
> Thanks

Subject: how do I use "SelectedObject" property?

From: Royi Avital

Date: 7 May, 2010 15:52:05

Message: 5 of 6

"Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@fred.mathworks.com>...
> Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
>
> Thanks in advance.

Moreover, How do I select a button from another function?
I tried:
set(handles.DisplayOptions, 'SelectedObject', [some value]);

Yet I can't know the correct value before running the GUI.

To make things clear, I have a GUI with a group of radio buttons - 'DisplayOptions'.
I want to select a button from another Function within the GUI.

Thanks.

Subject: how do I use "SelectedObject" property?

From: Royi Avital

Date: 8 May, 2010 11:02:04

Message: 6 of 6

Anyone?
How do I control the selection in a Radio Button Group from another function?
How do I know the selected button from another function?

I couldn't do it using 'SelectedObject' as I don't have the handler value before.

Thanks.


"Royi Avital" <RoyiREMOVEAvital@yahoo.com> wrote in message <hs1cv5$cbp$1@fred.mathworks.com>...
> "Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@fred.mathworks.com>...
> > Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
> >
> > Thanks in advance.
>
> Moreover, How do I select a button from another function?
> I tried:
> set(handles.DisplayOptions, 'SelectedObject', [some value]);
>
> Yet I can't know the correct value before running the GUI.
>
> To make things clear, I have a GUI with a group of radio buttons - 'DisplayOptions'.
> I want to select a button from another Function within the GUI.
>
> Thanks.

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
gui Royi Avital 7 May, 2010 11:54:44
uibuttongroup John 4 Jun, 2009 10:19:03
button group Alejandro 3 Jun, 2009 11:39:15
selectedobject Alejandro 3 Jun, 2009 11:39:15
rssFeed for this Thread

Contact us at files@mathworks.com