Search found 48 matches

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 ...