Name

stylishbutton

Synopsis

LZX: stylishbutton
JavaScript: stylishbutton
Type: Class
Access: public
Topic: Incubator.Components
Declared in: lps/components/incubator/stylishbutton.lzx

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basebutton » stylishbutton

Known Subclasses

Known Direct Subclasses: formatbtn, minibutton

Details

Properties (15)

font
<attribute name="font" value="Verdana" />
public var font;
fontcolor
<attribute name="fontcolor" value="0x373B56" />
public var fontcolor;
fontsize
<attribute name="fontsize" value="11" />
public var fontsize;
iconname
<attribute name="iconname" type="string" value="" />
public var iconname : String;
icon resource name prefix
icony
<attribute name="icony" value="0" />
public var icony;
y position of icon, for fine tuning. if not specified, center the icon vertically.
leftresource
<attribute name="leftresource" type="string" value="stylishbutton_left_rsc" />
public var leftresource : String;
middleresource
<attribute name="middleresource" type="string" value="stylishbutton_middle_rsc" />
public var middleresource : String;
rightresource
<attribute name="rightresource" type="string" value="stylishbutton_right_rsc" />
public var rightresource : String;
showleftborder
<attribute name="showleftborder" type="boolean" value="false" />
public var showleftborder : Boolean;
whether to show shadow on right side of button
showleftedge
<attribute name="showleftedge" value="true" />
public var showleftedge;
showrightborder
<attribute name="showrightborder" type="boolean" value="false" />
public var showrightborder : Boolean;
whether to show highlight on left side of button
showrightedge
<attribute name="showrightedge" value="true" />
public var showrightedge;
text
<attribute name="text" value="" />
public var text;
text to display in the button (can leave empty)
texty
<attribute name="texty" value="0" />
public var texty;
y position of text, for fine tuning
tint
<attribute name="tint" value="0xD9DCF5" />
public var tint;
Control the look of the button. These attributes can and should be controlled with css.

Methods (2)

init()
<method name="init" />
public function init();
updatePositions()
<method name="updatePositions" />
public function updatePositions();

LZX Synopsis

<class name="stylishbutton" extends=" basebutton ">
  <attribute name=" font " value="Verdana" />
  <attribute name=" fontcolor " value="0x373B56" />
  <attribute name=" fontsize " value="11" />
  <attribute name=" iconname " type="string" value="" />
  <attribute name=" icony " value="0" />
  <attribute name=" leftresource " type="string" value="stylishbutton_left_rsc" />
  <attribute name=" middleresource " type="string" value="stylishbutton_middle_rsc" />
  <attribute name=" rightresource " type="string" value="stylishbutton_right_rsc" />
  <attribute name=" showleftborder " type="boolean" value="false" />
  <attribute name=" showleftedge " value="true" />
  <attribute name=" showrightborder " type="boolean" value="false" />
  <attribute name=" showrightedge " value="true" />
  <attribute name=" text " value="" />
  <attribute name=" texty " value="0" />
  <attribute name=" tint " value="0xD9DCF5" />
  <method name=" init " />
  <method name=" updatePositions " />
</class>

JavaScript Synopsis

public stylishbutton extends  basebutton  {
  public var font ;
  public var fontcolor ;
  public var fontsize ;
  public var iconname  : String;
  public var icony ;
  public var leftresource  : String;
  public var middleresource  : String;
  public var rightresource  : String;
  public var showleftborder  : Boolean;
  public var showleftedge ;
  public var showrightborder  : Boolean;
  public var showrightedge ;
  public var text ;
  public var texty ;
  public var tint ;
  prototype public function init ();
  prototype public function updatePositions ();
}