Search found 867 matches

by eranon
Thu May 31, 2018 3:33 pm
Forum: C++ Development
Topic: Bitmaps in wxTextControls
Replies: 3
Views: 1192

Re: Bitmaps in wxTextControls

Hello, You can override wx[Rich]TextCtrl::PaintBackground. Just think to go with wxBufferedDC and to prepare your image outside of this handler (storing the result as class member for example).
by eranon
Sun May 27, 2018 10:37 am
Forum: Compiler / Linking / IDE Related
Topic: wxSmith: how to rename an auto generated class
Replies: 8
Views: 3038

Re: wxSmith: how to rename an auto generated class

Yes, I can still edit what I want in wxSmith after the change. In my opinion, if it reverts it could be because your missed some occurrences (for example, in the .wxs or .cbp files). You should avoid to do it manually. With a search & replace tool, the overall job is done in seconds.
by eranon
Fri May 25, 2018 11:32 am
Forum: Compiler / Linking / IDE Related
Topic: wxSmith: how to rename an auto generated class
Replies: 8
Views: 3038

Re: wxSmith: how to rename an auto generated class

Hello, If it's about a wxPanel based class of yours, you have a "Class name" field in wxSmith. If it's about an instance name rather than the class one, you have a field for variable name. However, you can't rename all the classes from within the wxSmith's interface. For example, unless mi...
by eranon
Fri May 18, 2018 9:46 am
Forum: C++ Development
Topic: Launch Async Thread via Button
Replies: 10
Views: 3121

Re: Launch Async Thread via Button

I'm afraid that I can't post the complete source code since what I'm working on doesn't mean to be an open source project. I talked about sample, not your entire project. Here, a lot of us are working on closed source, but it doesn't mean we don't show some code when required ; and when you ask for...
by eranon
Thu May 17, 2018 4:51 pm
Forum: C++ Development
Topic: Launch Async Thread via Button
Replies: 10
Views: 3121

Re: Launch Async Thread via Button

I'm very aware of the existence of wxThread class, however, I think it's a lot of overhead to create a separated class just to launch a thread and this thread just calls a single function. Do you think it's possible for me to achieve what I want withbonly std::async or std::thread? I don't know, I ...
by eranon
Thu May 17, 2018 11:19 am
Forum: C++ Development
Topic: Launch Async Thread via Button
Replies: 10
Views: 3121

Re: Launch Async Thread via Button

Hello, If you want to implement a worker thread the wxWidgets way, you have to derive wxThread (your class providing its own Entry() method mainly), then this class will send a custom event (so, you have to define this event and add an handler for it in your main thread) to the main thread when some...
by eranon
Wed May 16, 2018 8:58 pm
Forum: Compiler / Linking / IDE Related
Topic: wxSmith Couldn't Add New Handler
Replies: 1
Views: 1190

Re: wxSmith Couldn't Add New Handler

Hello, The wxSmith plugin is maintained by the Code::Blocks team. So, the best place for help is there: http://forums.codeblocks.org/
by eranon
Sat May 12, 2018 6:55 pm
Forum: C++ Development
Topic: A Newbie Have A Questions
Replies: 1
Views: 717

Re: A Newbie Have A Questions

To ease your Graphic User Interface design, your best choice is to rely on a GUI designer which will write the C++ code for you. See https://forums.wxwidgets.org/viewtopic.php?t=38962, https://forums.wxwidgets.org/viewtopic.php?t=44199 and http://wiki.codeblocks.org/index.php?title=Comparison_of_wxS...
by eranon
Sat May 12, 2018 1:01 pm
Forum: The Code Dump
Topic: wxMS - Mail Screener is now available on Github
Replies: 9
Views: 18511

Re: wxMS - Mail Screener is now available on Github

The only real beef I had with my old Mailwasher was no UTF-8 support and that was bothering more with time. On my part, it's not as important because I only use Mailwasher (v. Pro 6.0) for filtering. I never use it for preview (I have PopMan upstream for this). My workflow is PopMan to see importan...
by eranon
Fri May 11, 2018 8:12 pm
Forum: The Code Dump
Topic: wxMS - Mail Screener is now available on Github
Replies: 9
Views: 18511

Re: wxMS - Mail Screener is now available on Github

Bravo! I'm using Mailwasher for screening (an old version too:) and PopMan (sounds discontinued and neither UTF-8 nor HTML compliant) for POP/IMAP monitoring and preview. Since my regular email client is still Eudora (never found better in spite of its low UTF-8 support), long time ago, I wrote a ti...
by eranon
Thu May 10, 2018 7:40 pm
Forum: C++ Development
Topic: Sockets - 2.8 to 3.0.4
Replies: 1
Views: 734

Re: Sockets - 2.8 to 3.0.4

Hello, Never used wxSocketClient/Server myself, but found this old thread talking about issue migrating from 2.8 to 3.0: https://groups.google.com/forum/#!topic ... Geq1404ERk
by eranon
Wed May 09, 2018 3:59 pm
Forum: C++ Development
Topic: custom class to manage controls
Replies: 3
Views: 1185

Re: custom class to manage controls

Hello, What is your question ? Every type of control has its own requirements and not sure to understand the benefit to create a wrapper which will simply call the underlying method for the concerned control class. Also, knowing you add a level of abstraction, you'll have to figure-out the type of e...
by eranon
Tue May 08, 2018 7:48 pm
Forum: Compiler / Linking / IDE Related
Topic: How can Codeblocks be Configured with Wxwidgets?
Replies: 6
Views: 1726

Re: How can Codeblocks be Configured with Wxwidgets?

Hello, Your questions are quite large and unfocused... Very difficult to answer when as many things are mixed. First, you need to ensure your compiler is reachable by your IDE (here CodeBlocks). For this, you can fine tune an existing entry in the compilers list (far easier) or create a new entry. W...
by eranon
Sat May 05, 2018 9:05 am
Forum: Compiler / Linking / IDE Related
Topic: First Program In Wxwidget
Replies: 13
Views: 4793

Re: First Program In Wxwidget

You talked about your own first program under C:\source. What's the relationship with C:\wxWidget\samples\minimal\gcc_mswud\minimal.exe? Also, you auto-congratulate yourself with a SOLVED tag against your own post. It's not the way it works: you have to attach the SOLVED tag to the post that helped ...
by eranon
Fri May 04, 2018 9:53 am
Forum: Compiler / Linking / IDE Related
Topic: First Program In Wxwidget
Replies: 13
Views: 4793

Re: First Program In Wxwidget

Hmmm, if you don't want to use any IDE (neither Visual Studio/MSVC nor Code::Blocks/MinGW), you have to master the command line for building by yourself... So, here, all is said in your build log: the header file "wx/wx.h" is not in one of the search paths you indicated for the header file...