Scanning for inclusions

2017-04-27 Thread Sannyasin Brahmanathaswami via use-livecode
Is there a way to run the "scan for inclusions" required and get a list.

Waiting for the inclusion scan while building a standalone take a lot of time.

Sometimes I would like to check to see that I have set everything the app needs.

it would be helpful to be able to run the "scan for required inclusions" and 
get a list, for verification again what one has manually check in SA Settings.

BR



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work

2017-04-27 Thread Alejandro Tejada via use-livecode
Recently, Bernd Niggeman posted a stack that
displays LiveCode Dictionary content
in a different way.

Could Livecode Community Developers create a
"Wizard" plugin that check scripts and suggest
changes according to naming conventions?

Notice that already exists a plugin created by
Klaus Major that gather all scripts of a stack
and (on user request) save these scripts as
a text file... so this "Wizard" plugin only will
check these scripts and analize them to warn
developers and suggest recommended changes.

Al
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: User IP Address from LC Server?

2017-04-27 Thread Rick Harrison via use-livecode
Hi Alex and Phil,

Thanks, I’ll check it out.

Rick


> On Apr 27, 2017, at 9:06 PM, Phil Davis via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
> I believe that would be found in $_SERVER["REMOTE_ADDR"] .
> 
> Here is a simple way to see what's in the $_SERVER array:
> 
> 1) Put the following code in a text file - I'll call it "globals.lc":
> 
>  put the keys of $_SERVER into tList
>   sort lines of tList
>   repeat for each line tKey in tList
>if $_SERVER[tKey] is an array
>then put "[" & tKey & "]" & CR after tOutput
>else put tKey && "=" && $_SERVER[tKey] & CR after tOutput
>   end repeat
> 
>   -- do this so the output will look right in browser or from msg box
>   if "LiveCode" is not in $_SERVER["HTTP_USER_AGENT"] then replace CR
>   with "" in tOutput
> 
>   put tOutput
>   ?>
> 
> 2) Upload the file to the folder on your LC server where web pages go.
> 
> 3) Go to its URL - e.g.  go url "http://mywebsite.com/globals.lc;
> 
> 
> That should show you everything in the $_SERVER global.
> 
> You can do something similar to see what's in the various other server 
> globals, all of which begin with "$_" - check the dictionary for more info on 
> those.
> 
> HTH -
> Phil Davis
> 
> 
> 
> On 4/27/17 5:21 PM, Rick Harrison via use-livecode wrote:
>> After looking at a bunch of entries in the LC Dictionary
>> I can’t find anything that tells me how I can get the
>> IP of a User who has logged into my LC Server website.
>> 
>> Does anyone out there know how to do this with LC?
>> 
>> Thanks in advance!
>> 
>> Rick
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> -- 
> Phil Davis
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: User IP Address from LC Server?

2017-04-27 Thread Alex Tweedly via use-livecode
$_SERVER["REMOTE_ADDR"] will give you the IP addr of the host issuing 
the URL request


Probably the same as "user who has logged in " ... but without checking 
if the URL request has come from someone logged in :-_)


-- Alex.

On 28/04/2017 01:21, Rick Harrison via use-livecode wrote:

After looking at a bunch of entries in the LC Dictionary
I can’t find anything that tells me how I can get the
IP of a User who has logged into my LC Server website.

Does anyone out there know how to do this with LC?

Thanks in advance!

Rick
___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: User IP Address from LC Server?

2017-04-27 Thread Phil Davis via use-livecode

Hi Rick,

I believe that would be found in $_SERVER["REMOTE_ADDR"] .

Here is a simple way to see what's in the $_SERVER array:

1) Put the following code in a text file - I'll call it "globals.lc":

   " in tOutput

   put tOutput
   ?>

2) Upload the file to the folder on your LC server where web pages go.

3) Go to its URL - e.g.  go url "http://mywebsite.com/globals.lc;


That should show you everything in the $_SERVER global.

You can do something similar to see what's in the various other server 
globals, all of which begin with "$_" - check the dictionary for more 
info on those.


HTH -
Phil Davis



On 4/27/17 5:21 PM, Rick Harrison via use-livecode wrote:

After looking at a bunch of entries in the LC Dictionary
I can’t find anything that tells me how I can get the
IP of a User who has logged into my LC Server website.

Does anyone out there know how to do this with LC?

Thanks in advance!

Rick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


--
Phil Davis

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: on tabKey - what field contains the blinking curser?

2017-04-27 Thread Dr. Hawkins via use-livecode
On Thu, Apr 27, 2017 at 1:57 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The default is a tick (1/60 second). You could add "millisecond" after the
> 1 and that would probably be enough time. I get lazy with small time units
> when it doesn't matter much and tend to omit extra typing.
>

I tend to start with "in 0" or -1, and only go to positive time if there is
an issue.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


User IP Address from LC Server?

2017-04-27 Thread Rick Harrison via use-livecode
After looking at a bunch of entries in the LC Dictionary
I can’t find anything that tells me how I can get the
IP of a User who has logged into my LC Server website.

Does anyone out there know how to do this with LC?

Thanks in advance!

Rick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Getting a Google MAP

2017-04-27 Thread William Prothero via use-livecode
Hmm, I must have spoken too soon. This actually works!

on mouseUp

put mapURL() into tURL

put URL tURL into x

put x into image "myGMap"

end mouseUp


function mapURL

put 
"https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA=14=400x400=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4;
 into retURL

return retURL

end mapURL



> On Apr 27, 2017, at 3:36 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Here is how I get directions in a map:
> 
> on mouseUp pMouseBtnNo
>   put 
> "https://www.google.com/maps/dir/12150+Mora+Dr,+Santa+Fe+Springs,+CA+90670,+USA/;
>  into theURL
>   put the dgHilitedLine of group "dgSites" into theHilitedLine
>   put the dgDataOfLine [thehilitedline] of group "dgSites" into aRecordData
>   put urlencode(aRecordData["addr1"]) & "+" & \
> urlencode(aRecordData["city"]) & "+" & \
> urlencode(aRecordData["state"]) & "+" & \
> urlencode(aRecordData["zip"]) into theAddress
>   set the clipboarddata to \
> aRecordData["addr1"] & space & \
> aRecordData["city"] & space & \
> aRecordData["state"] & space & \
> aRecordData["zip"]
>   put theURL & urlencode(theAddress) into theURL
>   launch url theURL
> end mouseUp
> 
> Note I have hardcoded the start location into the URL, but that can be dealt 
> with easy enough. Also I am pullign data from a datagrid, but that also can 
> be sussed out easily enough. This *should* work in a browser object, no? 
> 
> Bob S
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Swiping between cards - metaphor end-of-the-road?

2017-04-27 Thread Matt Maier via use-livecode
That's a good point. Android apps commonly uses "swipe down" to trigger a
refresh. The swipe still physically happens, but there's just a gray
background behind it, and it pops back into place and resets.

