Windows Media Player SDK banner art
PreviousNext

VIEW.size

The size method resizes the VIEW on a specified edge.

Syntax

elementID.size(handle)

Parameters

  handle

String specifying the edge or corner to move when sizing. This string must have one of the following eight values.

Edge Corner
top topright
right bottomright
bottom bottomleft
left topleft

Return Values

This method does not return a value.

Example

<THEME>
  <VIEW id=“View1” backgroundImage=“greenstone.bmp”>
    <BUTTON id=“sizer” horizontalAlignment=“right” 
        verticalAlignment=“bottom” image=“Open.png” 
        onmousedown=“jscript:View1.size(‘bottomright’)”>
    </BUTTON>
  </VIEW>
</THEME>

Remarks

This method is typically called from within an onmousedown handler. It takes care of resizing while the mouse is dragged and stops resizing when the mouse button is released. If the size of the VIEW is restricted, you cannot drag the mouse to resize the View beyond the restricted bounds.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.