Jump to content

Sequence problem of dynamically creating multiple controls


yxzzjg

Recommended Posts

Create multiple components dynamically in turn (uniedit, unicombobox, unimemo, unidatetime ) and set the properties to Align:= alTop; why is the order of permutation not the order I created? What do you need to do to rank them in order of creation?

I use version 0.94, and the latest trial version has this problem.

Link to comment
Share on other sites

demo

procedure bitbtn1.click()
begin

          with TunimEdit.Create(self) do
        begin
          parent:=UnimContainerPanel1;
          Name:='edt1';
          Height:=30;
          Align:=alTop;
        end;

          with TUniMemo.Create(self) do
        begin
          parent:=UnimContainerPanel1;
          Name:='mmo1';
          Height:=30;
          Align:=alTop;
        end;

          with TunimEdit.Create(self) do
        begin
          parent:=UnimContainerPanel1;
          Name:='edt2';
          Height:=30;
          Align:=alTop;
        end;

end;

==============================================

I want to be in the order of creation

edt1 - > mmo1 - > edt2

 

The actual order turns out to be

edt1 - > edt2 - > mmo1

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...