Prev | Current Page 904 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

appendItem( ???item ??? + ( i + 1 ) );
}
vert.appendChild( lbl );
vert.appendChild( horz );
horz.appendChild( lst );
horz.appendChild( lst2 );
horz.appendChild( lst3 );
horz.appendChild( lst4 );
horz.appendChild( lst5 );
lst2.multiple = true;
lst3.editbox = true;
lst4.dropdown = true;
lst5.dropdown = true;
lst5.editbox = true;
lst.onChange = function()
{
lbl.text = Std.string( lst.selectedItems );
}
lst2.onChange = function()
{
lbl.text = Std.string( lst2.selectedItems );
}
lst3.onChange = function()
{
lbl.text = Std.string( lst3.selectedItems );
}
lst4.onChange = function()
{
lbl.text = Std.string( lst4.selectedItems );
}
lst5.onChange = function()
{
lbl.text = Std.string( lst5.selectedItems );
}
var wind : Dialog = new Dialog( vert );
wind.title = ???List Sample???;
wind.show();
mng.loop();
}
}
494
Part III: Extending the Possibilities
Figure 17 - 5 shows how this example might look on your computer.
Figure 17-5
This example is really much longer than it needs to be, but at least shows, in the simplest form, all five
List possibilities in action following a four step initialization process:
Instantiate the List .


Pages:
892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916