Re: LC-Magick Collection

2017-02-01 Thread Roger Eller via use-livecode
There is a dedicated tracing stack somewhere on the LC forum.  I think it
was made about a year ago, maybe longer.

~Roger

On Feb 1, 2017 2:37 AM, "hh via use-livecode" 
wrote:

> Tracing all opaque parts of a picture with transparency, not only the
> outline, is one of the tools that BerndN uses in button "TracedAntialias"
> for the bilinear distortion, the tracing method used is "radial sweep".
>
> We should ask him to make an own 'little stack' for "Antialiased Tracing"
> where he describes his technique in some detail.
>
> There are already really marvellous imaging tools written in LiveCode
> available. And certainly I don't know all.
> Perhaps we should start to collect them at one place, ask the authors
> of these jewels to contribute.
>
> My idea for this LC-magick collection here was to add only such techniques
> that were not, or not this fast, available until now in LiveCode and that
> are somehow connected to imageMagick. But that's only an idea.
>
> As my last contribution for a while will follow this month
> "DeLinear Perspective Distortion"
> a tool that may help to "UnPerspective/ UnRotate/ UnSkew". Especially
> people using OCR sometimes need that.
>
> Hopefully others come in to enlarge this collection or build a new one.
> Just open your treasure chests.
>
> Hermann
>
> > Roger E. wrote:
> > I think your stack that traces the outlines of a multicolor PNG into
> polygon shapes would be a fabulous addition to this image tool collection.
> ~Roger
> > > hh wrote:
> > > Added today #6: Bilinear Perspective Image Distortion
> > > Distortion part by 'hh', Antialiasing part by 'BNig'.
> > >
> > > LC-Magick #1 - Blur and Pixelate (Scott R.)
> > > http://tactilemedia.com/blog/2016/03/26/update-blur-effect-
> > > plus-pixelize-bonus/
> > > LC-Magick #2 - Pointillize (Hermann H.)
> > > http://forums.livecode.com/viewtopic.php?p=141051#p141051
> > > LC-Magick #3 - Image Multiplexing (Hermann H.)
> > > http://forums.livecode.com/viewtopic.php?p=141272#p141272
> > > LC-Magick #4 - Linear Perspective Image Distortion (Hermann H.)
> > > http://forums.livecode.com/viewtopic.php?p=148647#p148647
> > > LC-Magick #5 - Circular (Polar) Image Distortion (Hermann H. and Bernd
> N.)
> > > http://forums.livecode.com/viewtopic.php?p=14#p14
> > > LC-Magick #6 - Bilinear Perspective Image Distortion (Hermann H. and
> Bernd
> > > N.)
> > > http://forums.livecode.com/viewtopic.php?p=150757#p150757
> > >
> > > Most of it is based on ideas presented in imageMagick's documentation
> > > http://www.imagemagick.org/Usage/
>
> ___
> 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: Mobile library for barcodes?

2017-02-01 Thread Roger Eller via use-livecode
No worries, Mike.  Someday perhaps a widget for every platform will
eMERGE.  /see what I did there.  :)

On Jan 31, 2017 10:03 PM, "Mike Kerner via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> Roger, I agree.  I was not aware, until you mentioned it, this evening,
> that zx ran on android.  If that is the case, and mergAV does not, then of
> course it should not be deprecated, at least on Android.  On iOS, it is not
> as useful for barcode scanning and recognition as mergAV is.  Anyway,
> Jonathan, you would need mergAV to tell the camera to capture the image (on
> ios), so I am not sure why you would then have a separate JS library
> attempt to read it, since AV also includes a BC interpretation component.
>
> On Tue, Jan 31, 2017 at 9:13 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > When a question about what's available for "mobile" is raised, I always
> > read it as "android, iOS, and maybe even Windows-mobile".  I never
> > purchaced the full merg-suite because it doesn't fully support all of
> > LiveCodes mobile platforms.  I do have mergZXing because it works on
> > Android.  It shouldn't be deprecated unless there is an x-plat
> replacement.
> >
> > ~Roger
> >
> > On Jan 31, 2017 5:48 PM, "Mike Kerner via use-livecode" <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > See my email.  mergAV is choice #1 for reading.  mergZX reads, but is
> not
> > > as advanced as mergAV and really should be deprecated because it does
> not
> > > have any features that mergAV does not have.  It just uses a different
> > code
> > > base.
> > ___
> > 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."
> ___
> 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: Mobile library for barcodes?

