Página 1 de 1

REBAR question

Publicado: Mié Jun 27, 2007 5:36 pm
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)Â

REBAR question

Publicado: Mié Jun 27, 2007 8:06 pm
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

REBAR question

Publicado: Mié Jun 27, 2007 8:06 pm
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

REBAR question

Publicado: Sab Jun 30, 2007 3:42 am
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
--

REBAR question

Publicado: Sab Jun 30, 2007 3:42 am
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
--

REBAR question

Publicado: Sab Jun 30, 2007 6:37 am
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
>
>

REBAR question

Publicado: Sab Jun 30, 2007 6:37 am
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
>
>