Hello and welcome to a new guide on how to best use Movicon.NExT™.
In this technote, an example will be constructed with the purpose of showing how to create navigation between screens.
This example is very simple: three screens will be used in the application. Two screens, Screen1 and Screen2, will be used as the main screens while the third will be a _Layout_Bottom screen and used to host the navigation buttons.
When you click on the navigation buttons at runtime, the respective screen associated to the buttons will open.
After having opened Movicon.NExT in design mode and created, or loaded, a project, create the three screens needed for this example.
To do this:
Repeat this procedure to create the Screen2 screen with the same sizes but using Blue as its Background Color.
To create the Bottom Bar:
Now that the screens have been created, you will need to change the project’s properties by entering the Screen1 screen as the project’s startup window. To do this:
Once you have finished, click the Save All button on the top toolbar of the Movicon.NExT editor to save the project.
Open the _Layout_Bottom screen and click on the Toolbox tab located on the editor’s right, next to the properties window, to open the Toolbox library offered by the Movicon.NExT software.
Go to the Buttons/Standard subfolder, select and drag the Standard Metro Style button onto the screen.
Repeat this procedure to insert another button on the _Layout_Bottom screen.
Go to the Screens folder on the project tree and drag the Screen1 screen onto a button and the Screen2 onto the other button to automatically associate the open screen command.
Click the Save All button on the top toolbar of the Movicon.NExT editor to save the project again.
You can now test everything you have created by simply clicking on the Start Runtime icon to run the project.
You should be able to navigate between the Screen1 and Screen2 screen at runtime by clicking on the buttons.