ouch: the beginning of the end

2017-03-06 Thread Alejandro Tejada via use-livecode
Hi Bob,

on Tue Mar 7 2017, Bob Sneidar wrote:
> the PDF has to be set up to "read" the FDF file when it opens

No, after using "flatten" in PDFTK, the FDF content
is embedded into the PDF file. For this reason,
all interactive fields are not editable anymore.

Does anyone try this command in MacOSX?
I tested PDFTK in Windows and Ubuntu
and this works fine:

pdftk.exe C:\PDFwithForms.pdf fill_form C:\data.fdf output
FilledPDF.pdf flatten

There are many samples of PDF and matching FDF files inside
these compressed folders from Adobe:
http://www.adobe.com/devnet/acrobat/fdftoolkit.html

By the way, PDFTK Pro version is only 4 dollars.
Dr. Hawkins, Could you include a Pro license
of PDFTK with each copy of your software?
This would cover all your present and future
uses of PDF in your own software.

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


Android SDK

2017-03-06 Thread Javier Miranda V. via use-livecode
Hi friends, I installed the most current release of the Android SDK and all the 
packages starting form Android 4.0.3 (API Level 15) package up to 7.1.1 (API 
Level 25).  I am using a OS X Sierra, so the SDK was installed in 
/Users/javiermiranda/Library/Android/sdk   (I navigate to that directory and 
effectively I verify the SDK is there).  The problem is that that folder is not 
recognized as a valid Android SDK

Saludos, 


Javier Miranda V.
___
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: ouch: the beginning of the end

2017-03-06 Thread Bob Sneidar via use-livecode
I can tell you that FDF files work on virtually every PDF viewer/editor for any 
platform. But the PDF has to be set up to "read" the FDF file when it opens, 
otherwise you need to create a button that asks for the file (using javascript) 
and then populates from whatever file the user selects. 

Originally, this was the ONLY way my app worked, before I started using 
Applescript and Javascript to fill under OS X. Also it should be noted that an 
FDF created on another platform is considered "untrusted" by Windows, and you 
have to give the OS permission to proceed, otherwise the auto-fill feature will 
not work. 

Bob S


> On Mar 5, 2017, at 12:33 , Alejandro Tejada via use-livecode 
>  wrote:
> 
> Using the free command line utility PDFTK,
> I could fill a pdf with interactive fields using
> just a text file formatted as a fdf document
> (that you could generate with LiveCode).
> Tested and works in Windows and Ubuntu Linux.
> Could you test if this works on MacOSX?
> 
> pdftk.exe C:\PDFwithForms.pdf fill_form C:\data.fdf output FilledPDF.pdf
> flatten
> 
> There are many samples of PDF and matching FDF files inside
> these compressed folders from Adobe:
> http://www.adobe.com/devnet/acrobat/fdftoolkit.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


Re: align field scrolls

2017-03-06 Thread Nicolas Cueto via use-livecode
Mike Bonner's solution -- using selectedLoc to set vScroll -- matches
exactly the scrolling effect I'm after.

Thank you, everyone. And, thank you Mike!

--
Nicolas Cueto