2017-02-01 Thread Jonathan Lynch via use-livecode
Yah, that is an issue. The getUserMedia() method does not work in any form on 
iPhone. Wow, that's annoying.

Good to know - thanks Mike.

Sent from my iPhone

> On Feb 1, 2017, at 6:47 AM, Roger Eller via use-livecode 
>  wrote:
> 
> No worries, Mike.  Someday perhaps a widget for every platform will
> eMERGE.  /see what I did there.  :)
> 
> On Jan 31, 2017 10:03 PM, "Mike Kerner via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
> 
>> Roger, I agree.  I was not aware, until you mentioned it, this evening,
>> that zx ran on android.  If that is the case, and mergAV does not, then of
>> course it should not be deprecated, at least on Android.  On iOS, it is not
>> as useful for barcode scanning and recognition as mergAV is.  Anyway,
>> Jonathan, you would need mergAV to tell the camera to capture the image (on
>> ios), so I am not sure why you would then have a separate JS library
>> attempt to read it, since AV also includes a BC interpretation component.
>> 
>> On Tue, Jan 31, 2017 at 9:13 PM, Roger Eller via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> When a question about what's available for "mobile" is raised, I always
>>> read it as "android, iOS, and maybe even Windows-mobile".  I never
>>> purchaced the full merg-suite because it doesn't fully support all of
>>> LiveCodes mobile platforms.  I do have mergZXing because it works on
>>> Android.  It shouldn't be deprecated unless there is an x-plat
>> replacement.
>>> 
>>> ~Roger
>>> 
>>> On Jan 31, 2017 5:48 PM, "Mike Kerner via use-livecode" <
>>> use-livecode@lists.runrev.com> wrote:
 
 See my email.  mergAV is choice #1 for reading.  mergZX reads, but is
>> not
 as advanced as mergAV and really should be deprecated because it does
>> not
 have any features that mergAV does not have.  It just uses a different
>>> code
 base.
>>> ___
>>> 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."
>> ___
>> 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: LC-Magick Collection

2017-02-01 Thread Roger Eller via use-livecode
*FOUND IT:*  TracingBN_0_3.livecode.zip

and
sample files: images with transparency.zip


At the bottom of this thread:
http://forums.livecode.com/viewtopic.php?f=9&t=13399&p=64351#p64351

~Roger


On Wed, Feb 1, 2017 at 6:41 AM, Roger Eller 
wrote:

> There is a dedicated tracing stack somewhere on the LC forum.  I think it
> was made about a year ago, maybe longer.
>
> ~Roger
>
> On Feb 1, 2017 2:37 AM, "hh via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
>
>> Tracing all opaque parts of a picture with transparency, not only the
>> outline, is one of the tools that BerndN uses in button "TracedAntialias"
>> for the bilinear distortion, the tracing method used is "radial sweep".
>>
>> We should ask him to make an own 'little stack' for "Antialiased Tracing"
>> where he describes his technique in some detail.
>>
>> There are already really marvellous imaging tools written in LiveCode
>> available. And certainly I don't know all.
>> Perhaps we should start to collect them at one place, ask the authors
>> of these jewels to contribute.
>>
>> My idea for this LC-magick collection here was to add only such techniques
>> that were not, or not this fast, available until now in LiveCode and that
>> are somehow connected to imageMagick. But that's only an idea.
>>
>> As my last contribution for a while will follow this month
>> "DeLinear Perspective Distortion"
>> a tool that may help to "UnPerspective/ UnRotate/ UnSkew". Especially
>> people using OCR sometimes need that.
>>
>> Hopefully others come in to enlarge this collection or build a new one.
>> Just open your treasure chests.
>>
>> Hermann
>>
>> > Roger E. wrote:
>> > I think your stack that traces the outlines of a multicolor PNG into
>> polygon shapes would be a fabulous addition to this image tool collection.
>> ~Roger
>> > > hh wrote:
>> > > Added today #6: Bilinear Perspective Image Distortion
>> > > Distortion part by 'hh', Antialiasing part by 'BNig'.
>> > >
>> > > LC-Magick #1 - Blur and Pixelate (Scott R.)
>> > > http://tactilemedia.com/blog/2016/03/26/update-blur-effect-
>> > > plus-pixelize-bonus/
>> > > LC-Magick #2 - Pointillize (Hermann H.)
>> > > http://forums.livecode.com/viewtopic.php?p=141051#p141051
>> > > LC-Magick #3 - Image Multiplexing (Hermann H.)
>> > > http://forums.livecode.com/viewtopic.php?p=141272#p141272
>> > > LC-Magick #4 - Linear Perspective Image Distortion (Hermann H.)
>> > > http://forums.livecode.com/viewtopic.php?p=148647#p148647
>> > > LC-Magick #5 - Circular (Polar) Image Distortion (Hermann H. and
>> Bernd N.)
>> > > http://forums.livecode.com/viewtopic.php?p=14#p14
>> > > LC-Magick #6 - Bilinear Perspective Image Distortion (Hermann H. and
>> Bernd
>> > > N.)
>> > > http://forums.livecode.com/viewtopic.php?p=150757#p150757
>> > >
>> > > Most of it is based on ideas presented in imageMagick's documentation
>> > > http://www.imagemagick.org/Usage/
>>
>> ___
>> 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: 'the printerSettings' LC Indy 7.0 to 8.1.3 rc1

2017-02-01 Thread panagiotis merakos via use-livecode
Hi Rob,

I can replicate this, and this is a bug introduced in LC 7. I will submit a
PR with the fix soon.

Best,
Panos
--

On Tue, Jan 31, 2017 at 7:16 PM, Robert Eppich via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The following pasted into the message box returns the result: “unknown
> printer”, in LC Indy 8.1.3 rc1 through to 7.0.
> This script operates correctly in Livecode versions up to 6.7.7, by
> returning the result as empty.
>
> put the printerSettings into tps
> set the printerSettings to tps
> put the result
>
> Can anyone replicate this between versions 7.0 to 8.1.3 rc1? Or have a
> workaround to get it working in those versions?
>
> Thanks
> Rob Eppich
> ___
> 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




-- 
Panagiotis Merakos 
LiveCode Software Developer

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

Re: 'the printerSettings' LC Indy 7.0 to 8.1.3 rc1

2017-02-01 Thread panagiotis merakos via use-livecode
You can add your email in the cc list of this bug report
http://quality.livecode.com/show_bug.cgi?id=19200 if you want to be
notified when the fix is available.

On Wed, Feb 1, 2017 at 3:21 PM, panagiotis merakos <
panos.mera...@livecode.com> wrote:

> Hi Rob,
>
> I can replicate this, and this is a bug introduced in LC 7. I will submit
> a PR with the fix soon.
>
> Best,
> Panos
> --
>
> On Tue, Jan 31, 2017 at 7:16 PM, Robert Eppich via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> The following pasted into the message box returns the result: “unknown
>> printer”, in LC Indy 8.1.3 rc1 through to 7.0.
>> This script operates correctly in Livecode versions up to 6.7.7, by
>> returning the result as empty.
>>
>> put the printerSettings into tps
>> set the printerSettings to tps
>> put the result
>>
>> Can anyone replicate this between versions 7.0 to 8.1.3 rc1? Or have a
>> workaround to get it working in those versions?
>>
>> Thanks
>> Rob Eppich
>> ___
>> 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
>
>
>
>
> --
> Panagiotis Merakos 
> LiveCode Software Developer
>
> Everyone Can Create Apps 
>



