git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32423
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxArtBrowserDialog::OnSelectItem(wxListEvent &event)
{
void wxArtBrowserDialog::OnSelectItem(wxListEvent &event)
{
const wxChar *data = (const wxChar*)event.GetData();
wxBitmap bmp = wxArtProvider::GetBitmap(data, m_client);
const wxChar *data = (const wxChar*)event.GetData();
wxBitmap bmp = wxArtProvider::GetBitmap(data, m_client);
- m_canvas->SetBitmap(bmp);
m_canvas->SetSize(bmp.GetWidth(), bmp.GetHeight());
m_canvas->SetSize(bmp.GetWidth(), bmp.GetHeight());
+ m_canvas->SetBitmap(bmp);
+ Refresh();
}
void wxArtBrowserDialog::OnChooseClient(wxCommandEvent &event)
}
void wxArtBrowserDialog::OnChooseClient(wxCommandEvent &event)