Jump to content

MarkLince

uniGUI Subscriber
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MarkLince

  1. Hi, I swapped the images (folder icons) out in the theme for now, but I'd rather load my own in dynamically without modifying the theme images. Also I'm trying to find what I need to change the selected background color in the sencha reference but am struggling to locate what I need, any help with that would be greatly appreciated. Mark
  2. Excellent! thanks Delphi Developer Regards Mark
  3. Hi, Can anyone tell me how to; 1. Expand all and collapse all nodes in a unidbtreegrid 2. Change selected background color and stop TrackOver 3. Change the default folder icons when showicons is true Thanks Mark
  4. Hi Bocchi, That's great, well done... I'll keep that workaround in mind. Regards Mark
  5. Hi Bocchi, I'm sure there must be, although I couldn't find it, I'm no expert here and am still learning Uni myself. I wish I had more time to help you debug it but I don't at the moment. Maybe one of the more experienced guys on here can help out a bit. Good luck with it and when things ease off for me I'll take another look but hopefully you will have solved it by then. Regards Mark
  6. Hi, On the mainform set fullscreen to false. I found that fixes it, but the mainform will get a border. I have no idea why it is happening, as I said I don't use unimobile yet (other than this simple test). Its not an issue with in my desktop implementation. Regards Mark
  7. I haven't forgotten, I'm just extremely busy at the moment, I'll do my best to help at the weekend. Mark
  8. I'll take a look when I have a moment (bit hectic at the min) and get back to you soon. Mark
  9. Hi, Just wanted to know peoples opinion on whats best way to deploy UniGui ap, Service or using IIS. Which is best for, not in any order; 1. Reliability 2. Scalability/ No Users 3. Speed/ performance 4. Security 5. Manageability My ap will be db intensive Thanks Mark
  10. Hi, The point.js file is not needed it crept in by error just delete it and then in uniservermodule/CustomFiles/Strings ... remove the reference to it by deleting the line. leave the css file where it is or if you move it, you will need to change the path ref to it in the uniservermodule/customfiles/strings . Thanks Mark
  11. Hi Delphi Developer, This is why you are The Delphi Developer! Fantastic, thanks a lot. Mark
  12. I'm looking for this too! Mark
  13. Hi Delphi Developer, Thanks for the quick reply as always. I thought some/ all browsers ignore autocomplete="off" with regard to password and username fields?? anyway, can you tell me where would I set that? Regards Mark
  14. Hi, Is there anyway to prevent the browser from prompting to save the password? I have a login and it has a limited time cookie set for say 1-2 hours and that's all I want. How do I prevent the browser from prompting the user to save credentials? Thanks Mark
  15. Hi Bocchi, I've not worked with unimobile yet, but I have created a test for you, it sort of works although needs some polish, and I've not tested properly. its basic but if it helps you then that's great. here it is; https://www.e-quipit.co.uk/downloads/mobile_sig_test.zip Regards Mark
  16. Oh also, although this thread is in the mobile forum our sample is not a unigui mobile ap, but a webmode one. Mark
  17. Hi Bocchi, I didn't actually use Jsignature in the end I used this one instead https://github.com/szimek/signature_pad, but the principles are the same. If you like I will try and put together a sample project for you to look at in the next day or so. Regards Mark
  18. Hi, Thanks for the super quick response! and thanks for the help, I got into quite a mess with the ajaxrequest! but you have done it! it works. Many, many thanks Regards Mark
  19. Hi Hayri, Thanks very much for that, I can see how I can use it. However, what I want to do is replace the browser alerts with say a showmessage or unispnoty, but I'm a beginner in js. so... I have a new property in unispwebcam called FCamMessage private FonSnapshot : TChangeEvent; FDestinationWidth, FDestinationHeight : integer; FCamMessage : string; I'd like to be able to bring back the messages (mostly error) generated in the webcam.min.js in an ajax event and put the result in FCamMessage (published as CamMessage). In my main form I can then check unispwebcam.cammessage and create a unispnoty to inform user and/ or do some other action. So far I have in UniSPWebCam.pas; 1. I have the new publshed property CamMessage. 2. I have added to ajax procedure as below. procedure TUniSpWebcam.Ajax(Sender: TComponent; EventName: string; Params: TUniStrings); var SS: TStringStream; MS: TMemoryStream; FN: String; begin if EventName='snap' then begin SS := TStringStream.Create(Params.Values['data']); try MS := TMemoryStream.Create(); try DecodeStream(SS, MS); FN := UniServerInstance.LocalCachePath + IntToStr(Random(10000000))+'.jpg'; MS.SaveToFile(FN); finally MS.Free; end; finally SS.Free; end; if Assigned(onSnapshot) then onSnapshot(Self, FN); end else if EventName='Mes' then begin // assign params.values['txt'] to CamMessage end; end; but I'm struggling with the ajax request as in procedure TUniSpWebcam.StartWebcam; var data:string; begin data:='Webcam.set({ '+ ' width: '+IntToStr(Width)+','+ ' height: '+IntToStr(Height)+','+ ' dest_width: '+IntToStr(DestinationWidth)+','+ ' dest_height: '+IntToStr(DestinationHeight)+','+ ' image_format: ''jpeg'', '+ ' jpeg_quality: 100 '+ ' }); '+ ' Webcam.attach( ''#UniSpWebcam'' ); '+ ' Webcam.hooks.error = function(e) {ajaxrequest('+Self.JSName+', "mes" ,["txt="+function(e) {"this is a test "+e}])}; ';// This is completely wrong!! UniSession.AddJS(data); end; What do I need to do to bring back the text of the messages in webcam.min.js and put the result in CamMessage I hope that makes sense to you. And thanks for your help and patience. Regards Mark
  20. Hi, In webcam.min.js hooks: { load: null, live: null, uploadcomplete: null, uploadprogress: null, error: function(e) { alert("Webcam.js Error: " + e) ------- > these alerts } Thanks Mark
  21. Hi Hayri, Hope you are well. I have a question about UniSpwebcam. Is it possible to intercept and suppress alerts triggered in webcam.min.js and replace with my own alerts. Thanks Mark
  22. Hi, Thanks Dephi Developer, I'll take a look at that. Is there no Delphi/ UniGUI way? Thanks again Mark
  23. Hi, Struggling with this a bit, if some one can point me in the right direction I'd be grateful. How can I save the contents of a unihtmlframe as an image Thanks very much in advance Mark
  24. OK, no takers? Decided to use this JQuery instead https://willowsystems.github.io/jSignature/#/about/ Looks just what I need Thanks anyway Mark
  25. Hi Farshad, Thanks again for your help, I feel silly I missed that!! This works ADLabel:=TUniLabel(ADScroll1.owner.FindComponent('ADLabel'+inttostr(count1+1))); Regards Mark
×
×
  • Create New...