Re: mouseover function for text objects?
- From: "Steven Lord" <slord@xxxxxxxxxxxxx>
- Date: Wed, 3 Aug 2005 14:13:25 -0400
"Mike Martin" <mikemart@xxxxxx> wrote in message
news:ef0fa63.1@xxxxxxxxxxxxxxxxxxx
> Thanks Brett,
>
> I can imagine this solution -- but it's very complicated! Why isn't
> this an included feature of matlab?
Brett's solution allows you to click on a text object and have it do
something -- that's how he interpreted "mouseover function". Most of the
code in that sample that he posted set up the code that executes when you
click on the object -- if you already have a function that you want to
execute, Brett's code simplifies to 7 lines, most of which set up the text
object and the appearance of the axes. I'm wondering if you're just looking
for tooltips, though -- if you are, that's easier.
h = uicontrol('Style', 'text', ...
'ToolTipString', 'The mouse is over this control', ...
'String', 'Hello World!');
This creates a text object, gives it the string "Hello World!" (without the
quotes) and will cause the message "The mouse is over this control" (again
without quotes) to appear whenever the mouse hovers over the control for a
little while.
--
Steve Lord
slord@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: mouseover function for text objects?
- From: Brett Shoelson
- Re: mouseover function for text objects?
- References:
- mouseover function for text objects?
- From: Mike Martin
- Re: mouseover function for text objects?
- From: Brett Shoelson
- Re: mouseover function for text objects?
- From: Mike Martin
- mouseover function for text objects?
- Prev by Date: polyfit (coefficients are complex numbers)
- Next by Date: Re: comparison of matrices
- Previous by thread: Re: mouseover function for text objects?
- Next by thread: Re: mouseover function for text objects?
- Index(es):
Relevant Pages
|