-- 
Panagiotis Merakos 
LiveCode Software Developer

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

Re: Mobile library for barcodes?

2017-02-01 Thread Mike Kerner via use-livecode
Roger, golf clap.  With one hand.
Jonathan, that's by design.  We've had enough spyware on PC's that cause
the camera to take video and stills.  In fact, there was a case of a local
rent-to-own company near me commissioning such software and then they had
installed on every PC they rented.  When they had problems collecting
payments, they went to work.  True story.

On Wed, Feb 1, 2017 at 8:43 AM, Jonathan Lynch via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Yah, that is an issue. The getUserMedia() method does not work in any form
> on iPhone. Wow, that's annoying.
>
> Good to know - thanks Mike.
>
> Sent from my iPhone
>
> > On Feb 1, 2017, at 6:47 AM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > No worries, Mike.  Someday perhaps a widget for every platform will
> > eMERGE.  /see what I did there.  :)
> >
> > On Jan 31, 2017 10:03 PM, "Mike Kerner via use-livecode" <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Roger, I agree.  I was not aware, until you mentioned it, this evening,
> >> that zx ran on android.  If that is the case, and mergAV does not, then
> of
> >> course it should not be deprecated, at least on Android.  On iOS, it is
> not
> >> as useful for barcode scanning and recognition as mergAV is.  Anyway,
> >> Jonathan, you would need mergAV to tell the camera to capture the image
> (on
> >> ios), so I am not sure why you would then have a separate JS library
> >> attempt to read it, since AV also includes a BC interpretation
> component.
> >>
> >> On Tue, Jan 31, 2017 at 9:13 PM, Roger Eller via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> When a question about what's available for "mobile" is raised, I always
> >>> read it as "android, iOS, and maybe even Windows-mobile".  I never
> >>> purchaced the full merg-suite because it doesn't fully support all of
> >>> LiveCodes mobile platforms.  I do have mergZXing because it works on
> >>> Android.  It shouldn't be deprecated unless there is an x-plat
> >> replacement.
> >>>
> >>> ~Roger
> >>>
> >>> On Jan 31, 2017 5:48 PM, "Mike Kerner via use-livecode" <
> >>> use-livecode@lists.runrev.com> wrote:
> 
>  See my email.  mergAV is choice #1 for reading.  mergZX reads, but is
> >> not
>  as advanced as mergAV and really should be deprecated because it does
> >> not
>  have any features that mergAV does not have.  It just uses a different
> >>> code
>  base.
> >>> ___
> >>> 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."
> >> ___
> >> 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
>



-- 
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: Yertle the Turtle

2017-02-01 Thread Alejandro Tejada via use-livecode
Hi All,

Remember that Jim Hurley wrote a book:
http://jamesphurley.com/RunRev/TurtlePhysicsText.doc

and many stacks about Turtle Graphics:
http://jamesphurley.com/Revolution.html

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


Using a variable for an array name

2017-02-01 Thread Peter Bogdanoff via use-livecode
I have arrays:
tArray1
tArray2
tArray3
tArray4


I want to get data from one of them:

put “tArray” & “1” into tVar
put tVar [“Text”] into tText1

tText1 is empty.



Is there a way to get the data from the arrays without doing this kind of thing 
for each array:

put tArray1 [“Text”] into tText1
put tArray2 [“Text”] into tText2

Thanks!

Peter Bogdanoff


___
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

Auto scrolling a locked field when mouse comes to edge

