FileViewer

FileViewer class is used for control and management of the File viewer parts.

left

Gets or sets the position at the left of the parts.

top

Gets or sets the position at the top of the parts.

width

Gets or sets the width of the parts.

height

Gets or sets the height of the parts.

bgcolor

Gets or sets the background color of the parts.

fgcolor

Gets or sets the font color of the parts.

font

Gets or sets the font of the part by a name.

fontsize

Gets or sets the font size of the part by pixel.

alias

Gets the alias of the parts.

enabled

Gets or sets the available state of the part.

visible

Gets or sets a visibility of the part.

tabindex

Gets or sets the tab order of the parts.

focus()

Sets focus to this parts.

path

Gets the place where the file is recorded.

fullpath

Gets the place where the file is recorded as a full path.

thumbnail

Gets the thumbnail picture of a file as Image class.

image

If a file is an image format, the picture will be got as Image class.

setFile(path)

Registers the file specified at path. If path begins in "http://" or "http://", this downloads and registers a file from the target internet page.

//ex:
Parts.setFile("C:\\picture.png");
Parts.setFile("http://www.sample.com/sample.jpg");