I would suggest not doing it this way, it would take too long for the browser
to refresh the table each time the mouse moved.
Doug Melvin wrote:
I'm
in a hurry, so not sample code.But
I't like tomention that you don't need 5 layers (1 + borders)you
only need one layer (1 + table tag)you
add a tbale insode the layer that has the same width and height as the
layer
----- Original Message -----
Sent: Monday, November 12, 2001 7:10
AM
Subject: [Dynapi-Help] Interactive
drawing of a rectangle.
I am working on a GIS client
that shows a geographical map. It is possible to select an area on the
map to zoom in to. It should work as follows: the user clicks (and
holds) the left mouse button, when the user moves the mouse it should show
a resizing rectangle of the selected area. When the user releases the mouse
button a function should be called to zoom into the selected region.
Probably the solution should
be something like onMousedown create new transparant Selection Layer (with
four border layers in another color), onMouseMove resize the Selection
Layer and onMouseUp finish selection and call zoomin function. When I look
at the example that comes with DynAPI 2.5.6 (dynapi.event.mouseevents.htm)
I see that the mousedown and mousemove events work, but when I release
the button now event is caught.
Can somebody help me with some
sample code to realize this?
Thank you in advance.
With kind regards,
Taco Ditiecher.
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
|