Furthermore an other splitter to seperate this to components from the
rest of my screen.
I tryed a lot but found result.
> Hello,
> I want to place two component on the left side of the screen.
> A DirList and a FileList. seperated with a splitter horizontal splitter.
>
> Furthermore an other splitter to seperate this to components from the
> rest of my screen.
I think there are some "examples in the book" on how to do this [if not, try
the big "kylix developers guide" with the white & blue cover -- I'm sure
I've seen this somewhere]
In a nutshell, however, the way to get this to work is to use "panels". I'm
working from memory here, but I think the procedure is to drop a splitter
on a form, then drop a panel on one side or the other of the splitter. The
"alignment" of this panel is then set to "alClient", which causes it to
take up all the space on one side or the other of the splitter. To get a
third "area", drop the splitter on the panel and another panel on one side
or the other of the new splitter. [as I said, I'm working from memory --
the procedure might be to drop the panel first, then the splitter -- I'm
not on my laptop where I can look up the simple project where I was "trying
this out"]
Drop a Panel (I'll call it Panel1) on an empty form. Set its Align
property to alLeft.
Drop a Splitter (Splitter1) on the form. It will line itself up against
the right edge of the panel.
Drop another Panel (Panel2) on the form. Set its Align property to
alClient.
Drop a Panel (Panel3) on Panel1. Set its Align property to alTop.
Drop a Splitter (Splitter2) on Panel1. Set its Align property to alTop.
Drop a Panel (Panel4) on Panel1. Set its Align property to ALClient.
Now put your DirList and anything that goes with it, labels or buttons
or something, on Panel3.
Put your FileList and other things on Panel4.
Put the other components on Panel2.
If the only thing that will be above Splitter2 will be your DirList,
then you can drop the DirList on Panel1, instead of Panel3. The same
thing goes for your FileList instead of Panel4.
Ok?
John
> In a nutshell, however, the way to get this to work is to use
> "panels". I'm working from memory here, but I think the procedure is
> to drop a splitter on a form, then drop a panel on one side or the
> other of the splitter. The "alignment" of this panel is then set to
> "alClient", which causes it to take up all the space on one side or
> the other of the splitter. To get a third "area", drop the splitter
> on the panel and another panel on one side or the other of the new
> splitter. [as I said, I'm working from memory -- the procedure might
> be to drop the panel first, then the splitter -- I'm not on my laptop
> where I can look up the simple project where I was "trying this out"]
Pretty close :-)
Drop a panel on the form, set the panel alignment to alLeft. Then drop
a splitter. Finally, drop another panel, right of the splitter, and set
alignment to alClient. Of course, to limit the are in which these work,
drop them on another panel, placed as needed.
--
Bill
"Syntactic sugar causes cancer of the semicolon" - Alan Perlis.
Posted with XanaNews Version 1.13.2.10
Ulrich Becker schrieb: