Re: Gtk: Modal windows can go behind parent window

From: Date: Sun, 01 Apr 2007 14:19:46 +0000
Subject: Re: Gtk: Modal windows can go behind parent window
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7775@lists.php.net to get a copy of this message
$son_win->set_transient_for($win); $son_win->$this->set_modal(true);
as i said ;)
But under MSWin the windows under the modal win is still dragable
even on linux in every window manager i have used, the window is still decorated and dragable. even with no sensitivity and no decorations most window managers still allow you an alt+click+drag function, keke. afaik modal just means to "shove it up, keep it there, and do not let anything happen until this is addressed." - bob. AngeloP wrote:
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


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