Re: Livecode with Window 7

2019-02-22 Thread Sannyasin Brahmanathaswami via use-livecode
Richard, good advice! 

Brahmanathaswami
 

On 2/20/19, 9:20 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

Best to proceed as though the machine is compromised. It may not be, but 
eight years without updates is dangerously long so better to err on the 
side of prudence: Deliver no software that provides uploads to your 
systems unless you have high confidence all inputs are thoroughly sanitized.



___
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: Preserving TabStops

2019-02-22 Thread Roger Guay via use-livecode
Thank you, Richard. That’s what I am doing and was hoping there was a more 
elegant and efficient way of doing it.

Cheer!

Roger

> On Feb 22, 2019, at 5:18 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Roger Guay wrote:
> 
> > Is there a way to put fld “Fld2" after fld “Fld1” and preserve the
> > TabStops of fld “Fld2” ?
> 
> Like textFont and other attributes, tabStops can be applied to the field, or 
> a paragraph within the field (v5.4 or later).
> 
> So you should be able to get the tabstops of fld 2, put the text after fld 1, 
> and then set the tabstops of the newly-added lines to the tabstops you'd 
> obtained from fld 2.
> 
> -- 
> 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: Preserving TabStops

2019-02-22 Thread Richard Gaskin via use-livecode

Roger Guay wrote:

> Is there a way to put fld “Fld2" after fld “Fld1” and preserve the
> TabStops of fld “Fld2” ?

Like textFont and other attributes, tabStops can be applied to the 
field, or a paragraph within the field (v5.4 or later).


So you should be able to get the tabstops of fld 2, put the text after 
fld 1, and then set the tabstops of the newly-added lines to the 
tabstops you'd obtained from fld 2.


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

Preserving TabStops

2019-02-22 Thread Roger Guay via use-livecode
Is there a way to put fld “Fld2" after fld “Fld1” and preserve the TabStops of 
fld “Fld2” ? 

Thanks very much,
Roger

___
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: [ANN] Release 9.0.3 RC-1

2019-02-22 Thread Richard Gaskin via use-livecode

Richmond wrote:

> This is lovely on macOS 10.14.4 beta 3, but I am a bit cheesed-off
> that the dictionary over on Linux STILL pops up in one's default
> browser *occluding* the IDE.

1. I don't think "occlude" means what you think it means.  See H.W. 
Fowler, "Dictionary of Modern English Usage", section "Love of the long 
word".  But seriously.  I love that book.  It's a hoot. (His chapter on 
split infinitives is even better.)


2. Did you read the Release Notes?  This is a known issue, in 
development but not worth holding up other critical things folks are 
demanding. As it is for this preview release, the Dict opens in a 
separate window, much as it does in the IDE. That the window happens to 
be a separate process is a minor annoyance, and likely to few.


--
 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: [ANN] Release 9.0.3 RC-1

2019-02-22 Thread Bob Sneidar via use-livecode
Sounds like you need a doctor! 

Bob S


> On Feb 22, 2019, at 11:44 , Richmond via use-livecode 
>  wrote:
> 
> This is lovely on macOS 10.14.4 beta 3, but I am a bit cheesed-off that
> the dictionary over on Linux STILL pops up in one's default browser 
> *occluding* the IDE.
> 
> Richmond.


___
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: [ANN] Release 9.0.3 RC-1

2019-02-22 Thread Richmond via use-livecode

This is lovely on macOS 10.14.4 beta 3, but I am a bit cheesed-off that
the dictionary over on Linux STILL pops up in one's default browser 
*occluding* the IDE.


Richmond.

On 21.02.19 16:00, panagiotis merakos via use-livecode wrote:

Dear list members,

We are pleased to announce the release of LiveCode 9.0.3 RC-1.


Getting the Release
===
You can get the release at https://downloads.livecode.com/livecode/ or via
the automatic updater.


Release Contents

LiveCode 9.0.3 RC-1 comes with more than 60 bugfixes and new features.
Moreover, dozens of Dictionary entries have been corrected and enhanced.

In addition, LiveCode 9.0.3 RC-1 includes:

- support for building with Xcode 10.1, using iOS 12.1 SDK (this is now a
requirement for apps submitted to the AppStore, starting this March)
- new tsNet and mergExt builds
- updated SQLite lib, with support for URI filenames

Known issues

- The Browser widget's native layer is not shown in some Linux distros with
Cinnamon window manager.
- The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS
yet.

