Re: Gtk: Modal windows can go behind parent window

From: Date: Sun, 01 Apr 2007 15:05:04 +0000
Subject: Re: Gtk: Modal windows can go behind parent window
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7774@lists.php.net to get a copy of this message
You must use this methods $son_win->set_transient_for($win); then $son_win->$this->set_modal(true); But under MSWin the windows under the modal win is still dragable if you want the user is not able to click on it or drag it set parent windows to ->set_sensitive(false); ->set_decorated(false); see this example and try it http://www.kksou.com/php-gtk2/articles/setup-pulldown-menu-with-2-columns---Part-3---using-self-defined-combobox.php Kyohere Luke wrote: > > Hello, > > I used the latest gnope installer to set up my php-gtk2 environment. Since > then, I've built an application that consists of multiple windows. > > Before displaying a window that's supposed to be model, I use > $win->set_transient_for($parent) and then turn on the modal attributes. > > The window responds as expected, by displaying over the parent window and > preventing the parent window from being edited until the modal one is > closed. > > The problem, however, is that I find that clicking the parent window still > brings it infront of the modal one, although it still remains un-editable. > > Is there a way to ensure that the parent window cannot be brought infront > of > the modal "child" window? > > Thanks > Luke > -- > -- Luke Kyohere > > -- View this message in context: http://www.nabble.com/Gtk%3A-Modal-windows-can-go-behind-parent-window-tf3500836.html#a9778543 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7774) next »