I want to get the mouse position directly, because...
I'll explain.
I am clicking in a window and dragging
it to move it (with my own code, not using
the os-supplied title bar).

However the events come too fast for the
refresh (perhaps the hardware face movement
trick will improve that).

Anyway, the event/offset is measured relative
to the window, but I am moving the window,
and the window hasn't finished updating since
the last event, so some event/offsets are incorrect.
This results in a window that reacts kind of
wildly, like riding a bucking bronco.

I was thinking of using a lock-out mechanism
while waiting for the window to finish updating,
as I used in a realtime resize program,
(http://anton.idatam.com.au/rebol/util/my-request-file.r)
but I haven't figured out a way yet.

Anyone got any clues?

That's not a bad bit of program there, though. :)

Anton.

> recurse-offset: func [face /local o][
>  ;this recursively appends offset values
>  o: face/offset
>  if not none? face/parent-face [o: o + recurse-offset 
> face/parent-face]
>  o
> ]

> > Does anyone know how to get the mouse
> > position (or other event/offset) relative
> > to the screen-face (that is the top-level
> > window which represents the os desktop)?
> > 
> > I tried modifying
> > 
> >   system/view/screen-face/feel
> > 
> > to report event/offset, but it appears that
> > all windows that I open still have event/offset
> > relative to their top/left corner.
> > 
> > Anton.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to