Hmm... Looks interesting :] Thanks for advice. And I have another question, maybe not exactly linked with the problem, but a bit... I'm creating TPanel, then I'm setting it as TreeView's parent. Then I'm setting it's align property to AlLeft. After that I'm creating a TSplitter on that panel, and too setting it's align as alLeft. After doing that, I'm craeting second panel on this first, and setting it's Align property to alClient. And it should look like that: On the left of the panel is TTreeView, next to it (on it's right side) a splitter and on the right of the splitter another panel. Unfortunately it doesn't look like it. The splitter is on the beggining on left side of the main panel, and after it a TreeView. What's wrong?
Panel1:=TPanel.Create(ReceiveForm);
Panel1.Parent:=ReceiveForm;
Panel1.BevelInner:=bvNone;
Panel1.BevelOuter:=bvNone;
TreeView1.Parent:=Panel1;
TreeView1.Align:=alLeft;
Splitter1:=TSplitter.Create(Panel1);
Splitter1.Parent:=Panel1;
Splitter1.Align:=alLeft;
Splitter1.Width:=2;
Panel2:=TPanel.Create(Panel1);
Panel2.Parent:=Panel1;
Panel2.Align:=alClient;
Panel2.BevelInner:=bvNone;
Panel2.BevelOuter:=bvNone;