roman.attila Posted January 30, 2014 Posted January 30, 2014 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
Sherzod Posted January 31, 2014 Posted January 31, 2014 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); Best regards
rullomare Posted February 1, 2014 Posted February 1, 2014 Hi, maybe you can help. see : http://forums.unigui.com/index.php?/topic/2652-extra-unigui-components/?p=18280 Best regards
roman.attila Posted February 2, 2014 Author Posted February 2, 2014 Thank you guys! Meantime I'm using TUniMenuButton's menu property in javasacript and my popupmenu working properly in datagrid.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now