How to do a button child of a list?

icaromotta

23-07-2010 20:15:31

Hi,

How I to do a button child of the a list?

O m├ętodo addChild() of the list is protected.


I like update the position of the list and the button follow it. Would make this kind of link between the widgets?

kungfoomasta

26-07-2010 18:58:22

Lists do not contain buttons per se, but you can imitate ListItems as buttons. If you're talking about an external button that follows the list around, an easy way to associate it with a list is to put them both inside a Panel, and move the Panel around. Or you can add an event handler so you get notified when the List moves, and you can reposition the button to match.

icaromotta

27-07-2010 16:40:39

thank you! :D