On 7 March 2017 at 00:40, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> An alternate solution..
> If you
> put item 2 of the selectedloc of the first field - item 2 of the
> selectedloc of the second field into tScroll
>
> -- you can then
> set the vscroll of field "your second field" to the vscroll of field "your
> second field" - tScroll
>
> On Mon, Mar 6, 2017 at 8:27 AM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > You need 3 controls: 2 fields with the vertical scrollbars turned off
> > and a vertical scroller
> > 
> >
> > Set the min of the vertical scrollbar to 0 and the max to the "max(the
> > formattedHeight of field X,formattedHeight of field Y)
> >
> > In the scrollbar, add the script:
> >
> > on scrollbarDrag newPosition
> >   set the vScroll of field X to newPosition
> >   set the vScroll of field Y to newPosition
> > end scrollbarDrag
> >
> >
> > On 3/6/2017 9:39 AM, Rick Harrison via use-livecode wrote:
> > > Hi Nicolas,
> > >
> > > Does the number of lines increase or decrease between executions?
> > >
> > > Have you tried to add or subtract a constant to adjust for the
> > difference?
> > >
> > > Rick
> > >
> > >> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >>
> > >>> Provided both fields have the same number of lines...
> > >>
> > >> ​I should've added that the fields do not contain the same number of
> > >> lines.  They are identical, though, in size and text properties.
> > >>
> > >> Thanks, Paul.
> > >>
> > >> --
> > >> Nicolas Cueto
> > >>
> > >>
> > >> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>
> > >>> I have a stack that does a similar thing, but with numbers and I just
> > use
> > >>> the following script in the main field;
> > >>>
> > >>> on scrollBarDrag pScroll
> > >>>   set the vScroll of fld  “lineNumbers" to pScroll
> > >>>
> > >>> end scrollBarDrag
> > >>>
> > >>> Provided both fields have the same number of lines and the text
> > properties
> > >>> are identical they should stay aligned correctly.
> > >>>
> > >>> Or a simpler version would be;
> > >>> set the vScroll of fld 2 to the vScroll of fld 1
> > >>>
> > >>> Paul
> > >>>
> > >>>
> > >>>
> >  On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode <
> > >>> use-livecode@lists.runrev.com> wrote:
> >  Hi.
> > 
> >  The part I've got working...
> > 
> >  Two clickable scrolling fields (fld1, fld2), same height and width.
> > >>> Click a
> >  fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a
> > matching
> >  line. (fld1 is French text, fld2 is an English gloss.)
> > 
> >  The part I would welcome your help with...
> > 
> >  If, say, the hilited line on fld1 is kinda halfway down, how do I
> get
> > the
> >  hilited line on fld2 to also be kinda halfway down?
> > 
> >  Here's my scrolling-magic script:
> > 
> >  set the scroll of fld2 to (tMatchingLineNr - 1) * \
> >    the textHeight of fld2 - the textHeight of fld2
> >  set the hilitedline of fld2 to tMatchingLineNr
> > 
> >  Of course, this ends up with the hilited line of fld2 being at the
> > top.
> >  How do I get it to scroll just that little bit more so that it
> aligns
> > >>> with
> >  the hilited line as seen in fld1?
> > 
> > 
> >  Thank you.
> > 
> >  --
> >  Nicolas Cueto
> >  ___
> >  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 

Re: UI design problem

2017-03-06 Thread Jim Lambert via use-livecode
> tbodine wrote:
> 
> I'm using the mouseStillDown message to make either the text or image
> follow the mouse until released.


Glad you solved it.

Jim Lambert
___
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.0 DP-5

2017-03-06 Thread Richard Gaskin via use-livecode

Andre Garzia wrote:

> The fact that these decisions are being taken, where the HQ appears
> to be focusing more and more on business licensees feels like I am
> being forced into such license. At this moment, I am starting to
> wonder if there is any reason to be indy at all.

...or Community.

Finding the best mix of features for the the two proprietary licenses 
and the open source edition is a challenge.


I spent the last several days at the SoCal Linux Expo, and had good 
talks with team members from NginX, MariaDB, Nextcloud, and Ubuntu.


Those are among the strongest open source projects around, and all of 
them keep the projects going by offering paid services and software 
packages aimed at the enterprise audience.


On the surface it would appear that what they're doing is similar to 
what LiveCode is doing, and in some broad respects I suppose it is.


But I believe there are also at least two key differences:

- The for-fee-only offerings from those other companies are indeed
  specialized for larger customers, and the core free (libre and
   gratis) software is full-featured to the point of being best-of-
  breed.

- The communities surrounding those projects contribute a much larger
  percentage of the core free software.

With LiveCode, the company restricts a broader range of functionality to 
the proprietary editions, but they're also paying for a much larger 
percentage of programmer-hours going into the package.


