After trying to get clever with a GUI design, I wanted to use TCoolBar so I could have some bands in there and drop in controls at runtime. Basically a flexible tool bar.. etc
What I discovered was if you don't have any controls yet on the band and you lift click on it you'll get a crash.
So to show what I mean.
Drop a TCoolbar on the form, create one BAND, leave it empty by not assigning any control to it for the events. Run the project and click on the divider of the band that has no control in it.
You will get a GetPreferrredSize crash..
There is no events that can be queried to avoid this..
The problem is when I was dynamically changing the controls I would randomly hit the band divider while moving around on the form and crash it..
I guess this should be corrected.. what do you think ?