Re: mouseover function for text objects?




"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


.



Relevant Pages

  • Re: Syntax for accessing controls from javascript using variable names
    ... parameter variable "control", won't it take that as a string literal and not ... I've tried without the quotes and with the quotes and I continue to get ... > You have your object reference in quotes - this is incorrect. ... > evaluating a string instead of the value of your control. ...
    (microsoft.public.scripting.jscript)
  • Re: dynamically set a textbox control form...apostrophe gets in the way
    ... > dim strAddress as string ... NZon a string variable. ... The single quotes are not necessary at all: ... recordset or to a value from another control or function. ...
    (comp.databases.ms-access)
  • Re: DCOUNT format question
    ... When I place this in the control I get a #NAME? ... The only things I changed from your string was the field to count (from ... >>> The values you're checking need to go outside of the quotes. ... >>> Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.forms)
  • Wildcards in event procedure?
    ... a control on a form. ... I want to include a wildcard in the ... quotes as follows (because the name of a control is a ...
    (microsoft.public.access.formscoding)
  • Re: CreateEventProc error
    ... Private Sub BuildDisplayForm(strPath As String, ... Dim qdf As QueryDef, qdfControls As QueryDef ... Dim ctl As Control, ctlLabel As Control, ctlParent As Control ... Dim strFilter As String, strSuffix As String, strParentName As String, ...
    (microsoft.public.access.forms)