bolossis Posted March 7, 2018 Share Posted March 7, 2018 How can i execute a UniPopUpMenu on UniStringGrid?? I found your example but this works only for UniDbGrid procedure TMainForm.UniDBGrid1CellContextClick(Column: TUniDBGridColumn; X, Y: Integer); begin PopupMenu1.Popup(X,Y); end; Quote Link to comment Share on other sites More sharing options...
bolossis Posted March 8, 2018 Author Share Posted March 8, 2018 Any help? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 8, 2018 Share Posted March 8, 2018 Hi, Can you try this approach?: 1. function mousedown(sender, x, y, eOpts) { if (eOpts == 2) { Ext.defer(function(){ ajaxRequest(sender, 'popup', ['x='+x, 'y='+y]) }, 300); } } 2. procedure TMainForm.UniStringGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'popup' then UniPopupMenu1.Popup(StrToInt(Params.Values['x']), StrToInt(Params.Values['y'])); end; Best regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.