Moving from screen to another screen in Codename one

2,192 views
Skip to first unread message

aarashed

unread,
Nov 19, 2012, 3:45:55 AM11/19/12
to codenameone...@googlegroups.com
Hello
           I want to develop an application in codename one and in UI i want the user click a button and then move to another screen , how can i do that ?
Thanks for Help

Shai Almog

unread,
Nov 19, 2012, 5:28:28 AM11/19/12
to codenameone...@googlegroups.com
In the gui builder just click the command option and pick the destination screen name in the action combo box.
In GUI builder source use the showForm() method.

In standard source just action listener and form.show();

butle...@eircom.net

unread,
Nov 20, 2012, 4:10:15 AM11/20/12
to codenameone...@googlegroups.com
Shai,

  Where exactly in the gui builder  is the command option+combobox ? which tab?.
pat

butle...@eircom.net

unread,
Nov 20, 2012, 4:21:39 AM11/20/12
to codenameone...@googlegroups.com, butle...@eircom.net
Oh found it!  The bottom of properties tab. thanks.

umashank...@gmail.com

unread,
Dec 29, 2013, 6:16:58 AM12/29/13
to codenameone...@googlegroups.com
Hi,

How to move the form programmatically on specific conditions.

Shai Almog

unread,
Dec 29, 2013, 2:24:39 PM12/29/13
to codenameone...@googlegroups.com, umashank...@gmail.com
showForm(formName, null);


Mahmoud Sabri

unread,
May 31, 2016, 4:54:05 AM5/31/16
to CodenameOne Discussions, umashank...@gmail.com
Dear Shai ,
how i can change show  form navigation behavior 
by default show form animated as slide i want to change this behavior  if i can
is any what to change it
BR,

On Sunday, 29 December 2013 21:24:39 UTC+2, Shai Almog wrote:
showForm(formName, null);


Shai Almog

unread,
Jun 1, 2016, 12:20:32 AM6/1/16
to CodenameOne Discussions, umashank...@gmail.com
In the theme constants there is a formTransitionOut constant:
https://www.codenameone.com/manual/advanced-theming.html

Mahmoud Sabri

unread,
Jun 1, 2016, 1:58:44 AM6/1/16
to CodenameOne Discussions, umashank...@gmail.com
Thanks shai ,
i found another solution programmatically using:
setTransition(Out/In)Animator(...);

thank you very much

steve nganga

unread,
Jun 24, 2016, 9:53:40 AM6/24/16
to codenameone...@googlegroups.com, mmm...@gmail.com

Mmmmm

--
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-discu...@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/a610155b-e161-42a2-90c5-0ff338f55663%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages