XForms: current position

AMIT BHATNAGAR (amit@cs.dal.ca)
Mon, 23 Feb 1998 14:59:30 -0400 (AST)

# To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :

Steve, I was able to accomplish displaying the current position by doing
this:

char location[30];
fl_get_win_mouse (fl_get_canvas_id (fdui->viewport), &posx, &posy,
&mask);
sprintf (location, "x: %d y: %d\n", posx, posy);
fl_set_object_label(fdui->cp, location);

all of this is in my motion notify mask... nifty eh?

_________________________________________________
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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/