Jump to content

andyhill

uniGUI Subscriber
  • Posts

    1266
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by andyhill

  1. Further experimenting:- LeftMenu.PopupBy(LeftPanel); Does NOT bring up "Open Link In New Tab" window - however the PopUp is not drawn near the x/y click location ??? Please advise ASAP - thanks
  2. This code works WHEN NO POPUPMENU IS USED (no ContextMenu is ever shown as expected). If PopUpMenu is used (LeftMenu.Popup(x, y, LeftPanel);) no matter what I do I get the extra "Open In New Tab" window over the top of my PopUpMenu ? Please advise how to prevent "Open In New Tab" window when using PopUpMenu - Thanks in advance. s:= 'afterrender=function afterrender(sender, eOpts) '#13#10+ '{'#13#10+ ' sender.getEl().dom.addEventListener(''mousedown'', function(e) '#13#10+ ' {'#13#10+ ' if (e.target.tagName == ''IMG'' && e.button == 2) '#13#10+ ' { '#13#10+ ' t1 = e.target.getAttribute("data-tableId"); '#13#10+ ' c1 = e.target.getAttribute("data-caption"); '#13#10+ ' e.preventDefault(); '#13#10+ ' ajaxRequest(sender, ''_RightClick_'', {tableId: t1, cap: c1, x: e.offsetX, y: e.offsetY}); '#13#10+ ' } '#13#10+ ' }), '#13#10+ ' sender.getEl().dom.addEventListener(''contextmenu'', function(e) '#13#10+ ' { '#13#10+ ' e.preventDefault(); '#13#10+ ' }) '#13#10+ '}'; LeftHTMLFrame.ClientEvents.ExtEvents.Add(s);
  3. If it is not to much to ask, what about multiple phrases ? "printer" works "printer", "printing and typesetting" first word ignored ["printer", "printing and typesetting"] crashes
  4. Thanks Mark TestCase attached Project1.zip
  5. IrigSoft, I had already coded my work around (unique id's across ALL HtmlFrames [I foolishly believed they were unique frames/js]) but definitely will review your suggestion over time - thank you.
  6. I have asked many times to either increase my UpLoad Quota -or- Remove ALL previous uploads. I cannot upload the TestCase (36k) ?
  7. Thanks for the id info Sherzod. Note to Sherzod, HtmlFrame Ext Ajax Event AfterRender ONLY FIRES ONCE (I believe it should fire after every EndUpdate).
  8. TopHtmlFrame contains <img id='01' TopHtmlFrame contains script markTop LeftHtmlFrame contains <img id='01' LeftHtmlFrame contains script markLeft UniSession.AddJS(markTop("01"); works as expected UniSession.AddJS(markLeft("01"); ACCESSES TopHtmlFrame <img id='01' I have tried UniSession.AddJS('markLeft("01")'); I have tried UniSession.AddJS('fMain.LeftHTMLFrame.JSName.markLeft("01")'); I have tried LeftHTMLFrame.JSInterface.JSCode('markLeft("01")'); I have tried ' function markLeft(id) '+ ' { '+ ' var img = document.getElementById(id); '+ ' if (!img) {return null} '+ ' img.style.border = "3px solid red"; '+ ' } '+ I have tried ' function markLeft(id) '+ ' { '+ ' var img = sender.document.getElementById(id); '+ ' if (!img) {return null} '+ ' img.style.border = "3px solid red"; '+ ' } '+ I have tried ' function markLeft(id) '+ ' { '+ ' var img = fMain.LeftHTMLFrame.JSName.document.getElementById(id); '+ ' if (!img) {return null} '+ ' img.style.border = "3px solid red"; '+ ' } '+ Please advise - thanks in advance
  9. Thanks for the tip HOWEVER my adaptation from HtmlMemo ---> HtmlFrame does not work, please advise - thanks. $(O59.getDoc()).unmark({done: function() {$(O59.getDoc()).mark("and", {caseSensitive: true});}}); getDoc Not A Function
  10. Using CustomFiles.Add('files\jquery.mark.min.js'); Any suggestions on how to mark case insensitive words in HtmlFrame ? if TopChoice > 0 then begin InfoHTMLFrame.JSInterface.JSCode('$('+ InfoHTMLFrame.JSName +'.getDoc()).unmark'+ '({ '+ ' done: function() {'+ ' $('+ InfoHTMLFrame.JSName +'.getDoc()).mark("healthy", {});'+ ' }'+ '});' ); end;
  11. Has my mind gone blank ? for i:= 0 to lbOrgans.Items.Count-1 do begin if lbOrgans.Items[i].IsSelected = True then begin // FAILS // do something end; end;
  12. Open PDF File Extract Text from PDF File (line by line) Save Text Hayri did help me and I am very grateful for his efforts, however, I would like the extracted text to be CRLF delimited (as shown in the PDF - not one continuous concatenated string where it is difficult to get one line from another [particularly when there is no structure to the text and we only have the PDF new line view to delineate]).
  13. There are major time delays with HtmlMemo's internal updating and external display of Memo contents and it is very very slow. I have now reworked my code to accommodate.
  14. Thanks Sherzod. I am looking for a JS solution to extract text from PDF files. I do not want to shell out to 3rd part solutions but stay within the UniGUI application and extract all text from PDF file using Javascript. Can you help ?
  15. I have code xtype: 'button', iconCls: 'pictos pictos-settings redIcon', RED WORKS iconCls: 'pictos pictos-check blueIcon', BLUE FAILS Please advise how to have different colours (Blue/Green etc.) with pictos icons - Thanks in advance.
  16. Testing shows events not fired between Begin / End when I add/delete/change line data in code - good. How do I now (after EndUpdate) using JSCode, make HtmlMemo repaint/refresh/update - reflecting all the new changes made via Code so that future access to the object from here on contains the changes ?
  17. No, I have no issues working with HtmlMemo in code. What I do have an issue with is changing HtmlMemo contents in code without the feature of DissableControls / EnableControls logic to prevent Event Firing. Can I use:- HtmlMemo.BeginUpdate; add/delete/change line data in code will this allow content change to be saved via HtmlMemo.Lines.SaveToFile before EndUpdate ? HtmlMemo.EndUpdate;
  18. Memo seeded from database:- line 1 line 2 line 3 line 4 User inserts line by typing in memo line 1 line 2 insert line line 3 line 4 In code we call SaveToFile but it does not include the Inserted line ? line 1 line 2 line 3 line 4 Need to refresh/update memo before SaveToFile
  19. HtmlMemo has multiple line data User inserts a new line between previous lines HtmlMemo.Lines.SaveToFile does not contain the user inserted line ??? Please advise what I need to do to update HtmlMemo internally so I can Save ALL Lines ???
×
×
  • Create New...