Re: Initial position of windows
- From: Bruce Sherwood <Bruce_Sherwood ncsu edu>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Initial position of windows
- Date: Tue, 18 Dec 2007 11:16:36 -0500
Thanks for the help; that indeed works. In retrospect, I see I was (am)
suffering from information overload....
Perhaps you can educate me about the following related issues. If I
show_all, then move, it all works fine (there's presumably the risk of a
flash, though I haven't seen it). If on the other hand I move, then
show_all, two strange/bad things happen: 1) Trying to move to (0,0)
gives a random placement; I have to move to (1,0) or (0,1) or (1,1) to
get near the northwest corner. 2) If I run an extended desktop with two
physical displays, the window flashes briefly and then disappears
(behavior is normal if I show_all before the move). I guess I can live
with show_all before move, but this behavior does seem strange.
Somewhere I thought I read that one should explicitly set_position
before doing the move, so I tried this:
Gtk::WindowPosition initpos = WIN_POS_NONE;
window->set_position(initpos);
window->move(x,y);
But this and variants give me compilation errors.on the first statement
(no such thing as WIN_POS_NONE, etc.). It seems likely that I'm confused
in the multiple layers of gtkmm vs gtk+....??
Bruce Sherwood
Joaquim Duran wrote:
En/na Jonathon Jongsma ha escrit:
On Mon, 2007-12-17 at 10:55 -0500, Bruce Sherwood wrote:
What is the recommended method to create windows at specific locations?
From what I've read, it seems like the only way is to first create the
windows, get their positions, then move them to the desired locations,
which seems like it would make the initial display flash
inappropriately. Advice appreciated.
if you call move() before you call show() then, there will not be any
flash since the window is not actually displayed yet. Does that work
for you?
Take in to account that there is also the Window Manager and It could
change these settings.
Joaquim Duran
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]