Jump to content

MarcoC

uniGUI Subscriber
  • Posts

    32
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by MarcoC

  1. Thank you Sherzod, no problem, I will wait for your fix.

    In the meaning, is there some workaround/trick/javscript code or client alignment that I could try, just to be able to release now the "ordered scrollbox" feature that my customer is waiting?
    I thought that maybe I could try to insert a same size panel in the TUniScrollbox, with the frame - client aligned - into that panel? Maybe the bug is related to the frame insert,...I'll try.

    Thanks for your help
    Marco

     

  2. Hi,

    UniGUI Professional v. 1.95.0.1580.

    I have a TUniScrollBox where, runtime, I add, in a loop, some TUniframe's - using InsertControl:

      for index := datamodule1.ResourceslList.Count - 1 downto 0 do
      begin
        NewFrame := TfrmResList.Create(UniScrollBox1);
        NewFrame.Parent := UniScrollBox1;
        NewFrame.Align := alTop;
        UniScrollBox1.InsertControl(NewFrame);
       ....
    end

    My problem is: (only) last TfrmResList added in the loop is displayed as the first (Transactions...top, wrong, position) in the TUniScrollBox, and all other frames are in the expected visual order (Academy,Accounting etc.).
    How to fix this?

    Thanks for your help
    Marco

    Clip3.png

  3. Hi all.

    Standalone Windows application, Delphi 10.4.2, UNIGUI 1.90.0 build 1568

    On a Windows server with two public IPs I want that my Unigui app uses port 443 on a specific IP (port 443 is already occupied on the other IP, so I can't use it).

    On the production build, Server Module, OnBeforeInit event, I've put this code

    {$IFDEF Produzione}  /// ////////////

     SSL.Enabled := TRUE;

    //kill the standard bindings
     Port := 0;
     SSL.SSLPort := 0;

     //create specific bindings
     Bindings.Clear;
     with Bindings.Add do begin
       IP := '54.76.228.197';
       Port := 443;
     end;


    {$ENDIF Produzione}

    Once deployed I always get a "Could not bind socket error" seems as port 443 is already in use, but it should be used *not* on 54.76.228.197, is my code wrong or have I to dig more on the Windows Server configuration?

    Thanks for your help.

     

     

  4. Hi All.
    Same problem here , installing every D.. Unigui (Personal Version 1.90.0.1568) package on latest Delphi 11.3 version.
    No third party Unigui components used.

    Clip13.jpg.e1030081e0f29641d2826a69538f8da8.jpg

    Clip12.thumb.jpg.d5497ca01c2c5a748069a9f7dbea530e.jpg

    Starting IDE as Administrator didn't help.

    Same 1568 version runs without problems on same VM with Delphi 10.4.

    Any idea? Hope someone found a solution...
    Thanks!
    Marco

     

     

  5. Thanks Sherzod,

    if I can't fix it I'll try to send a testcase: in the meaning may you confirm that in your tests you use all my client layout settings (table layout, cols, ecc.) that I'm using, or your project modifies and uses only UniGroupBox1.LayoutConfig.Cls, LabelB.Alignment and CustomCSS to get the right alignment?
    Marco

  6. Hi.

    I use a TUniGroupBox with AlignmentControl set to uniAlignmentClient and layout set to "table" (with LayoutAttribs.Columns set to 2).
    Inside that table layout I put two TUnilabels each row, one left aligned, the second right aligned, 50% of the width for each one).
    So this is my (wanted) layout:

    --------------------------------------
    | Label A                 |                Label B |

    Despite I set Alignment of Label B to taRightJustify I alway get a left alignment of the text (see screen, right column tunilabels text is still left aligned):

    Clip-tablelayout.jpg.30cbb29f7bb7d3616ae46ad2767ff951.jpg

    I suspect that using a client alignment maybe I have to bypass Unigui and set the style of that label with something like this

    style:{"float":"right"}

    Someone can help me to get this?
    Using Unigui Professional second last available version.
    Thanks!
    Marco

     

  7. Ok, I do not know what is a XTemplate: may you please point me to it?

    The subject of my post was also: what to do to speed up things if I'd have necessarily to use a TUniScrollList, so someone can send me tips or best practices if I'ìl have to fall back to that component?

    Thanks again.
    Marco

  8. Hi Sherzod.
    I thought that creating panels and put inside each one a frame was a good choice, also for the speed of the creation of the whole form. And the scrollbox was the right choice, too, as container of a list of panels.

    I need from 2-5 to 400-500 items inside the scollbox because I need a list on that summary form for a selection of products (a cart for an online order), in particular a books list made by users of the website of one of my customers.

    I'm aware that is my first big project with Unigui, maybe there is an original sin in my logic (beacuse of my little experience with Unigui)?

    Hope to have answered to your question..
    Thanks for your help.

    Marco

  9. Hi all.

    I have an application with a form in which there is a TUniScrollBox (scrListaProdotti) the uses 90% of that form.
    When I create the form at runtime I populate the TUniScollbox with a number of TUniPanel's, using this code:

      aPnl := TUniPanel.Create(self);
      aPnl.Parent := scrListaProdotti;
      aPnl.Name := 'pnlLista' + aindex.tostring;
      aPnl.Align := TAlign.alTop;
      aPnl.AlwaysOnTop := FALSE;
      aPnl.Margins.Right := 15;
      aPnl.Height := 208;
      aPnl.Tag := aindex - 1;
      ......

    Inside those panels I put a uniframe (TfrmGestOrdineList) per panel, using this code:

      aFrame := TfrmGestOrdineList.Create(self);
      aFrame.Parent := aPnl;
      aFrame.Name := 'frmPnlOrdine' + aindex.tostring;
      aFrame.Align := alClient;
      aFrame.lblTitoloAutore.Tag := aindex - 1;
      aFrame.Tag := aindex - 1;
      ......

    This frame has ten labels, one combobox, two edits and a little image, that I initialize, all, immediatly after having created the frame inside the panel.
    The problem is: the application takes 2-3 minutes to show my form when I add 400 panels to the scrollbox: 0,3 - 0,4 seconds for the creation of a single panel seems to me a signal that something is not going as expected.

    I use Delphi 10.4.2 and, i think, the second last version of Unigui.
    May you help me? 
    Thanks!

    Marco
     

     

     


     

     

  10. Hi all.

    I have a vertical TUniScrollBox where I insert, runtime, a number of unipanels.
    Panels are used to show to the users the results of some searches and, at the end of each search, I would like the scrollbox to go back to initial zero position (with first, top, panel shown to the user).
    If I use the trick to change some panels height to zero (to hide those panel from user eyes without completely deleting them at that moment) a call to MyScrollBox.VertScrollBar.Position := 0, after the scrollbox is filled by panels (some zero height, some normal height), ends with an AV.
    I know it's a dirt trick 😆 but I would like to use it if possible, so I wonder if there is something different that I can try to reset the vertical position of my scrollbox without getting an AV.
    Thanks!
    Marco

    (Latest build of Unigui)

     

×
×
  • Create New...