RToolButton.LoadIcon


public function LoadIcon

Prototype:

public function LoadIcon(filename)

Parameters

filename
a file containing a picture (png, gif, jpg or any supported graphic format)

Description:

Loads an image from a file, and draws it to the button.

Return value:

Returns a reference to the RImage object created from the filename.