Personally, I believe a healthy long-term balance would be more on par 
with those other projects, with more stuff shared across all editions 
and having that become possible because more of it comes from the community.


The tricky part is how to get from here to there.

Many of those projects are technologies that some of the world's biggest 
companies rely on, and many of those companies have full-time employees 
dedicated to contributing to those open source projects.  At Heroku, for 
example, they maintain two full-timers whose only job is to submit pull 
requests for postgreSQL, and Google pays for a lot of the development of 
Python.


The LiveCode world does not yet have a Google or Heroku in our community 
covering payroll for full-time engine developers.


So the question at hand for all of us, company and community alike, is:

   What is the best balance of free and non-free offerings
   that will not only grow the platform, but also keep the
   ship running in order to pursue that growth?

I don't have an easy answer on this.  But I believe it is a very 
important question.


And it may be harder to answer for this project than for others, for a 
great many reasons related to both the market the project serves and the 
complexity of delivering rich GUI authoring for so many platforms.


As just one comparison, my understanding is that the LiveCode code base 
is at least 30% larger than the code base for NginX.  Not only is LC a 
bigger project by that measure, but also arguably in terms of code 
complexity, because the touch-points for NGinX are limited to a 
relatively small number of OS APIs for networking and file I/O, but 
LiveCode needs those along with a vast number of broadly-varying GUI 
messaging APIs on top of that.


As I ponder this question, I recognize that while I'm not in a position 
to cover full-time salaries for LiveCode contributors, I can invest a 
certain percentage of my time each week to the project in light of the 
many practical benefits it offers my company.


--
 Richard Gaskin
 LiveCode Community Liaison
 rich...@livecode.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: "ouch: the beginning of the end"

2017-03-06 Thread Andre Garzia via use-livecode
Hi,

If your objective is just displaying a PDF then you can use a RevBrowser
window to do that, and even use PDF.js if you want:

  https://mozilla.github.io/pdf.js/

This would allow you to display the files as they are but won't help you
change or create new files.

On Thu, Mar 2, 2017 at 8:13 PM, Dr. Hawkins via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I just got off the phone with the court clerk in Reno, and received the
> beginning of the end . . .I figured it would come from some state or anther
> in a year or two, but they are requiring me to use the *exact* pdf as
> propagated by the court.
>
> As livecode is not capable of rendering a pdf page or an eps, this means I
> am going to have to code pdf merging externally, while also working with
> .png or .jpg background images in livecode to place onto blank pages.
>
> With the need to maintain both of these, I'll be doing most of the work for
> on the parallel program--which may need to be fundamentally different in
> mac/linux, windows, iOS, and android--at which point, it will make sense to
> move as much as possible to the new platform.
>
> *sigh*
>
> It's 2017; asking to be able to display an eps and keep it as part of the
> pdf generated doesn't seem like it's asking much.
>
> .png/.jpg simply aren't acceptable solutions for my output, as the density
> required will produce insanely large .pdf files.
>
> --
> 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
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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: "ouch: the beginning of the end"

2017-03-06 Thread Dr. Hawkins via use-livecode
On Mon, Mar 6, 2017 at 12:02 PM, Andre Garzia  wrote:

> If your objective is just displaying a PDF then you can use a RevBrowser
> window to do that, and even use PDF.js if you want:
>

The intent is to display the pdf file that is about to be created, so that
the user can modify it.  Also, to generate that file.



-- 
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: [ANN] Release 9.0.0 DP-5

2017-03-06 Thread Mike Kerner via use-livecode
You can't build ios with community, so that's moot.  Besides, this is not
debugging, this is remote debugging, and if anything screams "premium",
it's a feature like this.  Anyone who has been building for mobile since we
could do that with LC has been working with their own personal debugging
hacks.  You can debug mobile, on the device, without this tool.

If LC corporate isn't focused on sales and improving revenue, then we're
all going to be without LC, because even though LC is OSS, someone has to
pay for all the effort that goes into it.  Community doesn't pay the bills,
and almost nobody outside of LC corporate is doing anything about the
codebase - just go on git and have a look.

On Mon, Mar 6, 2017 at 2:07 PM, Andre Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On Thu, Feb 23, 2017 at 5:41 PM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > - Implementation of a remote debugger (Business only):
> > Run a standalone for the local platform from the IDE and debug it whilst
> it
> > runs locally
> > Run a standalone for iOS or Android from the IDE and debug it whilst it
> > runs on a directly connected Android or iOS device
> >
>
> First congratulations on the new (tentative) release. Lots of good
> improvements there.
>
> Still, the fact that debugging is considered a business level feature
> doesn't work for me. Any software developer who is shipping products and is
> serious about them will use a debugger. This feature should be in the
> community version or at least the indy one.
>
> Just like the TS Net arbitrary difference between licenses, this is another
> "business decision" where HQ is shooting itself on the foot. Any other
> platform tool will have debugger in their most basic offerings and by
> debugger I mean "ability to debug (as in stepper) on deployed platforms".
>
> The fact that these decisions are being taken, where the HQ appears to be
> focusing more and more on business licensees feels like I am being forced
> into such license. At this moment, I am starting to wonder if there is any
> reason to be indy at all.
>
>
>
>
> --
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
> ___
> 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: the screenpixelscale on Microsoft SurfaceBook?

2017-03-06 Thread Andre Garzia via use-livecode
Hey Trevor,

This is a Surface Pro 4 with Intel HD 520 running latest Windows 10 at
2736x1284 with 200% display scaling. The screenPixelScale reported is 2 on
LC 8.1.2

I can't have my machine go to 3000x2000, sorry.

On Tue, Feb 28, 2017 at 2:20 PM, Trevor DeVore via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone have access to a Microsoft SurfaceBook with an Intel HD 520
> card at 3000x2000 running the latest version of Windows 10? If so can you
> tell me what LiveCode 8 reports for the screenPixelScale property if the
> display scaling is set to 200% or 150%? I had a bug report today that makes
> me think that the property is returning the wrong value.
>
> If you aren’t familiar with where the display scaling is set see this web
> page:
>
> https://www.thurrott.com/windows/windows-10/4597/windows-10-feature-focus-
> display-scaling
>
> Thanks,
>
> --
> Trevor DeVore
> Outcome & ScreenSteps
> www.outcomeapp.io - www.screensteps.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




-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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: Remote debugger

2017-03-06 Thread Roger Eller via use-livecode
Where can the new version be found?  Is this page still maintained?
http://mergext.com/plugins/mergdeploy/



On Mon, Mar 6, 2017 at 2:19 PM, Monte Goulding via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > On 7 Mar 2017, at 4:01 am, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > 1) There may be a crash bug related to mergDeploy (19365).  I don't KNOW
> > that's mergDeploy related, but if MD is enabled, LC crashes, and if it is
> > not, it doesn't.
> > 2) Seeing !n instead of device name (19376)
>
> Hopefully the new version of mergDeploy will have fixed those already ;-)
> ___
> 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: Remote debugger

2017-03-06 Thread Monte Goulding via use-livecode

> On 7 Mar 2017, at 4:01 am, Mike Kerner via use-livecode 
>  wrote:
> 
> 1) There may be a crash bug related to mergDeploy (19365).  I don't KNOW
> that's mergDeploy related, but if MD is enabled, LC crashes, and if it is
> not, it doesn't.
> 2) Seeing !n instead of device name (19376)

Hopefully the new version of mergDeploy will have fixed those already ;-)
___
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.0 DP-5

2017-03-06 Thread Andre Garzia via use-livecode
On Thu, Feb 23, 2017 at 5:41 PM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> - Implementation of a remote debugger (Business only):
> Run a standalone for the local platform from the IDE and debug it whilst it
> runs locally
> Run a standalone for iOS or Android from the IDE and debug it whilst it
> runs on a directly connected Android or iOS device
>

