Home > Archive > Matlab > January 2008 > How to obtain handle to static text?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to obtain handle to static text?
|
|
|
| Aloha
So, I want to make static in my gui change as user performs
different actions. But set(...) requires handle to given
object and I have no idea how can I obtain it. For now I use
set(findobj('Style','text')...) to go around it, but first
of all it will not work should I introduce two static texts
( well, will, but I will be altering both of them at once )
and beside it's just not an elegant solution. Ideally, I
would like to call the object using its tag name, but how?
| |
|
| Ok, I should read something before I send it, as I ate few
words earlier :P My bad, sorry for that. It should say:
So, I want to make a static text in my gui change as user
performs different actions ( on some other objects ). But
set(...) requires handle to given object and I have no idea
how can I obtain it. For now I use
set(findobj('Style','text')...) to go around it, but first
of all it will not work should I introduce two static texts
( well, will, but I will be altering both of them at once )
and beside it's just not an elegant solution. Ideally, I
would like to call the object using its tag name, but how?
| |
| Walter Roberson 2008-01-12, 10:35 pm |
| In article <fmbos9$h10$1@fred.mathworks.com>,
Jakub <puchaty_nie_ja@poczta.fm> wrote:
>For now I use
>set(findobj('Style','text')...)
>Ideally, I
>would like to call the object using its tag name, but how?
set(findobj('Tag','whateverthetagis'), ...)
--
"I was very young in those days, but I was also rather dim."
-- Christopher Priest
| |
|
| Works just fine, thank you :)
|
|
|
|
|