TabItem. different MenuItem

3 messages - 648 views

Hello. Is it possible to create different menuitem's in different TabItem's ? or how can i dynamically change it?

sorry for my english :)

All widgets attributes can be dynamicaly defined by a dataProvider and it's se same for menus.

<tabFolder>

    <tabItem onFocus="myChangeMenuAction">

    ...

    </tabItem>

</tabFolder>

...

<menu>

    <_action>@{dynAction}</_action>

    @{dynText}

</menu>

In this case you can change the menu and its actions through a dataProvider that provide a dynAction and dynText properties.

In 1.0.0RC3, you can't customize the popupMenu in an nice way. But the next release will offer the possibility to manage PopupMenu content as a List.

Thanks for reply, Bo.

Theoretically, i can catch the onFocus event in TabItem and chane @{dynAction} and @{dynText}

not nice way, but it works :)