I have a form with a map component.  I want to add a simple search field to 
the map and dont want to use the entire NORTH section, just a small part 
between the title and the right command  
this.getToolbar().addCommandToRightBar(cmdList);
How can I add a textfield to the toolbar?  I tried:
        Command cmd = new Command("");
        cmd.putClientProperty(SideMenuBar.COMMAND_SIDE_COMPONENT, 
tfGoogleSearch);
        cmd.putClientProperty(SideMenuBar.COMMAND_ACTIONABLE, 
Boolean.FALSE);
        cmd.putClientProperty("TitleCommand", Boolean.TRUE);
this.getToolbar().addCommandToRightBar(cmd);


but that didn't work.  I also tried:

        this.getToolbar().addComponentToSideMenu(tfGoogleSearch);



but that put it in the left fly out menu and I want it in the titlebar

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/21307385-4efe-44bb-b086-7b35062ca101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to