Jump to content

andyhill

uniGUI Subscriber
  • Content Count

    746
  • Joined

  • Last visited

  • Days Won

    1

andyhill last won the day on November 30 2017

andyhill had the most liked content!

Community Reputation

17 Good

About andyhill

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Melbourne Australia

Recent Profile Visitors

984 profile views
  1. I removed all of the old references to the jcrop library and made these changes:- ServerModule // https://cdnjs.com/libraries/jquery-jcrop CustomFiles.Add('<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-jcrop/0.9.15/js/jquery.Jcrop.min.js" integrity="sha512-KKpgpD20ujD3yJ5gIJqfesYNuisuxguvTMcIrSnqGQP767QNHjEP+2s1WONIQ7j6zkdzGD4zgBHUwYmro5vMAw==" crossorigin="anonymous"></script>'); CustomCSS.Add('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-jcrop/0.9.15/css/jquery.Jcrop.min.css" integrity="sha512-bbAsdySYlqC/kxg7Id5vEUVW
  2. Quick and nasty project. Don't forget to set NonIdeFlag:= False; in TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); for default framework. Issues with finding the crop css file ? Testing I put files in root as well but still issues. Ideally I want to single click image, draw crop rectangle, move/stretch crop rectangle then dblClick crop rectangle to collect the parameters of the drawn cropping rectangle. Project1.zip
  3. This is what I have so far, blue code works, red code fails to fire, please advise - Thanks:- InfoHTMLFrame HTML ... ' <script src="files/jquery.Jcrop.min.js"></script> '+ ' <script src="files/jquery.color.js"></script> '+ ' <link href="files/jquery.Jcrop.css" rel="stylesheet" type="text/css" /> '+ ' <script type="text/javascript"> '+ ' updatePreview = function(c) '+ ' { '+ ' if(pars
  4. Sherzod, instead of using a UniImage as the source, would you be so kind and show me how we could crop an embedded HTML <img ... and download the selection ? thanks in advance.
  5. andyhill

    HyperServer

    This is a question for Farshad.
  6. andyhill

    PDF Editor

    What about a HTML / Javascript editor instead - tinyMCE ? (see UniGUI examples)
  7. A quick look shows me that this Calendar is an OnLine Calendar and therefore ALL user activity within this Calendar script interacts OnLine Only (no local activity, it appears that all local user events within the Calendar designated area are disabled). This would require the likes of Sherzod to come up with a work around if possible. You could have a Button/Label on the Form outside of the HTMLFrame to invoke a URL.
  8. andyhill

    HyperServer

    The IP or Port is already in use -or- the IP does not exist. UniGUI uses default settings for IP and Port unless you override them. I use the following:- procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); ... AddNewBindingsFlag:= ? HttpPort:= ? BindToIpStr:= ? SslPort:= ? SslPassword:= ? ////////////////////////////////////////////////////////////////////////////// if AddNewBindingsFlag = True then begin Bindings.BeginUpdate; // Remove Any IDE Bindings Bindings.Clear; // Add binding for http with
  9. Perhaps this may help ... CREATE InfoHTMLFrame.ClientEvents.ExtEvents.Clear; s:= 'dblclick=function dblclick(sender, eOpts) '#13#10+ '{ '#13#10+ ' ajaxRequest(MainForm.InfoHTMLFrame, ''_dblClick_'', []); '#13#10+ '} '; InfoHTMLFrame.ClientEvents.ExtEvents.Add(s); AJAX procedure TMainForm.InfoHTMLFrameAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_dblClick_' then begin // Remember click event may also be fired so you will need to distinguish between click and dblClick perhaps using tim
  10. As we have removed //CustomFiles.Add('tiny_mce\tiny_mce_popup.js'); Does anyone have tiny_mce with a valid tiny_mce_popup.js ?
  11. I guess you could compare the original blank canvas (I assume initialized to white) with the now saved canvas SaveToStream (no longer all white if signed [contains black mouse lines {signature}]) ? As for real signature as opposed to garbage that is a whole other matter.
  12. Sherzod, Using Ext.button.Button Menu - Please advise how to:- Hide/Show Ext.button.Button at runtime ? Enable/Disable Ext.button.Button Menu Items at runtime ? Thanks
  13. Using MyMemo as a staging area, how to read / write to and from "ed1" ? WRITE MEMO TO TINY_MCE: UniSession.AddJS('tinyMCE.get("ed1").setContent(MainForm.MyMemo.getValue())'); // FAILS WRITE TINY_MCE TO MEMO: UniSession.AddJS('MainForm.MyMemo.setValue(tinyMCE.get("ed1").getContent());'); // FAILS Please advise - Thanks
  14. Does anyone have tiny_mce js files that all work together in order to use the popup feature ?
×
×
  • Create New...