Re: Android needs 64 bit builds

2019-05-05 Thread Monte Goulding via use-livecode


> On 6 May 2019, at 12:18 pm, Mark Wieder via use-livecode 
>  wrote:
> 
>> Most new devices will be arm64 however I think what you are seeing there is 
>> the binaries that you have for use in an emulator. I have come across a few 
>> devices that have arm64 processors but did not include the arm64 OS 
>> libraries so only load armv7 binaries. These are generally low end devices.
> 
> Any chance we can leverage this to create a raspberry pi LC build?

Not unless the pi is running android.

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: Android needs 64 bit builds

2019-05-05 Thread Mark Wieder via use-livecode

On 5/5/19 4:25 PM, Monte Goulding via use-livecode wrote:


Most new devices will be arm64 however I think what you are seeing there is the 
binaries that you have for use in an emulator. I have come across a few devices 
that have arm64 processors but did not include the arm64 OS libraries so only 
load armv7 binaries. These are generally low end devices.


Any chance we can leverage this to create a raspberry pi LC build?

--
 Mark Wieder
 ahsoftw...@gmail.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: Android needs 64 bit builds

2019-05-05 Thread Monte Goulding via use-livecode



> On 4 May 2019, at 3:45 am, JJS via use-livecode 
>  wrote:
> 
> @Monte. I only see Atom x64 ARM for Android 7.1.1 in the SDK list in Android 
> Studio. For all the higher Android versions i only see x86 and no ARM. I 
> don't know if there are phones sold which have Android 8.x.x based on ARMx64. 
> Do you know any details?

Most new devices will be arm64 however I think what you are seeing there is the 
binaries that you have for use in an emulator. I have come across a few devices 
that have arm64 processors but did not include the arm64 OS libraries so only 
load armv7 binaries. These are generally low end devices.

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: Browser widget - is there something similar to browserBeforeNavigate

2019-05-05 Thread Matthias Rebbe via use-livecode
Yes, it´s the same. Sorry, forgot to mention that also. Seems to be little late 
here.

Matthias 




> Am 06.05.2019 um 00:26 schrieb Ralph DiMola via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Did you try browserDocumentLoadBegin ?
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net 
> 

___
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: Browser widget - is there something similar to browserBeforeNavigate

2019-05-05 Thread Ralph DiMola via use-livecode
Did you try browserDocumentLoadBegin ?

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 Matthias Rebbe via use-livecode
Sent: Sunday, May 05, 2019 5:58 PM
To: How to use LiveCode
Cc: Matthias Rebbe
Subject: Re: Browser widget - is there something similar to
browserBeforeNavigate

Thanks Ralph,

tried that already (should have mentioned that), but the URL is loaded right
away in the widget and then the script in the message handler
browserNavigateBegin is executed.

This is my script
on browserNavigateBegin pURL

