No Shai, What is the best way to create sideMenu and calling each form? See what I did that, created NavigationCommand and in that I did li e, *navigationCommand.nextForm(new MyForm()),* But my problem is that this MyForm() is called on menu creation time. And in MyForm() I have to call service which get all the data from server. I dont want that this service called unnecessarily time of menu creation.
I want something that my service will be called on the time when form's show method called. *Sanket* On Sun, Jul 3, 2016 at 10:52 AM, Shai Almog <[email protected]> wrote: > Hi, > I don't quite understand the question but I'm guessing that you want one > menu for all the forms in a GUI builder application? > > Just create an "initMenu(Form)" method and call it from the before event > of all forms. It will build your unified menu. > > -- > 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/qhoZvPKzKRY/unsubscribe > . > To unsubscribe from this group and all its topics, 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/4a922967-40c6-4c4d-a528-2f8260cc794b%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/4a922967-40c6-4c4d-a528-2f8260cc794b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAK1RnwFeLrP3gahZ%2BmsYq5_1K0VjxNQ%2BbDGkpVUXsACFN%2B-4vw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
