Search found 4 matches
- Mon Oct 31, 2011 7:48 am
- Forum: C++ Development
- Topic: Loop through all wxFrames (and wxDialogs)?
- Replies: 2
- Views: 1985
Re: Loop through all wxFrames (and wxDialogs)?
Thank you, that solved my problem. Now I can implement my own way of finding top level windows of a certain kind.
- Sat Oct 29, 2011 10:00 pm
- Forum: C++ Development
- Topic: Loop through all wxFrames (and wxDialogs)?
- Replies: 2
- Views: 1985
Loop through all wxFrames (and wxDialogs)?
I wonder how can I loop through all wxFrames and wxDialogs in my application? I want to do this in order to find windows by their (base) class type and when the window is found possible also examine some of its public properties. Eg. figure out if a property window for a certain object is open or no...
- Sat Sep 17, 2011 8:12 am
- Forum: C++ Development
- Topic: Setting wxBitmap of a wxStaticImage gives access violation
- Replies: 2
- Views: 947
Re: Setting wxBitmap of a wxStaticImage gives access violati
Thanks, that solved my problem. For reference, the working code: wxc::AboutDialog::AboutDialog(const wxString& title, const wxPoint& pos, const wxSize& size) : wxDialog(0, wxID_ANY, title, pos, size) { wxBoxSizer* vertical_box = new wxBoxSizer(wxVERTICAL); wxBitmap logo_bitmap = wxBitmap...
- Fri Sep 16, 2011 9:05 pm
- Forum: C++ Development
- Topic: Setting wxBitmap of a wxStaticImage gives access violation
- Replies: 2
- Views: 947
Setting wxBitmap of a wxStaticImage gives access violation
I've run into a problem while trying to display a image file (in an about dialog). When doing wxStaticImage::SetBitmap(..), I get an access violation. What I have done is: Stepped through the wxWidgets code with a debugger to see that the bitmap is loaded (and get the width/height from file) In the ...