2017-02-01 Thread David Epstein via use-livecode
When the mouse drags across text in an unlocked (horizontally and vertically) 
scrolling field, the field automatically scrolls at a legible rate to display 
the (previously hidden) text that the mouse was dragging toward.
Has anyone scripted a way to reproduce this effect for a locked field?
Many thanks.
David Epstein
___
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 a variable for an array name

2017-02-01 Thread Ralph DiMola via use-livecode
"Do" will do the trick.

Repeat with tVarNum = 1 to 4
 do "put"&&tArray&VarNum&"["&WrapQ("Text")&"] into tText"&tVarNum
 do "put"&&tArray&VarNum&"["&WrapQ("SomeOtherArrayValue")&"] into 
tSomeOtherArrayValue"&tVarNum
end repeat

function WrapQ pString
 return quote&pString"e
end WrapQ

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 
Peter Bogdanoff via use-livecode
Sent: Wednesday, February 01, 2017 6:14 PM
To: How to use LiveCode
Cc: Peter Bogdanoff
Subject: Using a variable for an array name

I have arrays:
tArray1
tArray2
tArray3
tArray4


I want to get data from one of them:

put “tArray” & “1” into tVar
put tVar [“Text”] into tText1

tText1 is empty.



Is there a way to get the data from the arrays without doing this kind of thing 
for each array:

put tArray1 [“Text”] into tText1
put tArray2 [“Text”] into tText2

Thanks!

Peter Bogdanoff


___
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 a variable for an array name

2017-02-01 Thread Bob Sneidar via use-livecode
This is called macro substitution in other languages. You would use the form 
array&tvar in Foxpro for instance. LC has no macro Substitution. Instead:

put "put tArray" & tVar & "[temp] into tText" & tVar into tCommand
replace "temp" with quote & "text" & quote in tCommand
do tCommand
(untested)

bob s


On Feb 1, 2017, at 15:13 , Peter Bogdanoff via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I have arrays:
tArray1
tArray2
tArray3
tArray4


I want to get data from one of them:

put “tArray” & “1” into tVar
put tVar [“Text”] into tText1

tText1 is empty.



Is there a way to get the data from the arrays without doing this kind of thing 
for each array:

put tArray1 [“Text”] into tText1
put tArray2 [“Text”] into tText2

Thanks!

Peter Bogdanoff

___
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: Auto scrolling a locked field when mouse comes to edge

2017-02-01 Thread Dr. Hawkins via use-livecode
On Wed, Feb 1, 2017 at 3:33 PM, David Epstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> When the mouse drags across text in an unlocked (horizontally and
> vertically) scrolling field, the field automatically scrolls at a legible
> rate to display the (previously hidden) text that the mouse was dragging
> toward.
> Has anyone scripted a way to reproduce this effect for a locked field?
>

you could play with mouseMove and MouseStillOver


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


Re: Using a variable for an array name

2017-02-01 Thread Richard Gaskin via use-livecode

Peter Bogdanoff wrote:

> I have arrays:
> tArray1
> tArray2
> tArray3
> tArray4
>
> I want to get data from one of them:
>
> put “tArray” & “1” into tVar
> put tVar [“Text”] into tText1
>
> tText1 is empty.
>
> Is there a way to get the data from the arrays without doing this
> kind of thing for each array:
>
> put tArray1 [“Text”] into tText1
> put tArray2 [“Text”] into tText2

Whenever you have a collection of variables whose names may be variable, 
an array is a natural fit.


LiveCode supports n-dimensional arrays, so you could use:

 -- Store:
 put "something" into tBigArray["1"]["text"]
 put "somethingelse" into tBigArray["2"]["text"]

 -- Retrieve:
 put tBigArray["1"]["text"] into tSomeVar
 put tBigArray["2"]["text"] into tAnotherVar


--
 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: Using a variable for an array name

2017-02-01 Thread Bob Sneidar via use-livecode
Even better!

Bob S


On Feb 1, 2017, at 16:08 , Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Whenever you have a collection of variables whose names may be variable, an 
array is a natural fit.

