Search found 150 matches

by chris
Tue Sep 13, 2005 9:37 pm
Forum: C++ Development
Topic: Restore event?
Replies: 12
Views: 2586

Do you listen to wxIconizeEvent in your main frame? Perhaps you just need to Skip(true) the event to allow propagation to the child frames.
If that doesn't work, you could also try to manually post a wxIconizeEvent to the child frames when minimizing or maximizing your main frame.
by chris
Mon Sep 12, 2005 9:09 pm
Forum: C++ Development
Topic: Restore event?
Replies: 12
Views: 2586

Not sure what you mean, perhaps

Code: Select all

wxIconizeEvent
can be of help?
by chris
Wed Sep 07, 2005 8:05 pm
Forum: Compiler / Linking / IDE Related
Topic: event.h: inline function used but never defined (g++ 4.0.1)
Replies: 5
Views: 2331

Hi leio, I do wonder which linker errors these would be - I have used gcc-4.0.x for wx work for quite some time, including quite some time before 2.6.1 came out. Aside from some warnings (excerpt) /wxGTK2.6.1-GTK2//include/wx-2.6/wx/window.h:113: warning: inline function 'virtual wxWindowList::~wxWi...
by chris
Wed Sep 07, 2005 4:37 pm
Forum: Compiler / Linking / IDE Related
Topic: event.h: inline function used but never defined (g++ 4.0.1)
Replies: 5
Views: 2331

Hi, gcc 4 is a rather new compiler, and it's much stricter in regard of sloppy code. Version 2.4.2 of wx is the old stable version, superseeded by 2.6.1 (current stable). And because version 2.4.2 is rather old and discontinued, compiler warnings with gcc 4 are no surprise. I recently upgraded to gc...
by chris
Wed Aug 31, 2005 10:36 am
Forum: Compiler / Linking / IDE Related
Topic: Question
Replies: 6
Views: 1677

Hi, when using MSVC you should set a path to %WXWIN%\include\msvc\ for including setup.h. In there is a special version of setup.h that includes the correct setup.h according to the preprocessor constants (like _UNICODE and so on). This is very useful if you change between different builds of wx (Un...
by chris
Thu Aug 18, 2005 9:47 am
Forum: C++ Development
Topic: wxFrame not allways on top?
Replies: 5
Views: 1598

Hi,

we had some discussion of this at http://forums.wxwidgets.org/viewtopic.p ... highlight=.
The gist of it: You'll need at least wxGTK 2.6.1 (the latest atm) linked against GTK 2.4 or higher for wxSTAY_ON_TOP support on Linux.

Chris
by chris
Wed Aug 17, 2005 12:32 pm
Forum: General Development
Topic: Auto Start Application
Replies: 9
Views: 3267

Hi, there's /etc/profile as a global setup for most shells, but there are several problems with using that for autostarts: 1. only root writeable 2. will be executed with each shell (most users will have more than one terminal open, but autostarting should occur only once per session) I'd say the be...
by chris
Tue Aug 16, 2005 1:56 pm
Forum: C++ Development
Topic: Getting the screen back to the foreground
Replies: 11
Views: 1771

Had the same problem some time back. window->Show(true); window->Maximize(false); works for me. The docs at http://www.wxwidgets.org/manuals/2.6.1/wx_wxtoplevelwindow.html#wxtoplevelwindowmaximize say this only works under Windows, but with wxGTK Show(true); is sufficient for me to bring an iconized...
by chris
Sun Aug 14, 2005 2:27 pm
Forum: C++ Development
Topic: MFC -> WxWidgets
Replies: 1
Views: 937

Tough I'm not a MFC coder myself, a bit of googling lead me to http://hdf.ncsa.uiuc.edu/hdf4-quest.html.

HTH, Chris
by chris
Mon Aug 08, 2005 10:19 am
Forum: C++ Development
Topic: ORing values to get a style?
Replies: 14
Views: 2340

#define bgSHOW_LEGEND 0x00F 0xf=%1111, better use 0x10. :wink: If you are more comfortable with decimals, try to use those: #define bgDIFFERENT_BAR_COLOUR 1 #define bgSHOW_LABELS 2 #define bgSHOW_XCOORD_LABEL 4 #define bgSHOW_YCOORD_LABEL 8 #define bgSHOW_LEGEND 16
by chris
Mon Aug 08, 2005 9:51 am
Forum: C++ Development
Topic: ORing values to get a style?
Replies: 14
Views: 2340

Yeah, you can't enter binary in C/C++ (very inconvenient!). In C/C++ "%" is the modulus operator; I just wrote down the binary numbers to highlight that there are two "1"s in them.
Just convert them to hex or decimal, should be fine then.
by chris
Mon Aug 08, 2005 9:18 am
Forum: General Development
Topic: Auto Start Application
Replies: 9
Views: 3267

Hi all, @KevinHook: It's not that different on Linux (compared to Windows): Either start a program at system start as a service (the user must not be root) -- same on Windows, or start with the shell (wouldn't recommend that) or start with the Desktop session (when user logs in to his prefered graph...
by chris
Mon Aug 08, 2005 9:08 am
Forum: C++ Development
Topic: ORing values to get a style?
Replies: 14
Views: 2340

Hi, what you did is defining values with two and not only one bit set: bgSHOW_YCOORD_LABEL = 0x005000 = %0101000000000000 bgSHOW_LEGEND = 0x009000 = %1001000000000000 ("%" depicts binary). bgSHOW_YCOORD_LABEL & bgSHOW_LEGEND = %0001000000000000 !=0, therefore the if-statement is true. ...
by chris
Sun Aug 07, 2005 4:57 pm
Forum: General Development
Topic: Auto Start Application
Replies: 9
Views: 3267

Hi,

I don't think there's a platform independent way for autostarting.
For manually doing it on the Linux platforms have a look at http://gentoo-wiki.com/HOWTO_Autostart_Programs.
Don't know about Mac, though.
by chris
Thu Aug 04, 2005 8:48 am
Forum: Compiler / Linking / IDE Related
Topic: VC++8 Express runtime dependencies
Replies: 5
Views: 1965

Are you using any STL in your program? Perhaps you also need MSVCP80.DLL?