The full release notes are available from:

http://downloads.livecode.com/livecode/9_0_3/LiveCodeNotes-9_0_3_rc_1.pdf


Feedback

Please report any bugs encountered on our BugZilla at
http://quality.livecode.com/

We have a forum available for discussing LiveCode Builder at
http://forums.livecode.com/viewforum.php?f=93


Have fun!
The LiveCode Team
--
___
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: Data grid : show an button in a column only if there is an email in other column

2019-02-22 Thread Bob Sneidar via use-livecode
I believe this works this way because the fillInData message gets sent to the 
row group that is currently getting updated. Because of this, "me" refers to 
the current row group, nd btn "sendmail" of me refers to the specific instance 
of button "sendmail" in that group. Otherwise btn "sendmail" would simply refer 
to the first (of many) buttons named "sendmail". 

HTH

Bob S


> On Feb 20, 2019, at 10:06 , Ludovic via use-livecode 
>  wrote:
> 
> I was not far away !
> 
> Thank you.
> 
>> Le 20 févr. 2019 à 17:58, zryip theSlug via use-livecode 
>>  a écrit :
>> 
>> Ludovic,
>> 
>> Try:
>> 
>> on FillInData pData
>> 
>>   if pData["email"] <> "" then show btn  "sendmail" of me
>> 
>>   else hide btn  "sendmail" of me
>> 
>> end FillInData

___
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: add file extension share for iOS app

2019-02-22 Thread Ludovic THEBAULT via use-livecode

> Le 22 févr. 2019 à 12:05, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> Ludovic,
> 
> thank you very much. I will try today evening. But how will i handle the file 
> in the App.
> Can i use the $1 variable for this like in the desktop apps? Or is there a 
> special message that takes care of it?
> 

You need to use urlwakeup.
See  http://forums.livecode.com/viewtopic.php?f=75=18775



___
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: SVG widget and grab me command

2019-02-22 Thread Håkan Liljegren via use-livecode
Or you can use an image instead as they happily handle SVG files nowadays…

:-Håkan
On 21 Feb 2019, 18:18 +0100, Tore Nilsen via use-livecode 
, wrote:
>
> The simple solution was to «group» each individual SVG widget and add the 
> grab me command to the group.
>
___
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: add file extension share for iOS app

2019-02-22 Thread Matthias Rebbe via use-livecode
Ludovic,

thank you very much. I will try today evening. But how will i handle the file 
in the App.
Can i use the $1 variable for this like in the desktop apps? Or is there a 
special message that takes care of it?

Matthias
> Am 22.02.2019 um 11:01 schrieb Ludovic THEBAULT via use-livecode 
> :
> 
> 
>> Le 22 févr. 2019 à 10:06, Matthias Rebbe via use-livecode 
>>  a écrit :
>> 
>> Hi,
>> 
>> i don´t know if it is the correct expression in the topic.
>> 
>> I need the possibility to share an email attachment on iOS with my iOS app.
>> I want to be able to open a .txt file received by email on iOS with my 
>> installed app.
>> Is there a way to do this with LC. Do i have to edit the plist file manually 
>> after creating the iOS app? 
>> And how does the app then takes notice of the file when the app is opened?
>> 
>> Matthias
> 
> 
> Hello, you need to create an iOS standalone, open the package (right clic on 
> the icon) and copy the « info.plist » file to the desktop.
> Then add these lines in this files :
> ...
> CFBundlePackageType
>   APPL
> # add these lines 
>   CFBundleDocumentTypes
>   
>
> CFBundleTypeName
> XXX   // name of your choice
> CFBundleTypeRole
> Viewer
> LSHandlerRank
> Owner
> LSItemContentTypes
> 
> com.owner.nameoftheapp.xxx // exampe: 
> com.microsoft.word.docx
> 
>
> 
> UTExportedTypeDeclarations
>
>
> UTTypeConformsTo
> 
> public.plain-text
> public.text
> 
> UTTypeDescription
>  XXX // name of your choice
> UTTypeIdentifier
> com.owner.nameoftheapp  // exampe: 
> com.microsoft.word
> UTTypeTagSpecification
> 
> public.filename-extension
> xxx // extension you want to handle
> 
>
>   
> ## end #
>   CFBundleSignature
>   
> 
> 
> Then, you need to add the info.plist to your app with the « Copy file » 
> section of the Standalone builder.
> ___
> 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: How to IMPORT CONTACTS and GPS location

