Jump to content

MarcoC

uniGUI Subscriber
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MarcoC

  1. No, the issue don't depends on TUniFrame, simple panels order too is broken: Marco
  2. 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
  3. Hi Sherzod, any news for my testcase? Thanks Marco
  4. Hi @Sherzod, of course. See attached test project: item #40 is always displayed on top of the TUniScrollBox controls list. In the meantime I upgraded uniGUI too to latest 1583 build (Delphi 11.3, with no luck). Thanks for you help. Marco TestProject1.zip
  5. 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
  6. Sorry, any chance to know if my code to bind a single server IP is correct or not? Or, better, I should bind the internal IP and not the external one like 54.76... ? Sorry for my english and thanks for any contribute.
  7. 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.
  8. Sherzod, I've fixed the problem compiling every package, and installing the design ones, this time one by one (without the need to run the IDE as administrator). Now I've all stuff installed in Alexandria, too. Thanks for your, always fast, feedback. Marco
  9. Yes, it was the first step before installing 1568 version. Marco
  10. 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. 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
  11. Thanks Sherzod. Fixed: I had to cancel 50% and 50% for two labels width (layoutconfig) to get the expected right alignments. Marco
  12. 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
  13. Sherzod, I'm missing something. May you please share source code of your demo? Thanks Marco
  14. And this if I set labelb.autosize := TRUE, not much better: Thanks Marco
  15. Hi Sherzod. CustomCSS in ServerModule, right? This is what I get now : And if I just cancel "customBox" from LayoutConfig.Cls: Thanks for your help. Marco
  16. 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): 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
  17. Thank you Sherzod, I'm digging more in the Forum on the argument. Anyway, the video doesn't seem to be available at the moment. Marco
  18. 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
  19. Hi Sherzod. Attached is what my customer asked to see in his online order system, may you confirm if this is achievable with a UniDbGrid? Thanks! Marco
  20. 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
  21. 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
  22. Perfect Sherzod, now it works as expected! Thanks Marco
  23. 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)
  24. Hi Sherzod. I fixed the issue, apparently simply deleting the click event code for the panel , as the click event always seemed to go from button to parent panel under it (now I see correctly executed only the code linked to the buttons) So thanks, this should be Ok now. Marco
  25. Hi All. I'm a new user of Unigui (but a seasoned Delphi developer) and I have some problems with a form (MainForm) where I put, design time a scrollbox and, after, create runtime and put inside the scrollbox, a series of panels, top aligned, with a simple frame (3 labels and one button), client aligned, inside each panel. This, basically, is the code I use: procedure TMainForm.AggiungiPanACarrello(aindex: integer); var aPnl: TUniPanel; aFrame: TfrmCarrelloList; begin // First I create the UniPanel... aPnl := TUniPanel.Create(self); aPnl.Parent := UniScrollBox1; aPnl.Name := 'pnlCarrello' + aindex.tostring; aPnl.Align := TAlign.alTop; aPnl.Height := 92; aPnl.Visible := TRUE; aPnl.Tag := aindex - 1; aPnl.OnClick := TestPanelClick; // ...and after the UniFrame, inside it aFrame := TfrmCarrelloList.Create(self); aFrame.Parent := aPnl; aFrame.Name := 'frmPnlCarrello' + aindex.tostring; aFrame.Align := alClient; aFrame.btnEliminaCarrello.Tag := aindex - 1; aFrame.btnEliminaCarrello.OnClick := TestButtonClick; end; Panels and the connected frames seem to be created and rendered without problems on the scrollbox but.. Main problem is some (weird ?) behaviors with the mouse, first of all when I click on the btnEliminaCarrello tunibutton I never get what is normal with a Delphi desktop application, i.e. is only the button onclick event method that is called: 1) in one little test project I see always fired only the panel onclick event (also if I put panel+frame not into the scrollbox but simply top aligned into the form), 2) and in the real project both methods (panel+button) are called in sequence, though I clicked on button only... I stop here (i have another strange problem with mouse, but one thing at a time ) : here I'm a newbie so maybe I'm missing something really important for unigui frames, or unigui (events?) at all, and I hope that someone can help. Thanks a lot. Marco p.s. sorry, if you can tell me which is a pratical way to add a screenshoot to this forum posts I can show what I see on my browser
×
×
  • Create New...