Search found 14 matches

by archivator
Mon Jan 22, 2007 10:31 am
Forum: Component Writing
Topic: BBCode backend to wxRichText
Replies: 2
Views: 945

Thanks for the reply, upCASE!

It appears that in my sleep deprivation I've missed the wxRichTextFileHandlers :oops:
Again, thanks for the tip! I guess I'll just play around with the file handlers and see what I can come up with...
by archivator
Fri Jan 19, 2007 8:44 pm
Forum: Component Writing
Topic: BBCode backend to wxRichText
Replies: 2
Views: 945

BBCode backend to wxRichText

I need to implement a component similar to wxRichText that internally stores the data as BBCode (phpBB's implementation). The problem is, wxRichText seems to have quite the architecture and is very difficult for me to find out what exactly needs to be changed. I am even considering not using wxRichT...
by archivator
Mon Oct 30, 2006 5:30 pm
Forum: Compiler / Linking / IDE Related
Topic: wxAUI and Linux
Replies: 15
Views: 3530

It appears that I didn't have the -Wall flag on, so I missed some important warnings: g++ -Wall `wx-config --cflags` -g -W -I/usr/local/lib/wx/include/gtk2-unicode-debug-2.7/ -I/usr/include -I/usr/local/include/wx-2.7 -c app.cpp -o Debug/obj/app.o In file included from /usr/local/include/wx-2.7/wx/a...
by archivator
Mon Oct 30, 2006 3:54 pm
Forum: Compiler / Linking / IDE Related
Topic: wxAUI and Linux
Replies: 15
Views: 3530

Removing the precompiled headers option did no good. I still get the same error. The frustration is getting to me as I've tried everything I can think of; I even checked the wxFrameManager line character by character to see if there's something unusual that confuses the compiler. Nothing! Of course,...
by archivator
Mon Oct 30, 2006 2:14 pm
Forum: Compiler / Linking / IDE Related
Topic: wxAUI and Linux
Replies: 15
Views: 3530

This whole thing is starting to get on my nerves. I examined the preprocessed file (thanks for the tip, eranif) and as I suspected, the wx/aui/aui.h header is successfully included : # 1 "/usr/local/include/wx-2.7/wx/aui/aui.h" 1 # 15 "/usr/local/include/wx-2.7/wx/aui/aui.h" # 1 "/usr/local/include/...
by archivator
Mon Oct 30, 2006 6:17 am
Forum: Compiler / Linking / IDE Related
Topic: wxAUI and Linux
Replies: 15
Views: 3530

Surprisingly, no. I'm using Code::Blocks and its wxWidgets template though I don't think that's the problem as it just uses `wx-config --cflags` and `wx-config --libs` :rolleyes: Here is the output of `wx-config --cflags` and `wx-config --libs` : [email protected]:~$ wx-config --cflags -I/usr/loca...
by archivator
Sun Oct 29, 2006 8:26 pm
Forum: Compiler / Linking / IDE Related
Topic: wxAUI and Linux
Replies: 15
Views: 3530

Actually, I do include <wx/aui/aui.h> in global,h. Forgot to mention it, sorry.
by archivator
Sun Oct 29, 2006 7:31 pm
Forum: Compiler / Linking / IDE Related
Topic: wxAUI and Linux
Replies: 15
Views: 3530

wxAUI and Linux

I'm having trouble using AUI in my application. The preprocessor finds the headers, yet the compiler complains about wxFrameManager not being a real class. This is the header file that causes me trouble: #ifndef MAINFRAME_H_INCLUDED #define MAINFRAME_H_INCLUDED #include <wx/wxprec.h> #ifdef __BORLAN...
by archivator
Wed Aug 23, 2006 5:13 pm
Forum: C++ Development
Topic: How do I make a custom class receive events?
Replies: 3
Views: 652

Thank you, benedicte!

I did expect that I'd have to derive from wxEvtHandler but completely forgot about the Connect method (stupid me!).
Thanks for the tip!
by archivator
Wed Aug 23, 2006 5:58 am
Forum: C++ Development
Topic: How do I make a custom class receive events?
Replies: 3
Views: 652

How do I make a custom class receive events?

The question's pretty straight-forward. Is it enough to derive a class from wxEvtHandler and use DECLARE_EVENT_TABLE() to make it have an event table? In that case, what would be my second parameter for BEGIN_EVENT_TABLE()? The thing is, I want to create a custom class that receives custom events bu...
by archivator
Sun Aug 20, 2006 9:43 pm
Forum: C++ Development
Topic: Starting a thread while moving a window
Replies: 5
Views: 1114

Their presence alone can be indicators for bad application design. Application design? What's that? :o This whole app is like a sandbox for me. Something I can play with freely before going into the real programming :) Just for the record, I am using a detached thread, just wanted to point out that...
by archivator
Sun Aug 20, 2006 7:26 pm
Forum: C++ Development
Topic: Starting a thread while moving a window
Replies: 5
Views: 1114

Well, I guess I have to trust those people. I'm quite new to the whole posix-like threads concept, so I guess I have no other choice but to use custom events. And there I was, thinking multi-threading is a simple thing. :roll: Anyways, if someone has a different approach (not involving rewriting hal...
by archivator
Sun Aug 20, 2006 5:39 pm
Forum: C++ Development
Topic: Starting a thread while moving a window
Replies: 5
Views: 1114

Starting a thread while moving a window

Hi, I'll get straight to the point (I hate long introductions ;) ). I just stumbled upon a very strange bug. I have this program that creates a new thread for the sole purpose of doing some complex calculations. That thread gives feedback directly to the GUI using the GUI mutex. Unfortunately, I nee...
by archivator
Sun Aug 20, 2006 5:16 pm
Forum: C++ Development
Topic: wxStaticText and SetLabel cause weired behaviour
Replies: 4
Views: 1277

Actually, one can simply surround any GUI calls in the secondary thread with wxMutexGuiEnter() and wxMutexGuiLeave() ;) Nevertheless, wxPostEvent() remains the best way of handling this kind of situations as the events are queued and the thread continues working even if the event is not yet processe...