The main problem seems to be what happens during a swipe. Part of the
effect is the feedback of seeing one card move on top of another. After the
swipe is completed we can just use regular messages to do whatever.

Another swipe effect would be pulling the next card in to fill the space
left by the moving card, rather than the next card being stationary
underneath.

On Thu, Apr 27, 2017 at 10:30 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Matt Maier wrote:
>
> > Maybe each card could have a parameter like "swipeTo" which would be
> > the id of another card. Default could be nothing, which would disable
> > swipe. But if there's a card id in there then swiping would put that
> > card "underneath" so it's visible as the current card moves and if
> > the swipe gesture completes the stack moves to that new card.
> >
> > The swipe gesture might be just a scroll that's handled as a swipe
> > when the card can't scroll in that direction. Like if you swipe
> > up/down the content scrolls, but if you swipe left/right, since
> > there's no scroll in that direction, you get a swipe to another card.
>
> I like where you're going with that.  But it also suggests other options
> that would be useful, more stuff to think over before submitting a request.
>
> Rather than a single swipeDestination property to designate which card we
> go to during a swipte, ideally we'd want that for each of the four cardinal
> directions, e.g. swipeLeftDestination, swipeTopDestination, etc.
>
> Also, it would be nice to be able to specify the origin threshold, since
> sometimes we'd want to initiate a drag from any part of the card and other
> times only from a certain edge.
>
> Hmmm...not so simple once we dive into the full range of use-cases, but I
> do think it's worth exploring this here because it would be SO much
> simpler to use LC's card metaphor for modern apps if we had more fluid
> transition capabilities.
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Make numberFormat even better AND Cognitive Load

2017-04-27 Thread Bob Sneidar via use-livecode
Yup. I do that a lot. Where I have an issue is dividing up a block of time into 
multiple segments, where the minutes may not divide evenly between all the 
segments. So I produced this:

function timeTable pStartTime, pStartLunch, pEndLunch, pEndTime, pItemCount
   set the itemDelimiter to ":"
   
   -- convert all times to minutes
   put item 2 of pStartTime + (item 1 of pStartTime *60) into tStartTimeMinutes
   put item 2 of pStartLunch + (item 1 of pStartLunch *60) into 
tStartLunchMinutes
   put item 2 of pEndLunch + (item 1 of pEndLunch *60) into tEndLunchMinutes
   put item 2 of pEndTime + (item 1 of pEndTime *60) into tEndTimeMinutes
   put tEndLunchMinutes - tStartLunchMinutes into tLunchMinutes
   put tEndTimeMinutes - tStartTimeMinutes - tLunchMinutes into tTotalMinutes
   
   -- calculate the minutes per item with remainder
   put tTotalMinutes div pItemCount into tItemMinutes
   put tTotalMinutes mod pItemCount into tModMinutes
   
   -- if there was no lunch times provided, make some up
   if pStartLunch is empty then
  put tStartTimeMinutes + tItemMinutes into tStartLunchMinutes
  put tStartLunchMinutes into tEndLunchMinutes
   end if
   
   repeat with counter = 1 to pItemCount
  put tStartTimeMinutes into aTimeTable [counter] [1]
  put tStartTimeMinutes + tItemMinutes into tNextTimeMinutes
  
  -- distribute spare minutes
  if tModMinutes >0 then
 add 1 to tNextTimeMinutes
 subtract 1 from tModMinutes
  end if
  
  if tLunchMinutes > 0 then
 if tNextTimeMinutes >= tStartLunchMinutes then
put tStartLunchMinutes into aTimeTable [counter] [2]
put tEndLunchMinutes into aTimeTable [counter] [3]
add tLunchMinutes to tNextTimeMinutes
put 0 into tLunchMinutes
 else
put 0 into aTimeTable [counter] [2]
put 0 into aTimeTable [counter] [3]
 end if
  else
 put 0 into aTimeTable [counter] [2]
 put 0 into aTimeTable [counter] [3]
  end if
  
  put tNextTimeMinutes into aTimeTable [counter] [4]
  
  -- calculate total minutes for this record
  put (aTimeTable [counter] [4] - aTimeTable [counter] [1]) - \
(aTimeTable [counter] [3] - aTimeTable [counter] [2]) \
into aTimeTable [counter] [5]
  put tNextTimeMinutes into tStartTimeMinutes
   end repeat
   
   -- convert minutes back to seconds
   put the keys of aTimeTable into tTableKeys
   sort lines of tTableKeys numeric ascending
   
   repeat for each line tKey in tTableKeys
  put aTimeTable [tKey] into aTimeRecord
  put the keys of aTimeRecord into aRecordKeys
  repeat for each line tRecordKey in aRecordKeys
 put aTimeRecord [tRecordKey] into tTime
 if tTime = 0 then
put empty into aTimeTable [tKey] [tRecordKey]
 else
put tTime div 60 & ":" & tTime mod 60 into tTime
put formatTime(tTime, "sql time") into tTime
put char 1 to 5 of tTime into aTimeTable [tKey] [tRecordKey]
 end if
  end repeat
   end repeat
   
   return aTimeTable
end timeTable

function formatTime theTime, theFormat
   /*
   accepts any valid time and returns the form of the time specified in the 
second parameter.
   The valid formats are:
   sql time: hh:mm:ss (Note: combining sql date from the formatDate() function 
with the
   sql time will produce a valid SQL date time type). 
   short time: LC short time format
   abbreviated time: LC abbr time format (same as short time)
   long time: LC long time format
   seconds: the number of seconds since the prior midnight
   military: the military time 00:00 - 23:59
   */
   if theTime is empty then return empty
   
   set the numberformat to "00"
   switch theFormat
  case "sql time"
 convert theTime to dateitems
 put (item 4 of theTime +0) & ":" & \
   (item 5 of theTime +0) & ":" & \
   (item 6 of theTime +0) into theTime
 break
  case "short time"
 convert theTime to short time
 break
  case "abbreviated time"
 convert theTime to abbreviated time
 break
  case "long time"
 convert theTime to long time
 break
  case "seconds"
 convert theTime to seconds
 break
  case "military"
 set the itemdelimiter to ":"
 
 if theTime contains "PM" then
add 12 to item 1 of theTime
 end if
 
 put word 1 of item 2 of theTime into item 2 of theTime
 break
   end switch
   
   return theTime
end formatTime


> On Apr 27, 2017, at 13:27 , Mike Kerner via use-livecode 
>  wrote:
> 
> On the topic of keeping LC stupid-simple, here's of one of those ways that
> LC makes ugly math fun:
> #
> 
> put the short date into theDate
> convert theDate to dateItems
> put 0 into item 3 of theDate
> convert theDate to short 

Re: Getting a Google MAP

2017-04-27 Thread Bob Sneidar via use-livecode
Here is how I get directions in a map:

on mouseUp pMouseBtnNo
   put 
