Jump to content

Recommended Posts

Posted

Hi all,

 

I would like to implement a popupmenu in dbgrid. I'm using containercontextmenu event of grid for popup and I need the JSName's value of popupmenu. In runtime in Form.Loaded method the JSName of TUniPopupMenu is empty. How can I get a real name of popupmenu in javascript?

 

Example:

 

function containercontextmenu(sender, e, eOpts)
{
  var position = e.getXY();
  e.stopEvent();
  O3B.showAt(position);
}

 

O3B is name of popupmenu

 

UniGUI version: 0.94 build 1024

Delphi 2010

 

Thanks,

Attila

Posted

How can I get a real name of popupmenu in javascript?

 

Hi Román Attila.  
 
I think maybe it's not the best solution, but, gives the result ...
 
In javascript:
MainForm.CreateButton1.parentMenu.id;

CreateButton1 - one of your UniMenuItem UniPopupMenu.

 

For example: 

MainForm.CreateButton1.parentMenu.showAt(10, 10);

post-906-0-11243600-1391172325_thumb.png

 

 

Best regards

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...