RasterDialog.setIcon( icon )

Sets the icon displayed in the dialog title bar. An icon URL might be prefixed by Raster resource-folder tag. The prefix "IMG:" is replaced with the current raster/images location, for example: "IMG:icon.gif" resolves to "$RASTER_HOME$/images/icon.gif". The prefix "CSS:" is replaced with the current css themes images location, for example: "CSS:icon.gif" resolves to "$RASTER_HOME$/themes/$THEME$/images/icon.gif".

Do not place a "/" between the prefix and the rest of the URL, as a forward slash will be inserted automatically. For configuring the RASTER_HOME and THEME use the Raster.config() method.

Parameters

Name Type   Description
icon string String containing path of a 16x16 image file or an object that implements the IID_SPRITEINFO interface such as the constants in the ICONS16 object. Set to null if no image needed.

Returns

Type Description
object The dialog object. This allow for chaining multiple setter methods in one single statement.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López