Re: XForms: Sorry to be dumb!

T.C. Zhao (tc_zhao@yahoo.com)
Sun, 10 Oct 1999 00:02:20 -0700 (PDT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

Hi Bob,
I am not exactly sure the application setup, but
ob->x, ob->y should be the offset of any object
relative to the form. Canvas may be ob->bw off
because of the decoration. As far as canvas goes,
it's far easier to set a mouse event handler
(enter/leave) to detect inside/outside motion.

--- Rob Fletcher <rpf1@york.ac.uk> wrote:
> # To subscribers of the xforms list from Rob Fletcher
> <rpf1@york.ac.uk> :
>
> Hi,
>
> Can someone please tell me the best way how to get the offset of an
> object
> on a form?
>
> e.g. I have a glcanvas on a form, the offset is say 10,45 (as set up
> in fdesign) and the call to fl_add_glcanvas().
>
> To test for a mouse ONLY inside the glcanvas, I need to know these
> offset values ... (I would rather not code them in as "magic").
>
> I guess a couple of calls to fl_get_winorigin() for the form and the
> glcanvas would do it ...
>
> But ... is there a better way??
>
> (Steve???)
>
> Cheers,
>
> Rob.
>
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuhs.mil or see
> http://bob.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuhs.mil/mailserv/list-archives/
>
>

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/