MarcoC Posted April 19 Share Posted April 19 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20 Share Posted April 20 Hello @MarcoC Do you have a simple testcase to reproduce? Quote Link to comment Share on other sites More sharing options...
MarcoC Posted April 20 Author Share Posted April 20 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 Quote Link to comment Share on other sites More sharing options...
MarcoC Posted April 22 Author Share Posted April 22 Hi Sherzod, any news for my testcase? Thanks Marco Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 23 Share Posted April 23 On 4/22/2024 at 6:20 PM, MarcoC said: any news for my testcase? Hello, Sorry for the late response. I see, we will check this behavior. Quote Link to comment Share on other sites More sharing options...
MarcoC Posted April 23 Author Share Posted April 23 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 Quote Link to comment Share on other sites More sharing options...
MarcoC Posted April 23 Author Share Posted April 23 No, the issue don't depends on TUniFrame, simple panels order too is broken: Marco Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 23 Share Posted April 23 As a workaround, this post may help you: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.