2019-02-22 Thread Håkan Liljegren via use-livecode
Take a look at mobileFindContact, mobileGetContact etc (search for contact) in 
the dictionary… Remember though that you will get a dialog asking the user for 
permission and if they reject you will not be able to grab anything!

GPS is a system with satellites that your device can use to pin-point where it 
is on the globe (Global Positioning System), but I guess that you are asking 
for some geolocation based on an address. And yes you can do that via Google or 
any other provider of a map API. Do read the licensing careful as Google has 
limitations on how you can use the service and how much you need to pay (if you 
do a lot of lookups). To use The Google api you first need to get an API key. 
You then need to send that key together with every request:

https://maps.googleapis.com/maps/api/geocode/json?address=empire+state+building+new+york=YOUR_API_KEY

Another alternative is to use Open Street map. Take a look at:
https://wiki.openstreetmap.org/wiki/Nominatim

But if you are in a hurry the syntax is something like:
https://nominatim.openstreetmap.org/?format=json=1=empire+state+building+new+york=json=1

So to use that in your LiveCode application you can do

function nomatimLookup pQuery
   put 
"https://nominatim.openstreetmap.org/?format=json=1=json=1=;
 into tURL
   put textEncode(pQuery,"utf8") into pQuery
   replace space with "+" in pQuery
   put pQuery after tURL
   put url tURL into tResult
   return JSONToArray(tResult) // or jsonImport(tResult)
end nomatimLookup

This will return an array with data about the address and among those fields 
you find "lat" and "lon" for latitude and longitude if that was your GPS 
question...

But before you start using it, also take a look at the usage policy for the 
api: https://operations.osmfoundation.org/policies/nominatim/ and especially 
the requirements section!

There are a lot of other api providers that you can use also, depending on your 
need. But this will hopefully get you started...

Good Luck!

Håkan Liljegren
On 22 Feb 2019, 08:32 +0100, paolo mazza via use-livecode 
, wrote:
> Dear LiveCoders,
> I have not been using livecode for a while and do not know anymore
> what are the features of Livecode today.
> I would like to know
> - if LiveCode can IMPORT THE CONTACTS from the Iphone and Android systems
> - if it is possible to send an address to Google and get the GPS
> location from a LiveCode app.
> Best regards,
> Paolo Mazza
>
> ___
> 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: add file extension share for iOS app

2019-02-22 Thread Ludovic THEBAULT via use-livecode

> Le 22 févr. 2019 à 10:06, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> Hi,
> 
> i don´t know if it is the correct expression in the topic.
> 
> I need the possibility to share an email attachment on iOS with my iOS app.
> I want to be able to open a .txt file received by email on iOS with my 
> installed app.
> Is there a way to do this with LC. Do i have to edit the plist file manually 
> after creating the iOS app? 
> And how does the app then takes notice of the file when the app is opened?
> 
> Matthias


Hello, you need to create an iOS standalone, open the package (right clic on 
the icon) and copy the « info.plist » file to the desktop.
Then add these lines in this files :
...
CFBundlePackageType
APPL
# add these lines 
CFBundleDocumentTypes
   

 CFBundleTypeName
 XXX   // name of your choice
 CFBundleTypeRole
 Viewer
 LSHandlerRank
 Owner
 LSItemContentTypes
 
 com.owner.nameoftheapp.xxx // exampe: 
com.microsoft.word.docx
 

 
 UTExportedTypeDeclarations


 UTTypeConformsTo
 
 public.plain-text
 public.text
 
 UTTypeDescription
  XXX // name of your choice
 UTTypeIdentifier
 com.owner.nameoftheapp  // exampe: 
com.microsoft.word
 UTTypeTagSpecification
 
 public.filename-extension
 xxx // extension you want to handle
 


## end #
CFBundleSignature



Then, you need to add the info.plist to your app with the « Copy file » section 
of the Standalone builder.
___
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

add file extension share for iOS app

2019-02-22 Thread Matthias Rebbe via use-livecode
Hi,

i don´t know if it is the correct expression in the topic.

I need the possibility to share an email attachment on iOS with my iOS app.
I want to be able to open a .txt file received by email on iOS with my 
installed app.
Is there a way to do this with LC. Do i have to edit the plist file manually 
after creating the iOS app? 
And how does the app then takes notice of the file when the app is opened?

Matthias


___
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