The Delphi Bug List

Entry No.
576
VCL - Additional - ComCtrls - TToolbar
Toolbars lose width permanently, cutting off the buttons (even half a button!), when moved on a ControlBar which is too small to hold them when they are moved.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
N/AN/AN/AN/AN/AUnknownUnknownExistsExistsExistsFixedFixedFixedFixedN/A
Description
Reported by Matt Palmer
To reproduce:
  1. Drop a ControlBar on form.
  2. Place a toolbar on the ControlBar and add some buttons.
  3. Compile and run this simple application.
  4. Resize the form so that some of the buttons on the toolbar are no longer visible.
  5. Move the toolbar about on the controlbar.
  6. Your toolbar has now shrunk to the size it had when it was cut off by the resized form. Your buttons have vanished!
Solution / workaround
None. Bug in VCL code, but not sure whether it's in controlbar or toolbar.
User-contributed comments
Tobias Block
13 May 2001  05:12 PM GMT
This might be a workaround for this problem: Do not directly place the tToolbar on the tControlbar, but put it on a tPanel, which you place on the tToolbar. Then write a function to handle the panel's OnResize event. In this function you have to set "resize:=false".
Latest update of this entry: 2002-04-03

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.