Search found 80 matches

by MagickPanda
Mon Jul 24, 2017 3:25 am
Forum: C++ Development
Topic: wxFrame - 4000+ lines of code (A question of style)
Replies: 9
Views: 680

Re: wxFrame - 4000+ lines of code (A question of style)

though the good side is global variable usage are somewhat reduced to minimal Why not construct a child control/object and pass the 'global' as a pointer? Keep it alive in the parent class to keep the global usage to a minimum. At some point you have to make concessions to achieve your goal. I thin...
by MagickPanda
Mon Jul 17, 2017 1:52 am
Forum: General Forum Issues
Topic: Serial posters who waste our time
Replies: 13
Views: 1853

Re: Serial posters who waste our time

doublemax is always helpful and his solution works for me.
dunno the intention of this topi, you can always ignore the answer if you think it's not a working solution, posting a topic to whine about someone being helpful is not nice, at best.
by MagickPanda
Fri Jun 30, 2017 1:53 am
Forum: C++ Development
Topic: wxFrame - 4000+ lines of code (A question of style)
Replies: 9
Views: 680

Re: wxFrame - 4000+ lines of code (A question of style)

i am kinda having the same problem - one big monolithic wxFrame class that contains everythign and anything, though the good side is global variable usage are somewhat reduced to minimal, the drawback is this god class is too big/hard to maintain sane. Any suggestion/improvement is appreciated. My c...
by MagickPanda
Fri Jun 23, 2017 1:49 am
Forum: C++ Development
Topic: can i insert msg in the head ( wxMessageQueue ) [SOLVED]
Replies: 3
Views: 548

Re: can i insert msg in the head ( wxMessageQueue ) [SOLVED]

According to the docs you can only append new message to the back of the wxMessageQueue class. For thread-safe data, why not just use wxMutexLocker to lock shared data between different thread, which is more flexible than using wxMessageQueue(which is not designed to store custom user info and sort ...
by MagickPanda
Thu Jun 22, 2017 10:43 am
Forum: Open Discussion
Topic: Any good free IRC client to get on freenode/wx channel
Replies: 2
Views: 593

Re: Any good free IRC client to get on freenode/wx channel

doublemax wrote:https://hexchat.github.io/

thx I will see if it works for me :lol:
by MagickPanda
Thu Jun 22, 2017 4:36 am
Forum: General Development
Topic: Why is the drawing with striped?
Replies: 2
Views: 402

Re: Why is the drawing with striped?

hmm not familiar with wx drawing functions, but from my experiences it's generally not good to use integer to store/calculate float or double values, try explicitly convert integer to double in your variable calculations to see if it helps.
by MagickPanda
Sat Jun 17, 2017 1:46 pm
Forum: C++ Development
Topic: Confusion with wxCommandEvent and wxThreadEvent [SOLVED]
Replies: 6
Views: 746

Re: Confusion with wxCommandEvent and wxThreadEvent [SOLVED]

doublemax wrote:
but I am not 100% sure I am using the queue and event correctly.
Looks fine to me.

Thanks. :D
by MagickPanda
Sat Jun 17, 2017 6:12 am
Forum: C++ Development
Topic: Confusion with wxCommandEvent and wxThreadEvent [SOLVED]
Replies: 6
Views: 746

Re: Confusion with wxCommandEvent and wxThreadEvent [SOLVED]

What exactly is the problem, what doesn't work? void MyFrame::OnEventSTMA(CCEvent evt) Is this real code? This event handler shouldn't get called at all, because the signature is wrong. oops, I think I pasted old code, the code is working fine, but I am not 100% sure I am using the queue and event ...
by MagickPanda
Sat Jun 17, 2017 2:51 am
Forum: C++ Development
Topic: Confusion with wxCommandEvent and wxThreadEvent [SOLVED]
Replies: 6
Views: 746

Re: Confusion with wxCommandEvent and wxThreadEvent [SOLVED]

Thanks for the long explanation. After digging from the docs and the helpful replies and archived threads of this forums, I found that wxThreadEvent is a specialized version of wxEvent, though using wxThreadEvent seemed complicated things for me. I reversed to using wxCommandEvent based custom event...
by MagickPanda
Sat Jun 17, 2017 2:32 am
Forum: General Development
Topic: is wx 3.1.x dev releases stable for production?
Replies: 4
Views: 684

Re: is wx 3.1.x dev releases stable for production?

Hi, What is your target OS(s)? If its Windows - it probably doesn't matter much. You can compile a statically linked executable and be done with it. If it's *nix/OSX - things get a little more complicated. Most of the distro's are using 3.0 as a stable released version, since it is a standard pract...
by MagickPanda
Sat Jun 17, 2017 2:23 am
Forum: C++ Development
Topic: dedicated thread for writing logs and text data/sql [SOLVED]
Replies: 4
Views: 486

Re: dedicated thread for writing logs and text data/sql [SOLVED]

Hmm is wxSqlite easier to implement than the vanilla stand-alone sqlite? I think yes. First of all it's a C++ wrapper which does all the initialization, memory management etc for you. Also when dealing with wxString, it handles the conversion to/from UTF8 for you. Thanks, I will give it a shot some...
by MagickPanda
Wed Jun 14, 2017 11:34 pm
Forum: General Development
Topic: is wx 3.1.x dev releases stable for production?
Replies: 4
Views: 684

is wx 3.1.x dev releases stable for production?

I am currently using wx 3.1.0 dev release for my application, and I didn't find any breaking bugs using it, but I am still concerned since the 3.1.x is marked as 'development' version. hence the question.

Thanks.
by MagickPanda
Wed Jun 14, 2017 11:25 pm
Forum: Open Discussion
Topic: Any good free IRC client to get on freenode/wx channel
Replies: 2
Views: 593

Any good free IRC client to get on freenode/wx channel

I am using windows atm, and I am having weird connexion problem connecting to freenode via webclient.
So is there any good free/open-source IRC client on windows that is freenode friendly, so that I could spam on IRC channel I used to hang around. :lol:
by MagickPanda
Wed Jun 14, 2017 11:22 pm
Forum: C++ Development
Topic: dedicated thread for writing logs and text data/sql [SOLVED]
Replies: 4
Views: 486

Re: dedicated thread for writing logs and text data/sql [SOLVED]

In the default configuration SQLite is thread-safe, so you wouldn't need to do anything. Just write into it from any thread. https://sqlite.org/threadsafe.html If you want a dedicated thread for writing, use wxMessageQueue. http://docs.wxwidgets.org/trunk/classwx_message_queue_3_01_t_01_4.html Than...
by MagickPanda
Wed Jun 14, 2017 1:03 am
Forum: C++ Development
Topic: dedicated thread for writing logs and text data/sql [SOLVED]
Replies: 4
Views: 486

dedicated thread for writing logs and text data/sql [SOLVED]

Hi again, I am planning to write some data I recieve and process in real-time and write the output to ini or sqlite database. So I want to know if there is a wx in-built function to make a I/O queue for asynchronized local file write function, the idea is like this: 1. Process data and make a struct...

Go to advanced search