Prev | Current Page 714 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Label;
import ui.controls.TextBox;
import ui.flash9.StageView;
import Tree;
class TreeEditor
{
public static function main()
{
var application = new TreeEditor();
application.run();
}
var blength : TextBox;
var bangle : TextBox;
var bwidth : TextBox;
var branches : TextBox;
var bcolor : TextBox;
public function new() { }
public function run()
{
var view = new StageView();
var panel = new StackLayout(StackDirection.Vertical);
panel.spacing = 5;
panel.hLayout = AnchorEnd(10, 210);
view.addChild(panel);
blength = new TextBox(???100???);
bangle = new TextBox(???45???);
bwidth = new TextBox(???8???);
branches = new TextBox(???3???);
bcolor = new TextBox(???0x000000???);
var fldw = 80.0;
var txtw = 50;
panel.addChild(new Label(???TREE PROPERTIES???));
panel.addChild(new FieldLayout(fldw, ???Branch Length:???,
new FieldLayout(txtw, ???px???, blength, Right)));
panel.addChild(new FieldLayout(fldw, ???Branch Angle:???,
new FieldLayout(txtw, ??? ?? ???, bangle, Right)));
panel.addChild(new FieldLayout(fldw, ???Branch Width:???,
new FieldLayout(txtw, ???px???, bwidth, Right)));
panel.


Pages:
702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726