Hi,
on a NoteBook panel there are some static bitmaps.
This panel is not visible if an object is selected on the first NoteBook page.
After selecting an object, the static bitmaps become new assigned bitmaps by calling its function SetBitmap.
If the page is selected with the static bitmaps, they are not updated and showing still the bitmaps of the previous selected object.
The wxStaticBitmap is only updated if its visible, and won't update if its in the background.
Any work arounds for this?
wxStaticBitmap does not refresh Topic is solved
Re: wxStaticBitmap does not refresh
Hi,
I did found a work around:
I did found a work around:
Code: Select all
void LocDialog::OnNotebookPageChanged( wxNotebookEvent& event )
{
// Work around for updating the function bitmaps
if( event.GetSelection() == 4 )
initFunctions();
event.Skip();
}
Re: wxStaticBitmap does not refresh
Just another Work Around for Linux GTK.
wxNullBitmap does not clear the previous bitmap in wxStaticBitmap.
To clear the wxStaticBitmap under Linux GTK I created an empty bitmap for this purpose which works also under Windows and macOS.
wxNullBitmap does not clear the previous bitmap in wxStaticBitmap.
To clear the wxStaticBitmap under Linux GTK I created an empty bitmap for this purpose which works also under Windows and macOS.