
andyhill
uniGUI Subscriber-
Content Count
746 -
Joined
-
Last visited
-
Days Won
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
-
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
-
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
-
andyhill started following HyperServer, Get selection from image and copy to another image and PDF Editor
-
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.
-
What about a HTML / Javascript editor instead - tinyMCE ? (see UniGUI examples)
-
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.
-
Thank You Sherzod, very much appreciated
-
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
-
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
-
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.
-
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
-
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