First congratulations on the new (tentative) release. Lots of good
improvements there.

Still, the fact that debugging is considered a business level feature
doesn't work for me. Any software developer who is shipping products and is
serious about them will use a debugger. This feature should be in the
community version or at least the indy one.

Just like the TS Net arbitrary difference between licenses, this is another
"business decision" where HQ is shooting itself on the foot. Any other
platform tool will have debugger in their most basic offerings and by
debugger I mean "ability to debug (as in stepper) on deployed platforms".

The fact that these decisions are being taken, where the HQ appears to be
focusing more and more on business licensees feels like I am being forced
into such license. At this moment, I am starting to wonder if there is any
reason to be indy at all.




-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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: Remote debugger

2017-03-06 Thread Mike Kerner via use-livecode
Monte,
A couple of things:
1) There may be a crash bug related to mergDeploy (19365).  I don't KNOW
that's mergDeploy related, but if MD is enabled, LC crashes, and if it is
not, it doesn't.
2) Seeing !n instead of device name (19376)

On Sun, Mar 5, 2017 at 8:00 PM, Monte Goulding via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Folks
>
> gREVDevelopment is not necessary for the remote debugger to function.
>
> I have create an enhancement report for the remote debugger to
> automatically turn on android internet permissions:
> http://quality.livecode.com/show_bug.cgi?id=19370 <
> http://quality.livecode.com/show_bug.cgi?id=19370>
>
> The new version of mergDeploy didn’t make DP 5. Hopefully it will make the
> next DP but as I have been off for a week I’m not sure if work is complete
> on that and it will be in the one after. This will enable the IDE to
> recognise attached iOS devices and the Test button to install apps onto
> them. The only difference to Android is you need to tap the app icon on the
> device to start it running.
>
> Cheers
>
> Monte
>
>
> > On 5 Mar 2017, at 5:53 pm, Sannyasin Brahmanathaswami via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Never mind… went thru the whole process again. on android → force stop
> the app and then the IDE says the debugging session closed.
> >
> > Awesome I found an obscure bug or rather difference
> >
> > binfile://someAppPath/Unicode.txt  into myNewText
> >
> > works on iOS and Mac OSX
> >
> > but not on android
> >
> > only 1 slash allowed..
> >
> > binfile:/someAppPath/Unicode.txt  into myNewText #now works everywhere
> >
> > This is a great step forward! Thank you Monte for the hard work!
> >
> > BR
> >
> >
> >
> > On 3/4/17, 8:37 PM, "use-livecode on behalf of Sannyasin
> Brahmanathaswami via use-livecode"  on behalf of use-livecode@lists.runrev.com> wrote:
> >
> >So far, so good; but I could "escape out" -- my app is locked upon
> the phone, (because I'm in the script editor no doubt) app and IDE on my
> desktop is locked. There was no way to return to development and look at
> the source.. I had to quit my main stack and start it again… on the phone I
> went to settings/Apps/SivaSiva -- force stop…did not have to quit LC though…
> >
> > ___
> > 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: align field scrolls

2017-03-06 Thread Mike Bonner via use-livecode
An alternate solution..
If you
put item 2 of the selectedloc of the first field - item 2 of the
selectedloc of the second field into tScroll

-- you can then
set the vscroll of field "your second field" to the vscroll of field "your
second field" - tScroll

On Mon, Mar 6, 2017 at 8:27 AM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You need 3 controls: 2 fields with the vertical scrollbars turned off
> and a vertical scroller
> 
>
> Set the min of the vertical scrollbar to 0 and the max to the "max(the
> formattedHeight of field X,formattedHeight of field Y)
>
> In the scrollbar, add the script:
>
> on scrollbarDrag newPosition
>   set the vScroll of field X to newPosition
>   set the vScroll of field Y to newPosition
> end scrollbarDrag
>
>
> On 3/6/2017 9:39 AM, Rick Harrison via use-livecode wrote:
> > Hi Nicolas,
> >
> > Does the number of lines increase or decrease between executions?
> >
> > Have you tried to add or subtract a constant to adjust for the
> difference?
> >
> > Rick
> >
> >> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >>> Provided both fields have the same number of lines...
> >>
> >> ​I should've added that the fields do not contain the same number of
> >> lines.  They are identical, though, in size and text properties.
> >>
> >> Thanks, Paul.
> >>
> >> --
> >> Nicolas Cueto
> >>
> >>
> >> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> I have a stack that does a similar thing, but with numbers and I just
> use
> >>> the following script in the main field;
> >>>
> >>> on scrollBarDrag pScroll
> >>>   set the vScroll of fld  “lineNumbers" to pScroll
> >>>
> >>> end scrollBarDrag
> >>>
> >>> Provided both fields have the same number of lines and the text
> properties
> >>> are identical they should stay aligned correctly.
> >>>
> >>> Or a simpler version would be;
> >>> set the vScroll of fld 2 to the vScroll of fld 1
> >>>
> >>> Paul
> >>>
> >>>
> >>>
>  On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode <
> >>> use-livecode@lists.runrev.com> wrote:
>  Hi.
> 
>  The part I've got working...
> 
>  Two clickable scrolling fields (fld1, fld2), same height and width.
> >>> Click a
>  fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a
> matching
>  line. (fld1 is French text, fld2 is an English gloss.)
> 
>  The part I would welcome your help with...
> 
>  If, say, the hilited line on fld1 is kinda halfway down, how do I get
> the
>  hilited line on fld2 to also be kinda halfway down?
> 
>  Here's my scrolling-magic script:
> 
>  set the scroll of fld2 to (tMatchingLineNr - 1) * \
>    the textHeight of fld2 - the textHeight of fld2
>  set the hilitedline of fld2 to tMatchingLineNr
> 
>  Of course, this ends up with the hilited line of fld2 being at the
> top.
>  How do I get it to scroll just that little bit more so that it aligns
> >>> with
>  the hilited line as seen in fld1?
> 
> 
>  Thank you.
> 
>  --
>  Nicolas Cueto
>  ___
>  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: align field scrolls

