radioformatbtn.lzx
<library>
<include href="../iconradioitem.lzx"/>
<class name="radioformatbtn" extends="iconradioitem" style="formatbtn_style">
<attribute name="toolbar" value="$once{this.parent.parent}"/>
<attribute name="editor" value="$once{this.parent.parent.editor}"/>
<handler name="onmouseover">
this.editor.saveSelectionRegion();
if (parent['onmouseover']) parent.onmouseover.sendEvent();
</handler>
<handler name="onselect">
if (this.isinited) {
var color = ( this.selected ? this.style.flag1 : this.style.flag0 );
if (this['left']) this.setTint(this.left, color);
if (this['middle']) this.setTint(this.middle, color);
if (this['right']) this.setTint(this.right, color);
}
</handler>
</class>
</library>
Cross References
Includes
Classes