Jump to content
uniGUI Discussion Forums

delagoutte

uniGUI Subscriber
  • Content Count

    445
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by delagoutte

  1. delagoutte

    Print UniHTMLFrame-Content?

    i have a new method if you want : add uses ExtPascalUtils; Add a TuniHtmlMemo (MemoExport) on your form and set "top" to -1000 to hide it (don't use visible property) on ClientEvent.Extevents add this code in "push" : function push(sender, html, eOpts) { if ((html.trim() != "")&&(html.trim() != "​")){ var browserName = navigator.userAgent.toLowerCase(); if ( browserName.indexOf("msie") != -1) { sender.iframeEl.dom.contentWindow.focus(); sender.iframeEl.dom.contentWindow.print(); } else { if(browserName.indexOf("trident") != -1) { sender.iframeEl.dom.contentWindow.focus(); sender.iframeEl.dom.contentWindow.document.execCommand('print', false, null); } else { sender.iframeEl.dom.contentWindow.focus(); sender.iframeEl.dom.contentWindow.print(); }; }; } } Now all is ready. for printing html do this : procedure TMainForm.PrintText(Sender: TObject; aValue : string); begin UniSession.AddJS('if (!'+MemoExport.JSName+'.initialized){'+MemoExport.JSName+'.initialized=true;};');// i must add this for chrome at some users. sometimes the component is not initialized UniSession.AddJS(MemoExport.JSName+'.textareaEl.dom.value='+ StrToJS(aValue)+';'+MemoExport.JSName+'.pushValue();') end; .. procedure TMainForm.BtnPrintSelClick(Sender: TObject); begin PrintText(Sender,GetExportHtml); end;
  2. delagoutte

    Help: video not loop webOS!

    Are you shure that is an unigui problem ? Are you sure that the "loop " tag is implemented on the webos webbrowser ? if you do a simple html page with your code : the loop is ok or not ?
  3. delagoutte

    api rest in an unigui project

    mhmda : do you use your API as data provider for your unigui app or do you use firedac component with direct acces to db?
  4. delagoutte

    individual Columns in uniDBGrid

    do you test it with agris with many columns >50. If yes, have you got any problem with performance or not ?
  5. i don't think there is any problem with this.
  6. delagoutte

    uniGUI with SAML 2.0 single sign-on

    thanks for your sharing
  7. try this : replace ' sort: function() {'+#13#10+ ... ' if (this.el.hasCls(''x-column-header-sort-DESC'')) {'+#13#10+ by ' sort: function(a) {'+#13#10+ ... ' if (a==null && this.el.hasCls(''x-column-header-sort-DESC'')) {'+#13#10+
  8. delagoutte

    uniGUI with SAML 2.0 single sign-on

    nobody ? a client ask me the same thing
  9. No error in console ? have you got a column with checkbox for selection ? if not, try adding, YourGrid.options.dgcheckselect : true; Your column have sortable : true ? for your question about sender.multiSortLimit=10;' -> you couldn't have more than 10 column sorted see doc sencha
  10. i must do a little cleaning but i think it only remains useful code GridColumnSortWithCancel.zip
  11. now, i have a solution. i'll try to do a small sample project
  12. no, i think he want a column sort with 3 states for exemple : first click on column header-> ASC Sort second Click on column header -> DESC sort third Click on oclumn header -> NO sort 4th click on column header->ASC SORT . ......
  13. delagoutte

    adjust caption on tunibutton

    I have a tunibutton on a panel. this button is anchor on right and left. When i decrease my panel size my button size width is decrease. If the caption is too long for the button, i would like the caption to be written on 2 lines or that the font size decrease automaticly. Is it possible to do that ?
  14. delagoutte

    Emergency assistance

    have you try with https://***.***.***/myapp.dll/m ? maybe wechat use https and a redirect to a http link is restricted in many cases ?
  15. Hello, Farshad/FMSoft would you be able to produce a tutorial on "how to create a custom theme" ? Where to start? tools needed ? how to proceed ? how to add in unigui adn how to deploy ?
  16. delagoutte

    How can i produce my own theme ?

    anybody could help, farshad ? other ? I have produced a theme with sencha themer based on triton. where should I put the files produced by themer ? unipackage-6.5.3 ? other directory ? We must create other files ? what should I do for my theme to appear in the list of themes available in unigui ? it's been months that I ask on different post without ever having a complete answer with good practices. Would it finally be possible to have one?
  17. Hello, i have a grid with a onselectionchange in this event i have a code like this procedure TMainForm.MygridSelectionChange(Sender: TObject); begin MyFrame.LoadData; end; I would like to know what it is the best method to be certain that I do not enter many times in parallel in this portion of code Loaddata. What is the good method for be sure TCriticalsession unisession.locksession , ... other ? If i use TCriticalSection, i think that i have this portion of code that will be locked/protected for all session but i would protect it only for the usersession.
  18. ok thanks for your answer
  19. delagoutte

    htmlfrane with html form

    have you try tab index : https://webcheatsheet.com/HTML/controll_tab_order.php
  20. delagoutte

    Forum very very slow...

    for me, i don't see a big difference. i often use "unread content" and i must wait 4-5 sec or little more before receive anything.
  21. delagoutte

    Hiding focus lines in TUniDBGrid with v1.50.0.1481

    i had the same problem with my custom css when i updated my project from 1.0 to 1.5 version : for resum : before (with 1.0 version and extjs 4): x-grid-row-selected , x-grid-row-...... after (with 1.5 version and extjs 6) : x-grid-item-selected, x-grid-item-......
  22. is there a method for do this ?(import in unigui a theme produce by sencha themer)
  23. delagoutte

    How can i produce my own theme ?

    i have a theme that is produce by themer. How can i add it to unigui and use it ?
  24. delagoutte

    column selection check how to fixed?

    i have a unidbgrid with option for having a column with check box for the selection. How can ido for having this column that is always display ? how to fix it ? if you have a grid with many column, -> there is a horizontal scrollbar -> if you scroll on the right, this column for selec row is not displayed
×