The class wxImagePanel (https://wiki.wxwidgets.org/An_image_panel #A simple image panel) works well for me.
My class name for wxImagePanel is ImagePanel
In a parent panel ImagePanelDyn
Code: Select all
ImagePanel *imagePanel = new ImagePanel(this,...
But if I do
Code: Select all
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
ImagePanel *imagePanel = new ImagePanel(this,...
sizer->Add(imagePanel, 0);
this->SetSizer(sizer);
Some tries like this->Layout();, sizer->SetSizeHints(this); give nothing.
With wxStaticBitmap, the image is displayed in the case of wxSizer. Not usable for me because it is ... static (mouse events ignored)
What'is my errors ?
Merci