iPhoneControls group close

Thomas McGrath III mcgrath3 at mac.com
Sat Sep 7 22:46:19 EDT 2013


Vaughn,

The Card Script should include a closeCard handler:


on closeCard
   mobileControlDelete browserID
end closeCard


or 

on closeCard
   mobileControlDelete "browser"
end closeCard

Either will work.

Tom

-- Tom McGrath III
http://lazyriver.on-rev.com
mcgrath3 at mac.com

On Sep 7, 2013, at 10:28 PM, Vaughn Clement <vclement at gmail.com> wrote:

> Hi all
> 
> The Stack Script for the same stack as the group:
> 
> on openStack
>   if environment() = "mobile" then
>      mobileStartTrackingSensor "location",true
>   end if
> end openStack
> 
> on locationChanged latitude, longitude
>   set the theCurrentLocation of this stack to latitude & comma & longitude
> end locationChanged
> 
> on openCard
>   put the short id of this card into field "Screen Number"
>   pass opencard
> end openCard
> 
> 
> The Card Script:
> 
> global browserID, theURL
> 
> on openCard
>   focus on nothing
> end openCard
> 
> on loadBrowser
>   iphoneControlCreate "browser"
>   put the result into browserID
>   iphoneControlSet browserID, "url", theURL
>   iphoneControlSet browserID, "autofit",true
>   iphoneControlSet browserID, "rect", the rect of group "browser"
>   iphoneControlSet browserID, "delayRequests", false
>   iphoneControlSet browserID, "dataDetectorTypes", "link, calendar event,
> phone number"
>   iphoneControlSet browserID, "visible", true
> end loadBrowser
> 
> The load Browser Button script:
> 
> global theURL, witchmap
> 
> on mouseUp
>   if witchmap = "Google" then
>      put fld id 1039 into theURL
>   end if
>      if witchmap = "Mapquest" then
>      put fld id 1035 into theURL
>   end if
>   loadBrowser
> end mouseUp
> 
> Thank you
> 
> Vaughn Clement
> 
> Apps by Vaughn Clement (Support)
> *http://www.appsbyvaughnclement.com/tools/home-page/*
> Skype: vaughn.clement
> https://secure.join.me/appsbyvclement
> FaceTime: vclement at gmail.com
> LogMeIn also avaialble
> Call on "ooVoo" at address:  vaughnclement or 9282549062
> Ph. 928-254-9062
> 
> 
> On Sat, Sep 7, 2013 at 5:19 PM, Gerry Orkin <gerry.orkin at gmail.com> wrote:
> 
>> Can you show us the code you use to create the browser control?
>> 
>> Gerry
>> 
>> 
>> On 08/09/2013, at 9:23 AM, Vaughn Clement <vclement at gmail.com> wrote:
>> 
>>> The browser group is the name of the group object  that I am using to
>>> display the Google or MapQuest web site.
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list