Closed Thread Icon

Topic awaiting preservation: Resizing DIV/Layers by handles (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8923" title="Pages that link to Topic awaiting preservation: Resizing DIV/Layers by handles (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Resizing DIV/Layers by handles <span class="small">(Page 1 of 1)</span>\

 
kabutey
Obsessive-Compulsive (I) Inmate

From: Accra,,Ghana
Insane since: Oct 2003

posted posted 10-27-2003 12:43

I have combed the web for a script that does this but no luv found.
Hope I get some help here. I have a DIV/Layer with resize handles (like in normal windows forms).
I want that the user can resize the DIV/Layer when they drag the resize handles.

Please help... very urgent.. thanks

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 10-27-2003 15:22

You would do this the same way you would drag a Layer. Instead of changing the position of the Layer change its size.

You will need to set an event handler to catch the mouse movement events and then adjust the size of the layer as a function of the mouses movements.

If you are draging the upper or left side of the layer, you would also need to change the layer position so that the lower/right side will stay fixed.

When the moue button is release, diable the event handler.




-- not necessarily stoned... just beautiful.

kabutey
Obsessive-Compulsive (I) Inmate

From: Accra,,Ghana
Insane since: Oct 2003

posted posted 10-28-2003 12:36

thanks very much for the response.
can i please get some sample code?

« BackwardsOnwards »

Show Forum Drop Down Menu