Re: Autodiscovery of LAN devices

2016-10-27 Thread Richard Gaskin
Thanks, Alex.  I may need something more refined later on, but for now 
my modest needs appear to be well met through simple brute force:


At the moment this is for some network tools for students to use in a 
classroom.  Ideally there would be no Internet connection, just a local 
network of a small number of devices all using a single wifi router.


I had experimented briefly with a UDP broadcast, but ran into an issue 
in which it seemed the server wasn't receiving the message.


Before spending more time on that I tried a different tack with TCP.

With Bob's IPCalc function I'm able to get the first and last addresses 
of the local subnet.  His function needs the local IP and subnet mask, 
which can be obtained on Mac and Linux with a shell call to ifconfig, 
and on Win with ipconfig.


Armed with that I just attempt a TCP connection to each device in turn, 
looking for a specific reply.  When I get what I expect, I know I've 
reached my app on the other machine.  Takes less than a second to scan 
the network.


Done in a few minutes' work.

Of course this won't do much for mobile devices (how do I get the local 
address on iOS and Android without shell?), but since UDP is off the 
table there anyway I'm no worse off, and can at least get started with 
laptops and Raspberry Pis happily talking to one another...


--
 Richard Gaskin
 Fourth World Systems


Alex Tweedly wrote:


it might help if you were to more precisely describe the problem you are
seeking to solve.

If you need to discover all/any/arbitrary listeners - then "what Bob said".

If you need to discover listeners for a specific port/service provided
by some other apps/servers in a standard way - then "what Monte said".

If you need to discover instances of "your own" server on the LAN, then
there may be an other solution. depending on how well defined "my
LAN" is.

Basically,

- every server listens for UDP packet on some port

  - client sends a broadcast UDP request to that port

  - servers respond.

This assumes that you can *reliably* depend on your LAN being a single
subnet, that your LAN is not too huge :-), that all servers are within
your control and you can add such a listener to them, etc.

NB - this is only a solution for desktops (only they can send broadcasts).

For ios you can use mergSomething :-)

For Android, afaik there isn't anything to allow broadcast transmission,
so I think your only solution for now is to move to a
broadcast/advertisement approach - servers (currently desktop only, you
said) must advertise their service, and Android clients can listen for
such adverts and thus learn where the service is available. This is only
feasible if you know of limits on the number of servers & services - or
(for-android as-client) if you are willing to add significant complexity
and have proxy-servers handle it for you; you can do that in an
automatic way (i.e. no configuration needed) but it is complex.

Don't even start down that road unless you need this for Android before
the timeframe for either bonjour or sockets on android.

(But if you do want to go down that road, get in touch I'd be happy to
collaborate)

-- Alex.


On 27/10/2016 22:12, Richard Gaskin wrote:

I'd like to have an app automatically discover and attempt connection
to other devices on my LAN.

Looking through the list archives I can find a few half-solutions, but
not one which works well across the platforms LC supports (Mac, Win,
Linux, iOS, Android).

At this time the only things listening on a port will be desktop
computers, but I still need to be able to connect with them from any
other device on the local network, and down the road I may want to
allow even handheld devices to take on an accept role.

Any robust, tested solutions available?




___
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


Thanks to Bob Sneidar

2016-10-27 Thread Richard Gaskin

Bob posted this IPCalc function last year:
http://lists.runrev.com/pipermail/use-livecode/2015-January/210704.html

Today I needed to get some network info, and turned that up searching 
the list archives.


Fine bit of work there, Bob.  Very useful - thanks!

--
 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: Autodiscovery of LAN devices

2016-10-27 Thread Alex Tweedly

Richard,


it might help if you were to more precisely describe the problem you are 
seeking to solve.


If you need to discover all/any/arbitrary listeners - then "what Bob said".

If you need to discover listeners for a specific port/service provided 
by some other apps/servers in a standard way - then "what Monte said".


If you need to discover instances of "your own" server on the LAN, then 
there may be an other solution. depending on how well defined "my 
LAN" is.


Basically,

- every server listens for UDP packet on some port

 - client sends a broadcast UDP request to that port

 - servers respond.

This assumes that you can *reliably* depend on your LAN being a single 
subnet, that your LAN is not too huge :-), that all servers are within 
your control and you can add such a listener to them, etc.


NB - this is only a solution for desktops (only they can send broadcasts).

For ios you can use mergSomething :-)

For Android, afaik there isn't anything to allow broadcast transmission, 
so I think your only solution for now is to move to a 
broadcast/advertisement approach - servers (currently desktop only, you 
said) must advertise their service, and Android clients can listen for 
such adverts and thus learn where the service is available. This is only 
feasible if you know of limits on the number of servers & services - or 
(for-android as-client) if you are willing to add significant complexity 
and have proxy-servers handle it for you; you can do that in an 
automatic way (i.e. no configuration needed) but it is complex.


Don't even start down that road unless you need this for Android before 
the timeframe for either bonjour or sockets on android.


(But if you do want to go down that road, get in touch I'd be happy to 
collaborate)


-- Alex.


On 27/10/2016 22:12, Richard Gaskin wrote:
I'd like to have an app automatically discover and attempt connection 
to other devices on my LAN.


Looking through the list archives I can find a few half-solutions, but 
not one which works well across the platforms LC supports (Mac, Win, 
Linux, iOS, Android).


At this time the only things listening on a port will be desktop 
computers, but I still need to be able to connect with them from any 
other device on the local network, and down the road I may want to 
allow even handheld devices to take on an accept role.


Any robust, tested solutions available?




___
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: Special character entry on Windows

2016-10-27 Thread Ralph DiMola
Bug report filed. http://quality.livecode.com/show_bug.cgi?id=18702

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Ralph DiMola
Sent: Thursday, October 27, 2016 3:53 PM
To: 'How to use LiveCode'
Subject: RE: Special character entry on Windows

Devin,

I tested on Win 10 pro VM and fired up the ol' XP. Results were the same.

Works in 6.7.6 and 6.7.11
Does not work in 7.1.4, 8.1.1 and 9.0 dp1

This affect LC fields, Message box and Inspector. I was testing with 0200(È). 
If you test in the message box you will see the 2 key does a down arrow. The 
alt key is doing nothing. It's a bug.


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Devin Asay
Sent: Thursday, October 27, 2016 2:31 PM
To: How to use LiveCode
Subject: Special character entry on Windows

Hi all,

I’m trying to answer a question on Stack Overflow, but my Windows knowledge is 
lacking in this area.

http://stackoverflow.com/questions/40230386/simple-user-entry-forspecial-characters-in-livecode-fields/40251025?noredirect=1#comment67771037_40251025
 


I thought you could enter accented characters and characters with diacriticals 
in LiveCode my using the standard Windows alt+numbers method. This doesn’t work 
for me in 8.1.0, however (the only version I have available to me on Windows at 
the moment.) Is this a bug? Does it work in earlier versions?

Thanks for any help.

Devin


Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/




___
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: Zealous "Save" prompts

2016-10-27 Thread Richard Gaskin

Thanks - done:
http://quality.livecode.com/show_bug.cgi?id=18701
--
 Richard Gaskin
 Fourth World Systems



Ali Lloyd ali.lloyd at livecode.com
Fri Oct 28 01:25:00 CEST 2016
Previous message (by thread): Zealous "Save" prompts
Next message (by thread): Autodiscovery of LAN devices
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
File one if that's ok - I only looked in response to your message!

On Fri, Oct 28, 2016 at 12:17 AM Richard Gaskin 
wrote:


Thanks, Ali.

Should I file a bug report, or is this fix already in progress?

--
  Richard Gaskin
  Fourth World Systems