LiveCode supports n-dimensional arrays, so you could use:

-- Store:
put "something" into tBigArray["1"]["text"]
put "somethingelse" into tBigArray["2"]["text"]

-- Retrieve:
put tBigArray["1"]["text"] into tSomeVar
put tBigArray["2"]["text"] into tAnotherVar


--
Richard Gaskin

___
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: Auto scrolling a locked field when mouse comes to edge

2017-02-01 Thread dunbarx via use-livecode
Hi.

Not sure, I guess, what you are asking.

I make an ordinary field, fill it with lots of dross, and lock the text. If
I click on any visible line and then drag the mouse around, the text below
the cursor, whether above or below the original clickLine, are all hilited.

Craig NEwman



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Auto-scrolling-a-locked-field-when-mouse-comes-to-edge-tp4712135p4712141.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 a variable for an array name

2017-02-01 Thread Peter Bogdanoff via use-livecode
Yes, “do” does it. Thank you Ralph and Bob.

Richard, I’ve heard that “do” is slow because it must be compiled every time. I 
am reiterating this possibly hundreds of times, so it is probably much better 
to combine the arrays into a Big Array?

Peter

> On Feb 1, 2017, at 7:16 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Even better!
> 
> Bob S
> 
> 
> On Feb 1, 2017, at 16:08 , Richard Gaskin via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Whenever you have a collection of variables whose names may be variable, an 
> array is a natural fit.
> 
> LiveCode supports n-dimensional arrays, so you could use:
> 
> -- Store:
> put "something" into tBigArray["1"]["text"]
> put "somethingelse" into tBigArray["2"]["text"]
> 
> -- Retrieve:
> put tBigArray["1"]["text"] into tSomeVar
> put tBigArray["2"]["text"] into tAnotherVar
> 
> 
> --
> Richard Gaskin
> 
> ___
> 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: Auto scrolling a locked field when mouse comes to edge

2017-02-01 Thread Peter Bogdanoff via use-livecode
Is this an issue with “Focus with Keyboard” not checked or traversalOn not true?

 
> On Feb 1, 2017, at 6:33 PM, David Epstein via use-livecode 
>  wrote:
> 
> When the mouse drags across text in an unlocked (horizontally and vertically) 
> scrolling field, the field automatically scrolls at a legible rate to display 
> the (previously hidden) text that the mouse was dragging toward.
> Has anyone scripted a way to reproduce this effect for a locked field?
> Many thanks.
> David Epstein
> ___
> 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

Difference between "html" and "htmlText" in clipboardData?

2017-02-01 Thread Richard Gaskin via use-livecode

The Dictionary entry for clipboardData lists these among the array keys:

- htmlText: LiveCode HTML text
- html: styled text in LiveCode HTML format

What is the difference between "LiveCode HTML text" and "LiveCode HTML 
format"?


If there is no difference and they're both LC's htmlText, why two key names?

--
 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: Difference between "html" and "htmlText" in clipboardData?

2017-02-01 Thread Stephen Barncard via use-livecode
if you need it.

http://media.barncard.com/downloads/clipboardTest.livecode


On Wed, Feb 1, 2017 at 4:46 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The Dictionary entry for clipboardData lists these among the array keys:
>
> - htmlText: LiveCode HTML text
> - html: styled text in LiveCode HTML format
>
> What is the difference between "LiveCode HTML text" and "LiveCode HTML
> format"?
>
> If there is no difference and they're both LC's htmlText, why two key
> names?
>



--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.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: Using a variable for an array name

2017-02-01 Thread Richard Gaskin via use-livecode

Peter Bogdanoff wrote:

> Richard, I’ve heard that “do” is slow because it must be compiled
> every time. I am reiterating this possibly hundreds of times, so
> it is probably much better to combine the arrays into a Big Array?

It'll be a little faster, and to my eye much more readable.

"Do" is a good option when no other option exists. :)

--
 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: Using a variable for an array name

