hide/show toolbar were designed for running when the form is already showing. You don't need to invoke it when it isn't,
On Friday, August 21, 2020 at 6:08:59 PM UTC+3 P5music wrote: > In my app a mainForm calls another form. > I succeeded in creating a working back button on the new form. > After some changes now I have a strange effect. > I have code like this > > Toolbar toolbar=new Toolbar(); > // It's the same with Toolbar toolbar=getToolbar(); and with global > toolbar true > currentForm.setToolbar(toolbar); > toolbar.setEnabled(true); > toolbar.showToolbar(); > > the last instruction showToolBar() produces a strange effect: > let's say the new form is created and I can see its layout coming with a > speedy animation from right to left, > but then another speedy animation from right to left swipes the form off > the screen. > On the toolbar the back command is visible but it is not responsive (also > the menu button is present but not responsive). > > What happened? I made some changes to the app, indeed I added the side > menu to the mainForm and the secondary form, but it is the same also > without it now. > Thanks in advance > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c9dfdf21-8580-40c3-bf43-3156702cf1b1n%40googlegroups.com.
