From: Tatiana on
Hi!

I'm developing a GUI tool and I would like to have help tips pop up whenever the mouse cursor points at a specific field. Is there a way to display help tips (or any other text for that matter) when the mouse cursor points at a specific field in a GUI? If it cannot be done just by pointing, I guess I could use the ButtonDownFunction callback but I'm not sure how to bring up a text dialog in place containing the text itself and then have it automatically go away when the mouse cursor moves away. I would like to stay away from the predefined dialog boxes.

Thanks!
From: Matt Fig on
uicontrol('tooltip','This is a pushbutton')
From: Matthew Whitaker on
"Tatiana " <bonilla.tatiana(a)gmail.com> wrote in message <hsv6vt$co$1(a)fred.mathworks.com>...
> Hi!
>
> I'm developing a GUI tool and I would like to have help tips pop up whenever the mouse cursor points at a specific field. Is there a way to display help tips (or any other text for that matter) when the mouse cursor points at a specific field in a GUI? If it cannot be done just by pointing, I guess I could use the ButtonDownFunction callback but I'm not sure how to bring up a text dialog in place containing the text itself and then have it automatically go away when the mouse cursor moves away. I would like to stay away from the predefined dialog boxes.
>
> Thanks!

If you are using uicontrols simply set the TooltipString property of the control and the text will pop up as you hover.

If you need more than trivial tooltips see Yair Altman's Undocumented Matlab blog for advanced tips:
http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/
http://undocumentedmatlab.com/blog/additional-uicontrol-tooltip-hacks/
http://undocumentedmatlab.com/blog/inactive-control-tooltips-event-chaining/

Hope this helps
Matt W