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.

REBAR question

Xailer professional forum in English
Responder
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

REBAR question

Mensaje por Ingo »


e.g a TRebar with one toolbar, one editcontrol and one label:
How to do that the editcontrol and the label are keeping their width when
the width of the form will be changed at runtime?
With other words: how can I fix the width of both controls?
Thanks for helping
Ingo
--

Attached files testrebar.zip (1.6 KB)Â
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

REBAR question

Mensaje por jfgimenez »

Ingo,
> e.g a TRebar with one toolbar, one editcontrol and one label:
>
> How to do that the editcontrol and the label are keeping their width when
> the width of the form will be changed at runtime?
>
> With other words: how can I fix the width of both controls?
You may try to play with rebarband's lFixedSize property, thought I'm not
sure if it will work with more than one 'fixed' band.
Sorry for not being more precise, but this control is window's native and
its behaviour is out of our control.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

REBAR question

Mensaje por jfgimenez »

Ingo,
> e.g a TRebar with one toolbar, one editcontrol and one label:
>
> How to do that the editcontrol and the label are keeping their width when
> the width of the form will be changed at runtime?
>
> With other words: how can I fix the width of both controls?
You may try to play with rebarband's lFixedSize property, thought I'm not
sure if it will work with more than one 'fixed' band.
Sorry for not being more precise, but this control is window's native and
its behaviour is out of our control.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Rene Flores
Mensajes: 620
Registrado: Jue Mar 23, 2006 2:39 am

REBAR question

Mensaje por Rene Flores »

Ingo:
He he he..... there's a trick !!!!!
From the "special effects departament" here's the secret:
1) Drop a Rebar in your form
2) Drop a BUTTONBAR in your form
So far so goood, here comes the magic:
3) Drop a BEVEL into the REBAR (check this out: BEVEL INTO REBAR), set
the Bevel width to whatever you want.
4) Drop your favorite controls INSIDE THE BEVEL NOT IN THE REBAR
5) Drop as many bevels in the Rebar as you want, drop as many controls
in the bevels as you want.
I've enclosed your sample modified.
Regards
Rene Flores
http://www.ciber-tec.com
escribió:
> e.g a TRebar with one toolbar, one editcontrol and one label:
>
> How to do that the editcontrol and the label are keeping their width when
> the width of the form will be changed at runtime?
>
> With other words: how can I fix the width of both controls?
>
> Thanks for helping
>
> Ingo
--
Rene Flores
Mensajes: 620
Registrado: Jue Mar 23, 2006 2:39 am

REBAR question

Mensaje por Rene Flores »

Ingo:
He he he..... there's a trick !!!!!
From the "special effects departament" here's the secret:
1) Drop a Rebar in your form
2) Drop a BUTTONBAR in your form
So far so goood, here comes the magic:
3) Drop a BEVEL into the REBAR (check this out: BEVEL INTO REBAR), set
the Bevel width to whatever you want.
4) Drop your favorite controls INSIDE THE BEVEL NOT IN THE REBAR
5) Drop as many bevels in the Rebar as you want, drop as many controls
in the bevels as you want.
I've enclosed your sample modified.
Regards
Rene Flores
http://www.ciber-tec.com
escribió:
> e.g a TRebar with one toolbar, one editcontrol and one label:
>
> How to do that the editcontrol and the label are keeping their width when
> the width of the form will be changed at runtime?
>
> With other words: how can I fix the width of both controls?
>
> Thanks for helping
>
> Ingo
--
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

REBAR question

Mensaje por Ingo »

Rene,
you're great - thank you very much. That's the solution!
Regards
Ingo
Rene Flores <"rflores[nospam]"@ciber-tec.com> wrote:
>
>Ingo:
>
>He he he..... there's a trick !!!!!
>
> From the "special effects departament" here's the secret:
>
>1) Drop a Rebar in your form
>2) Drop a BUTTONBAR in your form
>
>So far so goood, here comes the magic:
>
>3) Drop a BEVEL into the REBAR (check this out: BEVEL INTO REBAR), set
>the Bevel width to whatever you want.
>4) Drop your favorite controls INSIDE THE BEVEL NOT IN THE REBAR
>
>5) Drop as many bevels in the Rebar as you want, drop as many controls
>in the bevels as you want.
>
>I've enclosed your sample modified.
>
>Regards
>
>Rene Flores
>http://www.ciber-tec.com
>
>
>
>
>
> escribió:
>> e.g a TRebar with one toolbar, one editcontrol and one label:
>>
>> How to do that the editcontrol and the label are keeping their width when
>> the width of the form will be changed at runtime?
>>
>> With other words: how can I fix the width of both controls?
>>
>> Thanks for helping
>>
>> Ingo
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

REBAR question

Mensaje por Ingo »

Rene,
you're great - thank you very much. That's the solution!
Regards
Ingo
Rene Flores <"rflores[nospam]"@ciber-tec.com> wrote:
>
>Ingo:
>
>He he he..... there's a trick !!!!!
>
> From the "special effects departament" here's the secret:
>
>1) Drop a Rebar in your form
>2) Drop a BUTTONBAR in your form
>
>So far so goood, here comes the magic:
>
>3) Drop a BEVEL into the REBAR (check this out: BEVEL INTO REBAR), set
>the Bevel width to whatever you want.
>4) Drop your favorite controls INSIDE THE BEVEL NOT IN THE REBAR
>
>5) Drop as many bevels in the Rebar as you want, drop as many controls
>in the bevels as you want.
>
>I've enclosed your sample modified.
>
>Regards
>
>Rene Flores
>http://www.ciber-tec.com
>
>
>
>
>
> escribió:
>> e.g a TRebar with one toolbar, one editcontrol and one label:
>>
>> How to do that the editcontrol and the label are keeping their width when
>> the width of the form will be changed at runtime?
>>
>> With other words: how can I fix the width of both controls?
>>
>> Thanks for helping
>>
>> Ingo
>
>
Responder