> I was wondering if there is a method which allows > positioning of a window on the screen in a certain range > (that is: the user can use the WM bar to move the window > between some preset default coordinates), something more or > less similar to Fl_Window::size_range(...). Alternatively, > does somebody have an idea about any simpler way to realize > that, other than deriving a My_Limited_Fl_Window class?!
I'm pretty sure that on most (all?) platforms positioning of windows is pretty much the domain of the window manager. So unless there's some way to ask the window manager to constrain your window position (and with some WM's there is, IIRC) then you are probably stuck. But even if your WM of choice does do this, then it's probable it wouldn't work for another platform, or even for an alternate WM on the same platform, so... In short, you probably will need to write a "My_Limited_Fl_Window" class, and even then (on some WM/platform combinations) you'll probably be allowed to drag it to some "illegal" position then have it snap back to a "permitted" location when you release the drag... Which is probably not what you'd want. SELEX Sensors and Airborne Systems Limited 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

