I have just begun using DynApi 2, and I have run into a couple of problems
with the List Widget.

When I create a List(), the text color is initially black for all list
items. The colors that I specify in List.setColors() don't get used for a
list item until you have moved the mouse over that item. My code follows:

navList = new List();
navList.moveTo(0,0);
navList.setWidth(180);
navList.setHeight(360);
navList.setColors('transparent','transparent','transparent','white','
#90EE90','#00FA9A');
navList.boldOnSelect(false);
lyrNavImage.addChild(navList)
for ( var i = 0; i < aryNavItems.length; i++ )
     navList.add(aryNavItems[i].desc,i);
navListListener = new EventListener(DynAPI.document)
navListListener.onselect=function(e) {
     navigateToItem( 'top', navList.getSelectedIndex(), false );
}
navList.addEventListener(navListListener);

Secondly, I would like have the text in the ListItem()s be right aligned
instead of left aligned. Is there a way to do this?

Regards,
David Hanlon


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to