Jump to content

TUniScrollBox controls order


MarcoC

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...