Please help with PopUpHelper [message #109429] |
Mon, 15 December 2003 07:47  |
Eclipse User |
|
|
|
Originally posted by: fuc_ingforce.hotmail.com
Hello,
I have extended the PopUpHelper class already, but don't know how to go on.
This is what I want to do:
-NOT using GEF because I'm programming a Standalone GUI based on SWT,
JFace and Draw2D
-on this GUI there can be this structure found: canvas->
lightweightsystem-> figure with toolbarlayout-> figures connected with
each other
-goal: when rightclicking on one figure a popup menue should appear
How can I achieve this? The PopUpHelper class seems to be the right thing,
but I don't understand how to use it, can you please give me some hints?
Thanks very much :)
Roger
|
|
|
|
Re: Please help with PopUpHelper [message #109734 is a reply to message #109477] |
Thu, 18 December 2003 03:09  |
Eclipse User |
|
|
|
Originally posted by: fuc_ingforce.hotmail.com
Thanks big time Randy :)
Randy Hudson wrote:
> To show a menu, create the menu using
> new Menu(theSWTControl).
> and then use:
> theSWTControl.setMenu(theMenu)
> add a listener to the menu to find out when it is shown, and populate it
> *AS* it is being shown.
> PopupHelper is only for displaying tooltips and other graphical messages.
> "Roger" <fuc_ingforce@hotmail.com> wrote in message
> news:brkahu$9j9$1@eclipse.org...
> > Hello,
> >
> > I have extended the PopUpHelper class already, but don't know how to go
> on.
> >
> > This is what I want to do:
> >
> > -NOT using GEF because I'm programming a Standalone GUI based on SWT,
> > JFace and Draw2D
> >
> > -on this GUI there can be this structure found: canvas->
> > lightweightsystem-> figure with toolbarlayout-> figures connected with
> > each other
> >
> > -goal: when rightclicking on one figure a popup menue should appear
> >
> >
> > How can I achieve this? The PopUpHelper class seems to be the right thing,
> > but I don't understand how to use it, can you please give me some hints?
> > Thanks very much :)
> >
> > Roger
> >
|
|
|
Powered by
FUDForum. Page generated in 0.08357 seconds