Jump to content

azago

uniGUI Subscriber
  • Posts

    85
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by azago

  1. procedure TfForm1.UniPDFFrame1Loaded(Sender: TObject);
    begin

       if UniPDFFrame1.PDFURL > '' then begin

      // download button
      UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
           + 'getElementById ("download").style.display = "none"');
      UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
           + 'getElementById ("secondaryDownload").style.display = "none"');
    

       end;

    end;

    • Upvote 1

  2. I need to change the componentCls of the grids actionbuttons

    1) if I want to change componentCls in all the application I modify do I have to do to my CustomCSS ?

    2) I tried to change the value on a single grid by removing the hint values of the action button and inserting

    image.thumb.png.b293629e0c49371af1d465d356acd8a6.png


    The program does not give any errors, it displays the message correctly but does not apply the componentCls.

    Angelo

  3. Sorry but I only use only and always Delphi (for thirty years ...) and I don't know C ++

    anyway in Delphi

    First Page

    UniSession.AddJS (uHTMLPDF.JSName + '.iframe.contentWindow.document.'  + 'getElementById ("firstPage").click()');
     

    Last page

    UniSession.AddJS (uHTMLPDF.JSName + '.iframe.contentWindow.document.' + 'getElementById ("lastPage").click()');
     

    Next page

    UniSession.AddJS (uHTMLPDF.JSName + '.iframe.contentWindow.document.' + 'getElementById ("next").click()');
     

    Previous Page

    UniSession.AddJS (uHTMLPDF.JSName + '.iframe.contentWindow.document.' + 'getElementById ("previous").click()');


    i used unigui for a document solution

    image.thumb.png.f1f2600b9db1f848cb376e55f1c7b4b8.png

     

    Angelo
     

    • Upvote 1
  4. 1. in the editor 

    image.png.4617778571262980670c4ac235c68abd.png

    ExtEvents and UniEvents highlighted if code present inside (without having to enter each element to see if we have activated any code).

     

    2. building the user interface takes 60% of the time of building an application. 

    You would need an editor with the ability to choose values like to

    x-panel-header-default

    x-panel-body-default

    etc..

    to generate custom css or  an easier way to manipulate a new application theme

     

    3. a solution for custom screen mask without using EnableSynchroniusOperations passing, for example, an gif and a provedure to execute.

    Of the series shows the animated git until the procedure has not finished

     

     

     

    • Like 5
  5. One solution is to use a ThreadTimer (RunOnce ...)

     

    on FrameReady

    or FormShow

    begin

       UniSession.AddJS('MainForm.form.mask("Action in progress ...")');

    end;

     

     

    procedure TfReporting.OnThreadCreateReportTimer(Sender: TObject);

    try

           // execute the long action

       finally
          UniSession.AddJS('MainForm.form.unmask()');
       end;
    begin

    end;

  6. SynchronousOperations is not a good practice

    I agree but esiet a problem when we have to use long processes and signal the user to wait via hourglass ... 
    When I have a long query or I have to download a file I have to report to the user the inability to act otherwise he thinks it is the locked system

    Angelo

     

     


  7. Sherzod,
    in my application I have already linked the various buttons to the actions of the pdf.js

    image.png.1749fd9754b44595df5ec022b4bf4ff5.png

     

    What I miss and what I would like to be able to do is associate
    to these last 3 buttons the action of changing pdf scales

    image.png.79bfb84e44daf90545f15f77b6a48bc8.png

    That is, they should execute the command as if the selection of

    image.png.443bb9b1558f1f0e72e1f8ad39438218.png

    image.png.27e94cbec1841660e1c0c29ac4f591e4.png

    image.png.11616782859128421775b6fe61a899cb.png

     

    The question
    How to associate the same action as the selection scaleSelect  change to a Unibutton ?

    Thanks

    Angelo

     

     

     

  8. Thank's Page Rotate work.

    I have an evolution on my software. I replaced the bar of pdf.js with a UniToolbar.

    How to send a command from change the zoom, for example "page width" to current pdf ?

    It's a selection and not working the click action.

     

    Thank's

    Angelo

     

     

    sample.png

  9. I need to be able to rotate the images of a PDF inside the UniPDFFrame object

    The problem is that the rotation buttons are on the inside the secondarytoolbar


    1) Is it possible to rearrange the buttons so that the rotation buttons are at the same level as the zoom buttons (toolbarViewer) ?

    alternatively

    2) It is possible to send (using an external button) a command to UniPDFFrame to execute PageRotateCw or PageRotateCcw

    or

    3) It is possible to send a char 'r' o Shift-r (shortcut) to UniPDFFrame to execute rotation

    In the letter case i tried generic delphi code 

     PostMessage(UniPDFFrame.Handle, WM_CHAR, Ord('r'), 0);

    but non working

     

    Thank's

    Angelo

    Cattura.JPG

×
×
  • Create New...