lzradio.lzx
<library>
<include href="baseradio.lzx"/>
<class name="lzradiobutton" extends="baseradiobutton">
<attribute name="text_x" value="$once{this._rb.width + 2}" type="number"/>
<attribute name="text_y" value="$once{this._rb.height/2 - this._title.height/2}" type="number"/>
<handler name="onselected">
this._rb.setAttribute('statenum', this.selected ? 1 : 0);
</handler>
<handler name="onmouseover">
this._rb.onmouseover.sendEvent();
</handler>
<handler name="onmouseout">
this._rb.onmouseout.sendEvent();
</handler>
<multistatebutton name="_rb" resource="lzradio_rsrc" text="" statenum="${parent.selected ? 1 : 0}" statelength="4" maxstate="1" reference="parent"/>
<text name="_title" resize="true" x="$once{classroot.text_x}" y="$once{classroot.text_y}" text="${parent.text}"/>
<method name="_applystyle" args="s">
if (this['style'] != null) {
if (this._enabled) {
this._title.setAttribute('fgcolor',s.textcolor);
} else {
this._title.setAttribute('fgcolor',s.textdisabledcolor);
}
}
</method>
</class>
</library>
Cross References
Includes
Classes