gnope php gtk gui gnope.org  

GtkWindow::set_keep_above

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
Thomas



Joined: 25 Dec 2005
Posts: 6

PostPosted: Sun Jun 18, 2006 11:07 am    Post subject: GtkWindow::set_keep_above Reply with quote

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

PostPosted: Sun Jun 18, 2006 11:40 am    Post subject: Reply with quote

[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

PostPosted: Sun Jun 18, 2006 4:30 pm    Post subject: Reply with quote

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

PostPosted: Sun Jun 18, 2006 6:56 pm    Post subject: Re: GtkWindow::set_keep_above Reply with quote

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

PostPosted: Mon Jun 19, 2006 3:22 pm    Post subject: Reply with quote

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

PostPosted: Mon Jun 19, 2006 5:41 pm    Post subject: Reply with quote

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); Sad But Thanks for your help
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.