visibility Toolbar

14 views
Skip to first unread message

pbellpi...@gmail.com

unread,
Aug 24, 2020, 4:58:18 PM8/24/20
to CodenameOne Discussions
Hi

I have a form with tabs and a sidemenu.  After a splash form this form is opened . The first tab is then showed. But the  sidemenu 'clickable' (tjhree lines )  is not shown. Only when i swipe to the second tab the clickable is shown. 
My question hoe do i get it visible from the start. 

the code i am using. 
      hi = new Form("App", new LayeredLayout());  
  Tabs  t = new Tabs();
      t.hideTabs();
      t.addTab("Start", Container1);
    Toolbar tb = hi.getToolbar();

      Container topBar = BorderLayout.east(new Label(""));
      tb.addComponentToSideMenu(topBar);
        tb.addCommandToSideMenu("Start",null, e -> { t.setSelectedIndex(0);       
        tb.closeSideMenu(); kaartvw= false;}); 
        hi.add(t);
        t.setSelectedIndex(0);  
        hi.show();


Ciao 
Peter Bell

Shai Almog

unread,
Aug 24, 2020, 11:49:33 PM8/24/20
to CodenameOne Discussions
Hi,
sorry I don't understand what is showing and isn't showing. Can you attach a couple of screenshots to illustrate the problem?

Thanks.

Peter Bell

unread,
Aug 25, 2020, 5:03:58 AM8/25/20
to codenameone...@googlegroups.com
Shai

i have found the mistake 
Toolbar.setOnTopSideMenu()  was set to false;

ciao
Peter

Op di 25 aug. 2020 om 05:49 schreef Shai Almog <shai....@gmail.com>:
--
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/QGeZquIipAE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/0c52577a-705c-4645-9f47-13b5afe9958dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages