| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

DraggableLayer

Page history last edited by PBworks 17 years, 12 months ago


 

DraggableLayer

(extends DynamicLayer)


Object Summary

 

This object represents a draggable and resizable DHTML element.

 

To drag it, simply hold your mouse button and drag. To resize, press any key on the keyboard (don't ask for "any key" :) ) and then drag.

 

You may want to observe the example page to get an idea of what the object can do.


Methods

 

DraggableLayer(elmID,constraintMove,constraintResize,blnNoResize)

 

parameters

elmID - The String index or object reference to the layer.

constraintMove -(optional) A Constraint that gives the lower and upper bounds of the movement operation. If not given the bounds are assumed infinite.

constraintResize -(optional) A Constraint that gives the upper and lower bounds of the resize operation. If not given the lower bound is 10px times 10px, and upper bound is infinite.

blnNoResize -(optional) If given and is true, the object cannot be resized.

 

comments

Creates a new DraggableLayer instance.


DraggableLayer.ignoreLayer(varargin)

 

parameters

varargin - element references to ignore.

 

comments

No drag-resize action will be done on passed elements.


DraggableLayer.fixToDragMode()

 

comments

Fixes the layer to drag mode, no resize operation can be done on it.


DraggableLayer.fixToResizeMode()

 

comments

Fixes the layer to resize mode, no drag operation can be done on it.


DraggableLayer.releaseFixes()

 

comments

releases any prior fixes.


See Also

 

DynamicLayer

LayerObject

CBObject

ToolTip

ModalDialog


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.