"https://www.google.com/maps/dir/12150+Mora+Dr,+Santa+Fe+Springs,+CA+90670,+USA/;
 into theURL
   put the dgHilitedLine of group "dgSites" into theHilitedLine
   put the dgDataOfLine [thehilitedline] of group "dgSites" into aRecordData
   put urlencode(aRecordData["addr1"]) & "+" & \
 urlencode(aRecordData["city"]) & "+" & \
 urlencode(aRecordData["state"]) & "+" & \
 urlencode(aRecordData["zip"]) into theAddress
   set the clipboarddata to \
 aRecordData["addr1"] & space & \
 aRecordData["city"] & space & \
 aRecordData["state"] & space & \
 aRecordData["zip"]
   put theURL & urlencode(theAddress) into theURL
   launch url theURL
end mouseUp

Note I have hardcoded the start location into the URL, but that can be dealt 
with easy enough. Also I am pullign data from a datagrid, but that also can be 
sussed out easily enough. This *should* work in a browser object, no? 

Bob S



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Getting a Google MAP

2017-04-27 Thread Devin Asay via use-livecode
Bill,

As Mike mentioned, the API call returns image data, so set the filename of an 
image to the url. Here’s the script from a working demo:

on mouseUp
put urlEncode(fld "address") into tAddress
put urlEncode(fld "city") into tCity
put urlEncode(fld "state") into tState

put the thumbposition of scrollbar "scale" into tScale
put the hilitedButtonName of group "maptype" into tType
put "http://maps.google.com/maps/api/staticmap; into tBaseURL
put  "?center=" into tArgList
if tAddress is empty then
--put empty into tArgList
else
put tAddress & comma after tArgList
end if
put tCity & comma & tState after tArgList
put "=" & tScale & "=512x512=" & tType after tArgList

# build marker
put urlEncode(fld "m_address") into tMAddress
put urlEncode(fld "m_city") into tMCity
put urlEncode(fld "m_state") into tMState
put the label of btn "color" into tMColor
put toUpper(char 1 of fld "label") into tMLabel
put "=" & "color:" & tMColor & "|label:" & tMLabel & "|" & 
tMAddress,tMCity,tMState after tArgList

put tBaseURL & tArgList into fld "urlfld"
set the filename of img "map" to fld "urlfld"
end mouseUp

Most of the script is building a URL string with the proper arguments. The last 
two statements are where you actually display the image.

One thing I will say its that if you want to use it for other than just 
occasional demos, you will have to register with Google for an API key, when 
gets tacked on to the end of the argument list for the URL.

If you’d like you can grab the working stack here (from the message box):

go stack URL 
"http://dight310.byu.edu/lesson_materials/14-Web_services/googleMaps.livecode;

Hope this helps.

Devin


On Apr 27, 2017, at 2:49 PM, William Prothero via use-livecode 
> wrote:

Folks:
Turns out there is a Google Static Map api. I’m trying to use it, but get no 
response from my code that indicates an error.
The Static Maps API URL is: 
https://developers.google.com/maps/documentation/static-maps/?csw=1 


From the dictionary, it looks like I can do this: (this is the example in the 
google docs. It gives me a map when I put the URL into the browser).
on mouseUp

 put mapURL() into tURL

 put tURL

  put URL tURL into x

  put x into image  “myGMap” —This, obviously won’t work. See below.

end mouseUp


function mapURL

   put 
"https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA=14=400x400=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4;
 into retURL

return retURL

end mapURL

I get text back that looks like that below. It is obviously in some format I 
can decode in Livecode. I’ve just reached my comfort level with this. How 
should I decode this. so I can set the imagedata to it?
Tnx,
Bill P

—start of returned text
âPNG



���
IHDR��ê��ê���∑a∆˛��ùPLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^aaabbbdddfffkgchhhmmmssstttxxxzzz4®S�õ⁄BÖÙDÑÚEÜÚIäÒNäÚOçÚPçÚSèÚTêÚXíZíÛYîÙaóÙbòıjùÙmûıt£Û{•}™Úó{WãocÍC5ËD8ËE:ÈG9ÈJ:ÈL?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: on tabKey - what field contains the blinking curser?

2017-04-27 Thread J. Landman Gay via use-livecode
The default is a tick (1/60 second). You could add "millisecond" after 
the 1 and that would probably be enough time. I get lazy with small time 
units when it doesn't matter much and tend to omit extra typing.


On 4/27/17 3:10 PM, Roger Eller via use-livecode wrote:

Send to X in 1 ?  Is the default a millisec?


On Apr 27, 2017 1:29 PM, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:

This seems to work:

on tabKey
  send "doSelect" to me in 1
  pass tabKey
end tabKey

on doSelect
  select after the selectedfield
end doSelect


On 4/26/17 7:21 PM, Roger Eller via use-livecode wrote:


When I tab to the next field, I want to select after the field content, or
in other words place the blinking bar at the end of whatever is already
there.  By default, it is placing it in front of the field content.

On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:

On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote:


How do I discover the name of the field which has received focus (blinking

edit bar cursor) when the tabKey is pressed?



One way:

on openfield
  put the name of the target
end openfield

I'm not sure if you want to trap a message though. The selectedField will
return identification if you're querying from inside another handler.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode







--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Getting a Google MAP

2017-04-27 Thread Mike Bonner via use-livecode
Since its a static map, its returned in image format (note the png at the
beginning)

You should be able to: put URL "
https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA=14=400x400=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4;
into img "myImage" and viola. have the map appear.

On Thu, Apr 27, 2017 at 2:49 PM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Folks:
> Turns out there is a Google Static Map api. I’m trying to use it, but get
> no response from my code that indicates an error.
> The Static Maps API URL is: https://developers.google.com/
> maps/documentation/static-maps/?csw=1  com/maps/documentation/static-maps/?csw=1>
>
> From the dictionary, it looks like I can do this: (this is the example in
> the google docs. It gives me a map when I put the URL into the browser).
> on mouseUp
>
>   put mapURL() into tURL
>
>   put tURL
>
>put URL tURL into x
>
>put x into image  “myGMap” —This, obviously won’t work. See below.
>
> end mouseUp
>
>
> function mapURL
>
> put "https://maps.googleapis.com/maps/api/staticmap?center=
> Berkeley,CA=14=400x400=AIzaSyCO423QzwaEEBmiw4XjPKzz4T
> cg_5bjHv4" into retURL
>
>  return retURL
>
> end mapURL
>
> I get text back that looks like that below. It is obviously in some format
> I can decode in Livecode. I’ve just reached my comfort level with this. How
> should I decode this. so I can set the imagedata to it?
> Tnx,
> Bill P
>
> —start of returned text
> âPNG
>
>
>
> ���
> IHDR�� ê�� ê  ���∑a∆˛�� ùPLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^
> aaabbbdddfffkgchhhmmmssstttxxxzzz   4®S�õ⁄BÖÙDÑÚEÜÚIäÒNäÚOçÚPçÚSèÚTêÚXí
> ZíÛYîÙaóÙbòıjùÙmûıt£Û{•}™Úó{WãocÍC5ËD8ËE:ÈG9ÈJ:ÈL?
>
>
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Getting a Google MAP

2017-04-27 Thread William Prothero via use-livecode
Folks:
Turns out there is a Google Static Map api. I’m trying to use it, but get no 
response from my code that indicates an error.
The Static Maps API URL is: 
https://developers.google.com/maps/documentation/static-maps/?csw=1 


From the dictionary, it looks like I can do this: (this is the example in the 
google docs. It gives me a map when I put the URL into the browser). 
on mouseUp

  put mapURL() into tURL

  put tURL

   put URL tURL into x

   put x into image  “myGMap” —This, obviously won’t work. See below. 

end mouseUp


function mapURL

put 
"https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA=14=400x400=AIzaSyCO423QzwaEEBmiw4XjPKzz4Tcg_5bjHv4;
 into retURL

 return retURL

end mapURL

I get text back that looks like that below. It is obviously in some format I 
can decode in Livecode. I’ve just reached my comfort level with this. How 
should I decode this. so I can set the imagedata to it?
Tnx,
Bill P

—start of returned text
âPNG 



���
IHDR��ê��ê���∑a∆˛��ùPLTE<84{<,KKKLLLNNNSPLPPPRRRTTTVVVYYY^^^aaabbbdddfffkgchhhmmmssstttxxxzzz4®S�õ⁄BÖÙDÑÚEÜÚIäÒNäÚOçÚPçÚSèÚTêÚXíZíÛYîÙaóÙbòıjùÙmûıt£Û{•}™Úó{WãocÍC5ËD8ËE:ÈG9ÈJ:ÈL?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Make numberFormat even better AND Cognitive Load

2017-04-27 Thread Mike Kerner via use-livecode
On the topic of keeping LC stupid-simple, here's of one of those ways that
LC makes ugly math fun:
#

put the short date into theDate
convert theDate to dateItems
put 0 into item 3 of theDate
convert theDate to short date
put theDate

#

On Wed, Apr 26, 2017 at 12:45 PM, Mike Kerner 
wrote:

> I think 3 is something we should scratch off the list, since we have more
> important fish for you to fry.
>
> On Wed, Apr 26, 2017 at 11:42 AM, Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> On 2017-04-26 16:00, prothero--- via use-livecode wrote:
>>
>>> Ok, I'll shut up about this for now. Sorry to unfocus the thread.
>>>
>>
>> To be fair, I managed to conflate three issues:
>>
>>   1) Improving numberFormat
>>
>>   2) How we could get arbitrary precision integers whilst retaining
>> doubles for reals
>>
>>   3) How to make numberFormat and array keys play nice together
>>
>> They are all distinct issues really, although the numberFormat is
>> involved in all three (at least in some way) :)
>>
>> Warmest Regards,
>>
>> Mark.
>>
>> --
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: on tabKey - what field contains the blinking curser?

