Re: XForms: fl_set_form_position doesn't work as expected

George R. Welch (george_j@leona.physics.tamu.edu)
Thu, 2 Apr 1998 13:14:06 -0600

# To subscribers of the xforms list from "George R. Welch" <george_j@leona.physics.tamu.edu> :

Dick Middleton <dick@sqf.hp.com> wrote

> Maybe I don't understand your problem. This works for me:
> fl_set_form_position(D_Task->Task,
> D_Main->Main->x + D_Main->Main->w + 20,
> D_Main->Main->y);

You don't understand. If the main and task windows get different
window manager decorations (which fvwm is happy to do) then it wont
work.

and spl@szechuan.ucsd.edu (Steve Lamont) responded

> The problem here is you're hard coding an offset. This constant will
> be a variable when you go to different window managers.

The problem is worse than that. If those forms have different
window manager decorations, it won't work at all.

Here is a question: Is is possible to ask the window manager
for the size of the decorations. Then I could kludge up some offsets
and subtract out the bizarre behavior.

--George
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/