Navigation between substacks in your app

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
CElwell
Posts: 38
Joined: Thu Feb 04, 2016 6:29 pm

Navigation between substacks in your app

Post by CElwell » Thu Feb 04, 2016 6:35 pm

Hello, I am wondering how to navigate between substacks within your app. For example, I have an image I am using as a button which I want to open another substack with more detailed information. How do I do this? Thank you in advance! :D

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Navigation between substacks in your app

Post by Klaus » Thu Feb 04, 2016 6:38 pm

Hi CElwell,

1. welcome to the forum! :D

2. what about:

Code: Select all

on mouseup
  go stack "you substack name here..."
end mouseup
?

Please check these stacks to get the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html

And also these lessons:
http://lessons.livecode.com


Best

Klaus

CElwell
Posts: 38
Joined: Thu Feb 04, 2016 6:29 pm

Re: Navigation between substacks in your app

Post by CElwell » Thu Feb 04, 2016 6:47 pm

Thank you so much!!! Also is there a way to duplicate a stack to edit. For example, duplicate my "home" stack?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Navigation between substacks in your app

Post by Klaus » Thu Feb 04, 2016 6:58 pm

ATTENTION! Do not name any of your stack "Home"!
Livecode uses this name for one of their IDE stacks and that asks for trouble! 8)

But yes, check "clone" in the dictionary:
...
clone stack "my_home"
...
Et voila, a stack named: Copy of myhome
:D


Best

Klaus

Post Reply