Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
I assume I could not have a maximize box in a dialog under Linux...
Playing around in XRCed, it seems that to get a maximise box you need to use the style flags: wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxMAXIMIZE_BOX
For some reason, it doesn't appear if the wxRESIZE_BORDER is omitted .
I've changed the code and Strg-W gives me a modal dialog - unfortunately only with a close box but without a maximize box.
So this means I have to live with until a new version is out in the Ubuntu repo? As I just read in the 2.7.2 docu the sentence "(the last one is not used under Unix)" is still there. So I do not have much hope...
Very strange. I just tested it with my (built from tarball) wxGTK-2.6.1, and it works there too. Maybe there's something strange about the ubuntu version.
So this means I have to live with until a new version is out in the Ubuntu repo?
Um, this might seem like heresy to a ubuntu user, but it is still possible to build your own wxGTK; you don't have to use apt-get
Ah new wx-Version outside of Ubuntu repos is not a good idea. I am distributing the program (mainly for beginners) and so it's better that I can build a deb with all dependencies fullfillable with a standard release.
But I will try out the 2.7.2 repo on my second installation. I will report later...
Just for the record, it seems to depend on the window manager. Using the same version/code/executable, KDE produces a Maximise box, while Gnome, WindowMaker and FVWM don't.
Seems like your version of GTK+ (just like mine) doesn't allow any other decoration on dialogs than a close button. The only way around I have found is to use a normal (non-dialog) window.
If you want to solve it on the GTK+ (2.0) level:
(You'll have to have the GTK+ developement files, and add `pkg-config --cflags gtk+-2.0` to the compiler options and `pkg-config --libs gtk+-2.0` to the linker options.)