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:
uipanel callback

Subject: uipanel callback

From: Alfredo Rojas

Date: 19 Nov, 2010 19:49:04

Message: 1 of 3

Hello, looks like uipanels doesn't allows callbacks, I want a image that changes when a radiobutton is selected, but I cannot find a way to call a callback from a object inside a uipanel.

Thanks.

Subject: uipanel callback

From: ImageAnalyst

Date: 19 Nov, 2010 20:20:15

Message: 2 of 3

On Nov 19, 2:49 pm, "Alfredo Rojas" <asdro...@gmail.com> wrote:
> Hello, looks like uipanels doesn't allows callbacks, I want a image that changes when a radiobutton is selected, but I cannot find a way to call a callback from a object inside a uipanel.
>
> Thanks.

----------------------------------------------------------------------------------------
I sometimes have radio buttons inside a panel. But it's best to use a
button group control for radio buttons instead of a panel. And it's
actually even better to use a listbox to list your image names and
have the image displayed once you click on its name in the listbox.
With radio buttons, you can only have one image per radio button,
whereas a listbox can contain hundreds of image names.

Subject: uipanel callback

From: Walter Roberson

Date: 19 Nov, 2010 20:39:37

Message: 3 of 3

On 10-11-19 01:49 PM, Alfredo Rojas wrote:
> Hello, looks like uipanels doesn't allows callbacks, I want a image that
> changes when a radiobutton is selected, but I cannot find a way to call
> a callback from a object inside a uipanel.

uipanel certainly do allow callbacks. The main program I work on divides the
GUI into two major uipanel and places a number of objects in each.

callbacks for objects inside uipanels work exactly the same as callbacks for
objects outside of uipanels .

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