g:image.top Property
Gets or sets the number of pixels from the top edge of the gadget to position the g:image element.
This property is read/write.
Syntax
propVal = g:image.top(intTop)
g:image.top(intTop)
= propVal
Parameters
intTop [in]
intTop [out]
Sets or retrieves the position, in pixels, of the target element from the top edge of the gadget.
Remarks
Caution Other than g:background, avoid images that render to the absolute edges of a gadget. In high-DPI, rounding errors can cause a magenta fringe around the border of the gadget.
This value overrides any positioning declared previously.
Examples
The following example demonstrates how to set the top-position of the g:image element from a gadget script file.
\\ imgBackground is the value of the 'id' attribute for the g:background element.
var imgTop = imgBackground.addImageObject(file, intX, intY);
imgTop.top = 50;
See Also
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK