You can see this in action in the KitchenSink demo. http://pivot.apache.org/demos/kitchen-sink.html Go to the 'Menus' Rollup and look at the 'View' menu.
On 14 September 2011 18:49, Chris Bartlett <[email protected]> wrote: > Search for '<MenuBar.Item buttonData="View">' in this file > http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menu_bar.bxml > > You will see that you can set the menu item to 'toggle' with the following. > (org.apache.pivot.wtk.Menu.Item extends org.apache.pivot.wtk.Button) > toggleButton="true" > > http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/Menu.Item.html > > On 14 September 2011 17:49, prophe <[email protected]> wrote: >> Hi all, I want to create menuBar with checkBox item like on the picture: >> http://apache-pivot-users.399431.n3.nabble.com/file/n3335459/78.jpg >> >> Can pivot do something like this? >> >> I can now only to add MenuItem whith text and keyboard shortcut. But I want >> checkBox in place of MenuItem: >> >> <Menu> >> <Menu.Section> >> <Menu.Item> >> <buttonData> >> <content:MenuItemData >> text="Show/hide navigation panel" >> >> keyboardShortcut="CMD-N" /> >> </buttonData> >> </Menu.Item> >> </Menu.Section> >> </Menu> >> >> >> >> >> ----- >> Thank you! >> -- >> View this message in context: >> http://apache-pivot-users.399431.n3.nabble.com/CkeckBoxes-in-menuBar-tp3335459p3335459.html >> Sent from the Apache Pivot - Users mailing list archive at Nabble.com. >> >
