Custom Side Menu Bar access

156 views
Skip to first unread message

State Thirteen

unread,
Nov 13, 2013, 10:38:17 AM11/13/13
to codenameone...@googlegroups.com
Hi,

How can I access Side Menu set by CustomSideMenuBar.class?

UIManager.getInstance().getLookAndFeel().setMenuBarClass(CustomSideMenuBar.class);


and for some reason removeAllCommands() doesn't remove Commands from side menu any more and form.getCommandCount() returns 0.
So I am looking for access to CustomSideMenuBar instance to clear the commands list.

Shai Almog

unread,
Nov 13, 2013, 2:02:23 PM11/13/13
to codenameone...@googlegroups.com
Hi,
the menu bar instance is in the form. So form.getMenuBar() will return an instance of the menu bar class.

Ruslan A

unread,
Nov 13, 2013, 2:04:47 PM11/13/13
to codenameone...@googlegroups.com
Great! Thank you.


2013/11/13 Shai Almog <shai....@gmail.com>
Hi,
the menu bar instance is in the form. So form.getMenuBar() will return an instance of the menu bar class.

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/u6OQqcriZDM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/a08ed85b-871d-44ba-8440-614a98855d03%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages