Re:Second Post - Problems with TControlBars and TToolBars
Quote
Stuart wrote:
> Hi,
> I seem to be doing a lot of coding to get the ToolBars to do
> simple things, so I'm beginning to think I've done something
> dumb.
After some days of experimenting I have come to the conclusion
that both TControlBar and TCoolBar surface some serious glitches.
The ControlBar does not work anything near acceptable if you want
to resize the controls on the bands. Although in your case I see
hope: you may be able to do some band position fixing if you use
the 4 or 5 special controlbar events. OTOH I wanted to have two
bands with comboboxes and both boxes should be automatically re-
sized to fill all the space to the right border of the controlbar.
I managed to do that in code (after some trial and error and looking
into the VCL src) but then moving another band on top of this band
did not reduce the width of the enlarged band resulting in ugly
appearance, simply unusable.
The Coolbar is better with resizable bands. The problems are different
here: If you set FixedOrder to true the first band looses its sizing
grip (ok, that is only logical). But if you move the second band over
it you cannot move it away again (since the grip of the second band
is over the 'unmovable, invisible' grip of the first, I guess at least).
Or if you play with two bands, each with a combobox (edit control would
do as well probably), and position both in the same row, you will see
an animation: one box gets smaller the other bigger. No problem you say?
Well: this animation is very slow and flickers. And it "may" even occur
if you just move one band 'through' to another position and cross another
one which has a combo on it. You have to wait 1-2 seconds then until the
bands are done with their ugly and useless resize animation.
Sorry I digress. The point is however that you face some problems with
both bars and my research in VCL, events etc and this newsgroups did
not help. Live with it or drop them :( (I did the latter).
Regards,
WL