Re: SpyBot S&D written in Delphi



At 19:01:12, 30.06.2005, Craig Stuntz [TeamB] wrote:

> I've never used Anchors at all because I find that Align is much more
> reliable and can do similar things.

I use Anchors a lot. They're nice if you don't want your components to
cover all existing space, but should resize with their parent (or keep
constant distance to the borders).

If you have this simple scenario (please use fixed width font):

+------------------------------------------------+
| |
| +------------------------------+ +-----------+ |
| | Edit1 | | Button1 | |
| +------------------------------+ +-----------+ |
| |
| +------------------------------+ |
| | Listbox1 | |
| | | |
| | | |
| | | |
| +------------------------------+ |
| |
+------------------------------------------------+

I set Edit1 to Left,Top,Right, Button1 to Top,Right and ListBox1 to
Left,Top,Right,Bottom. That is not so easy to do with Align, unless you
use a range of panels to cover the empty spaces.
--
Rudy Velthuis [TeamB] http://velthuis.homepage.t-online.de

"Death is one of the few things that can be done as easily lying down.
The difference between sex and death is that with death you can do it
alone and no one is going to make fun of you." -- Woody Allen.
.


Quantcast