Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to navigate from one screen to another screen (physical gui files)

I have three screens screen1.gui, screen2.gui, screen2.gui on screen 1 i have two buttons on click of that i want to redirect to screen2 and screen3. can any one help me to get this up.

 

i have seen the example given in the forum but that is only one screen having multiple svg's.

 

Thank you in advance.

Best Answer
0 Votes
2 REPLIES 2

Why not just put them into one file? Label each new screen with a different ID, then call that ID in the main section of your code and set the display to 'inline' when you want to display it and 'none' when you don't

Best Answer
0 Votes

You can use separate files by linking them in your index.gui like this:

<svg viewport-fill="#005BAB">
  <link rel="import" href="slideshow.gui" />
  <link rel="import" href="options.gui" />
  <link rel="import" href="dialog.gui" />
</svg>

You'll still need to show and hide the relevant elements manually.

 

Peter McLennan
Gondwana Software
Best Answer
0 Votes