Thanks for the thoughts, doublemax. I'll investigate. I misspoke. We're on 3.1.3
The grey color is the underlying panel. The canvas completely disappears
Search found 58 matches
- Fri Jun 25, 2021 2:26 pm
- Forum: C++ Development
- Topic: wxGLCanvas disappearing?
- Replies: 3
- Views: 1653
- Fri Jun 25, 2021 1:59 pm
- Forum: C++ Development
- Topic: wxGLCanvas disappearing?
- Replies: 3
- Views: 1653
wxGLCanvas disappearing?
We've been using a wxGLCanvas successfully in our app for years but in the past couple days it occasionally disappears for one of our QC guys, leaving the grey panel background. I'm having trouble reproducing the bug. Any guesses as to why a wxGLCanvas would disappear? Windows 10, WX 3.0.5 (EDIT: WX...
- Mon Aug 03, 2020 11:22 am
- Forum: C++ Development
- Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
- Replies: 11
- Views: 1260
Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Turns out the issue was not related to WX at all. The error just happened to coincide with the the upgrade. The problem was related to another developer working with the COM. Apologies for relating a red herring.
- Tue Jul 07, 2020 10:44 am
- Forum: C++ Development
- Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
- Replies: 11
- Views: 1260
Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Interesting. Just put
at the bottom of my wxFrame constructor and it displayed as expected. Something further in my chain appears to be breaking things.
Code: Select all
wxDirDialog openDirDialog( this );
if( openDirDialog.ShowModal() == wxID_CANCEL ) return;
- Tue Jul 07, 2020 10:26 am
- Forum: C++ Development
- Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
- Replies: 11
- Views: 1260
Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
@PB, as I mentioned above, the parent is subclassed from a wxFrame. Of course the code is vanilla, which is why I'm scratching my head and turned to the community for thoughts. In the vanilla code, the wxDirDialog is given the wxFrame parent, but in our wxDirDialog the parent is NULL. Both do not di...
- Mon Jul 06, 2020 11:09 pm
- Forum: C++ Development
- Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
- Replies: 11
- Views: 1260
Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
MSW, Windows 10. I built the dialogs demo and it works fine there. It's broken in the two calls we make from the same wxFrame subclass. Our head of QC could repro the issue on his PC. I have a second monitor running and don't see the dialog there (was the first place I looked :) As a quick test, I c...
- Mon Jul 06, 2020 5:14 pm
- Forum: C++ Development
- Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
- Replies: 11
- Views: 1260
wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
We just upgraded from 3.1.1 to 3.1.3 and our wxDirDialog no longer appears after its ShowModel call and the app hangs. I stepped into the ShowModal() code, which took me into dirdlg.cpp. The line hr = fileDialog->Show(owner); is not returning. My guess is the dialog is rendered off-screen and proces...
- Thu Jun 25, 2020 2:10 pm
- Forum: C++ Development
- Topic: Initializing a wxChoice
- Replies: 4
- Views: 740
Re: Initializing a wxChoice
My bad. My original code worked as expected but further down the chain I was clearing the contents of the wxChoice. All good now.
@PB, thanks for confirming the code worked! Dislodged me from looking at this code block.
@PB, thanks for confirming the code worked! Dislodged me from looking at this code block.
- Thu Jun 25, 2020 12:51 pm
- Forum: C++ Development
- Topic: Initializing a wxChoice
- Replies: 4
- Views: 740
Re: Initializing a wxChoice
My environment is MSW, WX3.1.1, VS2017. I'm not shadowing my var. Looking into it now and will post if I learn anything.
- Wed Jun 24, 2020 3:02 pm
- Forum: C++ Development
- Topic: Initializing a wxChoice
- Replies: 4
- Views: 740
Initializing a wxChoice
The code below is in my wxChoice's parent-panel's constructor. I want to initialize the visible value with a "Select a map" message (currently its blank). wxArrayString m_CompositeMapChoices; m_CompositeMapChoices.Add( "Select a map" ); m_CompositeMapChoice = new wxChoice( m_Base...
- Wed Apr 22, 2020 2:55 pm
- Forum: C++ Development
- Topic: Adding more than one check box per item of wxListCtrl?
- Replies: 5
- Views: 844
Re: Adding more than one check box per item of wxListCtrl?
Thanks! Worked great. I have one more hurdle that has me scratching my head. I need to react to the state of the check boxes changing, so added an OnMouseEvent to my classes and what I thought was the appropriate macros, but my OnMouseEvent callback isn't getting called? class MyPanel : public wxPan...
- Tue Apr 21, 2020 8:05 pm
- Forum: C++ Development
- Topic: Adding more than one check box per item of wxListCtrl?
- Replies: 5
- Views: 844
Re: Adding more than one check box per item of wxListCtrl?
Ah. Thanks! wxDaveViewListCtrl looks like it will do the trick. I have a follow-up question if you don't mind. So far I have the code and UI below, but my wxDataViewListCtrl doesn't expand, so will only display one item at a time? I can scroll to see the other but need it to expand to fill the whole...
- Tue Apr 21, 2020 1:31 pm
- Forum: C++ Development
- Topic: Adding more than one check box per item of wxListCtrl?
- Replies: 5
- Views: 844
Adding more than one check box per item of wxListCtrl?
I just experimented with wxListCtrl::EnableCheckBoxes, which gave me this wxListCtrl0.JPG But what I need is this wxListCtrl1.JPG Looking through the documentation, it doesn't look like wxListCtrl supports more than one checkbox per item? Before discovering EnableCheckBoxes, I had built wxCheckedLis...
- Fri Jan 04, 2019 5:15 pm
- Forum: C++ Development
- Topic: How to set the process name?
- Replies: 3
- Views: 818
Re: How to set the process name?
Thanks to all. Turned out being set incorrectly in a .rc file? Not sure how that works but correctly in the file and everything's good now.
- Fri Jan 04, 2019 2:29 pm
- Forum: C++ Development
- Topic: How to set the process name?
- Replies: 3
- Views: 818
How to set the process name?
My app uses a 3rd-party SDK and I just realized the process name visible in Windows Task Manager is the name of the 3rd-party SDK. That's not in my code anywhere, so guessing that the vendor put it in? Regardless, is setting the process name something I can do through wxWidgets? (I'm using wx 3.1 fo...