changed choice to properly inherit from wxChoiceBase , added msg compatible calls to wxStaticBitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-03-04 12:46:30 +00:00
parent 9c7a49b57b
commit 56d4016a16
2 changed files with 45 additions and 10 deletions

View File

@@ -52,6 +52,20 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl
inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; }
// for compatibility with wxMSW
const wxIcon& GetIcon() const
{
// don't use wxDynamicCast, icons and bitmaps are really the same thing
// in wxGTK
return (const wxIcon &)m_messageBitmap;
}
// for compatibility with wxMSW
void SetIcon(const wxIcon& icon)
{
SetBitmap( icon );
}
// overriden base class virtuals
virtual bool AcceptsFocus() const { return FALSE; }
wxSize DoGetBestSize() const ;