Before getting into the process of making the Browser card, we need to set up the items that are shared across all the cards in the app. The following steps will help you do this:
WebScraper
, and save it someplace.NavBar
. Format it as you like.Browser
, Links
, Text
, Media
, and Keepers
. Do this by setting the Label entry in the Inspector palette.mouseUp
handler, add the following lines to leave the handler looking like this:on mouseUp put the short Name of me into tTabText set the Text of field "NavBar" to tTabText go card tTabText init end mouseUp
Common
and check the Behave like a background button.Browser
.Links
. Note that the grouped buttons appear on the new card.Text
, Media
, and Keepers
.NavBar
field has changed.By naming the buttons and cards the same, we were able to go to the five cards using the script attached to the group. Also, we used the button script to set the name of the NavBar to match the name of the card we had jumped to. The init
line will come on its own as we write the card scripts.
We'll now add a few controls and scripts to the first card to create the following mini web browser:
The native browser control has many properties, actions, and messages associated with it. You can view both the iOS Release Notes and the Android Release Notes at the following websites:
http://downloads.livecode.com/livecode/5_5_5/LiveCodeNotes-5_5_5-iOS.pdf
http://downloads.livecode.com/livecode/5_5_5/LiveCodeNotes-5_5_5-Android.pdf
Additional updates on support documents can be found at the following :
http://livecode.com/blog/2013/10/18/6-1-2-brings-ios-7-support/
For our application though, we only need a few of LiveCode's abilities.