Thread Subject: Rendering GUI components from callback

Subject: Rendering GUI components from callback

From: Kris Ezra

Date: 14 Jul, 2008 19:15:03

Message: 1 of 3


I am writing a GUI with dynamically updating components and
I need them to be generated from a button callback. I have
written the function and the pushbuttons will render, but
the panel I need to create will not. Any ideas?

I have the following code in the callback, and matlab throws
no errors which tells me that the variables and scope are
correct.

networkViewPanel =
uipanel(communications_panel,'Position',[20,panel_position(4)-365,400,345],'BorderType','etchedin');
 

Matlab allows me to get the panel properties, but it is not
drawing.

Subject: Rendering GUI components from callback

From: Donn Shull

Date: 14 Jul, 2008 19:28:01

Message: 2 of 3

Have you tried issuing a drawnow command?

Subject: Rendering GUI components from callback

From: Kris Ezra

Date: 14 Jul, 2008 19:50:18

Message: 3 of 3


That should work :) Thank you! Been looking for that
forever! Couldn't ever find it in the online documentation!

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 components ... Kris Ezra 14 Jul, 2008 15:20:20
draw panel from... Kris Ezra 14 Jul, 2008 15:20:20
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com