Jump to content

Recommended Posts

Posted

Please advise. I need "AfterRender" and MouseDown Button 2        

           InfoHTMLFrame.ClientEvents.ExtEvents.Clear;
           s:= 'afterrender=function afterrender(sender, eOpts) '#13#10+
              '{'#13#10+

              '  sender.getEl().dom.addEventListener(''contextmenu'', function(e) '#13#10+
              '  { '#13#10+
              '    e.preventDefault(); '#13#10+
              '  }), '#13#10+

              '  sender.getEl().dom.addEventListener(''mousedown'', function(e) '#13#10+
              '  {'#13#10+
              '    if (e.button == 2) '#13#10+
              '    { '#13#10+
              '      e.preventDefault(); '#13#10+
              '      ajaxRequest(sender, ''_Right_Click_'', {x: e.offsetX, y: e.offsetY}); '#13#10+
              '    } '#13#10+
              '  }), '#13#10+

              '  ajaxRequest(fMain.InfoHTMLFrame, ''_AfterRender_'', []); '#13#10+
              '}';

          InfoHTMLFrame.ClientEvents.ExtEvents.Add(s);
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...