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/A | N/A | N/A | N/A | N/A | Unknown | Unknown | Exists | Exists | Exists | Fixed | Fixed | Fixed | Fixed | N/A |
|
|
|
Description | |
Reported by Matt Palmer
To reproduce:
- Drop a ControlBar on form.
- Place a toolbar on the ControlBar and add some buttons.
- Compile and run this simple application.
- Resize the form so that some of the buttons on the toolbar are no longer
visible.
- Move the toolbar about on the controlbar.
- 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".
|
|