if not (pURL begins with "https://forums.livecode.com
")

then

answer "Forum jetzt verlassen" with "ja" or "nein"

if it is "ja" 

then

  pass browserNavigateBegin

   else

 go back in widget "mrBrowser"

  end if

   end if

end BrowserNavigateBegin

Am i missing something?

Regards
Matthias



> Am 05.05.2019 um 23:42 schrieb Ralph DiMola via use-livecode
mailto:use-livecode@lists.runrev.com>>:
> 
> browserNavigateBegin
> 
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, May 05, 2019 5:36 PM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Browser widget - is there something similar to 
> browserBeforeNavigate
> 
> Hi,
> does anyone know how can i check the URL before the URL is loaded in 
> the Browser widget.
> 
> The old revBrowser had the message browserBeforeNavigate.
> Is there something similar i can use for the browser widget?
> 
> Regards,
> Matthias Rebbe
> 
> ___
> 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: Browser widget - is there something similar to browserBeforeNavigate

2019-05-05 Thread Matthias Rebbe via use-livecode


The  is of course not in my scripts. 



> Am 05.05.2019 um 23:57 schrieb Matthias Rebbe via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Thanks Ralph,
> 
> tried that already (should have mentioned that), but the URL is loaded right 
> away in the widget and then the script in the message handler 
> browserNavigateBegin is executed.
> 
> This is my script
> on browserNavigateBegin pURL
> 
>if not (pURL begins with "https://forums.livecode.com 
>   >")
> 
>then
> 
>answer "Forum jetzt verlassen" with "ja" or "nein"
> 
>if it is "ja" 
> 
>then
> 
>  pass browserNavigateBegin
> 
>   else
> 
> go back in widget "mrBrowser"
> 
>  end if
> 
>   end if
> 
> end BrowserNavigateBegin
> 
> 
> 

___
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: Browser widget - is there something similar to browserBeforeNavigate

2019-05-05 Thread Matthias Rebbe via use-livecode
Thanks Ralph,

tried that already (should have mentioned that), but the URL is loaded right 
away in the widget and then the script in the message handler 
browserNavigateBegin is executed.

This is my script
on browserNavigateBegin pURL

if not (pURL begins with "https://forums.livecode.com 
")

then

answer "Forum jetzt verlassen" with "ja" or "nein"

if it is "ja" 

then

  pass browserNavigateBegin

   else

 go back in widget "mrBrowser"

  end if

   end if

end BrowserNavigateBegin

Am i missing something?

Regards
Matthias



> Am 05.05.2019 um 23:42 schrieb Ralph DiMola via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> browserNavigateBegin
> 
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, May 05, 2019 5:36 PM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Browser widget - is there something similar to
> browserBeforeNavigate
> 
> Hi,
> does anyone know how can i check the URL before the URL is loaded in the
> Browser widget.
> 
> The old revBrowser had the message browserBeforeNavigate.
> Is there something similar i can use for the browser widget?
> 
> Regards,
> Matthias Rebbe
> 
> ___
> 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: Browser widget - is there something similar to browserBeforeNavigate

2019-05-05 Thread Ralph DiMola via use-livecode
browserNavigateBegin

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 Matthias Rebbe via use-livecode
Sent: Sunday, May 05, 2019 5:36 PM
To: How to use LiveCode
Cc: Matthias Rebbe
Subject: Browser widget - is there something similar to
browserBeforeNavigate

Hi,
does anyone know how can i check the URL before the URL is loaded in the
Browser widget.

The old revBrowser had the message browserBeforeNavigate.
Is there something similar i can use for the browser widget?

Regards,
Matthias Rebbe

___
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


Browser widget - is there something similar to browserBeforeNavigate

2019-05-05 Thread Matthias Rebbe via use-livecode
Hi,
does anyone know how can i check the URL before the URL is loaded in the 
Browser widget.

The old revBrowser had the message browserBeforeNavigate.
Is there something similar i can use for the browser widget?

Regards,
Matthias Rebbe

___
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: Is Anyone using the XPDFViewer?

2019-05-05 Thread Matthias Rebbe via use-livecode
Mike, thank you very much for the links.
I will have a look tomorrow.


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 
> Am 05.05.2019 um 22:46 schrieb Mike Kerner via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Matthais,
> I'm using xpdf, and I have a couple repos with it working.
> https://github.com/macMikey/xpdf 
> https://github.com/macMikey/scanhammer
> 
> On Fri, May 3, 2019 at 3:50 PM Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Thanks Paul,
>> 
>> for whatever reason it still does not work. I´ve found a sample stack
>> XPDF.livecode in the Livecode bundle in
>> LiveCode Business 9.0.4 (rc 2).app/Contents/Tools/Ext/XPDF-1.0.31
>> 
>> The sample stack works, so it´s my code and i might be missing something.
>> Unfortunately the script of the sample stack is very detailed, but anyway
>> it´s working and i just have to dig through the sample script to see how it
>> is correctly done.
>> 
>> Regards,
>> 
>> Matthias Rebbe
>> 
>>> Am 03.05.2019 um 19:50 schrieb Paul Dupuis via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> I looked at my working code.
>>> 
>>> Every where I set the rect, I do so by:
>>> 
>>>  XPDFViewer_Set "pdfViewer","RECT", rect of grc "pdfRect" of grp
>> "pdfViewer" of me
>>> 
>>> where the graphic "pdfRect is a rectangle that is used to to map the
>> area the pdf viewer appears in.
>>> 
>>> Try creating a graphic called whatever you want. Set the rect of it to
>> 100,100,500,500 and then
>>> 
>>> XPDFViewer_Set "pdfviewer", "rect", rect of graphic 
>>> 
>>> 
>>> 
>>> 
>>> On 5/3/2019 1:39 PM, Matthias Rebbe via use-livecode wrote:
 Hi,
 
 i am using the following script to open a selected PDF file in the xpdf
>> viewer, but  i am not successful.
 
 answer file "PDF..."
 
 if it is empty then exit top
 
 put it into tFilename
 
 XPDFViewer_Open "pdfviewer", the windowID of this stack
 
 XPDFViewer_Set "pdfviewer", "filename",tFilename
 
 XPDFViewer_Set "pdfviewer", "rect", (100,100,500,500)
 
 XPDFViewer_Set "pdfviewer", "visible", TRUE
 
 put xpdfviewer_Get("pdfviewer","rect")
 
 
 The PDF viewer does not show up and the function pxdfviewer_get gives
>> 0,0,0,0 back for the rect.
 
 Is there something wrong with my script?
 Or does anyone have working sample stack?
 
 Regards,
 
 Matthias Rebbe
 
 ___
 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

___
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: Need Data Grid help

2019-05-05 Thread pink via use-livecode
Bingo, that works perfectly


JJS via use-livecode wrote
> On Sun, May 5, 2019 at 2:45 PM pink via use-livecode <

> use-livecode@.runrev

>> wrote:
> 
>> Below is the script for a data grid and the stack script.
>>
>> The data grid times certain jobs, so if you press one, it switched to
>> timing
>> that job.
>>
>> The problem is, when I set the dgData for the grid, the rows are blank up
>> to
>> the row that I press, and none of the changed data appears. However, if I
>> just set it again in a different action it shows up correctly. That is,
>> the
>> data doesn't seem to set correctly as part of my activateJob handler. If
>> I
>> then try to set it again in a different mouseUp handler, everything shows
>> up
>> correctly.
> 
> 
> A LiveCode control cannot be deleted while it is running a script. That is
> what I think is happening here. When calling the handler that will refresh
> the data grid try using “send ... in 0 seconds” so that the refresh
> happens
> after the click within the data grid.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Need Data Grid help

2019-05-05 Thread Trevor DeVore via use-livecode
On Sun, May 5, 2019 at 2:45 PM pink via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Below is the script for a data grid and the stack script.
>
> The data grid times certain jobs, so if you press one, it switched to
> timing
> that job.
>
> The problem is, when I set the dgData for the grid, the rows are blank up
> to
> the row that I press, and none of the changed data appears. However, if I
> just set it again in a different action it shows up correctly. That is, the
> data doesn't seem to set correctly as part of my activateJob handler. If I
> then try to set it again in a different mouseUp handler, everything shows
> up
> correctly.


A LiveCode control cannot be deleted while it is running a script. That is
what I think is happening here. When calling the handler that will refresh
the data grid try using “send ... in 0 seconds” so that the refresh happens
after the click within the data grid.

-- 
Trevor DeVore
ScreenSteps
___
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: Is Anyone using the XPDFViewer?

2019-05-05 Thread Mike Kerner via use-livecode
Matthais,
I'm using xpdf, and I have a couple repos with it working.
https://github.com/macMikey/xpdf
https://github.com/macMikey/scanhammer

On Fri, May 3, 2019 at 3:50 PM Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks Paul,
>
> for whatever reason it still does not work. I´ve found a sample stack
> XPDF.livecode in the Livecode bundle in
> LiveCode Business 9.0.4 (rc 2).app/Contents/Tools/Ext/XPDF-1.0.31
>
> The sample stack works, so it´s my code and i might be missing something.
> Unfortunately the script of the sample stack is very detailed, but anyway
> it´s working and i just have to dig through the sample script to see how it
> is correctly done.
>
> Regards,
>
> Matthias Rebbe
>
> > Am 03.05.2019 um 19:50 schrieb Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > I looked at my working code.
> >
> > Every where I set the rect, I do so by:
> >
> >   XPDFViewer_Set "pdfViewer","RECT", rect of grc "pdfRect" of grp
> "pdfViewer" of me
> >
> > where the graphic "pdfRect is a rectangle that is used to to map the
> area the pdf viewer appears in.
> >
> > Try creating a graphic called whatever you want. Set the rect of it to
> 100,100,500,500 and then
> >
> > XPDFViewer_Set "pdfviewer", "rect", rect of graphic 
> >
> >
> >
> >
> > On 5/3/2019 1:39 PM, Matthias Rebbe via use-livecode wrote:
> >> Hi,
> >>
> >> i am using the following script to open a selected PDF file in the xpdf
> viewer, but  i am not successful.
> >>
> >> answer file "PDF..."
> >>
> >> if it is empty then exit top
> >>
> >> put it into tFilename
> >>
> >> XPDFViewer_Open "pdfviewer", the windowID of this stack
> >>
> >> XPDFViewer_Set "pdfviewer", "filename",tFilename
> >>
> >> XPDFViewer_Set "pdfviewer", "rect", (100,100,500,500)
> >>
> >> XPDFViewer_Set "pdfviewer", "visible", TRUE
> >>
> >> put xpdfviewer_Get("pdfviewer","rect")
> >>
> >>
> >> The PDF viewer does not show up and the function pxdfviewer_get gives
> 0,0,0,0 back for the rect.
> >>
> >> Is there something wrong with my script?
> >> Or does anyone have working sample stack?
> >>
> >> Regards,
> >>
> >> Matthias Rebbe
> >>
> >> ___
> >> 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: How big is a nanosecond?

2019-05-05 Thread Stephen Barncard via use-livecode
I always wondered about that. This is a revelation for me. I still remember
SASI and SCSI drives, And the switch to serial methods puzzled me. Of
course it’s more convenient.

On Sun, May 5, 2019 at 10:37 Ralph DiMola via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This not a limit without real world consequences...
>
> I was hamstrung with the 1 foot per nanosecond limitation back in 1979. We
> had a CGI rack with a 6 foot backplane clocked at 25 MHz Of course 1
> foot/ns
> is a theoretical limit. Although we had 40 ns we ran into not only the time
> it took to get from the bottom(CPU) to the top (MPU) of the 6 foot
> backplane
> but keeping 32 parallel bits in sync. We had so many errors that we had to
> design a repeater in the center of the backplane to re-sync the bits. The
> challenges of keeping parallel data in sync in a copper medium is why
> parallel SCSI and IDE hard drives were jettisoned for high speed serial.
> With present technology it's easier, cheaper and more reliable to use ultra
> fast serial rather than slower 32 or 64 bit wide parallel busses to achieve
> the same effective data rate. This is another one of those real world
> things
> that the casual bystander finds hard or refuses to believe. The fact that
> serial is better that parallel is not intuitive but true.
>
> 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 Mark Wieder via use-livecode
> Sent: Friday, May 03, 2019 9:47 PM
> To: use-livecode@lists.runrev.com
> Cc: Mark Wieder
> Subject: How big is a nanosecond?
>
> https://www.youtube.com/watch?v=JEpsKnWZrJ8
>
> --
>   Mark Wieder
>   ahsoftw...@gmail.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
>
-- 
--
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

Need Data Grid help

2019-05-05 Thread pink via use-livecode
Below is the script for a data grid and the stack script.

The data grid times certain jobs, so if you press one, it switched to timing
that job.

The problem is, when I set the dgData for the grid, the rows are blank up to
the row that I press, and none of the changed data appears. However, if I
just set it again in a different action it shows up correctly. That is, the
data doesn't seem to set correctly as part of my activateJob handler. If I
then try to set it again in a different mouseUp handler, everything shows up
correctly.

-
Data Grid Script:

on FillInData pData
  local tJob, tTime, tTemp, tHour, tMin
  put pData["jobno"] & space into tJob
  put pData["client"] & space after tJob
  put "-" && pData["jobname"] after tJob
  if pData["timer"] is true then
set the backgroundColor of graphic "Status" of me to "green"
  else
set the backgroundColor of graphic "Status" of me to "red"
  end if
  put pData["time"] into tTemp
  put trunc(tTemp/60)into tHour
  if tHour < 1 or tHour is empty then put 0 into tHour
  put tTemp - (tHour*60) into tMin
  if tMin < 1 or tMin is empty then put 0 into tMin
  put tHour & "h" && tMin & "m" into tTime
  put me into tX
  
  set the text of field "jobInfo" of me to tJob
  set the text of field "taskCode" of me to pData["taskcode"]
  set the text of field "currentTime" of me to tTime
end FillInData

setprop dgHilite pBoolean
  if pBoolean then
set the foregroundColor of me to the dgProp["hilited text color"] of the
dgControl of me
  else
set the foregroundColor of me to empty
  end if
end dgHilite

getprop dgDataControl
   return the long ID of me
end dgDataControl

on mouseUp
  local tNum
  
  put char -5 to -2 of word 5 of the long name of the target into tNum
  put (tNum * 1) into tNum
  
  switch the short name of the target
case "Edit"
  editJob tNum
  break
case "Adjust"
  adjustJob tNum
  break
case "Status"
  activateJob tNum
  break
  end switch
end mouseUp



Stack Script

local sTimer

command activateJob pNum
  put "activate" into sTimer["settings"]["action"]
  if sTimer["data"][pNum]["timer"] then
onEndTimer pNum
  else
onStartTimer pNum
  end if
  set the dgData of group "jobTimers" to sTimer["data"]
end activateJob

command onStartTimer pNum
  repeat for each key tK in sTimer["data"]
if sTimer["data"][tK]["timer"] is true then
  onEndTimer tK
end if
put false into sTimer["data"][tk]["timer"]
put empty into sTimer["data"][tk]["starttime"]
  end repeat
  put true into sTimer["data"][pNum]["timer"]
  put the seconds into sTimer["data"][pNum]["starttime"]
end onStartTimer

command onEndTimer pNum
  local tCurrent
  put the seconds into tCurrent
  subtract sTimer["data"][pNum]["starttime"] from tCurrent
  put round(tCurrent/60) into tCurrent
  add tCurrent to sTimer["data"][pNum]["time"]
  
  put false into sTimer["data"][pNum]["timer"]
  put empty into sTimer["data"][pNum]["starttime"]
end onEndTimer



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: How big is a nanosecond?

2019-05-05 Thread Ralph DiMola via use-livecode
This not a limit without real world consequences...

I was hamstrung with the 1 foot per nanosecond limitation back in 1979. We
had a CGI rack with a 6 foot backplane clocked at 25 MHz Of course 1 foot/ns
is a theoretical limit. Although we had 40 ns we ran into not only the time
it took to get from the bottom(CPU) to the top (MPU) of the 6 foot backplane
but keeping 32 parallel bits in sync. We had so many errors that we had to
design a repeater in the center of the backplane to re-sync the bits. The
challenges of keeping parallel data in sync in a copper medium is why
parallel SCSI and IDE hard drives were jettisoned for high speed serial.
With present technology it's easier, cheaper and more reliable to use ultra
fast serial rather than slower 32 or 64 bit wide parallel busses to achieve
the same effective data rate. This is another one of those real world things
that the casual bystander finds hard or refuses to believe. The fact that
serial is better that parallel is not intuitive but true.

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 Mark Wieder via use-livecode
Sent: Friday, May 03, 2019 9:47 PM
To: use-livecode@lists.runrev.com
Cc: Mark Wieder
Subject: How big is a nanosecond?

https://www.youtube.com/watch?v=JEpsKnWZrJ8

-- 
  Mark Wieder
  ahsoftw...@gmail.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