Search found 8 matches

by widgetMaster696969
Mon Jul 29, 2019 6:16 am
Forum: C++ Development
Topic: wxButton->Disable(); throws read access violation exception
Replies: 9
Views: 1894

Re: wxButton->Disable(); throws read access violation exception

This is incredibly embarrassing, but I see that the buttonSettings value accessed by the call to disable was one that I had duplicately declared in another part of my program, thus causing the crash. Unfortunately, now the call to buttonSettings->Disable(); works without throwing exceptions, but it ...
by widgetMaster696969
Fri Jul 26, 2019 9:46 am
Forum: C++ Development
Topic: wxButton->Disable(); throws read access violation exception
Replies: 9
Views: 1894

Re: wxButton->Disable(); throws read access violation exception

Here is the createButton method: wxBitmapButton* DevicePanel::createButton(wxWindow* parent, wxString res, wxString text, int id) { wxBitmap bmp(104, 32); wxMemoryDC dc; dc.SelectObject(bmp); dc.SetBackground(*wxLIGHT_GREY_BRUSH); dc.Clear(); dc.SetTextForeground(*wxBLACK); dc.DrawLabel(wxStripMenuC...
by widgetMaster696969
Fri Jul 26, 2019 9:13 am
Forum: C++ Development
Topic: wxButton->Disable(); throws read access violation exception
Replies: 9
Views: 1894

Re: wxButton->Disable(); throws read access violation exception

I've edited it again to show where the panels are declared. They are all initialized and drawn by the Init() function.
by widgetMaster696969
Fri Jul 26, 2019 8:48 am
Forum: C++ Development
Topic: wxButton->Disable(); throws read access violation exception
Replies: 9
Views: 1894

Re: wxButton->Disable(); throws read access violation exception

Oh sorry I actually copied old code which resulted in that line. I declare the button as a member of the class in the .h file, so that I can access it everywhere in the .cpp file. I'll edit the post. Thanks for catching that.
by widgetMaster696969
Fri Jul 26, 2019 7:57 am
Forum: C++ Development
Topic: wxButton->Disable(); throws read access violation exception
Replies: 9
Views: 1894

wxButton->Disable(); throws read access violation exception

Hi everyone, I'm currently working on a streaming application that necessitates the use of certain buttons below where the stream appears. While the stream is buffering I would like to disable certain buttons. However, when I try to disable the buttons, Visual Studios throws an exception in window.h...
by widgetMaster696969
Thu Jul 25, 2019 2:45 am
Forum: C++ Development
Topic: wxPanel re-sizing issues
Replies: 7
Views: 1742

Re: wxPanel re-sizing issues

And thanks for the prompt reply! It works just the way I want it to. I don't know how I missed these flags in the documentation. Thanks again.
by widgetMaster696969
Thu Jul 25, 2019 2:25 am
Forum: C++ Development
Topic: wxPanel re-sizing issues
Replies: 7
Views: 1742

Re: wxPanel re-sizing issues

Sorry about that, I realized after posting that there was way too much extraneous code, but I tried to edit the post and it wouldn't let me!
by widgetMaster696969
Wed Jul 24, 2019 7:49 am
Forum: C++ Development
Topic: wxPanel re-sizing issues
Replies: 7
Views: 1742

wxPanel re-sizing issues

Hi everyone, I am currently working on a UI with wxWidgets. I'm constructing a space in the application to display a live stream video, with a big wxPanel "panelContent" that itself contains two smaller wxPanels: one to display the actual stream, "panelStream", and the other, sma...