Title: AW: [Dynapi-Help] Interactive drawing of a rectangle.

The table solution works fine in IE6, but in Netscape 4.08 it doesn't work (it shows a table with a width of a few pixels no matter what area you select and I can't use the style attribute for the border color).

Any other suggestions?

    ----------
    Van:    Michael Pemberton[SMTP:[EMAIL PROTECTED]]
    Verzonden:      dinsdag 13 november 2001 8:41
    Aan:   
    Onderwerp:      Re: [Dynapi-Help] Interactive drawing of a rectangle.

    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 -----
        From: Ditiecher, T.
        To: '[EMAIL PROTECTED]'
        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
     

Reply via email to