taglink.lzx

<!--
* X_LZ_COPYRIGHT_BEGIN ****************************************************
* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.          *
* Use is subject to license terms.                                        *
* X_LZ_COPYRIGHT_END ******************************************************-->
<library>
    <class name="taglink" width="100" clickable="true">
        <view resource="icon_taglink_rsc"/>
        <text name="txt" x="13" y="-4" text="tag title" width="87" fgcolor="0xa1a1a1" fontsize="10"/>
        
        <handler name="ondata" args="t">
            if ( t == null || t == undefined ) t = "";                
            this.txt.setAttribute('text', t);            
        </handler>

        <method name="getCanvasFocusRect">
            var rect = [ this.getAttributeRelative('x', canvas) -4,
                         this.getAttributeRelative('y', canvas) - 4,
                         this.getAttributeRelative('width', canvas) + 8,
                         this.getAttributeRelative('height', canvas) + 6];
            return rect;
        </method>

    </class>
</library>

Cross References

Classes