Re: placement of dialogs
| From: | Steph | Date: | Mon, 11 Aug 2003 15:36:42 +0000 |
| Subject: | Re: placement of dialogs | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3680@lists.php.net to get a copy of this message | ||
> It's the screen position. If my app is less than full screen, how can
I
> make the dialog pop up over the main window irrespective of where the
> user has moved the window to?
>
If my app is less than full screen, how can I
> make the dialog pop up over the main window irrespective of where the
> user has moved the window to?
>
function pop_it_up($dialog, $window) {
$dialog->popup($window->window->x, $window->window->y);
}
- puts the popup dialog window in the top left hand corner of the main
window regardless of where it is at the time. You could fiddle with
$window->window->width/height properties to center it and make it a sane
size too.