Re: XForms: fl_set_form_position doesn't work as expected

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 2 Apr 98 05:43:42 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > > Maddening, ain't it...
>
> > Darn straight.
>
> 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);
>
> fl_show_form(D_Task->Task, FL_PLACE_GEOMETRY, FL_FULLBORDER,
> "Task Edit");

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

spl
_________________________________________________
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/