Ali Lloyd wrote:

 > Looks like i introduced it here
 > https://github.com/livecode/livecode-ide/pull/1427/files
 >
 > openField used to check the mode of the stack before marking edited,
 > it seems.
 >
 > On Thu, Oct 27, 2016 at 9:52 PM Richard Gaskin wrote:
 >
 >> Any of you seeing inappropriate prompts to save stacks in v9?
 >>
 >> I'm occasionally seeing them for plugins and dialogs, places where I
 >> may have changed some text but not when the stack was toplevel or in
 >> any way affected by the pointer tool (plugins, things like that).
 >>
 >> Unfortunately I haven't yet pinned down a recipe to report it.
 >>
 >> If you've seen this let's discuss to see if we can come up with a
 >> simple recipe so it can be fixed.





___
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: Zealous "Save" prompts

2016-10-27 Thread Ali Lloyd
File one if that's ok - I only looked in response to your message!

On Fri, Oct 28, 2016 at 12:17 AM Richard Gaskin 
wrote:

> Thanks, Ali.
>
> Should I file a bug report, or is this fix already in progress?
>
> --
>   Richard Gaskin
>   Fourth World Systems
>
>
> Ali Lloyd wrote:
>
>  > Looks like i introduced it here
>  > https://github.com/livecode/livecode-ide/pull/1427/files
>  >
>  > openField used to check the mode of the stack before marking edited,
>  > it seems.
>  >
>  > On Thu, Oct 27, 2016 at 9:52 PM Richard Gaskin wrote:
>  >
>  >> Any of you seeing inappropriate prompts to save stacks in v9?
>  >>
>  >> I'm occasionally seeing them for plugins and dialogs, places where I
>  >> may have changed some text but not when the stack was toplevel or in
>  >> any way affected by the pointer tool (plugins, things like that).
>  >>
>  >> Unfortunately I haven't yet pinned down a recipe to report it.
>  >>
>  >> If you've seen this let's discuss to see if we can come up with a
>  >> simple recipe so it can be fixed.
>
>
>
> ___
> 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: Zealous "Save" prompts

2016-10-27 Thread Richard Gaskin

Thanks, Ali.

Should I file a bug report, or is this fix already in progress?

--
 Richard Gaskin
 Fourth World Systems


Ali Lloyd wrote:

> Looks like i introduced it here
> https://github.com/livecode/livecode-ide/pull/1427/files
>
> openField used to check the mode of the stack before marking edited,
> it seems.
>
> On Thu, Oct 27, 2016 at 9:52 PM Richard Gaskin wrote:
>
>> Any of you seeing inappropriate prompts to save stacks in v9?
>>
>> I'm occasionally seeing them for plugins and dialogs, places where I
>> may have changed some text but not when the stack was toplevel or in
>> any way affected by the pointer tool (plugins, things like that).
>>
>> Unfortunately I haven't yet pinned down a recipe to report it.
>>
>> If you've seen this let's discuss to see if we can come up with a
>> simple recipe so it can be fixed.



___
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: Zealous "Save" prompts

2016-10-27 Thread Ali Lloyd
Looks like i introduced it here
https://github.com/livecode/livecode-ide/pull/1427/files

openField used to check the mode of the stack before marking edited, it
seems.

On Thu, Oct 27, 2016 at 9:52 PM Richard Gaskin 
wrote:

> Any of you seeing inappropriate prompts to save stacks in v9?
>
> I'm occasionally seeing them for plugins and dialogs, places where I may
> have changed some text but not when the stack was toplevel or in any way
> affected by the pointer tool (plugins, things like that).
>
> Unfortunately I haven't yet pinned down a recipe to report it.
>
> If you've seen this let's discuss to see if we can come up with a simple
> recipe so it can be fixed.
>
> Thanks -
>
> --
>   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: Autodiscovery of LAN devices

2016-10-27 Thread Bob Sneidar
Unless network devices are listening through their firewall, this can prove 
difficult. Spiceworks has a network scanner system that is extremely robust, 
you may want to look into how they do that. Basically, you can attempt to 
connect using WMIC on Windows, SSL on *nix systems, snmp for printers, 
switches, etc. and HTTP if all else fails. 

To do this however, you need credentials to actually get any detailed 
information. Windows is about as friendly a thing as you are going to find. You 
can find out a lot about a Windows workstation without administrative 
credentials. Apple, almost nothing. Printers, whatever you need essentially, 
using SNMP traps. 

If all you want to know is who is listening on what ports, telnet works pretty 
good. something like telnet 192.168.1.5 25 will tell you if something is 
listening on SMTP for example. It's just a matter of knowing all the standard 
ports and scanning for them. 

But LC does not seem to be the ideal thing for this. Instead, you may want to 
look into nmap. They have command line features for doing exactly what you 
want, minus the actual connection bit. 

Bob S


> On Oct 27, 2016, at 14:12 , Richard Gaskin  wrote:
> 
> I'd like to have an app automatically discover and attempt connection to 
> other devices on my LAN.
> 
> Looking through the list archives I can find a few half-solutions, but not 
> one which works well across the platforms LC supports (Mac, Win, Linux, iOS, 
> Android).
> 
> At this time the only things listening on a port will be desktop computers, 
> but I still need to be able to connect with them from any other device on the 
> local network, and down the road I may want to allow even handheld devices to 
> take on an accept role.
> 
> Any robust, tested solutions available?
> 
> -- 
> 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: Autodiscovery of LAN devices

2016-10-27 Thread Monte Goulding
There’s a feature request open for cross platform bonjour/zeroconf. That’s what 
you want for this. We have mergBonjour for iOS and OS X at present.

Cheers

Monte

> On 28 Oct. 2016, at 8:12 am, Richard Gaskin  
> wrote:
> 
> I'd like to have an app automatically discover and attempt connection to 
> other devices on my LAN.
> 
> Looking through the list archives I can find a few half-solutions, but not 
> one which works well across the platforms LC supports (Mac, Win, Linux, iOS, 
> Android).
> 
> At this time the only things listening on a port will be desktop computers, 
> but I still need to be able to connect with them from any other device on the 
> local network, and down the road I may want to allow even handheld devices to 
> take on an accept role.
> 
> Any robust, tested solutions available?
> 
> -- 
> 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

Autodiscovery of LAN devices

2016-10-27 Thread Richard Gaskin
I'd like to have an app automatically discover and attempt connection to 
other devices on my LAN.


Looking through the list archives I can find a few half-solutions, but 
not one which works well across the platforms LC supports (Mac, Win, 
Linux, iOS, Android).


At this time the only things listening on a port will be desktop 
computers, but I still need to be able to connect with them from any 
other device on the local network, and down the road I may want to allow 
even handheld devices to take on an accept role.


Any robust, tested solutions available?

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


Zealous "Save" prompts

2016-10-27 Thread Richard Gaskin

Any of you seeing inappropriate prompts to save stacks in v9?

I'm occasionally seeing them for plugins and dialogs, places where I may 
have changed some text but not when the stack was toplevel or in any way 
affected by the pointer tool (plugins, things like that).


Unfortunately I haven't yet pinned down a recipe to report it.

If you've seen this let's discuss to see if we can come up with a simple 
recipe so it can be fixed.


Thanks -

--
 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: Special character entry on Windows

2016-10-27 Thread Ralph DiMola
Devin,

I tested on Win 10 pro VM and fired up the ol' XP. Results were the same.

Works in 6.7.6 and 6.7.11
Does not work in 7.1.4, 8.1.1 and 9.0 dp1

This affect LC fields, Message box and Inspector. I was testing with 0200(È). 
If you test in the message box you will see the 2 key does a down arrow. The 
alt key is doing nothing. It's a bug.


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Devin Asay
Sent: Thursday, October 27, 2016 2:31 PM
To: How to use LiveCode
Subject: Special character entry on Windows

Hi all,

I’m trying to answer a question on Stack Overflow, but my Windows knowledge is 
lacking in this area.

http://stackoverflow.com/questions/40230386/simple-user-entry-forspecial-characters-in-livecode-fields/40251025?noredirect=1#comment67771037_40251025
 


I thought you could enter accented characters and characters with diacriticals 
in LiveCode my using the standard Windows alt+numbers method. This doesn’t work 
for me in 8.1.0, however (the only version I have available to me on Windows at 
the moment.) Is this a bug? Does it work in earlier versions?

Thanks for any help.

Devin


Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/




___
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

Special character entry on Windows

2016-10-27 Thread Devin Asay
Hi all,

I’m trying to answer a question on Stack Overflow, but my Windows knowledge is 
lacking in this area.

http://stackoverflow.com/questions/40230386/simple-user-entry-forspecial-characters-in-livecode-fields/40251025?noredirect=1#comment67771037_40251025
 


I thought you could enter accented characters and characters with diacriticals 
in LiveCode my using the standard Windows alt+numbers method. This doesn’t work 
for me in 8.1.0, however (the only version I have available to me on Windows at 
the moment.) Is this a bug? Does it work in earlier versions?

Thanks for any help.

Devin


Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/




___
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: Using return in a command script

2016-10-27 Thread dunbarx
Can't you use a function handler instead? These have a rock-solid call/return
methodology.

Craig



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Using-return-in-a-command-script-tp4709807p4709855.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: Using Apple maps on iOS

2016-10-27 Thread John Allijn
Thanks! I'm using indy: perfect!

> Op 27 okt. 2016 om 16:43 heeft Stephen MacLean  het 
> volgende geschreven:
> 
> Hi John,
> 
> If you are using Indy or Business, mergMK is exactly what you need… MapKit 
> for iOS.
> 
> Best,
> 
> Steve MacLean
> 
>> On Oct 27, 2016, at 10:08 AM, John Allijn  wrote:
>> 
>> Hi,
>> 
>> I’m working on a mobile (iPhone) app and I’m a bit stuck at the map portion 
>> of it. 
>> The app is supposed to show a map with POI’s. when you tap the POI, the app 
>> should go to a card with information. 
>> After a bit of trial and error I was able to make a browser object on my 
>> card, but whenever I put an apple map URL in it, It will jump to either 
>> google maps or apple maps, depending on the scheme used. Further more, I 
>> don’t seem to be able to show multiple POI’s on the map.
>> 
>> Has anyone worked with this kind of map-usage before? is there a way to 
>> embed a map into a card and use the POI’s to navigate/jump to different 
>> cards?
>> 
>> thanks in advance!
>> 
>> John. 
>> ___
>> 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: Using return in a command script

2016-10-27 Thread Bob Sneidar
Thanks Monte. I've come to see that returning a value from a built in message 
handler is a no go.

Bob S


On Oct 26, 2016, at 16:36 , Monte Goulding 
> wrote:

OK, just to make sure I understand you I’ll summarise in code:

on openCard
  go card “database setup”
  if the result is false then
 — database setup failed
  end if
end openCard

— database setup card script
on openCard
  — do stuff
  return stuffFailed
end openCard

If ^ is what you are doing then no it won’t work. The result after the go 
command is an error message if it failed rather than anything returned by 
openCard.

Cheers

Monte

___
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: Using Apple maps on iOS

2016-10-27 Thread Stephen MacLean
Hi John,

If you are using Indy or Business, mergMK is exactly what you need… MapKit for 
iOS.

Best,

Steve MacLean

> On Oct 27, 2016, at 10:08 AM, John Allijn  wrote:
> 
> Hi,
> 
> I’m working on a mobile (iPhone) app and I’m a bit stuck at the map portion 
> of it. 
> The app is supposed to show a map with POI’s. when you tap the POI, the app 
> should go to a card with information. 
> After a bit of trial and error I was able to make a browser object on my 
> card, but whenever I put an apple map URL in it, It will jump to either 
> google maps or apple maps, depending on the scheme used. Further more, I 
> don’t seem to be able to show multiple POI’s on the map.
> 
> Has anyone worked with this kind of map-usage before? is there a way to embed 
> a map into a card and use the POI’s to navigate/jump to different cards?
> 
> thanks in advance!
> 
> John. 
> ___
> 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

Using Apple maps on iOS

2016-10-27 Thread John Allijn
Hi,

I’m working on a mobile (iPhone) app and I’m a bit stuck at the map portion of 
it. 
The app is supposed to show a map with POI’s. when you tap the POI, the app 
should go to a card with information. 
After a bit of trial and error I was able to make a browser object on my card, 
but whenever I put an apple map URL in it, It will jump to either google maps 
or apple maps, depending on the scheme used. Further more, I don’t seem to be 
able to show multiple POI’s on the map.

Has anyone worked with this kind of map-usage before? is there a way to embed a 
map into a card and use the POI’s to navigate/jump to different cards?

thanks in advance!

John. 
___
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

AW: AW: AW: What do I have to prepare if enabling Hi-DPI scaling for Win standalone?

2016-10-27 Thread Tiemo Hollmann TB
Thanks for claryfying!
Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Peter TB Brett
Gesendet: Donnerstag, 27. Oktober 2016 16:04
An: How to use LiveCode 
Betreff: Re: AW: AW: What do I have to prepare if enabling Hi-DPI scaling
for Win standalone?



On 27/10/2016 14:57, Tiemo Hollmann TB wrote:
> Hi Peter,
>
> as far as I had understood an 1920x1080 display not yet a Hi-DPI 
> display and wouldn't trigger the Hi-DPI function, or am I wrong that 
> this option already would take action with such an display?
>

It's determined based on the system display scaling setting.  It will kick
in when your "program [is] blown up to 150% by the system rendering", as you
mentioned in a previous e-mail.

This is how we get the splash screen image and menu bar icons to look good
in LiveCode 9 DP 1 on my HiDPI Windows 10 laptop, for example.

  Peter

--
Dr Peter Brett  LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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: AW: AW: What do I have to prepare if enabling Hi-DPI scaling for Win standalone?

2016-10-27 Thread Peter TB Brett



On 27/10/2016 14:57, Tiemo Hollmann TB wrote:

Hi Peter,

as far as I had understood an 1920x1080 display not yet a Hi-DPI display and
wouldn't trigger the Hi-DPI function, or am I wrong that this option already
would take action with such an display?



It's determined based on the system display scaling setting.  It will 
kick in when your "program [is] blown up to 150% by the system 
rendering", as you mentioned in a previous e-mail.


This is how we get the splash screen image and menu bar icons to look 
good in LiveCode 9 DP 1 on my HiDPI Windows 10 laptop, for example.


 Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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


AW: AW: What do I have to prepare if enabling Hi-DPI scaling for Win standalone?

2016-10-27 Thread Tiemo Hollmann TB
Hi Peter,

as far as I had understood an 1920x1080 display not yet a Hi-DPI display and
wouldn't trigger the Hi-DPI function, or am I wrong that this option already
would take action with such an display?

Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Peter TB Brett
Gesendet: Donnerstag, 27. Oktober 2016 15:54
An: How to use LiveCode 
Betreff: Re: AW: What do I have to prepare if enabling Hi-DPI scaling for
Win standalone?

On 27/10/2016 14:43, Tiemo Hollmann TB wrote:

