Subject: | Wx::ToolBar Stretchable Spaces |
Date: | Sat, 27 Aug 2016 22:35:57 +0000 |
To: | bug-Wx [...] rt.cpan.org |
From: | Jonathan Barton <jdbarton [...] gmail.com> |
Hello,
Wx::ToolBar from Wx 0.9928 doesn't support either
InsertStretchableSpace($pos) or AddStretchableSpace().
I'm trying to add a throbber to a toolbar, and need that stretchable space
for the throbber to display on the right of the bar.
I edited Wx/XS/ToolBar.xs to add those two methods. I'm attaching the new
file to this email, as well as the diff:
174a175,181
Show quoted text
> wxToolBarToolBase*
> wxToolBarBase::AddStretchableSpace()
>
> wxToolBarToolBase*
> wxToolBarBase::InsertStretchableSpace(pos)
> size_t pos
>
Screenshot of a simple toolbar without the space:
https://screencloud.net/v/o3Ub
Screenshot of the same toolbar with the space (note right alignment):
https://screencloud.net/v/1yxM
Please let me know if there's somewhere else I should send this report.
Jon Barton
Message body is not shown because sender requested not to inline it.