support for separator (fixed width spacE)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-01-25 18:46:01 +00:00
parent bf7470fe14
commit 5769f801b4

View File

@@ -121,7 +121,12 @@ wxToolBarToolBase(
UIBarButtonItemStyle style = UIBarButtonItemStylePlain;
wxUIToolbar* toolbar = (wxUIToolbar*) tbar->GetHandle();
if ( bmpNormal.Ok() )
if ( id == wxID_SEPARATOR )
{
[bui initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
bui.width = 25.0f;
}
else if ( bmpNormal.Ok() )
{
[bui initWithImage:bmpNormal.GetUIImage() style:UIBarButtonItemStylePlain target:toolbar
action:@selector(clickedAction:)];