Description
The custombutton class can include text and/or an icon, with our app-specific background graphic
the icon should be a resource with a name ending in "_icon_rsc";
the iconname should be that resource name, without the "_icon_rsc"
Details
Properties (11)
-
collapsedWidth
-
<attribute name="collapsedWidth" value="30" />
public var collapsedWidth;
-
expandedWidth
-
<attribute name="expandedWidth" value="$once{this.width}" />
public var expandedWidth;
-
iconname
-
<attribute name="iconname" type="string" value="" />
public var iconname : String;
icon resource name prefix
-
iconspace
-
<attribute name="iconspace" value="2" />
fine-tune the horizontal spacing of icon to text
-
iconstretches
-
<attribute name="iconstretches" type="string" value="none" />
public var iconstretches : String;
controls whether the icon stretches (none|both)
-
icony
-
<attribute name="icony" value="null" />
fine-tune the vertical position of icon
-
leftrsc
-
<attribute name="leftrsc" type="string" value="custombutton_small_left_rsc" />
public var leftrsc : String;
-
middlersc
-
<attribute name="middlersc" type="string" value="custombutton_small_middle_rsc" />
public var middlersc : String;
-
rightrsc
-
<attribute name="rightrsc" type="string" value="custombutton_small_right_rsc" />
public var rightrsc : String;
-
text
-
<attribute name="text" type="html" value="" />
public var text : lz.html;
text to display in the button (can leave empty)
-
texty
-
<attribute name="texty" value="0" />
use to fine-tune text y position
Methods (9)
-
_applystyle()
-
<method name="_applystyle" args="s" />
private function _applystyle(s);
-
doEnterDown()
-
<method name="doEnterDown" />
public function doEnterDown();
-
doEnterUp()
-
<method name="doEnterUp" />
public function doEnterUp();
-
iconPlay()
-
<method name="iconPlay" />
public function iconPlay();
-
iconStop()
-
<method name="iconStop" />
public function iconStop();
-
init()
-
-
showDown()
-
<method name="showDown" />
private function showDown();
-
showOver()
-
<method name="showOver" />
private function showOver();
-
showUp()
-
private function showUp();
LZX Synopsis
<class name="
lz.custombutton" extends="
lz.basebutton
">
<attribute name="
iconname
" type="
string" value="
" />
<attribute name="
icony
" value="
null" />
<attribute name="
leftrsc
" type="
string" value="
custombutton_small_left_rsc" />
<attribute name="
middlersc
" type="
string" value="
custombutton_small_middle_rsc" />
<attribute name="
rightrsc
" type="
string" value="
custombutton_small_right_rsc" />
<attribute name="
text
" type="
html" value="
" />
<attribute name="
texty
" value="
0" />
</class>
JavaScript Synopsis
public
lz.custombutton extends
lz.basebutton
{
public var
text
:
lz.html;
prototype private function
init
();
prototype private function
showUp
();
}