https://wiki.visionaire2d.net/index.php?title=EventLabel&feed=atom&action=historyEventLabel - Revision history2024-03-29T06:49:43ZRevision history for this page on the wikiMediaWiki 1.39.6https://wiki.visionaire2d.net/index.php?title=EventLabel&diff=2039&oldid=prevAlex: Bot (Edward's framework)2009-08-16T10:57:08Z<p>Bot (Edward's framework)</p>
<p><b>New page</b></p><div>==eventLabel==<br />
Creates a label which adapts it text when receiving specific events.<br />
<br />
Lua Syntax:<br />
<pre>eventLabel(labelName [, text, eventName], {flags=1, <br />
edit = true|false, <br />
select = "string", <br />
alignText = "left"|"right"|"center", <br />
fontFamily = "default"|"decorative"|"roman"|"script"|"swiss"|"modern"|"teletype", <br />
fontWeight = "normal"|"light"|"bold", <br />
fontSize = int, <br />
color = color, <br />
bgcolor = color, <br />
position = {x=int,y=int}, <br />
size = {x=int,y=int}, <br />
border = "[lrtb] width", <br />
align = "left"|"right"|"center"|"top"|"bottom", <br />
expand = "shaped", <br />
proportion = int})</pre><br />
===Arguments===<br />
====labelName====<br />
:'''"string"''' - Name of the event-label.<br />
====text====<br />
:'''"string"''' - Text which is displayed until an event occurs. <br />
====eventName====<br />
:'''"string"''' - Name of the event which is handled by the control. Currently the events 'ZoomChanged' and 'CursorPositionChanged' are supported.Use 'None' if this is a static label.<br />
===Flags===<br />
====e/edit====<br />
<br />
:If true then edit an existing event-label.<br />
====s/select====<br />
<br />
:The event label is connected to this control.<br />
====alt/alignText====<br />
<br />
:Specifies the alignment of the text.<br />
:'''"left"|"right"|"center"''' - <br />
====ffy/fontFamily====<br />
<br />
:Specifies the font family used for the text.<br />
:'''"default"|"decorative"|"roman"|"script"|"swiss"|"modern"|"teletype"''' - Font family of the text.<br />
====fw/fontWeight====<br />
<br />
:Specifies the font weight used for the text.<br />
:'''"normal"|"light"|"bold"''' - Font weight of the text.<br />
====fs/fontSize====<br />
<br />
:Specifies the font size in points used for the text.<br />
====col/color====<br />
<br />
:Specifies the text color.<br />
:'''color''' - A string which contains red, green and blue as hexadecimal numbers without any separators.<br />
====bgc/bgcolor====<br />
<br />
:Specifies the background color of the text control.<br />
:'''color''' - A string which contains red, green and blue as hexadecimal numbers without any separators.<br />
====pos/position====<br />
<br />
:Specifies the position of the window.<br />
====sz/size====<br />
<br />
:Specifies the size of the window.<br />
====b/border====<br />
<br />
:This flag specifies to which side(s) of the control a border will be applied to.<br />
:'''"[lrtb] width"''' - First group is a string combining characters standing for 'left', 'right', 'top' and 'bottom' side.After a space the width of the border in pixel is specified.<br />
====al/align====<br />
<br />
:Specifies the alignment of the item within the space allotted to it by the layout.<br />
:'''"left"|"right"|"center"|"top"|"bottom"''' - Alignment of control. Top- and bottom-align only makes sense in a row-layout, left- and right-align in a column layout.<br />
====exp/expand====<br />
<br />
:Specifies whether the item will be expanded to fill the space assigned to the item.<br />
:'''"shaped"''' - With this argument the item will be expanded as much as possible while also maintaining its aspect ratio<br />
====p/proportion====<br />
<br />
:Used in row- and column-layout to indicate if a child of a layout can change its size in the main orientation of the layout - where 0 stands for not changeable and a value of more than zero is interpreted relative to the value of other children of the same layout.<br />
===Return Values===<br />
None.</div>Alex