2017-02-01 Thread Peter Bogdanoff via use-livecode
OK, I’ll test the two methods when I get the general procedure working.


> On Feb 1, 2017, at 7:52 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Peter Bogdanoff wrote:
> 
> > Richard, I’ve heard that “do” is slow because it must be compiled
> > every time. I am reiterating this possibly hundreds of times, so
> > it is probably much better to combine the arrays into a Big Array?
> 
> It'll be a little faster, and to my eye much more readable.
> 
> "Do" is a good option when no other option exists. :)
> 
> -- 
> 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: Auto scrolling a locked field when mouse comes to edge

2017-02-01 Thread David Epstein via use-livecode
To clarify:
For a locked field with autohilite and traversalOn both true, the “built in” 
auto scrolling works the same as with an unlocked field.  I’m looking for a way 
to script this kind of auto scrolling with autohilite and traversalOn both 
false.
David Epstein
___
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: Dirty HTTP Launch

2017-02-01 Thread Tom Glod via use-livecode
Bob, I can't really use yours since it doesn't always happen and Mike's
suggestion did not work.. there is no magnifying glass in the variable
watcher, so it is just the last character.  replace space with empty also
didn't work.  head scratching continues.

On Mon, Jan 30, 2017 at 5:54 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Try replacing the variable holding the URL (let's assume it's tVar) with
> word 1 to -1 of tVar.
>
> As in put word 1 to -1 of tVar into tVar
>
> Bob S
>
>
> > On Jan 30, 2017, at 10:34 , Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > the URL is read as an ITEM from a line in a file that was generated by
> PHP
> > (which is I am sure where the cr comes from)
> >
> > PHP code just concatnates label "HTTP Link, item delimiter "=" and the
> URL
> > starting with HTTP.
> >
> > I think I will just write a little repeat loop to rewrite the URL before
> I
> > send it off to the launch command.   Gonna try format function too
> >
> >
> >
> > On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Mind posting the code that you use to build the url?
> >>
> >> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> I will try to clean it somehow as nothing (no cr) appears at the end
> >> until
> >>> i run the launch url command i guess i can just rewrite the
> variable
> >>> somehow.  Thanks
> >>>
> >>> On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
> >>> use-livecode@lists.runrev.com> wrote:
> >>>
>  Most likely you have an extraneous cr at the end of the url, and its
>  showing as html encoded.  If thats the case, before you
>  encode/launch/whatever, remove the cr and it should go away.
> 
> 
>  On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
>  use-livecode@lists.runrev.com> wrote:
> 
> > Hi Livecoders,
> >
> > I have a license file generated by PHP and when I bring it into LC I
>  parse
> > it for data. should be easy right?
> >
> > So I parse an http link and upon the using launch url command, I
> >>> realize
> > there is garbage at the end of the URL... the end of line "%0d"
> >> garbage
>  to
> > be exact.
> >
> > Anyone know how to clean this? it doesn't apprear at the end of the
> > variable that i am using to store the http URL...just appears after
> >> the
> > launch url command.
> >
> > Thanks for any help on this
> >
> > Tom
> > ___
> > 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:
> 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: Dirty HTTP Launch

2017-02-01 Thread Tom Glod via use-livecode
scratch that...bob's solution works and isn't likley to do anything ever
except take out the last space.  great jobthere should be no spaces in
URLs anyways..thanks Bob

On Wed, Feb 1, 2017 at 9:05 PM, Tom Glod  wrote:

