> 
> #include <FL/Fl.H>
> #include <FL/Fl_Window.H>
> int main()
> {
> Fl_Window win(400, 400,"Test Window");
> win.position(1,1);
> win.show();
> return Fl::run();
> }
> 
> So what do I need to do to move the window?


Two things:

1: You can just create the window in the right place anyway, with 

       Fl_Window win(1, 1, 400, 400, "Test Window");

2: It may depend on platform, but I'm not sure if position() will work
until the window is mapped (i.e. actually shown) though that may well be
wrong!


For a shown window, position() has always Just Worked fine for me.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to