Float on Frame or stay on top Topic is solved
-
- Knows some wx things
- Posts: 36
- Joined: Thu Apr 28, 2005 9:17 pm
Float on Frame or stay on top
I am running Suse 9.x.
I know wxSTAY_ON_TOP is windows only.
So I found wxFLOAT_ON_FRAME.
This doesn't seem to work, in that it has no effect whatsoever.
I create my main frame, then create the smaller frame. I can bring the smaller frame to the front, but when I click on the fullscreen frame, the smaller one (that is supposed to be floating on it) disappears behind it.
The only way to fix this is to go down to the KDE toolbar, right click on the program label, and check "always on top". Then it works.
How can I do this programatically? Is there a certain order of operations that has to be followed?
I printed the address of the frame both when I created it, and when I passed it as the parent of the small frame. They are the same.
Help!
I know wxSTAY_ON_TOP is windows only.
So I found wxFLOAT_ON_FRAME.
This doesn't seem to work, in that it has no effect whatsoever.
I create my main frame, then create the smaller frame. I can bring the smaller frame to the front, but when I click on the fullscreen frame, the smaller one (that is supposed to be floating on it) disappears behind it.
The only way to fix this is to go down to the KDE toolbar, right click on the program label, and check "always on top". Then it works.
How can I do this programatically? Is there a certain order of operations that has to be followed?
I printed the address of the frame both when I created it, and when I passed it as the parent of the small frame. They are the same.
Help!
- ABX
- Can't get richer than this
- Posts: 810
- Joined: Mon Sep 06, 2004 1:43 pm
- Location: Poznan, Poland
- Contact:
Re: Float on Frame or stay on top
It doesn't really help you much but it is worth to mention that wxSTAY_ON_TOP occurs in code of wxMSW, wxMGL and wxX11. So not exactly "windows only".grommit100 wrote:I know wxSTAY_ON_TOP is windows only.
ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2
-
- Knows some wx things
- Posts: 36
- Joined: Thu Apr 28, 2005 9:17 pm
From the changelog (ftp://biolpc22.york.ac.uk/pub/2.6.1/changes-2.6.1.txt) for 2.6.1:
HTH, Chris
So, if you are using wxWidgets 2.6.1 linked against GTK2 then at least wxSTAY_ON_TOP should work.wxGTK:
- Added support for wxSTAY_ON_TOP (GTK 2.4+).
HTH, Chris
this->signature=NULL;
-
- Knows some wx things
- Posts: 36
- Joined: Thu Apr 28, 2005 9:17 pm
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
It seems your gtk+ version is too ancient? (at least 2.4 required per changes.txt)grommit100 wrote:wxWidgets is 2.6.0, GTK is 2.2-3
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- Knows some wx things
- Posts: 36
- Joined: Thu Apr 28, 2005 9:17 pm
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
If you have the development package of gtk+ installed, you should be able togrommit100 wrote:Is there a better way to get the exact version number?
do
Code: Select all
pkg-config --modversion gtk+-2.0
Code: Select all
grep 'define GTK_M...._VERSION' /usr/include/gtk-2.0/gtk/gtkversion.h
Code: Select all
ls /usr/lib/libgtk-x11-2.0.so.0.*
I believe the pattern has always been that for version 2.y.z the libname is libgtk-x11-2.0.so.0.y00.z
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/