Dynamic pop up menus [message #20484] |
Mon, 28 April 2003 14:31  |
Eclipse User |
|
|
|
Originally posted by: yossiy.backweb.com
Hi All,
I have a question about populating popup menus.
I'm developing a muli page editor which has an IE control as one of the
pages.
I want to dynamically create a pop up context menu (right-click), based on
the DOM node that was clicked.
for example:
If the user right-clicks a link, the popup menu will show an "Open Link"
action, whereas if he right-clicks a <TABLE> element, it will show soem
other action.
I don't really know where to begin.
A little help would be very appriciated.
Thanks
Yossi
|
|
|
|
Re: Dynamic pop up menus [message #20554 is a reply to message #20537] |
Mon, 28 April 2003 17:51  |
Eclipse User |
|
|
|
Originally posted by: yosyakov.netvision.net.il
I\\\'m trying to make a context sensitive menu for an IE contorol embbeded
as
an eclipse editor (or view, it doesn\\\'t really matter).
I want to offer the user with options relevant to the specific node type.
I already handle events from the browser and know how to interpret the
location of the right click to a DOM node.
What I need now is to somehow extend this information so that other
plugins can contribute
actions dynamically to the context menu based on the node type.
I don\\\'t know if it\\\'s possible.
Joachim Dagerot wrote:
> Out of curiosity, what are you creating? How will the editor be used?
> \\\"Yossi Yacov\\\" <yossiy@backweb.com> wrote in message
> news:b8js19$dpm$1@rogue.oti.com...
> > Hi All,
> >
> > I have a question about populating popup menus.
> > I\\\'m developing a muli page editor which has an IE control as one of the
> > pages.
> > I want to dynamically create a pop up context menu (right-click), based on
> > the DOM node that was clicked.
> >
> > for example:
> > If the user right-clicks a link, the popup menu will show an \\\"Open
Link\\\"
> > action, whereas if he right-clicks a <TABLE> element, it will show soem
> > other action.
> >
> > I don\\\'t really know where to begin.
> > A little help would be very appriciated.
> >
> > Thanks
> > Yossi
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03610 seconds