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:
@@ -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:)];
|
||||
|
Reference in New Issue
Block a user