RButton.LoadIcon


public function LoadIcon

Prototype:

public function LoadIcon(filename)

Parameters

filename
The filename of the image to load (a jpg, gif, png, ...)

Description:

This is an alternative to the Image property. This function creates an image from a file, and then sets it as the button image. Notice that this feature is not supported on any platform. For example, on Microsoft Windows is better to add a RVBox in wich you can put a RImage and a RLabel. For portability is recommended to use the RVBox method.

Return value:

This function returns the RImage object created.