popup menu not displaying in the right position

Hi,

Here i have used a DBTree view.

My aim is that, when a user click on a node, then a popup menu is displayed on showing some options.

By using setCallbackinfo i have assigned a method to node elements.
And in that method i am showing a popup menu.
here is the code for that method…


var nodeId = arguments[0];

//Create menu items
var menu = new Array(
plugins.popupmenu.createMenuItem(‘Create Floder’,create_folder, ‘media:///create_folder.png’),
plugins.popupmenu.createMenuItem(‘Upload File’,upload_file, ‘media:///upload_file.png’)
)

var elem = elements.bean_584;
if (elem != null)
{
plugins.popupmenu.showPopupMenu(nodeId, menu);
}


The popup menu is displayed, but it is displaying on the bottom of DBTree element.

But, accoring to me it should display near to the selected node.

Is there any solution for that.

This is correct since the popup menu will show at the position it takes from the component (the way Servoy designed this).

The popup menu shows “on top” of an element, not a single tree node. So your problem is that the tree element is pretty big. As far as I see you have no way of showing the popup menu on top of a certain node.

That mean,
There is no way of displaying a pop up menu on top of a selected node?
:cry:

Is there any other technique for the above said problem? :cry:

You can check out the menubar plugin. It gives you three popup menu’s

  1. like the one of Servoy
  2. right-click (takes screen position instead of component position)
  3. mouse over (also takes screen position).

I am not sure what position 1 takes. When it is not the screenposition I could add a variable to do so…

Thanks, Marcel.
I am checking that.

Hi,
Marcel,

When i am going to download the menubar plugin from the below url,

[/url]
http://www.it2be.com/plugins.htm#menubar

It asks for the registration, but when i have filled up all the details it not showing any error messages not registering me.
what is the problem with me? :cry:

please pm me but there is nothing wrong with the website. It works

Hi,
marcel,

It is not working.
I have tried several times.

How can i download that MenuBar Plugin.
my id is :- arup.sahoo@gmail.com