> Since this isn't a thing of Hi-DPI, I am not sure if and what I could 
> do, to make this better. Is LC already vector image ready for all 
> cases (plain image on screen, image as button icon, image in text?) 
> Beside this is pretty much work for me, to re-design all images as 
> vector images, I am not sure, if this is the only solution, or if I 
> could get back the smooth and little blurred appearance of my bitmap
images, like in LC 6 with any trick?

1) Make your images linked to an external image file
2) Add two files: myimagename.png and myimagen...@extra-high.png
3) LiveCode will automatically use the latter on HiDPI displays

  Peter

--
Dr Peter Brett  LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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: AW: What do I have to prepare if enabling Hi-DPI scaling for Win standalone?

2016-10-27 Thread Peter TB Brett

On 27/10/2016 14:43, Tiemo Hollmann TB wrote:


Since this isn't a thing of Hi-DPI, I am not sure if and what I could do, to
make this better. Is LC already vector image ready for all cases (plain
image on screen, image as button icon, image in text?) Beside this is pretty
much work for me, to re-design all images as vector images, I am not sure,
if this is the only solution, or if I could get back the smooth and little
blurred appearance of my bitmap images, like in LC 6 with any trick?


1) Make your images linked to an external image file
2) Add two files: myimagename.png and myimagen...@extra-high.png
3) LiveCode will automatically use the latter on HiDPI displays

 Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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


AW: What do I have to prepare if enabling Hi-DPI scaling for Win standalone?

2016-10-27 Thread Tiemo Hollmann TB
I have a customer, who complained that everything in my program, including
the text looks so blurred. I made some tests with an Dell Inspiron notebook,
which hasn't a Hi-DPI display, but a very crispy 1920x1080 display and
compared a main window of one of my LC programs, once compiled with LC 6.7
and once with LC 8.1 and the Hi-DPI option on.

Since this isn't a Hi-DPI display, probably the option has no influence and
both programs look pretty similar and sharp. But since 1920 x 1080 is pretty
small on a 13'' display, most users of such kind computers set the text size
system setting to 150% (as also recommended by Dell). Running this crispy
display at 150% text size, "all other programs still look fine and crispy",
but the comparison of my both program versions show pretty different
results. My LC 6.7 program blown up to 150% by the system rendering looks
completely blurred, every text and all bitmap images look smooth, but
blurred. - This is obviously that what my customer was seeing.

Due to the new rendering machine of LC 8.1 (or was it already 7?), all text
in my LC program looks sharp and fine, as in the other programs. BUT, my
bitmap images (some with text inside) look terrible. In opposite to LC 6 all
edges in the bitmap images look sharp, but pixeled and stepped and actually
worse as in LC 6.

Since this isn't a thing of Hi-DPI, I am not sure if and what I could do, to
make this better. Is LC already vector image ready for all cases (plain
image on screen, image as button icon, image in text?) Beside this is pretty
much work for me, to re-design all images as vector images, I am not sure,
if this is the only solution, or if I could get back the smooth and little
blurred appearance of my bitmap images, like in LC 6 with any trick?

How do you handle this?
Tiemo



-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Tiemo Hollmann TB
Gesendet: Montag, 24. Oktober 2016 11:42
An: LiveCode User Liste senden 
Betreff: What do I have to prepare if enabling Hi-DPI scaling for Win
standalone?

Hello,

 

Up to now I haven't enabled the Hi-DPI scaling for Windows standalones and
since I don't have a hi-dpi monitor I can't test the difference of my
standalones.

Do I have to prepare anything different, if I enable the hi-DPI scaling? Is
it necessary to exchange all images by images with higher resolution?
(180dpi instead of 96 dpi, though dpi actually is a thing for print work?)

I assume if I would show my existing program (non-hi-dpi) on a high DPI
monitor, all images will look blurred. But will they look sharper, if I keep
all images and just enable hi-DPI scaling without any new images? And is it
recommended to enable it by default? (If yes, why do we have this option at
all and it is not fixed standard?)

 

Any insights and experiences welcome

Tiemo

 

 

 

___
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