> > I try to move the window in the upper left corner of the screen. The
> screen
> > does not move though. Here is my test code:
> >
> > #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?

Is that literally what you are trying to do, or just a demo.?

If that is literally what your code says, then:

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

would be better written as:

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

and it should Just Work. If that still does not work then it is probably a WM 
issue that is preventing the window from being positioned.

Another possibility is that calling position() on a window before it is mapped 
probably is not useful - you may need to have the window actually mapped before 
the position() call will do anything really useful, but note that changing the 
position of a window just after it gets mapped will probably cause a visible 
flicker on the screen.

What is it that you are *actually* trying to achieve anyway? Maybe if you can 
describe the use, we can suggests things that might work for you.




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
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to