Search found 150 matches

by chris
Sun Oct 30, 2005 10:47 pm
Forum: C++ Development
Topic: disabling next target from wxLogWindow
Replies: 7
Views: 1908

Hi Lamego, man, I should read the docs more often :wink: ; the ctor of wxLogWindow has a parameter to disable passing through: wxLogWindow(wxFrame *parent, const wxChar *title, bool show = true, bool passToOld = true ) with passToOld true to process the log messages normally in addition to logging t...
by chris
Sun Oct 30, 2005 5:11 pm
Forum: C++ Development
Topic: disabling next target from wxLogWindow
Replies: 7
Views: 1908

Thats not possible because wxLogNull is not a wxLogTarget object Are you sure about that? From the docs: static wxLog * SetActiveTarget(wxLog * logtarget) and wxLogNull is derived from wxLog, so this should work (though I did not test it). And what exactly is the problem with closing the main frame...
by chris
Sun Oct 30, 2005 10:37 am
Forum: C++ Development
Topic: disabling next target from wxLogWindow
Replies: 7
Views: 1908

Hi,

because wxLogWindow passes through to the previous active log target, wouldn't it be easiest to first disable logging via wxLog::SetActiveTarget(new wxLogNull()); and then setting logging to your wxLogWindow?

Chris
by chris
Sun Oct 30, 2005 10:30 am
Forum: C++ Development
Topic: Is wxLogWindow thread safe?
Replies: 2
Views: 994

Hi, as a rule of thumb all GUI interactions are not thread-safe in wx, and wxLogWindow is no exception there. The best thing to get around this is IMHO to do logging via events. Let the child thread send a command event to the main thread with the text to be logged set via wxCommandEvent::SetString(...
by chris
Thu Oct 27, 2005 7:26 pm
Forum: Forum Announcements
Topic: BACK IN BUSINESS!
Replies: 14
Views: 27445

Hi,

nice to see the forum back.

Thanks to Jason Sheets for hosting,
and boo to the previous hoster for chickening out.

And btw, Jorg: You may want to change the URL in your signature to the new one :wink:

Chris
by chris
Tue Oct 25, 2005 10:18 am
Forum: Compiler / Linking / IDE Related
Topic: Problem with linker (and vtable)
Replies: 1
Views: 1234

Hi mastupristi, this error commonly appears if you declare a method in a class declaration (in the .h file), but don't define that method in the implementation (in the .cpp file). In your case simply add the missing destructor declaration MyComboBox::~MyComboBox(){ } to mycombobox.cpp and the projec...
by chris
Tue Oct 25, 2005 7:21 am
Forum: C++ Development
Topic: wxGrid - change cursor color OR REFERENCE needed!
Replies: 8
Views: 2411

Hi ingcristij,

No worries: If you look at toxicBunny's post (http://forums.wxwidgets.org/viewtopic.php?p=21512#21512) then there should be an "Accept Answer" Button in the top right corner of the post (near "Quote"). Simply click it.

HTH, Chris
by chris
Mon Oct 24, 2005 9:08 pm
Forum: C++ Development
Topic: wxGrid - change cursor color OR REFERENCE needed!
Replies: 8
Views: 2411

Hi Scott,

That works like a charm, thanks a lot!

Unfortunately I'm not the original thread opener, so I can't give you any awards. Perhaps ingcristij could chime in and give out some points?

Greets, Chris
by chris
Mon Oct 24, 2005 5:05 pm
Forum: C++ Development
Topic: wxGrid - change cursor color OR REFERENCE needed!
Replies: 8
Views: 2411

I'm interested in that question, too.

If I'm not mistaken, wxSetCursor applies to the mouse cursor only.

Is there a way to disable that 'active cell' rectangle?
by chris
Fri Oct 21, 2005 7:13 am
Forum: Platform Related Issues
Topic: wxthread doesnt work with gtk2 !
Replies: 5
Views: 2081

Hi,

did you try running the sample inside a debugger like gdb?

Chris
by chris
Thu Oct 20, 2005 9:41 pm
Forum: Platform Related Issues
Topic: wxthread doesnt work with gtk2 !
Replies: 5
Views: 2081

Here I am again. The thread sample works (expectedly) fine on my system (Debian Etch). $pkg-config gtk+-2.0 --modversion 2.6.10 $pkg-config glib-2.0 --modversion 2.8.3 $g++ --version g++ (GCC) 4.0.2 (Debian 4.0.2-2) wxGTK 2.6.2 configured with ./configure --enable-gtk2 --enable-unicode Seems like a ...
by chris
Thu Oct 20, 2005 4:12 pm
Forum: Platform Related Issues
Topic: wxthread doesnt work with gtk2 !
Replies: 5
Views: 2081

Hi baert,

AFAIK GTK 1 does indeed not support unicode.

Did you try to run the thread sample inside gdb and have a look where exactly the freeze happens?

Right now I'm a bit short on time, but I'll test the sample myself in a few hours to see if I'm able to reproduce the glitch.

Chris
by chris
Wed Oct 19, 2005 7:59 pm
Forum: C++ Development
Topic: Size of GNU/Linux applications
Replies: 2
Views: 1316

Hi John, that is indeed a very large binary. I suspect that you did compile wx in debug mode at least, though AFAIK wx should be compiled as a library (.so) and would therefore not increase the size of any binary linked against it. Did you compile wx yourself, and if yes, what's the ./configure line...
by chris
Thu Oct 13, 2005 12:36 pm
Forum: C++ Development
Topic: Segmentation fault (wxString problem)
Replies: 7
Views: 2846

Hi kornerr, don't worry, deeper understanding of languages comes IMHO in greatest parts by simply doing it -- it's a bit like a recursion: you learn programming thru programming :wink: I've got several years of OO programming (C++ and Java) on my back now, but I still make errors. It just happens; m...
by chris
Thu Oct 13, 2005 9:46 am
Forum: C++ Development
Topic: Segmentation fault (wxString problem)
Replies: 7
Views: 2846

Hi kornerr, I did some debugging on your code and found the problem. In the ctor of class Map you erase the struct skybox via memset (&skybox, 0, sizeof (skybox)); You can't do this with structs having instances of classes (wxString in this case), because you are then also erasing the pointer to...