I have an application which appends text to a wxTextCtrl from threads. Now the issue is, it is using a function i've created, like: AddText("the test to add", MywxColor); // to add the text in a certain colour. The problem is, this isn't so reliable because of the threads issue it seems, and sometimes colours aren't coming out, and some times text will be on the same line, when it should have been on a seperate line. It has been suggested that a custom event would do the trick, but now I need to work out how to specify a wxString, and a wxColor to the function that would be called in the event. Also, i've been trying all day to get a custom event to work, and I just cannot seem to do it. I'm looking at: [login to view URL] ..and also: [login to view URL] So, if you're going with the custom event idea, which seems like the correct way to do this, I need some code to create a custom event whereby in the main function that gets exectuted when the event is fired, I can add my code to add text to the wxTextCtrl. Then, in places in the program whereby i want to add text to the text ctrl, currently I have: AddLine("the text to add, MyWxColor); Perhaps, I would need to post an event or something here, but I would also need to pass these two variables somehow. Kind regards.
## Deliverables
Code example of accomplishing the above. And questions answered to make sure I can implement it. 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):
a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
WxWidgets, crossplatform