| View previous topic :: View next topic |
| Author |
Message |
Thomas
Joined: 25 Dec 2005 Posts: 6
|
Posted: Sun Jun 18, 2006 11:07 am Post subject: GtkWindow::set_keep_above |
|
|
Hi,
i tried to keep my splashscreen always on top; i used $window->set_keep_above(TRUE);, but other windows can still be above it
P.S. if it matters, i'm using WinXP Home SP2 |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
Posted: Sun Jun 18, 2006 11:40 am Post subject: |
|
|
[rant]
As a user, programs that are designed like that piss me off. I dislike not being able to do something else while I'm waiting for the program to load because of an immovable splash screen blocking my view.
[/rant] |
|
| Back to top |
|
 |
Thomas
Joined: 25 Dec 2005 Posts: 6
|
Posted: Sun Jun 18, 2006 4:30 pm Post subject: |
|
|
| cohort wrote: | [rant]
As a user, programs that are designed like that piss me off. I dislike not being able to do something else while I'm waiting for the program to load because of an immovable splash screen blocking my view.
[/rant] | If i would make this for a program that takes longer to load, i wouldn't keep it always on top and i would show it in the taskbar but it's only some testing thing |
|
| Back to top |
|
 |
ron_t
Joined: 11 Dec 2005 Posts: 78 Location: Gatineau, Quebec
|
Posted: Sun Jun 18, 2006 6:56 pm Post subject: Re: GtkWindow::set_keep_above |
|
|
| Thomas wrote: | Hi,
i tried to keep my splashscreen always on top; i used $window->set_keep_above(TRUE);, but other windows can still be above it
P.S. if it matters, i'm using WinXP Home SP2 |
Hi Thomas,
If you check the latest version of the manual at:
http://php-gtk2.de/manual/en/html/gtk/gtk.gtkwindow.method.set_keep_above.html
You'll see there are no guarantees with this method if you're running on MS-Windows.
-Ron T. |
|
| Back to top |
|
 |
scott
Joined: 16 Feb 2006 Posts: 35
|
Posted: Mon Jun 19, 2006 3:22 pm Post subject: |
|
|
Hi Thomas,
Additionally, you can try setting a type hint for the splashscreen window. This will let Windows know what you intend the window to be used for.
| Code: | $splash = new GtkWindow();
$splash->set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); |
|
|
| Back to top |
|
 |
Thomas
Joined: 25 Dec 2005 Posts: 6
|
Posted: Mon Jun 19, 2006 5:41 pm Post subject: |
|
|
Thanks for your replys.
@ron_t: Yeah, i read that, but i thought there could be something else that works
@scott: Unfortunately it had the same effect as $window->set_keep_above(TRUE); But Thanks for your help |
|
| Back to top |
|
 |
|