Packages
 Input
 Module
 User
 DB
 Interface

Objects
 bitmapwidget
 databasenode
 dragdata
 textwidget
 tokeninstance
 widget
 widgetcontainer

Elements
 buttoncontrol
 categoryselectioncontrol
 chatentry
 chatwindow
 databasecontrol
 diecontrol
 diefield
 genericcontrol
 imagecontrol
 numbercontrol
 numberfield
 portraitselectioncontrol
 script
 scrollercontrol
 stringcontrol
 stringfield
 subwindow
 textbasecontrol
 tokenbag
 tokencontrol
 tokenfield
 windowclass
 windowcontrol
 windowinstance
 windowlist
 windowreferencecontrol
 windowreferencefield

Components
 categoryselectionsettings
 customdie
 die
 font
 framedef
 desktopframe
 hotkeybar
 icon
 imageupdatefolder
 importinfo
 includefile
 panel
 portraitset
 template
 tokenroot
 tooltip
setColor
setIcons



Inherits windowcontrol
Context windowinstance

Button controls create buttons that respond to simple click events with graphical presentations for the normal, hover and pressed states. They are not connected to the database or any direct window functionality, but are useful for utility purposes.



Definition

<buttoncontrol >
<icon > The names of the icon resources used to render the control
<normal > ... </normal> The icon for the normal state
<pressed > ... </pressed> The icon for the pressed state
<hover > ... </hover> The icon for the hover state
</icon>
</buttoncontrol>


Interface

setColor

function setColor( color )

Sets the color used to draw the icons. The color is used to modulate the pixel colors of the bitmap images.

Parameters

color   (string)   
A color value in the form "AARRGGBB" where the components are hexadecimal digits specifying the alpha (transparency), red, green and blue channels, respectively, in the range 0 .. 255.

setIcons

function setIcons( normal, pressed, [hover] )

Sets the names of the icon resources used for drawing the state icons in the contol. Setting them through this function overrides the values given in the control definition.

Parameters

normal   (string)   
The icon for the normal state
pressed   (string)   
The icon for the pressed state
hover   (string)   [optional]
The icon for the hover state


'Fantasy Grounds' is a trademark of SmiteWorks Ltd.
'd20 System' and the d20 System logo are trademarks of Wizards of the Coast, Inc. in the United States and other countries and are used with permission.
© 2004-2008 SmiteWorks Ltd. ALL RIGHTS RESERVED.
Privacy policy