> Bob, I can't really use yours since it doesn't always happen and
> Mike's suggestion did not work.. there is no magnifying glass in the
> variable watcher, so it is just the last character.  replace space with
> empty also didn't work.  head scratching continues.
>
> On Mon, Jan 30, 2017 at 5:54 PM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Try replacing the variable holding the URL (let's assume it's tVar) with
>> word 1 to -1 of tVar.
>>
>> As in put word 1 to -1 of tVar into tVar
>>
>> Bob S
>>
>>
>> > On Jan 30, 2017, at 10:34 , Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > the URL is read as an ITEM from a line in a file that was generated by
>> PHP
>> > (which is I am sure where the cr comes from)
>> >
>> > PHP code just concatnates label "HTTP Link, item delimiter "=" and the
>> URL
>> > starting with HTTP.
>> >
>> > I think I will just write a little repeat loop to rewrite the URL
>> before I
>> > send it off to the launch command.   Gonna try format function too
>> >
>> >
>> >
>> > On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
>> > use-livecode@lists.runrev.com> wrote:
>> >
>> >> Mind posting the code that you use to build the url?
>> >>
>> >> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
>> >> use-livecode@lists.runrev.com> wrote:
>> >>
>> >>> I will try to clean it somehow as nothing (no cr) appears at the end
>> >> until
>> >>> i run the launch url command i guess i can just rewrite the
>> variable
>> >>> somehow.  Thanks
>> >>>
>> >>> On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
>> >>> use-livecode@lists.runrev.com> wrote:
>> >>>
>>  Most likely you have an extraneous cr at the end of the url, and its
>>  showing as html encoded.  If thats the case, before you
>>  encode/launch/whatever, remove the cr and it should go away.
>> 
>> 
>>  On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
>>  use-livecode@lists.runrev.com> wrote:
>> 
>> > Hi Livecoders,
>> >
>> > I have a license file generated by PHP and when I bring it into LC I
>>  parse
>> > it for data. should be easy right?
>> >
>> > So I parse an http link and upon the using launch url command, I
>> >>> realize
>> > there is garbage at the end of the URL... the end of line "%0d"
>> >> garbage
>>  to
>> > be exact.
>> >
>> > Anyone know how to clean this? it doesn't apprear at the end of the
>> > variable that i am using to store the http URL...just appears after
>> >> the
>> > launch url command.
>> >
>> > Thanks for any help on this
>> >
>> > Tom
>> > ___
>> > 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:
>> 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: Difference between "html" and "htmlText" in clipboardData?

2017-02-01 Thread Richard Gaskin via use-livecode

Stephen Barncard wrote:

> On Wed, Feb 1, 2017 at 4:46 PM, Richard Gaskin wrote:
>
>> The Dictionary entry for clipboardData lists these among the array
>> keys:
>>
>> - htmlText: LiveCode HTML text
>> - html: styled text in LiveCode HTML format
>>
>> What is the difference between "LiveCode HTML text" and "LiveCode
>> HTML format"?
>>
>> If there is no difference and they're both LC's htmlText, why two key
>> names?
>>
> if you need it.
>
> http://media.barncard.com/downloads/clipboardTest.livecode

Thanks.  Interestingly, it shows a key for "html" but not "htmlText".

Do you know what the difference between those keys is?

Is this just a bug in the Dictionary and there is no "htmlText", with 
the "html" key using LC's htmlText?


--
 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: Difference between "html" and "htmlText" in clipboardData?

2017-02-01 Thread J. Landman Gay via use-livecode

On 2/1/17 9:33 PM, Richard Gaskin via use-livecode wrote:

Interestingly, it shows a key for "html" but not "htmlText".

Do you know what the difference between those keys is?

Is this just a bug in the Dictionary and there is no "htmlText", with
the "html" key using LC's htmlText?


They appear to be synonyms; at least, I get the same results with both keys.

--
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: Difference between "html" and "htmlText" in clipboardData?

2017-02-01 Thread Stephen Barncard via use-livecode
On Wed, Feb 1, 2017 at 7:33 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks.  Interestingly, it shows a key for "html" but not "htmlText".
>
> Do you know what the difference between those keys is?
>

no. The key list is derived from the clipboard array.



>
> Is this just a bug in the Dictionary and there is no "htmlText", with the
> "html" key using LC's htmlText?
>



--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.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