[Draw2d] How to set a Figure Tooltip ? [message #86174] |
Tue, 01 July 2003 12:49  |
Eclipse User |
|
|
|
Originally posted by: joaocm.ideais.com.br
Anyone knows how to set a Figure ToolTip in draw2d. There is a method
setToolTip but it is no working (the tip is not visible).
In other hand there is a class called ToolTipHelper to do this stuff. I'm a
little bit confused now.
Any ideas ?
|
|
|
|
|
|
Re: [Draw2d] How to set a Figure Tooltip ? [message #86276 is a reply to message #86246] |
Tue, 01 July 2003 17:22   |
Eclipse User |
|
|
|
Originally posted by: joaocm.ideais.com.br
Ok, it's true. But if I register a mouse listener within the figure and when
the right button is clicked I paint a menu ? Is that possible ?
I was imagining that I need to create a new canvas to paint the menu, but
this canvas would be a SWT canvas over a draw2d canvas...
Thanks once more.
"Randy Hudson" <none@us.ibm.com> wrote in message
news:bdssi9$25o$1@rogue.oti.com...
> There is no notion of selection in draw2d. popup menus are based off
> selection, where selection does NOT mean clicked with the mouse.
>
> In GEF, a viewer maintains a list of selected editparts. when the context
> menu shows (which might be because of keyboard event SHIFT+F10), the menu
is
> build based only on selection, not mouse location.
>
> "Joao Machado" <joaocm@ideais.com.br> wrote in message
> news:bdsfrg$k4o$1@rogue.oti.com...
> > Sorry, It is correctly working.
> >
> > I had setted the ToolTip in the wrong Figure.
> >
> > I have another question Randy. I want to show a context menu based on a
> > Figure Selection.
> >
> > That is when the user right clicks some figure I need to show a pop
menu.
> I
> > was looking
> >
> > at the PopupHelper but I didn't understand how it works.
> >
> > Do you have any docs, samples or comments on how to use it ?
> >
> > Thanks in advance,
> >
> > Joao
> >
> > "Randy Hudson" <none@us.ibm.com> wrote in message
> > news:bdseiq$ioq$1@rogue.oti.com...
> > >
> > > "Joao Machado" <joaocm@ideais.com.br> wrote in message
> > > news:bdse1t$i7e$1@rogue.oti.com...
> > > > Anyone knows how to set a Figure ToolTip in draw2d. There is a
method
> > > > setToolTip but it is no working (the tip is not visible).
> > >
> > > tooltips are used in the palette and work correctly. Please post a
> > snippet
> > > so we can see what is going wrong.
> > >
> > > > In other hand there is a class called ToolTipHelper to do this
stuff.
> > I'm
> > > a
> > >
> > > This is the implementation which displays the tooltip above
> > >
> > > > little bit confused now.
> > > >
> > > > Any ideas ?
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Re: [Draw2d] How to set a Figure Tooltip ? [message #86334 is a reply to message #86276] |
Wed, 02 July 2003 09:37  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
If you want to show a menu on right-mouse-button-released, just create an
SWT menu and show it. Don't use a fake menu created on a canvas.
"Joao Machado" <joaocm@ideais.com.br> wrote in message
news:bdsu1u$3lp$1@rogue.oti.com...
> Ok, it's true. But if I register a mouse listener within the figure and
when
> the right button is clicked I paint a menu ? Is that possible ?
> I was imagining that I need to create a new canvas to paint the menu, but
> this canvas would be a SWT canvas over a draw2d canvas...
>
> Thanks once more.
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:bdssi9$25o$1@rogue.oti.com...
> > There is no notion of selection in draw2d. popup menus are based off
> > selection, where selection does NOT mean clicked with the mouse.
> >
> > In GEF, a viewer maintains a list of selected editparts. when the
context
> > menu shows (which might be because of keyboard event SHIFT+F10), the
menu
> is
> > build based only on selection, not mouse location.
> >
> > "Joao Machado" <joaocm@ideais.com.br> wrote in message
> > news:bdsfrg$k4o$1@rogue.oti.com...
> > > Sorry, It is correctly working.
> > >
> > > I had setted the ToolTip in the wrong Figure.
> > >
> > > I have another question Randy. I want to show a context menu based on
a
> > > Figure Selection.
> > >
> > > That is when the user right clicks some figure I need to show a pop
> menu.
> > I
> > > was looking
> > >
> > > at the PopupHelper but I didn't understand how it works.
> > >
> > > Do you have any docs, samples or comments on how to use it ?
> > >
> > > Thanks in advance,
> > >
> > > Joao
> > >
> > > "Randy Hudson" <none@us.ibm.com> wrote in message
> > > news:bdseiq$ioq$1@rogue.oti.com...
> > > >
> > > > "Joao Machado" <joaocm@ideais.com.br> wrote in message
> > > > news:bdse1t$i7e$1@rogue.oti.com...
> > > > > Anyone knows how to set a Figure ToolTip in draw2d. There is a
> method
> > > > > setToolTip but it is no working (the tip is not visible).
> > > >
> > > > tooltips are used in the palette and work correctly. Please post a
> > > snippet
> > > > so we can see what is going wrong.
> > > >
> > > > > In other hand there is a class called ToolTipHelper to do this
> stuff.
> > > I'm
> > > > a
> > > >
> > > > This is the implementation which displays the tooltip above
> > > >
> > > > > little bit confused now.
> > > > >
> > > > > Any ideas ?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07970 seconds