2017-04-27 Thread Roger Eller via use-livecode
Send to X in 1 ?  Is the default a millisec?


On Apr 27, 2017 1:29 PM, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:

This seems to work:

on tabKey
  send "doSelect" to me in 1
  pass tabKey
end tabKey

on doSelect
  select after the selectedfield
end doSelect


On 4/26/17 7:21 PM, Roger Eller via use-livecode wrote:

> When I tab to the next field, I want to select after the field content, or
> in other words place the blinking bar at the end of whatever is already
> there.  By default, it is placing it in front of the field content.
>
> On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
>
> On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote:
>>
>> How do I discover the name of the field which has received focus (blinking
>>> edit bar cursor) when the tabKey is pressed?
>>>
>>>
>> One way:
>>
>> on openfield
>>   put the name of the target
>> end openfield
>>
>> I'm not sure if you want to trap a message though. The selectedField will
>> return identification if you're querying from inside another handler.
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>> ___
>> use-livecode mailing list
>> use-livecode@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@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mouseMove & backgoundBehavior

2017-04-27 Thread Jim Lambert via use-livecode
RichardG wrote:
> when you set the backgroundBehavior of a group to true... that group's script 
> then occupies a different 
> place in the message path, between the card and the stack
Ah, yes, the light dawns - the message path.
Because LC ‘backgrounds” can be smaller than the card, checking the target or 
using ‘within’ would be needed to constrain actions taken to the rect of a 
background group.

And since multiple backgrounds are possible, only the script of the topmost 
background seems to be inserted in between the card and stack in the message 
path.
One must click directly on objects within other, lower background groups to 
trigger its handlers.

Thanks,

JimL
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Map Widget"

2017-04-27 Thread William Prothero via use-livecode
Devin:
Looking at the dictionary, it only works on iOS. I need Mac and Windows 
platforms, and iOS is good, but limited. But, this external looks like it would 
do what I want, as it is described. It looks like it will take map data and 
make and image which I could then modify as I want.

Alas, no dice on the desktop. A cross platform Map widget that does this would 
be pretty useful.
Best,
Bill P

> On Apr 27, 2017, at 9:29 AM, Devin Asay via use-livecode 
>  wrote:
> 
> Bill,
> 
> Have you checked the mergMK extension referred to in the post? To my 
> knowledge the widget referred ton in the post has not yet been created.
> 
> To take another tack—have you looked at the Google Static Map API? If you’re 
> comfortable using RESTful API’s in LiveCode you can get a pretty serviceable 
> map display in your stack. The API just returns image data, so it’s pretty 
> straightforward to display the map in an image object.
> 
> https://developers.google.com/maps/documentation/static-maps/?csw=1
> 
> HTH
> 
> Devin
> 
> 
> On Apr 27, 2017, at 10:01 AM, William Prothero via use-livecode 
> > wrote:
> 
> Folks:
> On another aspect of this question, was a Map Widget, advertised on the site 
> I linked to below, ever created?
> https://livecode.com/map-widget-coming-to-livecode/ 
> 
> Bill
> 
> 
> William A. Prothero
> http://earthlearningsolution.org/
> 
> 
> I found this link on the LC site.
> https://livecode.com/map-widget-coming-to-livecode/ 
> 
> 
> Is there a map widget? Anybody working with google maps, not in a browser? If 
> so, could you point me to a URL for a starter
> Bill
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Map Widget"

2017-04-27 Thread William Prothero via use-livecode
Thanks for the info, Jonathon.
I’ll post what I find out.
Best,
Bill P

