tags:

views:

348

answers:

1

Is it possible to align the CoolBands to the left side of the CoolBar? Means when the CoolBar (Form) is resized and the CoolBands move to the row below, the Band should be aligned to the left side of the Bar (instead to the right). Similar the menu behaviour, when the items doesn't fit into one row anymore.

Furthmore is it possible to save the adjustment of the Bands?

A: 
Cobus Kruger
AutoSize and MinWidth is already set and it wraps the Bands accordingly. But when the new row begins, the Band in the new row is then aligned to the right side. That looks a bit odd.
I don't see that. The band fills the entire row for me. And if I set a constraint on the control on the band, the band shifts left. Even when setting BiDi mode to right-to-left, I cannot get it to hang right.Perhaps you can tell us more about settings on the bands, coolbar and form?I'm running Window XP SP 3. Perhaps a Windows version thing?Or perhaps there is an empty band that is taking
Cobus Kruger
Also, are you happy with my answer on restoring the state?
Cobus Kruger
Thanks, for your answer. I thought there would be an easier way to save/load the state :(Regarding the CoolBand alignment. When the band moves to the next row. The alignemnt is ok (left), but the last Band in the current row, moves then to the right side (right alignment). That makes me wondering.BTW: Now I use the TToolBar control. That bar alignes the controls as expected when the form is resized.Thanks
OK, I misunderstood the alignment issue then. The Coolbar AFAIK tries to always fill the width of the control, so your last band stretches to take up space. I tested with edit boxes on my bands and they always stretched to make up the space.Adding MaxWidth constraints to the edit boxes I get your problem. My advice would be to set your MinWidth to whatever you need but to let the CoolBar determine the max width.
Cobus Kruger