Página 1 de 1

nAlign property

Publicado: Mar Feb 28, 2012 1:39 am
por Roberto
Hi,
I have a form with two controls. The nAlign properties are set to alClient and alRight respectively, but just the first one is shown. It works if I change the order, but I don't want this behavior, ie, the first control MUST be client aligned.
Is there a way to solve it?
In VB there are functions called bringtofront and sendtoback.

nAlign property

Publicado: Mar Feb 28, 2012 10:08 am
por ignacio
Roberto escribió el mar, 28 febrero 2012 01:39Hi,
I have a form with two controls. The nAlign properties are set to alClient and alRight respectively, but just the first one is shown. It works if I change the order, but I don't want this behavior, ie, the first control MUST be client aligned.
Is there a way to solve it?
In VB there are functions called bringtofront and sendtoback.
Hello,
You just need to change its order creation using the arrow buttons on the object inspector.

Regards,


Attached files

nAlign property

Publicado: Mar Feb 28, 2012 3:04 pm
por Roberto
tks, but it is not the problem.
I need to create the controls at runtime.

nAlign property

Publicado: Mié Feb 29, 2012 10:39 am
por ignacio
Roberto escribió el mar, 28 febrero 2012 15:04tks, but it is not the problem.
I need to create the controls at runtime.
Well, then create last the control with the nAlign property set to alCLIENT.
BTW, I suggest you take a look to the sample of Splitters. I hope it can give you some clues to understand how the alignment system works.
Regards,

nAlign property

Publicado: Mié Feb 29, 2012 2:27 pm
por Roberto
Tks for ur answer, but...
I already know how it works, it's not the problem. what I am asking is if there is a way to modify its behavior, ie, if I can create first the control with nAlign = alClient and then the others like I can do in VB.

nAlign property

Publicado: Mié Feb 29, 2012 4:41 pm
por ignacio
Roberto escribió el mié, 29 febrero 2012 14:27Tks for ur answer, but...
I already know how it works, it's not the problem. what I am asking is if there is a way to modify its behavior, ie, if I can create first the control with nAlign = alClient and then the others like I can do in VB.
NO, I'm afraid it does NOT work on the same way as VB. It has its own mechanism.
Regards,