2017-03-06 Thread Paul Dupuis via use-livecode
You need 3 controls: 2 fields with the vertical scrollbars turned off
and a vertical scroller


Set the min of the vertical scrollbar to 0 and the max to the "max(the
formattedHeight of field X,formattedHeight of field Y)

In the scrollbar, add the script:

on scrollbarDrag newPosition
  set the vScroll of field X to newPosition
  set the vScroll of field Y to newPosition
end scrollbarDrag


On 3/6/2017 9:39 AM, Rick Harrison via use-livecode wrote:
> Hi Nicolas,
>
> Does the number of lines increase or decrease between executions?
>
> Have you tried to add or subtract a constant to adjust for the difference?
>
> Rick
>
>> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode 
>>  wrote:
>>
>>> Provided both fields have the same number of lines...
>>
>> ​I should've added that the fields do not contain the same number of
>> lines.  They are identical, though, in size and text properties.
>>
>> Thanks, Paul.
>>
>> --
>> Nicolas Cueto
>>
>>
>> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> I have a stack that does a similar thing, but with numbers and I just use
>>> the following script in the main field;
>>>
>>> on scrollBarDrag pScroll
>>>   set the vScroll of fld  “lineNumbers" to pScroll
>>>
>>> end scrollBarDrag
>>>
>>> Provided both fields have the same number of lines and the text properties
>>> are identical they should stay aligned correctly.
>>>
>>> Or a simpler version would be;
>>> set the vScroll of fld 2 to the vScroll of fld 1
>>>
>>> Paul
>>>
>>>
>>>
 On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 Hi.

 The part I've got working...

 Two clickable scrolling fields (fld1, fld2), same height and width.
