Jump to content

irigsoft

uniGUI Subscriber
  • Posts

    1370
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by irigsoft

  1. I have found solution, here is result: code is based on this: https://blog.logrocket.com/creating-beautiful-tooltips-with-only-css/ .hintClass { /* color: #93612b;*/ color: #fff; font-size: 14px; font-family: Arial, Helvetica, sans-serif; /* background: red;*/ /* background-color: dimgray; */ border: 0px; text-align: center; /* padding: 5px; */ /* border-radius: 20px; */ position: relative; display: inline-block; border-top: 5px dotted green; /* If you want dots under the hoverable text */ } .hintClass2 { background: green; border: none; font-size: 10px; font-family: "Lucida Console", "Courier New", monospace; /* padding: 5px 0; */ border-radius: 20px; position: relative; border-bottom: 5px dotted black; /* If you want dots under the hoverable text */ content: attr(data-text); /* here's the magic */ position:absolute; /* vertically center */ top:50%; transform:translateY(-20%); /* move to right */ left:100%; margin-left:15px; /* and add a small left margin */ /* basic styles */ width:200px; padding:10px; border-radius:10px; background:#000; color: #fff; text-align:center; }
  2. If I add .hintClass2 { background: green; border: none; font-size: 10px; font-family: "Lucida Console", "Courier New", monospace; padding: 5px 0; border-radius: 20px; visibility: hidden; } then I get this as result: , how to hide this region ?
  3. @Sherzod, I need Your advice again. I use this settings: .hintClass { /* color: #93612b;*/ color: #fff; font-size: 14px; font-family: Arial, Helvetica, sans-serif; background: red; background-color: dimgray; border: 0px; text-align: center; /* padding: 20px 0; */ /* border-radius: 6px 6px 6px 6px; */ } .hintClass2 { background: green; border: none; font-size: 10px; font-family: "Lucida Console", "Courier New", monospace; padding: 5px 0; border-radius: 20px; } and I get this result now I need to hide border from image, how can I do that ?
  4. Hello, try to add your settings into .hintClass, and remove visibility: hidden;
  5. Hello, 1. try to replace code into CustomCSS.js with this new one: Ext.override(Ext.Component,{ onRender: function() { if (this.hasCustomHint) { var el = this; this.on ('mouseover', function () { var _title; _title = el.getEl().getAttribute('title') || el.getEl().dom.getAttribute('title'); if (!el._toolTip && _title!=null) { el.getEl().dom.removeAttribute('title'); el._toolTip = Ext.create('Ext.tip.ToolTip', { target: el, html: '<span class="hintClass">' + _title + '</span>', trackMouse: true, userCls: 'hintClass2' }); el._toolTip.show() } }) } this.callParent(); } }); 2. Clear Browser cash for You servers IP 3. Start Application and new style will be appear over button, Edit, Label, Memo
  6. @Sherzod, Thank for Your fast support. Is it possible to add CustomHint into ActionButtons on DBGrid ?
  7. Now, all work perfect, after clear cash. Thanks .
  8. I replace code into CustomCSS.js, and not different found, not work
  9. I must change code into CustomCSS.js?
  10. Sorry, I send You a new one REST Server.zip
  11. Hello, I had a similar problem, when I run a long-running request (AdoQuery), my connections break after ajaxTimeout. I extended the AdoConnection timeout and that fixed my session disconnection issue. So, you might try changing the AdoConnection.timeout in addition to Abaksoft's advice
  12. Hello, I have problem with Your code. I try to use it on uniButtons, uniLabel, uniMemo. copy your code into js and css files and add it on "files", after that I add it in uniServerModule.CustomFiles, like your video. After that I write into UniGUIMainModuleNewComponent if TUniButton(AComponent).JSInterface <> nil then TUniButton(AComponent).JSInterface.JSProperty('hasCustomHint',[True]); but js code dont work. Same like Luciano França. I try to write this js code into uniButton.CustomEvents.ExtEvents.boxready, but not work. var el = this; //sender; var _title; _title = el.getEl().dom.getAttribute('title'); el.getEl().dom.removeAttribute('title'); el._toolTip = Ext.create('Ext.tip.ToolTip', { target: el, html: '<span class="hintClass">' + _title + '</span>', trackMouse: true, userCls: 'hintClass2' }); //el._toolTip.show() I try to write this js code into uniButton.CustomEvents.ExtEvents.click and after click on button all work for this Button I try to write this js code into uniButton.CustomEvents.ExtEvents.afterrender and then in Form I move mouse over button, I see My Hint and tooltip = null Can You tell me what I am wrong ?
  13. I work on it, I use same manner. If I succeed, I will show here the result. I have over all my components CustomCSS, that is CustomCSS[componentClass]
  14. Hello, how to change Hint properties (color, Font size, Font Color) of uniBitBtn with CSS. I have many buttons and I use Hint to show text to user, now I want to change visual presentation of this Hint of controls. I found that Button Hint is saved as title=...., how to set font.size, font.color, background.color of this CSS "title"
  15. Hello, something like this? : https://kazzkiq.github.io/balloon.css/ or this: https://www.w3schools.com/css/css_tooltip.asp
  16. Hello, Try to send answer to Client with this in procedure TUniServerModule.UniGUIServerModuleHTTPCommand : //send answer to client AResponseInfo.ResponseNo := 200; AResponseInfo.ContentEncoding := '1251'; ARequestInfo.Document := YOURJSON ANSWER AResponseInfo.ContentText := YOURJSON ANSWER AResponseInfo.WriteContent; Handled := True; AResponseInfo.CloseSession; Try to read into procedure TUniServerModule.UniGUIServerModuleHTTPCommand : ARequestInfo.POSTStream ARequestInfo.Params ARequestInfo.RawHTTPCommand maybe there will be data sended from REST debugger
  17. Try to change AResponseInfo.ContentText in TUniServerModule.UniGUIServerModuleHTTPCommand
  18. In example I give You on TUniServerModule.UniGUIServerModuleHTTPCommand, this part //check if type is JSON file if (POS ('/JSON',ARequestInfo.URI) > 0) then begin // DO YOUR REST STUFF AResponseInfo.ResponseNo := 200; AResponseInfo.ContentEncoding := '1251'; ARequestInfo.Document := mmReadDocument (1,Copy (ARequestInfo.Document,Length ('/JSON=')+1,Length (ARequestInfo.Document))); AResponseInfo.ContentText := ARequestInfo.Document; AResponseInfo.WriteContent; Handled := True; AResponseInfo.CloseSession; end; must get json sended from restdebuger, did You get data there ? If not try to send data in url (just for test) and check If you get data.
  19. Yes, 1551. So You want to send JSON in body of request ? Do you get any data from the client in TUniServerModule.UniGUIServerModuleHTTPCommand, when testing with restdebuger?
  20. Maybe You have problem with TNetEncoding.Base64.Encode and decoding , i am not sure. Can you try send request from RESTDebugger to Exe compiled by me. and see in Right memo, what result will show. Send request by this way direct in Browser: http://yourserver:port/JSON=EncodedBase64 (JSONdata). all must be in URL. Try to encode data with this: https://www.base64encode.org/
  21. Hello, try with this REST server. REST Server.zip
  22. @erich.wanker, here is a good solution explained, have you tried it?: https://developer.chrome.com/articles/file-system-access/ You must to use window.showOpenFilePicker(), not window.open();
  23. Hello, did You try to get file like is an example "file:///c:/temp/yourfile.txt" ?
×
×
  • Create New...