Página 1 de 1

nAlign property

Publicado: Jue Abr 30, 2009 5:08 pm
por Roberto
Hi,
May be I'm doing stupid questions (or my English is so poor that it can't
be understand) cause nobody answer me, but I still believe that it's the
only way to learn: asking.
Here is another one. Why I can't set the property nAlign of an object (and
get it working) if there is an object with nAlign already set to alClient?
For example:
obj1:nAlign := alTop
obj2:nAlign := alBottom
obj3:nAlign := alClient
it's ok, work, but
obj1:nAlign := alTop
obj2:nAlign := alClient
obj3:nAlign:= alBottom
don't, why?
Regards,

nAlign property

Publicado: Sab May 02, 2009 11:45 am
por jfgimenez
Roberto,
> Here is another one. Why I can't set the property nAlign of an object (and
> get it working) if there is an object with nAlign already set to alClient?
> For example:
>
> obj1:nAlign := alTop
> obj2:nAlign := alBottom
> obj3:nAlign := alClient
>
> it's ok, work, but
>
> obj1:nAlign := alTop
> obj2:nAlign := alClient
> obj3:nAlign:= alBottom
>
> don't, why?
Because the container space is filled upon controls are created. So, when a
control is 'alClient' aligned, it fills the whole container space, leaving
no more space for later controls.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info