My application (Microsoft Windows only) is using a wxToolBar with wxTB_HORIZONTAL|wxTB_TEXT|wxTB_HORZ_LAYOUT flags set. All it's buttons/tools have the same width, which is based on the longest text.
I'd like to have buttons with different widths, depending on the tool label's length, just like the Windows native toolbar buttons (created with the BTNS_AUTOSIZE style).
Is there any way to get wxToolBar with buttons that have dynamically calculated width?