Hi all,
Im new in wxWidgets programming and have two questions. My IDE is Code::Blocks.
Im creating a new wxWidgets Project and add a wxStaticBitmap. Now i want to Change the Bitmap with
StaticBitmap1->SetBitmap(wxImage("/home/../xy.png"));
1. My first Problem is that: class GUIFrame: {privat: wxStaticBitmap* StaticBitmap1; }
so i cant SetBitmap() out of the class GUIFrame
2. My second questions is: where is the int main(void) { } function in the created project?
I would be happy if some one could help me.
Simon
GUI private member in class
Re: GUI private member in class
This makes StaticBitmap1 to be used only inside GUIFrame class.class GUIFrame: {privat: wxStaticBitmap* StaticBitmap1; }
If you want to set/change the bitmap then you need to call some public function in GUIFrame that does that job.
It's done by the macro wxIMPLEMENT_APP() which you surely use in your app.where is the int main(void) { } function in the created project?