How remove all side commands in Toolbar

34 views
Skip to first unread message

Ulises Escobar

unread,
Sep 27, 2016, 8:03:39 PM9/27/16
to CodenameOne Discussions
Hi, how I can remove all commands in a Toolbar? The removeAllCommands function in Form doesn't work. Also I need delete only one command of the SideBar, how I can do it?

Thanks.

Shai Almog

unread,
Sep 28, 2016, 12:09:39 AM9/28/16
to CodenameOne Discussions
Hi,
removeAllCommands() should work. Is it leaving all commands or just some of them?
Did you call revalidate() after?

Ulises Escobar

unread,
Oct 5, 2016, 5:16:49 PM10/5/16
to CodenameOne Discussions
The following code:

removeAllCommands();
revalidate();

 doesn't remove sideCommands. I tried a workaround using setToolbar(new Toolbar()); but after a few calls the components in the form stop showing. 

Shai Almog

unread,
Oct 5, 2016, 11:10:29 PM10/5/16
to CodenameOne Discussions
As far as I can tell these should work, are you using custom components?

Reply all
Reply to author
Forward
0 new messages