From 3647295a1b67cc8a64425aada2f1eda78a076f32 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 25 Aug 2006 07:56:23 +0000 Subject: Updated documentation of Fl_Widow::resize to reflect the issues with window managers that want to be smarter than application developers ;-) (STR #1301) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Window.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/documentation/Fl_Window.html b/documentation/Fl_Window.html index 089503b98..82ffce1a6 100644 --- a/documentation/Fl_Window.html +++ b/documentation/Fl_Window.html @@ -88,14 +88,16 @@ is not NULL, the window is created as a subwindow of the parent window.

The first form of the constructor creates a top-level window -and tells the window manager to position the window. The second +and asks the window manager to position the window. The second form of the constructor either creates a subwindow or a top-level window at the specified location, subject to window manager configuration. If you do not specify the position of the window, the window manager will pick a place to show the window or allow the user to pick a location. Use position(x,y) -or hotspot() before calling show() to force a -position on the screen.

+or hotspot() before calling show() to request a +position on the screen. See +Fl_Window::resize() for some more details on positioning +windows.

Top-level windows initially have visible() set to 0 and parent() set to NULL. Subwindows initially @@ -187,6 +189,11 @@ of resizing on the child widgets.

You can also call the Fl_Widget methods size(x,y) and position(w,h), which are inline wrappers for this virtual function.

+

A top-level window can not force, but merely suggest a position and +size to the operating system. The window manager may not be willing or +able to display a window at the desired position or with the given +dimensions. It is up to the application developer to verify window +parameters after the resize request.

void Fl_Window::free_position()

Undoes the effect of a previous resize() or show() so that the next time show() is called the window manager is -- cgit v1.2.3