[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Hover event will not work.

The Hover event will not work for us because you only get the event once.
You have to exit the Canvas in order to get another event.  We need a way to
"reset" the hover when a certain region within a Control has been exited,
but the mouse is still over the control.  Is there any way to do this?

"Jeff Brown" <jeff_brown@xxxxxxx> wrote in message
news:9k7erk$4j3$1@xxxxxxxxxxxxxxxx
> I can't think of any API mechanism to help you short of creating your own
> tool tip support.  There's an example of how to implement custom hover
help
> and F1 help in the SWT examples package called HoverHelp.  You'll notice
> that it uses a MouseTrackListener to capture hover events, and of course
> because it is emulating a tool tip, it has great flexibility in what it
may
> contain.  You should have little difficulty in coming up with a solution
to
> your particular problem.
>
> FYI: There is a known issue with this example on Motif where the hover
> events on certain widgets are not processed correctly.  It may work fine
for
> Canvas though (not checked).
>
> Jeff.
>
> "Randy Hudson" <none@xxxxxxx> wrote in message
> news:9k76kg$1m1$1@xxxxxxxxxxxxxxxx
> > I am trying to provide ToolTipText across lightweight object.  This
means,
> > that for a single SWT Canvas, I would like different regions to have
> > different ToolTipText.  How can I acheive this?  I have tried resetting
> the
> > ToolTipText value when different regions of the Canvas are entered, but
> once
> > the Tip is shown, it never will dissappear or update unless you either
> exit
> > the Canvas or MouseOver the ToolTip itself.
> >
> > I am considering emulating ToolTipText myself by creating a Shell with
no
> > Decorations, and placing it property, but this will be difficult.
> >
> >
>
>