Thread Subject: refreshing an uicontrol('style','edit') content from inside script

Subject: refreshing an uicontrol('style','edit') content from inside script

From: Nader Amadeu

Date: 12 Jun, 2009 09:23:02

Message: 1 of 2

Hi,

i use such an edit uicontrol in my graphics:

h=uicontrol('Style','edit','String','Type','Callback','StrValue=get(gcbo,''String'')');

Much later in the script, the value of StrValue is changed
internally by the script, and not by user input on the graphic.
How can i refresh the graphics in order to show the new value?

Thanx in advance ...

Subject: refreshing an uicontrol('style','edit') content from inside script

From: John

Date: 12 Jun, 2009 16:40:17

Message: 2 of 2

set(h,'Sring',StrValue);
Here, h is the handle to the editbox that was returned when you used the uicontrol function toc reate the edit box.


"Nader Amadeu" <nader@chemie.fu-berlin.de> wrote in message <h0t6pm$4p2$1@fred.mathworks.com>...
> Hi,
>
> i use such an edit uicontrol in my graphics:
>
> h=uicontrol('Style','edit','String','Type','Callback','StrValue=get(gcbo,''String'')');
>
> Much later in the script, the value of StrValue is changed
> internally by the script, and not by user input on the graphic.
> How can i refresh the graphics in order to show the new value?
>
> Thanx in advance ...

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
uicontrol edit ... Nader Amadeu 12 Jun, 2009 05:24:04
rssFeed for this Thread

Contact us at files@mathworks.com