VIEW.size
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The size method resizes the VIEW on a specified edge.
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 Value
This method does not return a value.
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.
Examples
<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>
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later |