> On Apr 27, 2017, at 9:54 AM, Jonathan Lynch via use-livecode 
>  wrote:
> 
> Actually, I use tsnet for getting geocoding data from bing. Neither the put 
> URL command nor using a separate communication browser widget worked for that.
> 
> Sent from my iPhone
> 
>> On Apr 27, 2017, at 12:41 PM, jonathandly...@gmail.com wrote:
>> 
>> No - I don't even use google. I use bing maps, bing geocoding, and 
>> webglearth for 3D.
>> 
>> Google's TOS and reputation scares me.
>> 
>> I just use the browser widget, no other plugin.
>> 
>> Sent from my iPhone
>> 
>>> On Apr 27, 2017, at 12:26 PM, William Prothero via use-livecode 
>>>  wrote:
>>> 
>>> Jonathon:
>>> It looks like a Google Earth plugin is needed for Augmented Earth. True? 
>>> Does that give you installation issues? Does the Map Widget behave well 
>>> with plugins?
>>> Bill
>>> 
 On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode 
  wrote:
 
 I use maps in the browser widget extensively for Augmented Earth. It works 
 great.
 
 You could hypothetically export the image data from the HTML canvas 
 object, export the lat/lng boundaries, and present all of that through a 
 LiveCode image object. Be prepared to do a bit of math, but I think it 
 would work.
 
 Many of the map apis allow you to put both markers and polygons on a map 
 with JavaScript, which might give you better performance.
 
 Sent from my iPhone
 
> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode 
>  wrote:
> 
> What I'm thinking about is a map that I can control location and 
> magnification of a google map from livecode, do an image capture, and 
> draw symbols on that capture. I would need to be able to recover the 
> latitude and longitude of the displayed map boundaries.
> 
> I remember some discussions about whether image capture works with 
> browser windows.
> 
> If anybody has wisdom on whether this will work, before I spend a bunch 
> of time researching this, I'd be grateful. There is, I think, an API to 
> google Earth, which might be something to look into.
> 
> Thanks,
> Bill P
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I do not believe you can have a google map not in a browser. That is to 
>> say, you cannot have a google INTERACTIVE map. You can certainly drop 
>> screenshots in as graphics. 
>> 
>> Bob S
>> 
>> 
>>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
>>>  wrote:
>>> 
>>> I found this link on the LC site. 
>>> https://livecode.com/map-widget-coming-to-livecode/ 
>>> 
>>> 
>>> Is there a map widget? Anybody working with google maps, not in a 
>>> browser? If so, could you point me to a URL for a starter
>>> Bill
>>> 
>>> William A. Prothero
>>> http://earthlearningsolution.org/
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

Re: mouseMove & backgoundBehavior

2017-04-27 Thread Richard Gaskin via use-livecode

dunbarx wrote:

> I understand the reordering of the layers in the hierarchy. That is
> not the issue. If you modify the handler:
>
> on mousemove newMouseH, newMouseV
>if the mouseLoc is within the rect of me then put newMouseH, 
newMouseV

> end mousemove
>
> Even with backGroundBehavior set to "true", the message now only
> fires when the cursor is within the rect. Like it should. It is a
> matter of, er, control, not message passing. The constraint to be
> within the rect implies that the control is just what it seems to
> be, that is, only as large as it seems to be. This regardless of
> any change in the hierarchy.
>
> The group does not "take over" the whole card in the sense that you
> imply, unless (not impossible at all) I misunderstand you.

It's true that we can introduce a condition that constrains the outcome, 
but that's about the condition, not the change to the message path that 
gets introduce when you turn a group into a background.


Remember, in LC a group and a background may be the same physical 
objects, but they serve different roles.


HC never had a mouseMove message, so that may be less intuitive.  Let's 
consider another mouse message, mouseUp, instead:


If you put a mouseUp at the card or stack level, what happens?

Is it what you would expect?

Would you expect a background script situated in the message path 
between the two to act differently?


Change mouseUp to mouseMove (and most other messages), and unless I'm 
even shorter on sleep this morning than I think I am, I believe that 
appears to be what we're seeing here, no?


I think the challenge here is the flexibility of LC's groups.  It's 
possible to have a background that is smaller than the card.  And we can 
even have multiple backgrounds.  These are things we didn't have in HC, 
so when we need to support HC paradigms it can get confusing.


If it helps, limit your layout to one background, make it the full size 
of the card, keep it at layer 1, and voila! you have HyperCard. :)


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mouseMove & backgoundBehavior

2017-04-27 Thread dunbarx via use-livecode
Richard.

I understand the reordering of the layers in the hierarchy. That is not the
issue. If you modify the handler:

on mousemove newMouseH, newMouseV 
   if the mouseLoc is within the rect of me then put newMouseH, newMouseV 
end mousemove 

Even with backGroundBehavior set to "true", the message now only fires when
the cursor is within the rect. Like it should. It is a matter of, er,
control, not message passing. The constraint to be within the rect implies
that the control is just what it seems to be, that is, only as large as it
seems to be. This regardless of any change in the hierarchy.

The group does not "take over" the whole card in the sense that you imply,
unless (not impossible at all) I misunderstand you.

Craig



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/mouseMove-backgoundBehavior-tp4714294p4714314.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Swiping between cards - metaphor end-of-the-road?

2017-04-27 Thread Richard Gaskin via use-livecode

Matt Maier wrote:

> Maybe each card could have a parameter like "swipeTo" which would be
> the id of another card. Default could be nothing, which would disable
> swipe. But if there's a card id in there then swiping would put that
> card "underneath" so it's visible as the current card moves and if
> the swipe gesture completes the stack moves to that new card.
>
> The swipe gesture might be just a scroll that's handled as a swipe
> when the card can't scroll in that direction. Like if you swipe
> up/down the content scrolls, but if you swipe left/right, since
> there's no scroll in that direction, you get a swipe to another card.

I like where you're going with that.  But it also suggests other options 
that would be useful, more stuff to think over before submitting a request.


Rather than a single swipeDestination property to designate which card 
we go to during a swipte, ideally we'd want that for each of the four 
cardinal directions, e.g. swipeLeftDestination, swipeTopDestination, etc.


Also, it would be nice to be able to specify the origin threshold, since 
sometimes we'd want to initiate a drag from any part of the card and 
other times only from a certain edge.


Hmmm...not so simple once we dive into the full range of use-cases, but 
I do think it's worth exploring this here because it would be SO 
much simpler to use LC's card metaphor for modern apps if we had more 
fluid transition capabilities.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: on tabKey - what field contains the blinking curser?

2017-04-27 Thread J. Landman Gay via use-livecode

This seems to work:

on tabKey
  send "doSelect" to me in 1
  pass tabKey
end tabKey

on doSelect
  select after the selectedfield
end doSelect

On 4/26/17 7:21 PM, Roger Eller via use-livecode wrote:

When I tab to the next field, I want to select after the field content, or
in other words place the blinking bar at the end of whatever is already
there.  By default, it is placing it in front of the field content.

On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:


On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote:


How do I discover the name of the field which has received focus (blinking
edit bar cursor) when the tabKey is pressed?



One way:

on openfield
  put the name of the target
end openfield

I'm not sure if you want to trap a message though. The selectedField will
return identification if you're querying from inside another handler.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Swiping between cards - metaphor end-of-the-road?

2017-04-27 Thread Richard Gaskin via use-livecode

Paul Dupuis wrote:

