DomAPI Home
DomAPI

domapi.Resizegrip

See also: Elm
See also: Component

Adds a resize grip to the corner of an Elm or descendant. Used primarily is the Statusbar component, but may have other uses as well.

To use the Resizegrip, simply add it to an existing Elm or Component. The Resizegrip will automatically position itself in the corner of the element and allow it to be resized.

NOTE: The parent element MUST be an Elm or Component .


Resizegrip Example: system, aqua

Resizegrip Constructor

var resizegrip1 = domapi.Resizegrip({
  h      : 14,
  w      : 14,
  fEnd   : "",
  imgH   : 12,
  imgW   : 12,
  minH   : 24,
  minW   : 24,
  fMove  : "",
  fStart : "",
  margin : 2 
});
Also inherits the construtor arguments of Elm and Component.

Constructor Details
Parameter Type Default Description
h integer 14    
w integer 14    
fEnd String   Code to be eval'ed when the control has finished being dragged. Can also be a function pointer. 
imgH integer 12    
imgW integer 12    
minH integer 24  Smallest height allowed for the parent container. 
minW integer 24  Smallest width allowed for the parent container. 
fMove String   Code to be eval'ed when the control is in the process of being dragged. Can also be a function pointer. 
fStart String   Code to be eval'ed when the control begins to be dragged. Can also be a function pointer. 
margin integer   

Methods unique to domapi.Resizegrip

Also has the same methods as Elm and Component.

Methods
off ()

Disables the control.

back to top
on ()

Enables the control - enabled it to be dragged around.
NOTE: The control is on by default. You only need to call this method if you turned it off with Resizegrip.off()

back to top
DHTML by www.domapi.com