Jump to content

andyhill

uniGUI Subscriber
  • Posts

    1245
  • Joined

  • Last visited

  • Days Won

    5

andyhill last won the day on February 9

andyhill had the most liked content!

1 Follower

Profile Information

  • Gender
    Male
  • Location
    Melbourne Australia

Recent Profile Visitors

3376 profile views

andyhill's Achievements

Advanced Member

Advanced Member (4/4)

52

Reputation

  1. All good Sherzod, I was searching under "local storage" instead of "localstorage".
  2. I have followed instructions published on this forum but cannot fetch (get) the token 'BB' value which clearly exists in the Chrome Browser ? Str:= ''; with edtStore.JSInterface do JSCall('setValue', [jsstatement('localStorage.getItem("BB")')]); Str:= Trim(edtStore.Text); Please advise - thanks
  3. Can we please have a project wide solution to stop Browser "Save Password" prompt that pops up at all odd times, not even related to the current non-password editor. Something we can add to the MainForm.Script that will work across all editing - a Sencha solution. Individually manipulating each edit as mentioned on other Internet posts is not practical.
  4. Using port 80 Your HtmlMemo Component fails to add necessary tags to inserted images:- "id" "width" "height" to name a few. My primitive work around is attached, please paste an image (view source [tags missing]), DblClick inserted image again shows "id" missing. Please advise how to resolve. Ultimately all images in HtmlMemo need the function of grabbing and resizing buy the end user. Project1.zip
  5. OK, "id" now assigned. How do I get the "width" and "height" // Ctrl+V Paste ' sender.iframeEl.dom.contentDocument.body.addEventListener(''paste'', function(e) '+ ' { '+ ' var items = e.clipboardData.items; '+ ' if(items.length === 1) '+ ' { '+ ' var str = items[0].type; '+ ' if(str.indexOf("image") !== -1) '+ ' { '+ ' ajaxRequest('+MyJsName+', ''_PasteBefore_'', []); '+ I WANT TO SEND "ID", "WIDTH" & "HEIGHT" in params here ' } '+ ' } '+ ' else '+ // More or Less than one ' { '+ ' e.preventDefault(); '+ // Kill Paste ' } '+ ' }); '+ // Create Image ' function createImage(source) '+ ' { '+ ' var pastedImage = new Image(); '+ ' pastedImage.onload = function() '+ ' { '+ // Add Unique "id" ' pastedImage.id = Ext.id(); '+ // DO I NEED WIDTH and HEIGHT attributes recorded with image here ' }; '+ ' pastedImage.src = source; '+ ' } '+
  6. I have played with all sorts of concepts (bypassing stretch handles for now using DblClick to investigate the selected pasted image [if one uses Ctrl+V to paste image there is no "id" added to the <img tag ???]):- MyJsName:= htm001.JSName; htm001.ClientEvents.ExtEvents.Clear; MyScript:= 'initialize=function initialize(sender, eOpts) '+ '{ '+ // DblClick ' sender.getDoc().addEventListener(''dblclick'', function() '+ ' { '+ ' if (arguments[0].target && arguments[0].target.tagName.toLowerCase()==''img'') '+ ' { '+ ' ajaxRequest('+MyJsName+', ''_img_'', ["id="+arguments[0].target.getAttribute(''id'')]); '+ ' } '+ ' }); '+ // Ctrl+V Paste ' sender.iframeEl.dom.contentDocument.body.addEventListener(''paste'', function(e) '+ ' { '+ ' var items = e.clipboardData.items; '+ ' if(items.length === 1) '+ ' { '+ ' var str = items[0].type; '+ ' if(str.indexOf("image") !== -1) '+ ' { '+ ' ajaxRequest('+MyJsName+', ''_PasteBefore_'', []); '+ ' } '+ ' } '+ ' else '+ // More or Less than one object ' { '+ ' e.preventDefault(); '+ // Kill Paste ' } '+ ' }); '+ // Create Image ' function createImage(source) '+ ' { '+ ' var pastedImage = new Image(); '+ ' pastedImage.onload = function() '+ ' { '+ // Need To Add "id" to image here - please show how to make "id" unique ' }; '+ ' pastedImage.src = source; '+ //' alert(pastedImage.src); '+ ' } '+ '} '; htm001.ClientEvents.ExtEvents.Add(MyScript); Sherzod, while you are investigating Stretch Handles, please show me how to add unique "id" to pasted image - Thanks
  7. Sherzod, this only adds image which I have no problem with. I need (the component needs) the ability for the end user to select the already imbedded image and resize it.
  8. It is easy to paste images into the HtmlMemo however once inserted there is no way to resize the image, please advise how to apply stretch handles on image when selected with the editor so user can resize - Thanks
  9. In reality, my understanding is that anything the browser displays (obfuscated code underneath or not) it is ultimately accessible. Let me know what you come up with.
  10. In the past I used HiddenPanel for a staging area where I placed certain UniGUI IDE Visual Components that are hidden from Forms/Panels in general. eg. UniGrid uses a Custom Editor for a given field that is encapsulated into the grid. These days I make everything at runtime.
  11. HtmlLib from delphihtmlcomponents.com
  12. I build my PDF files at runtime, firstly as HTML Files, then finally converting to PDF so I believe it would be relatively easy to CONCATINATE multiple HTML files before conversion into one PDF.
×
×
  • Create New...