> On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote:
>> Either way, the gestures themselves are only part of the challenge.
>> In fact, for card swiping we need only one, a swipe. The bigger part
>> is handling the dual-card render during the gesture.
>
>
> This would work (in theory) for the visualization except that didn't
> visual effect end in LC 8 with deprecating quicktime?
>
>   visual effect wipe left slowly
>   go next cd

That will give us an appearance suitable for a discrete action, like a 
button click, but it won't track the user's finger.


A true swipe follows the user's finger, and even cancels by swiping back 
into the original position if the user releases their finger before a 
certain horizontal threshold is reached.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Swiping between cards - metaphor end-of-the-road?

2017-04-27 Thread Matt Maier via use-livecode
Maybe each card could have a parameter like "swipeTo" which would be the id
of another card. Default could be nothing, which would disable swipe. But
if there's a card id in there then swiping would put that card "underneath"
so it's visible as the current card moves and if the swipe gesture
completes the stack moves to that new card.

The swipe gesture might be just a scroll that's handled as a swipe when the
card can't scroll in that direction. Like if you swipe up/down the content
scrolls, but if you swipe left/right, since there's no scroll in that
direction, you get a swipe to another card.

On Wed, Apr 26, 2017 at 1:41 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote:
> > Either way, the gestures themselves are only part of the challenge.
> > In fact, for card swiping we need only one, a swipe. The bigger part
> > is handling the dual-card render during the gesture.
>
>
> This would work (in theory) for the visualization except that didn't
> visual effect end in LC 8 with deprecating quicktime?
>
>   visual effect wipe left slowly
>   go next cd
>
>
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread Jonathan Lynch via use-livecode
Actually, I use tsnet for getting geocoding data from bing. Neither the put URL 
command nor using a separate communication browser widget worked for that.

Sent from my iPhone

> On Apr 27, 2017, at 12:41 PM, jonathandly...@gmail.com wrote:
> 
> No - I don't even use google. I use bing maps, bing geocoding, and webglearth 
> for 3D.
> 
> Google's TOS and reputation scares me.
> 
> I just use the browser widget, no other plugin.
> 
> Sent from my iPhone
> 
>> On Apr 27, 2017, at 12:26 PM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Jonathon:
>> It looks like a Google Earth plugin is needed for Augmented Earth. True? 
>> Does that give you installation issues? Does the Map Widget behave well with 
>> plugins?
>> Bill
>> 
>>> On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode 
>>>  wrote:
>>> 
>>> I use maps in the browser widget extensively for Augmented Earth. It works 
>>> great.
>>> 
>>> You could hypothetically export the image data from the HTML canvas object, 
>>> export the lat/lng boundaries, and present all of that through a LiveCode 
>>> image object. Be prepared to do a bit of math, but I think it would work.
>>> 
>>> Many of the map apis allow you to put both markers and polygons on a map 
>>> with JavaScript, which might give you better performance.
>>> 
>>> Sent from my iPhone
>>> 
 On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode 
  wrote:
 
 What I'm thinking about is a map that I can control location and 
 magnification of a google map from livecode, do an image capture, and draw 
 symbols on that capture. I would need to be able to recover the latitude 
 and longitude of the displayed map boundaries.
 
 I remember some discussions about whether image capture works with browser 
 windows.
 
 If anybody has wisdom on whether this will work, before I spend a bunch of 
 time researching this, I'd be grateful. There is, I think, an API to 
 google Earth, which might be something to look into.
 
 Thanks,
 Bill P
 
 William Prothero
 http://es.earthednet.org
 
> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I do not believe you can have a google map not in a browser. That is to 
> say, you cannot have a google INTERACTIVE map. You can certainly drop 
> screenshots in as graphics. 
> 
> Bob S
> 
> 
>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
>>  wrote:
>> 
>> I found this link on the LC site. 
>> https://livecode.com/map-widget-coming-to-livecode/ 
>> 
>> 
>> Is there a map widget? Anybody working with google maps, not in a 
>> browser? If so, could you point me to a URL for a starter
>> Bill
>> 
>> William A. Prothero
>> http://earthlearningsolution.org/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread Jonathan Lynch via use-livecode
No - I don't even use google. I use bing maps, bing geocoding, and webglearth 
for 3D.

Google's TOS and reputation scares me.

I just use the browser widget, no other plugin.

Sent from my iPhone

> On Apr 27, 2017, at 12:26 PM, William Prothero via use-livecode 
>  wrote:
> 
> Jonathon:
> It looks like a Google Earth plugin is needed for Augmented Earth. True? Does 
> that give you installation issues? Does the Map Widget behave well with 
> plugins?
> Bill
> 
>> On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode 
>>  wrote:
>> 
>> I use maps in the browser widget extensively for Augmented Earth. It works 
>> great.
>> 
>> You could hypothetically export the image data from the HTML canvas object, 
>> export the lat/lng boundaries, and present all of that through a LiveCode 
>> image object. Be prepared to do a bit of math, but I think it would work.
>> 
>> Many of the map apis allow you to put both markers and polygons on a map 
>> with JavaScript, which might give you better performance.
>> 
>> Sent from my iPhone
>> 
>>> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode 
>>>  wrote:
>>> 
>>> What I'm thinking about is a map that I can control location and 
>>> magnification of a google map from livecode, do an image capture, and draw 
>>> symbols on that capture. I would need to be able to recover the latitude 
>>> and longitude of the displayed map boundaries.
>>> 
>>> I remember some discussions about whether image capture works with browser 
>>> windows.
>>> 
>>> If anybody has wisdom on whether this will work, before I spend a bunch of 
>>> time researching this, I'd be grateful. There is, I think, an API to google 
>>> Earth, which might be something to look into.
>>> 
>>> Thanks,
>>> Bill P
>>> 
>>> William Prothero
>>> http://es.earthednet.org
>>> 
 On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode 
  wrote:
 
 I do not believe you can have a google map not in a browser. That is to 
 say, you cannot have a google INTERACTIVE map. You can certainly drop 
 screenshots in as graphics. 
 
 Bob S
 
 
> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
>  wrote:
> 
> I found this link on the LC site. 
> https://livecode.com/map-widget-coming-to-livecode/ 
> 
> 
> Is there a map widget? Anybody working with google maps, not in a 
> browser? If so, could you point me to a URL for a starter
> Bill
> 
> William A. Prothero
> http://earthlearningsolution.org/
 
 
 ___
 use-livecode mailing list
 use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work

2017-04-27 Thread Bob Sneidar via use-livecode
The problem with ambiguous counter names is that often there are nested repeat 
loops and knowing which counter for which loop is crucial to understanding the 
code. I almost never use i, j, k, l and when I do, I usually regret the choice 
and remember why I don't use them. 

Bob S


> On Apr 27, 2017, at 09:31 , Roland Huettmann via use-livecode 
>  wrote:
> 
> For local variables, I also do not like long expressions for simple
> counters which are created "on the fly". The most widely adopted standard
> is using i, j, k, l ... (not x and not tCount) -- but otherwise, local
> variables in LCS start with "t" in LCS as tSomething. But something should
> be recommended for all others to follow, and not just say "do as you like"


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mouseMove & backgoundBehavior

