implement images support for wxButton under XP and later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,4 +44,16 @@ wxWindow *wxButtonBase::SetDefault()
|
||||
return tlw->SetDefaultItem(this);
|
||||
}
|
||||
|
||||
void wxButtonBase::SetBitmapPosition(wxDirection dir)
|
||||
{
|
||||
wxASSERT_MSG( !(dir & ~wxDIRECTION_MASK), "non-direction flag used" );
|
||||
wxASSERT_MSG( !!(dir & wxLEFT) +
|
||||
!!(dir & wxRIGHT) +
|
||||
!!(dir & wxTOP) +
|
||||
!!(dir & wxBOTTOM) == 1,
|
||||
"exactly one direction flag must be set" );
|
||||
|
||||
DoSetBitmapPosition(dir);
|
||||
|
||||
}
|
||||
#endif // wxUSE_BUTTON
|
||||
|
||||
Reference in New Issue
Block a user