Search found 17 matches

by koekhaos
Wed Nov 01, 2017 8:08 pm
Forum: C++ Development
Topic: Quick question about wxLog usage in socketserver example.
Replies: 4
Views: 562

Re: Quick question about wxLog usage in socketserver example.

So just a standard way that some people use it, maybe best practice? Very neat to learn! Thanks again Doublemax!
by koekhaos
Mon Oct 30, 2017 6:02 am
Forum: C++ Development
Topic: Quick question about wxLog usage in socketserver example.
Replies: 4
Views: 562

Re: Quick question about wxLog usage in socketserver example.

Ok thanks, that makes sense. I'm still a bit confused in this context though since it is the only mention of creating the log in the whole file. Does wxWidgets automatically create a wxLog target during initialization? If so is this something that should be done in every app? Are there other objects...
by koekhaos
Sun Oct 29, 2017 5:58 am
Forum: C++ Development
Topic: Quick question about wxLog usage in socketserver example.
Replies: 4
Views: 562

Quick question about wxLog usage in socketserver example.

I've been messing around with server.cpp in the socket/server example in the codebase and came across a c++ syntax that just looked really strange to me. delete wxLog::SetActiveTarget(new wxLogTextCtrl(m_text)); I found this code in the constructor. Why would you delete something at the same time yo...
by koekhaos
Wed Oct 25, 2017 6:43 am
Forum: General Development
Topic: wxTimer accuracy experiment (and possible answers to questions!).
Replies: 2
Views: 714

Re: wxTimer accuracy experiment (and possible answers to questions!).

To be honest at this point I'm not really considering beyond this since the app I am planning doesn't need to be to the millisecond. It was mostly an exercise to see exactly what the actual response is since I was worried about that 1 full second mention! Even with it's being 15ms or so off in Windo...
by koekhaos
Wed Oct 25, 2017 4:27 am
Forum: General Development
Topic: What flow of programming and tools do you use?
Replies: 38
Views: 28923

Re: What flow of programming and tools do you use?

1. I have a nice graph paper pad I sketch out most of my ideas on first. 2. I use CodeLite with wxCraft, I was using CodeBlocks but they don't support Mac and when I tried CodeLite I found it works quite very well and in many ways I like it better than CodeBlocks. Sometimes I also use NotePad++ just...
by koekhaos
Wed Oct 25, 2017 3:56 am
Forum: General Development
Topic: wxTimer accuracy experiment (and possible answers to questions!).
Replies: 2
Views: 714

wxTimer accuracy experiment (and possible answers to questions!).

So I was planning on using wxTimer events in my app I am working on and saw that they are listed as being accurate to within 10ms to 1000ms which seemed like a rather large range! Searching around found a few posts about it but nothing that goes into what actually happens so I decided to do an exper...
by koekhaos
Sun Jul 30, 2017 9:32 pm
Forum: General Forum Issues
Topic: Serial posters who waste our time
Replies: 13
Views: 3692

Re: Serial posters who waste our time

I've asked questions that he wasn't able to fully answer as well, but unlike you I found what he could provide to be helpful and could see he was trying. It isn't like he is paid to provide tech support. He's a volunteer who, almost solely it seems, tries to help everyone where he can. Would you pre...
by koekhaos
Sat Jul 01, 2017 9:56 am
Forum: C++ Development
Topic: Delay repaint until resize is complete.
Replies: 9
Views: 1535

Re: Delay repaint until resize is complete.

Ah, well thanks and sorry about not knowing the right area to focus on or right words to use. If you couldn't figure it out I probably have zero chance. It's just annoying because it constantly is trying to re-wordwrap a large amount of data as I am dragging the windows sidebar which really slows it...
by koekhaos
Fri Jun 30, 2017 8:18 pm
Forum: C++ Development
Topic: Delay repaint until resize is complete.
Replies: 9
Views: 1535

Re: Delay repaint until resize is complete.

I cannot for the life of me figure out anyway to make this work. Catching the mouse appears impossible on the border so I moved on to the timer thing and got it to work in the sense that stuff gets called correctly, but it breaks word wrap. I tried using Refresh() and Update() but those don't seem t...
by koekhaos
Thu Jun 29, 2017 10:43 pm
Forum: C++ Development
Topic: Delay repaint until resize is complete.
Replies: 9
Views: 1535

Re: Delay repaint until resize is complete.

Ok. I am catching the event. Going to keep munching on the other pieces now and see how it goes. Part of my confusion is that I just changed from Codeblocks and wxSmith to CodeLite, due to CodeBlocks development lagging behind for OSX and such, and wxCrafter. wxCrafter doesn't use EVENT_TABLE which ...
by koekhaos
Thu Jun 29, 2017 10:08 pm
Forum: C++ Development
Topic: Delay repaint until resize is complete.
Replies: 9
Views: 1535

Re: Delay repaint until resize is complete.

Any chance you can give me a simple example of how I might catch them? It's just not coming to me while staring at my code... :?
by koekhaos
Thu Jun 29, 2017 7:01 pm
Forum: C++ Development
Topic: Delay repaint until resize is complete.
Replies: 9
Views: 1535

Delay repaint until resize is complete.

Is there a simple way to delay repainting until a resize is complete? I found one article, https://forums.wxwidgets.org/viewtopic.php?f=1&t=34204&p=140673&hilit=skip+resize#p140673, that talked about something similar but couldn't make heads or tails of it. Specifically I want to be able to do somet...
by koekhaos
Tue Jun 27, 2017 5:27 pm
Forum: C++ Development
Topic: wxRichTechCtrl scroll weirdness, autoscroll/scroll cutting off text.
Replies: 7
Views: 1398

Re: wxRichTechCtrl scroll weirdness, autoscroll/scroll cutting off text.

Wow, that makes a huge difference! I can actually open that 130MB text file, which has 132 million characters, in 28 seconds using the readall method! And the standard wxTextCtrl can hold the entire thing and preserves the \n this way. Even better, the 2MB text file opens instantly which is likely t...
by koekhaos
Tue Jun 27, 2017 12:47 pm
Forum: C++ Development
Topic: wxRichTechCtrl scroll weirdness, autoscroll/scroll cutting off text.
Replies: 7
Views: 1398

Re: wxRichTechCtrl scroll weirdness, autoscroll/scroll cutting off text.

I actually have been messing around with the controls a bit and just tried putting more text from a file just to test them and found that the normal wxTextCtrl can easily handle even 2MB of text! I guess all the API Docs/book claiming it can only handle 64k unless you use rich mode are outdated now?...
by koekhaos
Thu Jun 22, 2017 5:32 pm
Forum: C++ Development
Topic: wxRichTechCtrl scroll weirdness, autoscroll/scroll cutting off text.
Replies: 7
Views: 1398

Re: wxRichTechCtrl scroll weirdness, autoscroll/scroll cutting off text.

So I tried adding the wxSytledTextCtrl but it seems to be missing from wxSmith oddly! I then messed a bit more with wxRichTextCtrl and it actually works fine with even 40,000 lines of text mostly. I tested it by loading in a file, which is a little bit slow to load in but I am not planning to load i...