2017-04-27 Thread Richard Gaskin via use-livecode

Jim Lambert wrote:

> Make a group that is smaller than your card.
> Place this in the group’s script:
>on mousemove newMouseH, newMouseV
>put newMouseH, newMouseV
>end mousemove
>
> When the cursor moves around within the group the current mouseLoc is
> put into the message box. When the cursor moves outside of the group
> the mouseloc is no longer placed into the message box.
>
> Next set the backgroundBehaviour of the group to TRUE.
>
> Now wherever the cursor is within the CARD the mouseLoc is placed in
> the message box regardless of whether the cursor is within or without
> the rect of the group.
>
> The dictionary states, "The mouseMove message is sent to the control
> the mouse pointer is over, or to the card if no control is under the
> mouse pointer.”
>
> It is true that a background group is not 'officially' on a card
> (rather it’s on the background in HyperCard parlance.) But why would
> the mousemove message get passed to the card when the mouse is
> outside of the background group containing that handler?
>
> Is this a bug or expected behavior?

You've been working with LiveCode too long, and have forgotten the 
semantic roots of the ancient mother tongue. :)


In HC there was only one background on any given card, it was always 
present, and it filled the card.  All messages passed from the card to 
the background before moving on to the stack.


In LiveCode, groups by default act as controls, and their message 
handling works as you expect, in visual layer order, responding only to 
messages that occur in objects contained within the group.


But when you set the backgroundBehavior of a group to true, you're 
telling LC to act like HC: that group's script then occupies a different 
place in the message path, between the card and the stack, so that it 
can deliver what a ported HyperCard stack would expect.


This becomes clearer if you modify your recipe script:

on mousemove newMouseH, newMouseV
   put the name of the target, newMouseH, newMouseV  after message
end mousemove

With that you can observe behavioral differences between moving the 
mouse when the group's backgroundBehavior is true and when that's set to 
false.


When the backgroundBehavior is false, of course the only target is the 
control within the group, and that's the only target identified in the 
list growing in the Message Box.


But when true, you'll see a mix of objects, sometimes the control in the 
group and sometimes the card, depending on whether the mouse is within 
the control.


This becomes even more evident if you modify the recipe script to 
include "me", and pass the message, and then copy that to both the card 
and stack scripts:


on mousemove newMouseH, newMouseV
   put the name of me && the name of the target, newMouseH, newMouseV \
  after message
   pass mouseMove
end mousemove


TL;DR:  Don't go out of your way to use a property designed for 
HyperCard compatibility and you'll remain in the more flexible and 
sometimes more predictable LiveCode paradigms. :)


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work

2017-04-27 Thread Roland Huettmann via use-livecode
I am referring to the note from Richard and to our discussion about
Contribution From The Community - expanding the developer base to "hundreds
and thousands of users" -- even if only 10 will remain?.

Richard wrote:
> At the bottom of the "Contributing" page for the LC code base there are
> links to C++ style guides:
> https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md

These are just a few more links found with a quick search.

http://www.fourthworld.com/embassy/articles/scriptstyle.html#Naming
http://forums.livecode.com/viewtopic.php?f=7=22946
http://lessons.livecode.com/m/4603/l/284467-variables-in-livecode
http://forums.livecode.com/viewtopic.php?f=7=5265
http://stackoverflow.com/questions/16746794/what-are-some-best-practices-for-function-naming-in-livecode-runrev
http://use-livecode.runrev.narkive.com/ZPvn2z2N/object-naming-conventions
http://use-livecode.runrev.narkive.com/8REAd9JD/any-convention-on-naming-conventions

I kind of find it very important for joint work and contributions. Maybe
there should be a page from LiveCode offering at least a semi-official
Community Standards Guide (or whatever it would be called) for
LiveCode Script.

Or will we all switch to LCB and slowly forget about LCS? (I am not sure
here.)))

For local variables, I also do not like long expressions for simple
counters which are created "on the fly". The most widely adopted standard
is using i, j, k, l ... (not x and not tCount) -- but otherwise, local
variables in LCS start with "t" in LCS as tSomething. But something should
be recommended for all others to follow, and not just say "do as you like"
-- if there is any joint community effort expected.

Yes, I am using pSomething for parameters even though there could be
arguments against it. But I find them quickly in my script and know what
they mean.

And when I put something into the messages box, I ALWAYS type "put ... into
msg" instead of simply "put ..." because then I can find such instances
with the search and disable or enable such instructions. There are too many
"puts" to search for otherwise. Little things that make life easier.

But more important, an adopted COMMUNITY standard should be widely
available and prominently placed to allow new users and everyone to access
it at any time - maybe even as a separate section in the dictionary? I
suggest a section discussing the STANDARD way of naming, writing code,
naming functions, naming keywords, ways of commenting, what to avoid, what
to care for, warning from pit holes, how to publish to the community, how
to open new projects to the community, best way of debugging, best way of
implementing error detection in general, best way of avoiding the script
editor to open when users are using our app, single/multi user approaches
with a rights management, best way implementing a database management
system with remote databases depending on security issues and number of
concurrent users considerations, how to implement design concepts (such as
Googles material design), etc.

And it could also be argued that data-driven applications use a lot of
databases, and the naming conventions for such databases should be
maintained, for example not to use the "_" underscore as a first char for
field names, or not to use upperLower (camel case) naming when the database
distinguishes between upper and lower characters, because easily, simple
typing mistakes can create hours of searching the problem.

The best STANDARD here is to look for the LOWEST COMMON DENOMINATOR when
interfacing with other languages and systems. And we will interface sooner
or later.

The document should also talk about best practice in general, and for
specific cases. Let us not reinvent the wheel when others before us already
have found the optimal solution for a given problem. Yes, things can be
done in different ways, but then it would be up to the community to test
and do benchmarking and detect the better and decide for the best (rating
with stars?). There could be a competition to beat the benchmarks and a
gold medal for the best contribution.

What really means "quality" code here? Who can guide me, others, everyone?

Again, how can we (could I) contribute making this a reality? Who can
answer?)

Roland
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread Devin Asay via use-livecode
Bill,

Have you checked the mergMK extension referred to in the post? To my knowledge 
the widget referred ton in the post has not yet been created.

To take another tack—have you looked at the Google Static Map API? If you’re 
comfortable using RESTful API’s in LiveCode you can get a pretty serviceable 
map display in your stack. The API just returns image data, so it’s pretty 
straightforward to display the map in an image object.

https://developers.google.com/maps/documentation/static-maps/?csw=1

HTH

Devin


On Apr 27, 2017, at 10:01 AM, William Prothero via use-livecode 
> wrote:

Folks:
On another aspect of this question, was a Map Widget, advertised on the site I 
linked to below, ever created?
https://livecode.com/map-widget-coming-to-livecode/ 

