View Full Version : toolbar that wraps when window width is too small rather than show overflow icon.

13 Feb 2011, 5:58 PM
I am interested in modifying toolbar so it wraps when window gets too small. I thought a possible way to do this would be:
- increasing the height of panel it is associated with by height of toolbar.
- Have items in buttongroup, and then set columns to appropriate value so they wrap down vertically.

Two issues.
1/ How do I detect when the toolbar would show the overflow icon without intervention.
2/ How do I calculate which items would be not show (so that I can set the value of columns in the button group appropriately.

I assume that doLayout call will fix the display after I have made the changes.