>>> Click a
 fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
 line. (fld1 is French text, fld2 is an English gloss.)

 The part I would welcome your help with...

 If, say, the hilited line on fld1 is kinda halfway down, how do I get the
 hilited line on fld2 to also be kinda halfway down?

 Here's my scrolling-magic script:

 set the scroll of fld2 to (tMatchingLineNr - 1) * \
   the textHeight of fld2 - the textHeight of fld2
 set the hilitedline of fld2 to tMatchingLineNr

 Of course, this ends up with the hilited line of fld2 being at the top.
 How do I get it to scroll just that little bit more so that it aligns
>>> with
 the hilited line as seen in fld1?


 Thank you.

 --
 Nicolas Cueto
 ___
 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: align field scrolls

2017-03-06 Thread dunbarx via use-livecode
So if your two fields have different number of lines, you must scale the
"slave" field to the "master. You cannot just align their scroll values.

If the master has, say 100 lines, and the slave 75, you simply set the ratio
of the scroll of the master to its total line count to the ratio of the
slave's similar properties. You may need the "trunc" function to avoid
unnecessary pain and suffering.

Craig 



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/align-field-scrolls-tp4712848p4712853.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: align field scrolls

2017-03-06 Thread Rick Harrison via use-livecode
Hi Nicolas,

Does the number of lines increase or decrease between executions?

Have you tried to add or subtract a constant to adjust for the difference?

Rick

> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode 
>  wrote:
> 
>> Provided both fields have the same number of lines...
> 
> 
> ​I should've added that the fields do not contain the same number of
> lines.  They are identical, though, in size and text properties.
> 
> Thanks, Paul.
> 
> --
> Nicolas Cueto
> 
> 
> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I have a stack that does a similar thing, but with numbers and I just use
>> the following script in the main field;
>> 
>> on scrollBarDrag pScroll
>>   set the vScroll of fld  “lineNumbers" to pScroll
>> 
>> end scrollBarDrag
>> 
>> Provided both fields have the same number of lines and the text properties
>> are identical they should stay aligned correctly.
>> 
>> Or a simpler version would be;
>> set the vScroll of fld 2 to the vScroll of fld 1
>> 
>> Paul
>> 
>> 
>> 
>>> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi.
>>> 
>>> The part I've got working...
>>> 
>>> Two clickable scrolling fields (fld1, fld2), same height and width.
>> Click a
>>> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
>>> line. (fld1 is French text, fld2 is an English gloss.)
>>> 
>>> The part I would welcome your help with...
>>> 
>>> If, say, the hilited line on fld1 is kinda halfway down, how do I get the
>>> hilited line on fld2 to also be kinda halfway down?
>>> 
>>> Here's my scrolling-magic script:
>>> 
>>> set the scroll of fld2 to (tMatchingLineNr - 1) * \
>>>   the textHeight of fld2 - the textHeight of fld2
>>> set the hilitedline of fld2 to tMatchingLineNr
>>> 
>>> Of course, this ends up with the hilited line of fld2 being at the top.
>>> How do I get it to scroll just that little bit more so that it aligns
>> with
>>> the hilited line as seen in fld1?
>>> 
>>> 
>>> Thank you.
>>> 
>>> --
>>> Nicolas Cueto
>>> ___
>>> 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

[ANN] This Week in LiveCode 73

2017-03-06 Thread Peter TB Brett via use-livecode

Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #73 here: https://goo.gl/SBNgjA


This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project.  New issues will be
released weekly on Mondays.  We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

 Peter

--
Dr Peter Brett 

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


Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-03-06 Thread Peter TB Brett via use-livecode



On 03/03/2017 18:00, Bob Sneidar via use-livecode wrote:

It looks like the encrypt command is already using this method if
the "with salt" arguement is provided? At least the encrypted result
starts with "salted" and at least part of the salt value.



Hi Bob,

The "encrypt" command provides symmetric cryptographic functions, i.e.
you can decrypt the result again to get the cleartext back.  This is 
_not_ a desirable property for a password storage system; you should 
always use one-way (asymmetric) functions, such as a cryptographic hash.


  Peter

--
Dr Peter Brett 

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