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
getText
setFont
setMaxWidth
setText



Inherits widget
Context widgetcontainer

A text widget is a specialized version of widget.

Text widgets contain a text string, rendered in the given font. The size of the widget will vary based on the text content, and can be limited to a maximum width.



Interface

getText

function getText( )

Retrieve the text string displayed in the widget.

Return values

(string)
Returns the text displayed in the widget

setFont

function setFont( name )

Sets the font resource used for rendering the text in the widget.

Parameters

name   (string)   
The name of the font resource

setMaxWidth

function setMaxWidth( width )

Set the maximum width of the widget. If the maximum width is set and the text contained in the widget is longer than allowed, an ellipsis ('...') will be placed at the end of the displayed string.

Parameters

width   (number)   
The maximum width of the widget in pixels. To disable the maximum width setting, set the value to 0.

setText

function setText( text )

Set the text string displayed in the widget.

Parameters

text   (string)   
Text displayed in the widget


'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