Refresh wxStaticBitmap and update its size in wxUniv SetBitmap()
Make wxUniv behave consistently with the other ports.
This commit is contained in:
@@ -67,6 +67,10 @@ bool wxStaticBitmap::Create(wxWindow *parent,
|
|||||||
void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
|
void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
|
||||||
{
|
{
|
||||||
m_bitmap = bitmap;
|
m_bitmap = bitmap;
|
||||||
|
|
||||||
|
InvalidateBestSize();
|
||||||
|
SetSize(GetBestSize());
|
||||||
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user