Toolbar with multiple rows

ToolBarBase class provides a SetRows(nRows) function to allow a toolbar to have multiple rows. For instance,

   toolbar.SetRows(2)

would give the toolbar two rows (of controls). How then is a control added (specifically) to the nth row?

Thanks.
Brian

Brian Wolf wrote:

ToolBarBase class provides a SetRows(nRows) function to allow a toolbar to have multiple rows. For instance,

  toolbar.SetRows(2)

would give the toolbar two rows (of controls). How then is a control added (specifically) to the nth row?

I think that SetRows is just used to indicate how to handle overflow. IOW whether the items will wrap to the next row or will be truncated, and this may not be supported on all platforms. If you want to have items on a specific row then you'll need to have multiple toolbars. You'll also have to manage the layout of the extra toolbars yourself as the frame can only do one.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!