Bill


William A. Prothero
http://earthlearningsolution.org/


I found this link on the LC site.
https://livecode.com/map-widget-coming-to-livecode/ 


Is there a map widget? Anybody working with google maps, not in a browser? If 
so, could you point me to a URL for a starter
Bill


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Map Widget"

2017-04-27 Thread William Prothero via use-livecode
Jonathon:
It looks like a Google Earth plugin is needed for Augmented Earth. True? Does 
that give you installation issues? Does the Map Widget behave well with plugins?
Bill

> On Apr 27, 2017, at 9:09 AM, Jonathan Lynch via use-livecode 
>  wrote:
> 
> I use maps in the browser widget extensively for Augmented Earth. It works 
> great.
> 
> You could hypothetically export the image data from the HTML canvas object, 
> export the lat/lng boundaries, and present all of that through a LiveCode 
> image object. Be prepared to do a bit of math, but I think it would work.
> 
> Many of the map apis allow you to put both markers and polygons on a map with 
> JavaScript, which might give you better performance.
> 
> Sent from my iPhone
> 
>> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode 
>>  wrote:
>> 
>> What I'm thinking about is a map that I can control location and 
>> magnification of a google map from livecode, do an image capture, and draw 
>> symbols on that capture. I would need to be able to recover the latitude and 
>> longitude of the displayed map boundaries.
>> 
>> I remember some discussions about whether image capture works with browser 
>> windows.
>> 
>> If anybody has wisdom on whether this will work, before I spend a bunch of 
>> time researching this, I'd be grateful. There is, I think, an API to google 
>> Earth, which might be something to look into.
>> 
>> Thanks,
>> Bill P
>> 
>> William Prothero
>> http://es.earthednet.org
>> 
>>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> I do not believe you can have a google map not in a browser. That is to 
>>> say, you cannot have a google INTERACTIVE map. You can certainly drop 
>>> screenshots in as graphics. 
>>> 
>>> Bob S
>>> 
>>> 
 On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
  wrote:
 
 I found this link on the LC site. 
 https://livecode.com/map-widget-coming-to-livecode/ 
 
 
 Is there a map widget? Anybody working with google maps, not in a browser? 
 If so, could you point me to a URL for a starter
 Bill
 
 William A. Prothero
 http://earthlearningsolution.org/
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread Jonathan Lynch via use-livecode
I use maps in the browser widget extensively for Augmented Earth. It works 
great.

You could hypothetically export the image data from the HTML canvas object, 
export the lat/lng boundaries, and present all of that through a LiveCode image 
object. Be prepared to do a bit of math, but I think it would work.

Many of the map apis allow you to put both markers and polygons on a map with 
JavaScript, which might give you better performance.

Sent from my iPhone

> On Apr 27, 2017, at 11:26 AM, William Prothero via use-livecode 
>  wrote:
> 
> What I'm thinking about is a map that I can control location and 
> magnification of a google map from livecode, do an image capture, and draw 
> symbols on that capture. I would need to be able to recover the latitude and 
> longitude of the displayed map boundaries.
> 
> I remember some discussions about whether image capture works with browser 
> windows.
> 
> If anybody has wisdom on whether this will work, before I spend a bunch of 
> time researching this, I'd be grateful. There is, I think, an API to google 
> Earth, which might be something to look into.
> 
> Thanks,
> Bill P
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I do not believe you can have a google map not in a browser. That is to say, 
>> you cannot have a google INTERACTIVE map. You can certainly drop screenshots 
>> in as graphics. 
>> 
>> Bob S
>> 
>> 
>>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
>>>  wrote:
>>> 
>>> I found this link on the LC site. 
>>> https://livecode.com/map-widget-coming-to-livecode/ 
>>> 
>>> 
>>> Is there a map widget? Anybody working with google maps, not in a browser? 
>>> If so, could you point me to a URL for a starter
>>> Bill
>>> 
>>> William A. Prothero
>>> http://earthlearningsolution.org/
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread William Prothero via use-livecode
Folks:
On another aspect of this question, was a Map Widget, advertised on the site I 
linked to below, ever created?
https://livecode.com/map-widget-coming-to-livecode/ 

Bill


William A. Prothero
http://earthlearningsolution.org/

> 
>>> I found this link on the LC site. 
>>> https://livecode.com/map-widget-coming-to-livecode/ 
>>> 
>>> 
>>> Is there a map widget? Anybody working with google maps, not in a browser? 
>>> If so, could you point me to a URL for a starter
>>> Bill
>>> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread William Prothero via use-livecode
What I'm thinking about is a map that I can control location and magnification 
of a google map from livecode, do an image capture, and draw symbols on that 
capture. I would need to be able to recover the latitude and longitude of the 
displayed map boundaries.

I remember some discussions about whether image capture works with browser 
windows.

If anybody has wisdom on whether this will work, before I spend a bunch of time 
researching this, I'd be grateful. There is, I think, an API to google Earth, 
which might be something to look into.

Thanks,
Bill P

William Prothero
http://es.earthednet.org

> On Apr 27, 2017, at 8:04 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I do not believe you can have a google map not in a browser. That is to say, 
> you cannot have a google INTERACTIVE map. You can certainly drop screenshots 
> in as graphics. 
> 
> Bob S
> 
> 
>> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
>>  wrote:
>> 
>> I found this link on the LC site. 
>> https://livecode.com/map-widget-coming-to-livecode/ 
>> 
>> 
>> Is there a map widget? Anybody working with google maps, not in a browser? 
>> If so, could you point me to a URL for a starter
>> Bill
>> 
>> William A. Prothero
>> http://earthlearningsolution.org/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Map Widget"

2017-04-27 Thread Bob Sneidar via use-livecode
I do not believe you can have a google map not in a browser. That is to say, 
you cannot have a google INTERACTIVE map. You can certainly drop screenshots in 
as graphics. 

Bob S


> On Apr 26, 2017, at 19:31 , William Prothero via use-livecode 
>  wrote:
> 
> I found this link on the LC site. 
> https://livecode.com/map-widget-coming-to-livecode/ 
> 
> 
> Is there a map widget? Anybody working with google maps, not in a browser? If 
> so, could you point me to a URL for a starter
> Bill
> 
> William A. Prothero
> http://earthlearningsolution.org/


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mouseMove & backgoundBehavior

2017-04-27 Thread dunbarx via use-livecode
Fascinating. I consider this unwanted, unwarranted and just awful behavior.

A group is ostensibly "just a control", and that is how it is touted to
those old HC'ers like me to make the loss of the HC backGround object layer
more palatable. The difference in that aspect of LC, as well as the way
menus are created, are the two most significant departures from simply
wandering into LC from a HC, er, backGround.

But if a group is just a control, then it has just a rect. Rects have
insides and outsides.

Anyway, I call it a bug, and should be either fixed or LOUDLY warned about.

Craig Newman



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/mouseMove-backgoundBehavior-tp4714294p4714298.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode