Skip to main content



      Home
Home » Eclipse Projects » GEF » Please help with PopUpHelper
Please help with PopUpHelper [message #109429] Mon, 15 December 2003 07:47 Go to next message
Eclipse UserFriend
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 #109477 is a reply to message #109429] Mon, 15 December 2003 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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
>
Re: Please help with PopUpHelper [message #109734 is a reply to message #109477] Thu, 18 December 2003 03:09 Go to previous message
Eclipse UserFriend
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
> >
Previous Topic:OPENGL in SWT?
Next Topic:[ANN] eclipseCon Reminder
Goto Forum:
  


Current Time: Wed Jul 16 10:54:01 EDT 2025

Powered by FUDForum. Page generated in 0.08357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top