Re: XForms: Repositioning Problem with Popups

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 18 Dec 98 17:40:50 PST

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

> Problem: suppose I enter an input object with the mouse, causing the
> popup to appear, then instead of selecting an option on the popup
> menu, I reposition the whole form, by dragging with the mouse. The
> popups don't move with the form!! They simply remain where they
> were first created with respect to the screen. I got most of my
> ideas for writing the application from your pup.c DEMO which is
> limited in its scope.

It's not clear to me how this would occur since you'd have to move the
cursor out of the form and click on a drag/title bar to do this.

Wouldn't you want the popup to disappear when you lost focus from the
input object, that is when the cursor left the input object? Or do
you have some other mechanism for moving the form while the focus
remains in the input object? Frankly, I can't think of one that would
once could concievably use.

If the problem is that after moving the form the popups appear on the
old location, then you should use one of the fl_get*_mouse() functions
to get the current location of the cursor, calculate the popup
position, and deploy it in the standard manner.

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/