Prev | Current Page 713 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

It extends the PanelLayout and,
thus, can accept many children directly. When the stage is resized, the children are re - rendered
automatically; this can happen if the movie is opened in the standalone player or embedded in a web
page with the movie dimensions set with percentage values.
A Complete Example: the Tree Editor
To complete the section with a full example, a user interface is built upon the tree generator class
from the previous chapter. The controls are used to change the parameters of the generator and two
buttons are responsible to invoke the generation procedure and to clear the drawing area. The
controls are contained in a StackLayout aligned to the right of the screen. Each input control is
contained in a double FieldLayout to define a proper label for the input and its unit of
measurement.
Part II: Server Side, JavaScript, and Flash: Oh My!
382
import ui.core.Layout;
import ui.containers.StackLayout;
import ui.containers.FieldLayout;
import ui.controls.Button;
import ui.controls.


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