Re: XForms: Positioning Hidden Fields

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 14 Jan 99 10:39:49 PST

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

> One would think it possible to obtain the new position of form 1,
> after it's been dragged, and apply that to form 2 before it is
> shown, but there is no subroutine such as fl_get_form_geometry. How
> can I do this to insure that my form 2 will be shown in the same
> place and size as form 1 had after it was dragged or resized?

You can fetch the geometry information straight from the form's data
structure:

/*** FORM ****/

typedef struct forms_
{
void *fdui; /* for fdesign */
void *u_vdata; /* for application */
char *u_cdata; /* for application */
long u_ldata; /* for application */

char *label; /* window title */
unsigned long window; /* X resource ID for window */
FL_Coord x, y, w, h; /* current geometry info */
[...]

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/