Search found 56 matches

by buttonsrtoys
Mon Aug 03, 2020 11:22 am
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 11
Views: 366

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.
by buttonsrtoys
Tue Jul 07, 2020 10:44 am
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 11
Views: 366

Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade

Interesting. Just put

Code: Select all

	wxDirDialog openDirDialog( this );
	if( openDirDialog.ShowModal() == wxID_CANCEL ) return;
	
at the bottom of my wxFrame constructor and it displayed as expected. Something further in my chain appears to be breaking things.
by buttonsrtoys
Tue Jul 07, 2020 10:26 am
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 11
Views: 366

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...
by buttonsrtoys
Mon Jul 06, 2020 11:09 pm
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 11
Views: 366

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...
by buttonsrtoys
Mon Jul 06, 2020 5:14 pm
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 11
Views: 366

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...
by buttonsrtoys
Thu Jun 25, 2020 2:10 pm
Forum: C++ Development
Topic: Initializing a wxChoice
Replies: 4
Views: 248

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.
by buttonsrtoys
Thu Jun 25, 2020 12:51 pm
Forum: C++ Development
Topic: Initializing a wxChoice
Replies: 4
Views: 248

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.
by buttonsrtoys
Wed Jun 24, 2020 3:02 pm
Forum: C++ Development
Topic: Initializing a wxChoice
Replies: 4
Views: 248

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_BaseMapPanel, wxID_ANY, ...
by buttonsrtoys
Wed Apr 22, 2020 2:55 pm
Forum: C++ Development
Topic: Adding more than one check box per item of wxListCtrl?
Replies: 5
Views: 312

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...
by buttonsrtoys
Tue Apr 21, 2020 8:05 pm
Forum: C++ Development
Topic: Adding more than one check box per item of wxListCtrl?
Replies: 5
Views: 312

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...
by buttonsrtoys
Tue Apr 21, 2020 1:31 pm
Forum: C++ Development
Topic: Adding more than one check box per item of wxListCtrl?
Replies: 5
Views: 312

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...
by buttonsrtoys
Fri Jan 04, 2019 5:15 pm
Forum: C++ Development
Topic: How to set the process name?
Replies: 3
Views: 443

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.
by buttonsrtoys
Fri Jan 04, 2019 2:29 pm
Forum: C++ Development
Topic: How to set the process name?
Replies: 3
Views: 443

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...
by buttonsrtoys
Thu Oct 11, 2018 12:41 pm
Forum: C++ Development
Topic: SOLVED: wxImage.LoadFile
Replies: 2
Views: 1655

Re: SOLVED: wxImage.LoadFile

+1. Solved my problem, too. Thanks for posting sol'n
by buttonsrtoys
Fri Aug 03, 2018 7:21 pm
Forum: C++ Development
Topic: How to code for checking item in wxDataViewListCtrl on its text selection?
Replies: 2
Views: 381

Re: How to code for checking item in wxDataViewListCtrl on its text selection?

Windows 10, Wx 3.1.1

I thought of setting/checking a flag but unfortunately when the checkbox is checked, the selection handler is called before the item-changed handler, so, unless I'm missing something, using a flag wouldn't work.