wxDataViewListCtrl on click item action not executing.

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
apoorv569
Earned some good credits
Earned some good credits
Posts: 133
Joined: Tue Oct 20, 2020 3:35 pm

Re: wxDataViewListCtrl on click item action not executing.

Post by apoorv569 » Wed Jan 20, 2021 11:36 am

doublemax wrote:
Wed Jan 20, 2021 11:13 am
Try wxLogDebug
wxLogDebug works thanks! I guess this solves the problem :lol: #-o

apoorv569
Earned some good credits
Earned some good credits
Posts: 133
Joined: Tue Oct 20, 2020 3:35 pm

Re: wxDataViewListCtrl on click item action not executing.

Post by apoorv569 » Wed Jan 20, 2021 11:38 am

PB wrote:
Wed Jan 20, 2021 11:27 am
Or, if wxLogDebug() output is consumed by the debugger and may not be shown (e.g., gdb on MSW), one can try good old wxPrintf(). However, this probably won't be shown on MSW.
I'm on Linux, wxLogDebug is printing fine to console, so I suppose this fixes my problem, seeing how everything was just a std::cout thing :P

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4870
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxDataViewListCtrl on click item action not executing.

Post by ONEEYEMAN » Wed Jan 20, 2021 4:18 pm

Hi,
Why do you need to print anything on the console?
This is a GUI application and you user will start by double clicking the icon.
It is pretty much useless...
Thank you.

User avatar
doublemax
Moderator
Moderator
Posts: 15688
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxDataViewListCtrl on click item action not executing.

Post by doublemax » Wed Jan 20, 2021 4:23 pm

It's still a good debugging tool. I use wxLogDebug all the time under Windows, although i do know how to use a debugger ;)
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4870
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxDataViewListCtrl on click item action not executing.

Post by ONEEYEMAN » Wed Jan 20, 2021 4:53 pm

double max,
But not std::could 😀

Thank you.

apoorv569
Earned some good credits
Earned some good credits
Posts: 133
Joined: Tue Oct 20, 2020 3:35 pm

Re: wxDataViewListCtrl on click item action not executing.

Post by apoorv569 » Wed Jan 20, 2021 5:58 pm

ONEEYEMAN wrote:
Wed Jan 20, 2021 4:18 pm
Hi,
Why do you need to print anything on the console?
This is a GUI application and you user will start by double clicking the icon.
It is pretty much useless...
Thank you.
I'm not a very experienced C++ developer, I sometimes need to see what I'm doing by printing the output of some function or something to console to make sure, as the application I'm making is WIP, but of course when its time to release I will remove all the print statements.

And with the help of all the people like you, I learn something new everyday, and move a step forward in my C++ journey. :D

apoorv569
Earned some good credits
Earned some good credits
Posts: 133
Joined: Tue Oct 20, 2020 3:35 pm

Re: wxDataViewListCtrl on click item action not executing.

Post by apoorv569 » Sat Jan 23, 2021 4:34 am

apoorv569 wrote:
Wed Jan 20, 2021 11:36 am
doublemax wrote:
Wed Jan 20, 2021 11:13 am
Try wxLogDebug
wxLogDebug works thanks! I guess this solves the problem :lol: #-o
Hey, the wxLogDebug is working great so far, I have replaced all the print statements I needed with wxLogDebug, I did change some to wxLogInfo, but it seems like nothing except wxLogDebug prints anything, do I need to set a log level or something so both wxLogDebug and wxLogInfo statements prints, and maybe wxLogWarning as well..? Its not a huge problem, just something that can tell me difference between where the statement is coming from.

Post Reply