Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/07/20 in all areas

  1. 1. UniPDFFrame1.ClientEvents.UniEvents -> function afterCreate(sender) { sender.disableKeysPrintSave = function() { // disable printing sender.iframe.contentWindow.print=Ext.emptyFn; // disable save $(sender.iframe.contentDocument).bind('keydown', function(e) { if (e.ctrlKey && (e.which == 83)) { e.preventDefault(); return false; } }); }; } 2. Usage: procedure TMainForm.UniPDFFrame1FrameLoaded(Sender: TObject); begin UniPDFFrame1.JSInterface.JSCall('disableKeysPrintSave', []); end;
    2 points
  2. English: This example shows how to copy text using the clipboard but on the client side and not using the application memory area on the server. In other words, it's how you should do the "copy and paste" in uniGUI. Portuguese: Este exemplo mostra como copiar texto usando o clipboard mas no client-side e não usando a área de memória do aplicativo no servidor. Em outras palavras, é como se deve fazer o "copiar e colar" no uniGUI. Thanks to Sherzod Code: http://forums.unigui.com/index.php?/topic/6116-copy-paste-selected-text-in-tunimemo/&tab=comments#comment-31802 Moderator/ Staff: http://forums.unigui.com/index.php?/profile/906-sherzod/ Also, third party code from the web. Project available at https://unigui.express
    1 point
  3. Hi Sherzod, It works, thank you for your kind assistance!
    1 point
  4. One possible solution: procedure TMainForm.UniPDFFrame1FrameLoaded(Sender: TObject); begin // Disable printing UniPDFFrame1.JSInterface.JSCode(#1'.iframe.contentWindow.print=Ext.emptyFn;'); end;
    1 point
×
×
  • Create New...