In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

nAlign Property - Part II

Xailer English public forum
Responder
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

nAlign Property - Part II

Mensaje por Roberto »

Hi, again.
Please, take a look at this code:
FUNCTION Test()
LOCAL oForm, oBottom, oClient
oForm := TForm():Create()
WITH OBJECT oClient := TGroupBox():Create(oForm)
:cText := "Client Control"
:nAlign := alClient
END
WITH OBJECT oBottom := TGroupBox():Create(oForm)
:cText := "Top control"
:nAlign := alBottom
END
oForm:showModal()
RETURN NIL
Why it does not work? The oClient fills the entire client area of oForm and
oBottom does not appear. :o(
I can get it working if I change the creation order but there are situations
where I don't know what object will be created first.
any help?
tks, again and again.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9442
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

nAlign Property - Part II

Mensaje por ignacio »

Roberto,
The control with the alCLIENT property should be created the last.
Regards,
"roberto" <roberto@top2.com.br> escribió en el mensaje
news:4654f2ac$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Hi, again.
>
> Please, take a look at this code:
>
> FUNCTION Test()
> LOCAL oForm, oBottom, oClient
>
> oForm := TForm():Create()
>
> WITH OBJECT oClient := TGroupBox():Create(oForm)
> :cText := "Client Control"
> :nAlign := alClient
> END
>
> WITH OBJECT oBottom := TGroupBox():Create(oForm)
> :cText := "Top control"
> :nAlign := alBottom
> END
>
> oForm:showModal()
>
> RETURN NIL
>
> Why it does not work? The oClient fills the entire client area of oForm
> and
> oBottom does not appear. :o(
> I can get it working if I change the creation order but there are
> situations
> where I don't know what object will be created first.
>
> any help?
>
> tks, again and again.
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder