On Nov 30, 2009, at 4:41 PM, imacarthur wrote:

> Are you calling my_win->position(0,y); here, or is this just the  
> construction of the window?

Yes, I'm calling my_win->position(0,y).

> I have a vague recollection that fltk may try to resize/position the  
> window at creation, to get as much of it as possible on the screen (I  
> guess the assumption is that you want to get as much of your window  
> on-screen as possible, regardless of what you asked for, or  
> something...)

Well, I'd like to have the freedom to place a window just about anywhere. After 
some testing...

Testing the x value by trying to place the window such that part of it runs off 
the right side of the screen.
For a window with: my_win->w() < Fl::w(), it looks like my first call to 
position() which is before the window is drawn does not work. The window is 
placed at Fl::x() - my_win->w(). The second call (after starting the event 
loop) does work. So, the x value is not honored until after the first draw.

> It is entirely possible that the WM is also "helping" you out here,  
> too...

Oh, I know how to test that (slaps forehead for not doing it earlier): turn off 
the wm.
Aha! It's jwm doing it.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to