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

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

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

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

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

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

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

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

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

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 >

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

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,

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

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

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

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

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

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

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

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

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

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

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,

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

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,

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

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

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 ":"

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

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

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 ___

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

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: >

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

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

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

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

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