[codenameone-discussions] Re: Cache a form?
Are you using the old GUI builder? It's a bit problematic to cache forms in the old GUI builder. -- 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 codenameone-discussions+unsubscr...@googlegroups.com. 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/0e5cf42f-f1f4-4a45-934b-f06bff864b73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Cache a form?
Thanks, I tried to cache some forms but it didnt seem to keep the complete form. For example once I have set up the UI and then populated it, I call this in postShow(): cachedForm=getCurrentForm(); then if I come back to the form I do if (cachedForm!=null) { cachedForm.show(); return; } this works but it does not show the changes I made to the form, for example most of my forms are full of empty containers, at run time I use createContainer to swap in various things I have designed in the gui editor, but none of them appear on the cached form. Did I do it wrong somehow ? On Wednesday, March 6, 2019 at 11:58:07 AM UTC+8, Shai Almog wrote: > > start() literally caches the last Form. You don't need to throw away the > Form objects. > -- 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 codenameone-discussions+unsubscr...@googlegroups.com. 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/6642b67d-f6b4-4049-9f51-3945907ade54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Cache a form?
start() literally caches the last Form. You don't need to throw away the Form objects. -- 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 codenameone-discussions+unsubscr...@googlegroups.com. 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/bad5bfec-41f8-4595-bf4e-0cc8aed2bc32%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.