Search found 45 matches

by buttonsrtoys
Fri Jan 04, 2019 5:15 pm
Forum: C++ Development
Topic: How to set the process name?
Replies: 3
Views: 202

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: 202

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: 1136

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: 213

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.
by buttonsrtoys
Fri Aug 03, 2018 5:01 pm
Forum: C++ Development
Topic: How to code for checking item in wxDataViewListCtrl on its text selection?
Replies: 2
Views: 213

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

I have a wxDataViewListCtrl and want to code the behavior where a checkbox gets checked when its corresponding text is selected. I have a handler that's called when the user selects the text of an item (on EVT_DATAVIEW_SELECTION_CHANGED) where I SetValue of the row to true. I also have a handler tha...
by buttonsrtoys
Mon Jul 23, 2018 6:55 pm
Forum: C++ Development
Topic: How to change style of wxTreeListCtrl collapsers?
Replies: 9
Views: 636

Re: How to change style of wxTreeListCtrl collapsers?

I'm OK with the arrows (>,V) instead of the boxes ([+],[-]). I just need to fix the mangling. (All the machines are Windows 10).

I'll post my code, but there's a fair amount of logic intermixed. I'll trim it down and post.
by buttonsrtoys
Mon Jul 23, 2018 12:06 pm
Forum: C++ Development
Topic: How to change style of wxTreeListCtrl collapsers?
Replies: 9
Views: 636

Re: How to change style of wxTreeListCtrl collapsers?

Thanks for the thoughts, guys. On one-eye's suggestion, I built one of the samples (samples/treelist) and below is the result. It has the arrows (instead of the [+] and [-]) and the down arrow is darker then the right arrow (to my eye) though not squished like what I'm seeing in my app. wxTreeListCt...
by buttonsrtoys
Fri Jul 20, 2018 6:18 pm
Forum: C++ Development
Topic: How to change style of wxTreeListCtrl collapsers?
Replies: 9
Views: 636

Re: How to change style of wxTreeListCtrl collapsers?

Sorry. Wx 3.1.1, Windows 10.
by buttonsrtoys
Fri Jul 20, 2018 5:16 pm
Forum: C++ Development
Topic: How to change style of wxTreeListCtrl collapsers?
Replies: 9
Views: 636

How to change style of wxTreeListCtrl collapsers?

Don't know the term for "collapsers" but I'm referring to these things: wxTreeListCtrl.JPG They're not displaying well for me. In the image, the ">" is lighter and proportionately different than the darker "v". Also, on one of our machines, it appears a bit mangled: wxTreeListCtrl2.JPG I played with...
by buttonsrtoys
Tue Jun 26, 2018 3:05 pm
Forum: C++ Development
Topic: Issue calling wxWindowBase::Hide() before full initialization?
Replies: 3
Views: 305

Re: Issue calling wxWindowBase::Hide() before full initialization?

Yes! Thanks doublemax. Resizing does restore the widgets. I added Layout() as you suggested and everything works great now.
by buttonsrtoys
Mon Jun 25, 2018 5:47 pm
Forum: C++ Development
Topic: Issue calling wxWindowBase::Hide() before full initialization?
Replies: 3
Views: 305

Re: Issue calling wxWindowBase::Hide() before full initialization?

The order of my screengrabs is inverted. The one with the tiny white square is what I get when I call Hide() before Wx is fully initialized(?)
by buttonsrtoys
Mon Jun 25, 2018 1:28 pm
Forum: C++ Development
Topic: Issue calling wxWindowBase::Hide() before full initialization?
Replies: 3
Views: 305

Issue calling wxWindowBase::Hide() before full initialization?

I have a wxPanel with a wxComboBox and wxTreeListCtrl that render nicely like this: HideMapFeatures0.JPG And I can use their wxWindowBase::Hide() function to hide them, like this: HideMapFeatures1.JPG The problem I'm having is during my apps startup, if I call ::Hide() too soon, subsequent calls to ...
by buttonsrtoys
Mon Jun 18, 2018 7:34 pm
Forum: C++ Development
Topic: wxComboBox::Clear() preventing selection from sticking?
Replies: 2
Views: 243

Re: wxComboBox::Clear() preventing selection from sticking?

doublemax, thanks for the thoughts. It wouldn't surprise me if I'm calling something wrong as you say but am really just using the functions I mentioned in my OP, though maybe not in order? I did find a workaround that suits my needs. Rather than using ::SetValue(..) to update the combobox, I find t...
by buttonsrtoys
Mon Jun 18, 2018 5:58 pm
Forum: C++ Development
Topic: wxComboBox::Clear() preventing selection from sticking?
Replies: 2
Views: 243

wxComboBox::Clear() preventing selection from sticking?

Wx 3.1.1, Windows 10, I have a wxComboBox that I instantiate with m_comboBoxFilename = new wxComboBox(this, wxID_ANY, wxT("Settings"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0); It works fine and I can populate the list with wxComboBox::Append(..) and set the displayed value with wxComboBox::Set...
by buttonsrtoys
Thu Jun 14, 2018 1:20 pm
Forum: C++ Development
Topic: wxDataViewColumn with more than one wxDataViewChoiceRenderer?
Replies: 10
Views: 589

Re: wxDataViewColumn with more than one wxDataViewChoiceRenderer?

Thanks Manolo and doublemax! Much appreciated