refersh after changing the image (patch 1151163)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1813c06b6b
commit
cc893cea58
@ -183,10 +183,12 @@ void wxArtBrowserDialog::SetArtClient(const wxArtClient& client)
|
||||
|
||||
void wxArtBrowserDialog::OnSelectItem(wxListEvent &event)
|
||||
{
|
||||
|
||||
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->SetBitmap(bmp);
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void wxArtBrowserDialog::OnChooseClient(wxCommandEvent &event)
|
||||
|
Loading…
Reference in New Issue
Block a user