Re: RANT (Mild): revZIP library

2022-10-12 Thread Paul Dupuis via use-livecode

On 10/12/2022 2:35 AM, Mark Waddingham via use-livecode wrote:

On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote:

We just got bit by a 4+ year old bug (See
https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP
library on macOS can create and read ZIP archives over 2GB, BUT the
Windows library can not.


Do you ship your app as a 64-bit windows exe?

I wonder if its just a limitation of the library we use when compiled 
for 32-bit archs...


Warmest Regards,

Mark.




I thought you had nailed it as we build both 32 and 64 bit Windows EXEs 
and I might have been testing the wrong one, but I just rebuilt the app 
using LC 9.6.8 for 64-Bit Windows only (turned off the 32 bit build) and 
retested and get the same error as in the bug report occurs. ZIPs under 
2GB unpack fine. Over 2GB produces the error "ziperr,Can't open file: 
Unknown error" as the result for calling revZipOpenArchive pArchive, 
"read" where pArchive is the filespec.


I think we'll just add a file size check on Windows and advise that that 
customers will need to use a OS or 3rd party ZIP tool to move their 
research data if over 2GB.


For many of our customers, this will never be an issue as their total 
research data will not even come close to 2GB. Some of our customer are 
using video data, and for them, a single video source (used for their 
research) can easily be over a GB itself or even over 2GB by itself. A 
research study can consist of several (or many) such sources.


Unfortunately, with multi-mega pixel phones these days making capturing 
a lot of video very easy more researchers are using large video files in 
their research.





___
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: RANT (Mild): revZIP library

2022-10-11 Thread Paul Dupuis via use-livecode

Thank you for the  history.

Yes, using other ZIP tools via shell is a possibility, but one I would 
rather not do. While some researchers who use our app are very computer 
savvy, most are not. Having a LiveCode ZIP in a window with a nice UI 
that uses terminology our data analysis tool already uses to let them 
'package' their data works well for usage and adoption.


We're already doing invisible shell work-arounds for a number of engine 
bugs, with using ffmpg to replace Export Snapshot (see 
https://quality.livecode.com/show_bug.cgi?id=23694) the latest. I would 
just rather not add another 'work-around'. I was actually spending time 
today cleaning out an old work-around from when a minimized stack set 
one of its coordinates to -32000 as a way of indicating it was minimized 
(before the iconic property existed) and work-around fro when a stack 
was minimized it would get a 'resizeStack' message with a new width and 
height of 0,0. None of these apply any more but we don't always have 
time or awareness to remove work-arounds when they are fixed, which can 
sometimes be years after the work-around was put into place.


Anyway, thank you for the suggested approach. It is actually really goo 
to know someone else has already done it.



On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote:

Hi Paul

I got affected by that and other win revzip issues too. I ended up parsing them 
through a shell script and using windows built in unzipper. Of course the 
downfall with that is a lack of feedback on progress which, for large files 
like this, requires a great deal of time to process and feedback is almost a 
necessity. I made the shell visible just so that the customer was aware of its 
progress. It was ugly in terms of UIX but it got us out of a short term hole. I 
hope you can get a more long term solution.

I’m sure you’re capable of building the shell script but let us know if not.

All the best
Sean




On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode 
 wrote:

We just got bit by a 4+ year old bug (See 
https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on 
macOS can create and read ZIP archives over 2GB, BUT the Windows library can 
not.

We distribute our desktop research application as "cross-platform" for macOS and Windows 
and just had a researcher on macOS build a "package" (our term for a custom ZIP archive 
our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window 
colleague who can NOT open it.

Yes, we walked the Windows researcher through unzipping the archive with WinZIP and 
accessing all the data files manually, but so much for the "elegance" of our 
app being cross-platform due to using LiveCode.

Now, do we add code to check the size and prohibit macOS users from creating 
"packages" over 2GB so if they are sent to a Windows researcher, they can be 
opened OR do we just warn the Windows researcher if the archive is over 2GB that they 
will not be able to open it? Neither is a good option.

This just makes us look bad.

Paul Dupuis
Researchware

___
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


RANT (Mild): revZIP library

2022-10-11 Thread Paul Dupuis via use-livecode
We just got bit by a 4+ year old bug (See 
https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP 
library on macOS can create and read ZIP archives over 2GB, BUT the 
Windows library can not.


We distribute our desktop research application as "cross-platform" for 
macOS and Windows and just had a researcher on macOS build a "package" 
(our term for a custom ZIP archive our LiveCode app can make of the 
researcher's data files) over 2GB and sent to their Window colleague who 
can NOT open it.


Yes, we walked the Windows researcher through unzipping the archive with 
WinZIP and accessing all the data files manually, but so much for the 
"elegance" of our app being cross-platform due to using LiveCode.


Now, do we add code to check the size and prohibit macOS users from 
creating "packages" over 2GB so if they are sent to a Windows 
researcher, they can be opened OR do we just warn the Windows researcher 
if the archive is over 2GB that they will not be able to open it? 
Neither is a good option.


This just makes us look bad.

Paul Dupuis
Researchware

___
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: Charts widget.

2022-09-26 Thread Paul Dupuis via use-livecode
Yes, I see it in LC10.0.0dp4. It must be a new widget for LC10, possibly 
only working in LC10 and not earlier versions?


Thank you for directing me to 10.


On 9/26/2022 5:11 PM, Mike Kerner via use-livecode wrote:

well, i learned something new.
i don't even see that widget in 9, but i do in 10.

On Mon, Sep 26, 2022 at 4:54 PM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:


No, I mean the chart widget (chart - not charts, my mistake).

The graph (or linegraph) widget - com.livecode.widget.linegraph - does
simple line graphs only.

The chart widget - com.livecode.widget.chart - can do everything you
ever imagined a chart could do, and more. (*)


The Chart widget is a wrapper forChart.js v3.7.0
in LiveCode. It allows you to create
beautiful and highly customizable charts, in a simple way. Data can be
displayed as a line graph, bar chart, radar chart, donut/pie chart,
polar chart, bubble chart or scatter plot.

It really is wonderful - all kinds of charts, very fast, animations,
etc. The only drawback I've found so far is that doing time sequence or
date sequence charts needs some extra magic, and I don't know how to
find that magic.

Thanks for the suggestion of reading the .lcb; I probably couldn't have
made sense of it anyway - but there is no .lcb file for the chart widget.

It's just my bad luck that all the charts I want to do are the kind that
is beyond me :-)

Alex.

(*) not quite true, I don't think it can do the complex time + bubble
animations that Hans Rosling uses to such amazing effect -

https://singularityhub.com/2010/12/09/hans-rosling-shows-you-200-years-of-global-growth-in-4-minutes-video/

On 25/09/2022 23:21, Mike Kerner via use-livecode wrote:

do you mean the graph widget?
if that's what you mean, then...
sorry this isn't more helpful, but to get you started, the graph.lcb file
is in Tools/Extensions/com.livecode.widget.linegraph, if you want to try
reading through it.
it's only 1300 lines, total, including the docs. there is not that much
going on.
there are no private properties that i can see.

On Sun, Sep 25, 2022 at 4:55 PM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:


Anyone using this widget ?

Is there some documentation (other than the obvious dictionary entries)
about how to do different kinds of chart ?

In the last 4-6 months, I've done 3 or 4 little personal projects where
I wanted to create a chart, but I've not been able to figure out how to
use the charts widget to do time-based charts.

What I mean is, e.g., create a chart for the following data 

2022-02-01100
2022-02-04500
2022-02-05525
2022-02-17900


Obviously, the dates along the X-axis should be spaced properly
according to their data value, not equally spaced and simply labelled.

Looking at the charts.js documentation, it tells me (or rather, fails to
tell me, since I can't understand it) that I need to define an 'adapter'
and shows some sample javascript. I don't really understand how to do it
simply in javascript - far less how I could use that in the widget.

Can anyone give me a clue or a pointer ?

Many thanks,

Alex.

P.S. currently I solved it using my own GraphMaker library (see LC
conference from 2018) - but I'd really like to retire that library in
favour of the new widget.



___
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: Charts widget.

2022-09-26 Thread Paul Dupuis via use-livecode

Where the heck is the chart widget (com.livecode.widget.chart)?

It is not among the widgets in LC 9.6.8 or added by the Summer Bundle? 
Is it from LC or a 3rd party? If so from where?



___
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: Hacking LiveCode

2022-09-25 Thread Paul Dupuis via use-livecode

On 9/25/2022 12:41 PM, Mike Kerner via use-livecode wrote:

chasing all the things that aren't documented, but you need to know about
LCB took me back into hacking liveCode.
it's just getting started. if you have tools or pointers, the
repo/wiki/issues/discussion are at https://github.com/macMikey/LC-HACK
Project 1: extracting all properties of a widget (because "export" does not
export the "base" LC object properties) and applying those properties to an
updated version of the widget (because LC is releasing updates to the
megabundle widgets almost weekly)
Project 2: documenting the LC IDE API's?



A clarification please: Are you saying that if I have version 1.1.2 of 
PolyGrid (as an example) installed and I have made a stack using 1 or 
more Polygrids and I now download and install version 1.3.1 (or some 
newer version) of PolyGrid, that when I open my stack the PolyGrids in 
that stack do not update from 1.1.2 to 1.3.1?


If so, this is a terrible disadvantage of any use of widgets. I feel I 
must be misunderstanding why exporting properties to re-apply them is 
needed for updates.



___
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: Excel Lib fail

2022-09-03 Thread Paul Dupuis via use-livecode

On 9/2/2022 10:50 PM, Mark Wieder via use-livecode wrote:

/sigh
Got all excited about using the Excel Library for a new spreadsheet 
project and then discovered it doesn't work on linux, *only* works 
with actual Excel, not LibreOffice. Yes, I do realize it says "Excel" 
and not "spreadsheet".


So it's off to python to do my spreadsheet automation. Sheesh.



Are you looking to remote control LibreOffice? or just write a 
spreadsheet from Livecode. If writing a spreadhseet, consider Curry's 
SpreadOut library. It works great for creating .xlsx files in Livecode 
script.



___
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: Text to speech

2022-09-03 Thread Paul Dupuis via use-livecode
If you purchased a subscription to the LiveCode Global 22-23 conference, 
then you can go to livecode.com and login to the store and navigate to 
your account and you will see "LiveCode Global 22/23 - The Year of 
Reinvention" under Conferences in the sidebar. All the video's are under 
there - and I think a way to get the sample files as well.



On 9/3/2022 6:12 AM, Peter Bogdanoff via use-livecode wrote:

Hi, where might the August Problem Solving session be found?

Peter Bogdanoff
ArtsInteractive


On Sep 2, 2022, at 1:24 AM, panagiotis m via use-livecode 
 wrote:

Hello all,

Yes, we discussed this topic in August's Problem Solving session. The stack
presented supports text-to-speech in all platforms (including Linux and
Web).

Kind regards,
Panos
--

On Fri, 2 Sept 2022 at 00:36, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


I think it was the July Problem solving session, but it could have been
August's. I think July 14th's session.



On 9/1/2022 5:21 PM, J. Landman Gay via use-livecode wrote:

Thank you. I keep missing the conferences and I need to watch them
later. Do you happen to recall which one it was? It sounds like
exactly what I'm looking for.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 1, 2022 3:44:56 PM Paul Dupuis via use-livecode
 wrote:


On 9/1/2022 4:33 PM, J. Landman Gay via use-livecode wrote:

What library/commands do you use for text to speech? I see that
revSpeak works on Windows and Mac, and the speech library ("speech*")
works on android, iOS, and Mac. What do you use if you want to support
all four platforms? Do you just branch to revSpeak for Windows?


I think Panos just shows how to build a common text to speech library
for all platforms from these two built-in in a recent Livecode Global
problem solving session.



___
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: Text to speech

2022-09-01 Thread Paul Dupuis via use-livecode
I think it was the July Problem solving session, but it could have been 
August's. I think July 14th's session.




On 9/1/2022 5:21 PM, J. Landman Gay via use-livecode wrote:
Thank you. I keep missing the conferences and I need to watch them 
later. Do you happen to recall which one it was? It sounds like 
exactly what I'm looking for.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 1, 2022 3:44:56 PM Paul Dupuis via use-livecode 
 wrote:



On 9/1/2022 4:33 PM, J. Landman Gay via use-livecode wrote:

What library/commands do you use for text to speech? I see that
revSpeak works on Windows and Mac, and the speech library ("speech*")
works on android, iOS, and Mac. What do you use if you want to support
all four platforms? Do you just branch to revSpeak for Windows?



I think Panos just shows how to build a common text to speech library
for all platforms from these two built-in in a recent Livecode Global
problem solving session.



___
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: Text to speech

2022-09-01 Thread Paul Dupuis via use-livecode

On 9/1/2022 4:33 PM, J. Landman Gay via use-livecode wrote:
What library/commands do you use for text to speech? I see that 
revSpeak works on Windows and Mac, and the speech library ("speech*") 
works on android, iOS, and Mac. What do you use if you want to support 
all four platforms? Do you just branch to revSpeak for Windows?




I think Panos just shows how to build a common text to speech library 
for all platforms from these two built-in in a recent Livecode Global 
problem solving session.




___
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 script of with line numbers?

2022-08-29 Thread Paul Dupuis via use-livecode

On 8/29/2022 6:58 PM, Mark Wieder via use-livecode wrote:

On 8/29/22 14:36, Paul Dupuis via use-livecode wrote:
Is there a way (an existing function or command in the language or 
IDE) to get the script of an object WITH the line numbers as you see 
them in the IDE script editor?


While some clever solutions have been posted, I gotta ask WHY?



In our applications, we trap the script error dialog and replace the 
default with our own. That dialog lets customers send the 
executionContexts and some other debugging information to us to report 
an error (if one gets by quality/beta testing).


So we get the executionContext that say "error such and such occurred at 
line 342 of some handler". The line number is the line of the whole 
script the handler is in.


When we et the message and log the problem in our instance of Bugzilla, 
one of the 1st things is to look at the script and see what the line of 
code references actually says.


It could reduce a trouble should step to include the line numbers 
programmatically in the error report.


No a huge priority in the scheme of things, but a "nice to have" sort of 
thing. Does that answer the "why?"



___
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


the script of with line numbers?

2022-08-29 Thread Paul Dupuis via use-livecode
Is there a way (an existing function or command in the language or IDE) 
to get the script of an object WITH the line numbers as you see them in 
the IDE script editor?


OR

Do I just have to do something like:

put the script of tObject into tScript
repeat with i=1 to the number of lines in tScript
  put i  before line i of tScript
end repeat

Any secret IDE or LCS knowledge welcome. Thank you in advance.



___
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: Sorting [was: Polygrid sorting]

2022-08-25 Thread Paul Dupuis via use-livecode
So what if you use the column headers on a PolyGrid (or whatever) to 
give the user a UI for sorting by column (adding, or not, sort arrows to 
the header labels).


Is it still more efficient to re-query the database with the new, user 
chosen, sort order and repopulate the PolyGrid?


Or more efficient to just resort the data already populated into the 
grid in the desired order the user has chosen? I suspect this later is 
the more efficient case unless you are sure you have a fast network and 
server with low latency and no competition for bandwidth.


As always, people's use-cases for these widgets vary widely. That is why 
the more versatile a widget is the often (but not always) the better it is.



On 8/25/2022 11:17 AM, Bob Sneidar via use-livecode wrote:

Not sure how that happened. If the source is a DATABASE...

On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

+1 if the source is a dabs, sort during query.

Bob S

___
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: Livecode performance problem

2022-08-20 Thread Paul Dupuis via use-livecode

Thank you!

The prior solutions have dramatically reduced the time - the WHOLE 
analytics process in its entirety because of the slowness of my old code 
was taking HOURS (like 6-10) - and is now down to 30-35 minutes with the 
prior solutions. I can't wait to tr the combine by columns method to see 
how much more (40%! WOW!) it reduced the overall process time further!



On 8/20/2022 5:59 PM, Alex Tweedly via use-livecode wrote:
I can't answer for anyone else, but for me - because I never thought 
about it :-)


Combine by column - never used it before, so never thought of it.

It's significantly faster, roughly 40% improvement over the previous 
best.


Note, the spec requires that each line begins with the line number, so 
you need to add something like:



   local tmp
   repeat with i = 1 to the number of lines in g1
  put i  after tmp
   end repeat
   put tmp into x[1]

   put g1 into x[2]
   put g2 into x[3]
   put g3 into x[4]
   put g4 into x[5]

and finish off with

   combine x by column
   put cr after x

to fully match the earlier results.

Alex.

On 20/08/2022 18:45, David Epstein via use-livecode wrote:

I didn’t text the speed, but why not

put fld A into x[1]
put fld B into x[2]
put fld C into x[3]
put fld D into x[4]
combine x by column
return x


I have a set of fields, call them A, B, C, and D. Each has the same
number of lines. Each field has different text (per line)

I need to combine the data - frequently - into a form that look like:




___
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: The use-livecode list.

2022-08-19 Thread Paul Dupuis via use-livecode

No, THANK YOU!


On 8/19/2022 7:53 PM, Alex Tweedly via use-livecode wrote:
I've had a pretty shitty day. A variety of things have happened, or 
not happened, that made it not one of the good days.


So I was not happy, and rather grumpy. (My apologies to Panos for 
being ungracious in an earlier post - it was meant to be a plea for 
completeness of the product in preference to more work-arounds - but 
it came across wrongly. Sorry, Panos).


And then, the use-list comes up with a nice, tight, well-defined 
problem to tackle - and now I can end my day on a puzzle-solving high 
note, rather than dragging myself off to bed on a downbeat.


Thanks again, use-list !!

Alex.



___
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: Livecode performance problem

2022-08-19 Thread Paul Dupuis via use-livecode

On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote:

On 8/19/22 16:31, Alex Tweedly via use-livecode wrote:

to trim about another 15% off the time (for my sample data, 24ms down 
to 20ms.)


Nice.
Note, of course, that we're all going on the assumption that all four 
fields contain the same number of lines.





Thank you all for the example of improving performance over my clunky code.

Yes, all the fields contain the same number of lines.

For strange legacy application reasons, when lines get added to the set 
of fields (a frequency action by users - sometimes adding hundreds of 
lines a day), the data has to be repackaged into this tab delimited 
structure in a single variable to run some procedures on.


So a user driven action of:

1) Add a line (or a few) to the fields
2) repackage data and run a few procedures
3) User repeats starting at step 1

Can become very slow as the number of lines in the fields gets large - 
as you all have noted!


Thank you all again!



___
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


Livecode performance problem

2022-08-19 Thread Paul Dupuis via use-livecode
I have a set of fields, call them A, B, C, and D. Each has the same 
number of lines. Each field has different text (per line)


I need to combine the data - frequently - into a form that look like:

C>


For the number of lines in the set of fields. Currently I do this as 
follows:


put empty into vCombined
put fld A into v1
put fld B into v2
put fld C into v3
put fld D into v4
repeat with i=1 to the number of lines in v1
  put i & line i of v1 & line i of v2 & line i of v3 & 
line i of v4 into line i of vCombined

end repeat

I put the field contents into variable before the loop to combine them 
as my understanding is variable access is faster than field access in a loop


My question to the Hivemind is: Is there a noticeably faster way to 
covert these field to the tab delimited structure as show above than the 
code above?


This current takes about 20 seconds for 2000 lines or about a second per 
100 lines (very roughly, I was not using a timer in my code, just my 
wristwatch seconds in the IDE debugger between breakpoints)


Thank you for any pointers in advance,

Paul Dupuis
Researchware


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


Re: AW: Polygrid sorting (problems)

2022-08-18 Thread Paul Dupuis via use-livecode

Yes, Livecode enhancements bundle 1_0_21 (with PolyGrid 1.1.3)


On 8/18/2022 8:31 PM, Mike Kerner via use-livecode wrote:

which version is that? 21?

On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


All,

Bug 23886 has been fixed with the latest release of the Summer Bundle
widget sets. Download from the store.

On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote:

BTW the problem of:
the text of widget X
the csvData of widget X
the tsvData of widget X
AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1)
the pgText of widget X
ALL not returning the full data for a PolyGrid widget is a confirmed bug:

See https://quality.livecode.com/show_bug.cgi?id=23886



On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote:

So there is an example of sorting in the PolyGrid documentation under
the entry for the MESSAGE "headerClick" and under the entry to the
PROPERTY "text" (and in 'the text of me')

The example code only sort the visible rows as "the text of widget X"
returns the data of PolyGrid X as tab delimited, WITHOUT the column
headers, but ONLY the visible rows.

So, what to use for sorting all the data in a PolyGrid by a
particular column?

The tsvData of widget X (and csvData, and Text) doesn't seem to work.
The all seems to only get the visible data (rows). Only the pgData of
widget return the whole dataset of the PolyGrid. Is this the way
these properties are supposed to work?

If that is how text, csvData, and tsvData are supposed to work
(returning only the visible rows), then the sort example in the
PolyGrid documentation require updating otherwise these properties
require updating!



On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote:

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application
uses a Datagrid to display customer research data. The columns
headers are text and the left most column ROWs are test and all
other cells are numbers. Some customers can have quite large data
sets and I have been running into the number of columns (ad a
default width of 100px per column) exceeding a GROUPs 32,767px width
maximum (about 327-328 columns). At this point the Datagrid just
fails - no data is displayed.

I can now attest that a Polygrid (under LC 9.6.8) does not have this
limit. I have a "test" stack (for Datagrid testing) I converted to
the Polygrid and can easily generate 1000 columns x 1000 rows of
data and it works.

So I guess the answer to bug
https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the
PolyGrid"

On that note, the Datagrid has 2 features I use in this specific
case, user column resizing (built into the Polygrid - Yea!) and
column sorting (NOT built into the Polygrid - Boo!). So, does anyone
have some column sort code for the Polygrid they have written that
they might be willing to share?

Also, I have filled a Polygrid enhancement request to allow the left
column (or the left N columns) to be locked/frozen, so they remain
visible when the Polygrid is scrolled horizontally. See
https://quality.livecode.com/show_bug.cgi?id=23880. If you might
benefit from this enhancement, please follow the bug or add a
comment to that effect.


___
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: AW: Polygrid sorting (problems)

2022-08-18 Thread Paul Dupuis via use-livecode

All,

Bug 23886 has been fixed with the latest release of the Summer Bundle 
widget sets. Download from the store.


On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote:

BTW the problem of:
the text of widget X
the csvData of widget X
the tsvData of widget X
AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1)
the pgText of widget X
ALL not returning the full data for a PolyGrid widget is a confirmed bug:

See https://quality.livecode.com/show_bug.cgi?id=23886



On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote:
So there is an example of sorting in the PolyGrid documentation under 
the entry for the MESSAGE "headerClick" and under the entry to the 
PROPERTY "text" (and in 'the text of me')


The example code only sort the visible rows as "the text of widget X" 
returns the data of PolyGrid X as tab delimited, WITHOUT the column 
headers, but ONLY the visible rows.


So, what to use for sorting all the data in a PolyGrid by a 
particular column?


The tsvData of widget X (and csvData, and Text) doesn't seem to work. 
The all seems to only get the visible data (rows). Only the pgData of 
widget return the whole dataset of the PolyGrid. Is this the way 
these properties are supposed to work?


If that is how text, csvData, and tsvData are supposed to work 
(returning only the visible rows), then the sort example in the 
PolyGrid documentation require updating otherwise these properties 
require updating!




On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote:

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application 
uses a Datagrid to display customer research data. The columns 
headers are text and the left most column ROWs are test and all 
other cells are numbers. Some customers can have quite large data 
sets and I have been running into the number of columns (ad a 
default width of 100px per column) exceeding a GROUPs 32,767px width 
maximum (about 327-328 columns). At this point the Datagrid just 
fails - no data is displayed.


I can now attest that a Polygrid (under LC 9.6.8) does not have this 
limit. I have a "test" stack (for Datagrid testing) I converted to 
the Polygrid and can easily generate 1000 columns x 1000 rows of 
data and it works.


So I guess the answer to bug 
https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the 
PolyGrid"


On that note, the Datagrid has 2 features I use in this specific 
case, user column resizing (built into the Polygrid - Yea!) and 
column sorting (NOT built into the Polygrid - Boo!). So, does anyone 
have some column sort code for the Polygrid they have written that 
they might be willing to share?


Also, I have filled a Polygrid enhancement request to allow the left 
column (or the left N columns) to be locked/frozen, so they remain 
visible when the Polygrid is scrolled horizontally. See 
https://quality.livecode.com/show_bug.cgi?id=23880. If you might 
benefit from this enhancement, please follow the bug or add a 
comment to that effect.



___
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: Comparison chart for DataGrid, PolyList, PolyGrid, list fields....

2022-08-18 Thread Paul Dupuis via use-livecode

On 8/18/2022 6:29 PM, Richard Gaskin via use-livecode wrote:


If a newcomer needs to display a list, how can they know what to use?

Currently we have:

- list field
- Table field
- DataGrid
- PolyGrid
- PolyList
- others?

Is there a chart listing the features of each that I can point new 
users to when this question comes up?




No list, but I did discover one reason for choosing PolyGrid over 
DataGrid recently. Large number of columns (such as user generated 
research data). The DataGrid is a group and so is limited to a total 
width of all columns of 32767px, or about 327 columns at the default of 
100px per column. Exceed this and the data stops displaying. I have 
tested PolyGrid with 1000 columns without issue. The Datagrid column 
limit can also be an issue if you are close to the limit and the user 
resizes 1 or more columns to exceed the total pixel limit (assuming you 
have column resizing turned on, which it is by default)




___
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 effective width of a stack?

2022-08-17 Thread Paul Dupuis via use-livecode

On 8/17/2022 1:38 PM, Paul Dupuis via use-livecode wrote:

I can across some old code where I an referring to

if (the effective width of stack X > someValue) then

This code produces no errors and works. However, I was just trying to 
look up 'effective width' to see exactly what it was doing in the 
Livecode 9.6.8 Dictionary and struck out!


Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not 
listed as an inherited property that 'effective' can be used with. 
Under 'width' it is not listed. If I look at the entry to the 'stack' 
object, I find 'width' but that just takes me to the entry for 'width'


Am I imagining something, OR is there such a thing as 'effective 
width' and if so, where the heck is it documented?


PS. I thought the width of a stack (or window) vs the effective width 
was teh difference between the inner dimensions of the stack (the card 
size) and the size  of the stack with borders and titlebar (outer 
dimensions). I forget which is which and, again, can not find it 
documented! Also, I thought that contrary to the Dictionary entry to 
the 'effective' keyword, you could SET the 'effective width' of a 
stack/window to change the size of the outer dimensions(?)


I'd appreciate any pointers to where effective width or effective 
height of a stack is documented.


So testing shows that (in LC 9.6.8 at any rate) the following STACK 
properties can use the effective keyword:

height
width
rect (or rectangle)
left
right
top
bottom
topLeft
topRight
bottomLeft
bottomRight

and, indeed, the different between the property and the effective 
property is the property (inside dimensions) and effective property 
(outside dimensions)


The "effective" keyword is ONLY documented with the rect/rectangle 
property in the Dictionary and not for any other dimensional properties, 
even though they work as expected (well except for Window 10: 
https://quality.livecode.com/show_bug.cgi?id=16305)


It also appears (from testing) that you can set the effective rect (as 
documented in the rect Dictionary entry) and set the effective width or 
the effective height (not documented in the Dictionary). I have not yet 
tried setting the "effective" form of the remaining dimensional 
properties (top, left, topLeft, etc.)



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


AW: Polygrid sorting (problems)

2022-08-17 Thread Paul Dupuis via use-livecode

BTW the problem of:
the text of widget X
the csvData of widget X
the tsvData of widget X
AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1)
the pgText of widget X
ALL not returning the full data for a PolyGrid widget is a confirmed bug:

See https://quality.livecode.com/show_bug.cgi?id=23886



On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote:
So there is an example of sorting in the PolyGrid documentation under 
the entry for the MESSAGE "headerClick" and under the entry to the 
PROPERTY "text" (and in 'the text of me')


The example code only sort the visible rows as "the text of widget X" 
returns the data of PolyGrid X as tab delimited, WITHOUT the column 
headers, but ONLY the visible rows.


So, what to use for sorting all the data in a PolyGrid by a particular 
column?


The tsvData of widget X (and csvData, and Text) doesn't seem to work. 
The all seems to only get the visible data (rows). Only the pgData of 
widget return the whole dataset of the PolyGrid. Is this the way these 
properties are supposed to work?


If that is how text, csvData, and tsvData are supposed to work 
(returning only the visible rows), then the sort example in the 
PolyGrid documentation require updating otherwise these properties 
require updating!




On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote:

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application 
uses a Datagrid to display customer research data. The columns 
headers are text and the left most column ROWs are test and all other 
cells are numbers. Some customers can have quite large data sets and 
I have been running into the number of columns (ad a default width of 
100px per column) exceeding a GROUPs 32,767px width maximum (about 
327-328 columns). At this point the Datagrid just fails - no data is 
displayed.


I can now attest that a Polygrid (under LC 9.6.8) does not have this 
limit. I have a "test" stack (for Datagrid testing) I converted to 
the Polygrid and can easily generate 1000 columns x 1000 rows of data 
and it works.


So I guess the answer to bug 
https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid"


On that note, the Datagrid has 2 features I use in this specific 
case, user column resizing (built into the Polygrid - Yea!) and 
column sorting (NOT built into the Polygrid - Boo!). So, does anyone 
have some column sort code for the Polygrid they have written that 
they might be willing to share?


Also, I have filled a Polygrid enhancement request to allow the left 
column (or the left N columns) to be locked/frozen, so they remain 
visible when the Polygrid is scrolled horizontally. See 
https://quality.livecode.com/show_bug.cgi?id=23880. If you might 
benefit from this enhancement, please follow the bug or add a comment 
to that effect.



___
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: the effective width of a stack?

2022-08-17 Thread Paul Dupuis via use-livecode

On 8/17/2022 1:58 PM, Mark Wieder via use-livecode wrote:

On 8/17/22 10:38, Paul Dupuis via use-livecode wrote:

I'd appreciate any pointers to where effective width or effective 
height of a stack is documented.


You can't use "effective" with custom properties either.
https://quality.livecode.com/show_bug.cgi?id=23557

You *can* set the effective rect of a stack, although you may not get 
the result you expect.

https://quality.livecode.com/show_bug.cgi?id=16305



I now remember bug 16305. Mark entered it based on a list discussion 
where I reported it. Hence my comments on it. I now use Panos's 
workaround (in fact my code base is riddled with "work-arounds"), but 
there seem to be a (limited) consensus that on Windows 10, the effective 
rect should only factor in VISIBLE border elements, not INVISIBLE ones. 
I still wish they would fix it.


That all said, where is effective width/heigh/rect of a stack/window 
documented in the Dictionary? The 'effective rect' and other 'effective' 
dimension properties of a stack/window are important for multiple window 
positioning, resizing, alignment, and more and should be in teh 
Dictionary. ALSO, as the 1 exception to the "you can not SET 'effective' 
things rule, that should definitely be documented.


I'll file a documentation bug report, but I don't want to file one just 
to find out I looked under the 'wrong' place.


Paul Dupuis
Researchware

___
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


the effective width of a stack?

2022-08-17 Thread Paul Dupuis via use-livecode

I can across some old code where I an referring to

if (the effective width of stack X > someValue) then

This code produces no errors and works. However, I was just trying to 
look up 'effective width' to see exactly what it was doing in the 
Livecode 9.6.8 Dictionary and struck out!


Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not 
listed as an inherited property that 'effective' can be used with. Under 
'width' it is not listed. If I look at the entry to the 'stack' object, 
I find 'width' but that just takes me to the entry for 'width'


Am I imagining something, OR is there such a thing as 'effective width' 
and if so, where the heck is it documented?


PS. I thought the width of a stack (or window) vs the effective width 
was teh difference between the inner dimensions of the stack (the card 
size) and the size  of the stack with borders and titlebar (outer 
dimensions). I forget which is which and, again, can not find it 
documented! Also, I thought that contrary to the Dictionary entry to the 
'effective' keyword, you could SET the 'effective width' of a 
stack/window to change the size of the outer dimensions(?)


I'd appreciate any pointers to where effective width or effective height 
of a stack is documented.




___
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: Polygrid sorting (problems)

2022-08-15 Thread Paul Dupuis via use-livecode

On 8/15/2022 7:51 PM, Paul Dupuis via use-livecode wrote:

On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote:


On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote:
So there is an example of sorting in the PolyGrid documentation 
under the entry for the MESSAGE "headerClick" and under the entry to 
the PROPERTY "text" (and in 'the text of me')


The example code only sort the visible rows as "the text of widget 
X" returns the data of PolyGrid X as tab delimited, WITHOUT the 
column headers, but ONLY the visible rows.


I'm using (I think) the latest version 
(com.livecode.widget.polygrid.1.1.1) and I don't see that problem at 
all.




Okay, a widget ignorant question: How do you tell what version of a 
widget you have installed? (i.e where/how do you see 
com.livecode.widget.polygrid.1.1.1)


Never mind. It is in the file name, com.livecode.widget.polygrid.1.1.1.lce

Also, FYI, regarding you note that:

Both "the text and "the pgtext" return the entire grid (without headers).

I haven't tried csvdata or tsvdata (they're not listed in the 
dictionary, so I'd tend to avoid them if possible.


Under the dictionary entry for "polygrid", I see the csvData and tsvData 
properties listed. The "text" property and the pgData property, but NO 
entry for pgText. It would appear, if the .lce file name is correct, 
that I am at the same version, 1.1.1. I am on Windows 10, under LC 9.6.8


___
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: Polygrid sorting (problems)

2022-08-15 Thread Paul Dupuis via use-livecode

On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote:


On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote:
So there is an example of sorting in the PolyGrid documentation under 
the entry for the MESSAGE "headerClick" and under the entry to the 
PROPERTY "text" (and in 'the text of me')


The example code only sort the visible rows as "the text of widget X" 
returns the data of PolyGrid X as tab delimited, WITHOUT the column 
headers, but ONLY the visible rows.


I'm using (I think) the latest version 
(com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all.




Okay, a widget ignorant question: How do you tell what version of a 
widget you have installed? (i.e where/how do you see 
com.livecode.widget.polygrid.1.1.1)


___
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: Sorting [was: Polygrid sorting]

2022-08-15 Thread Paul Dupuis via use-livecode
Perhaps some expansion of the column "pgContentTypeofColumn" property? 
The current possible values are: 
text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement
Allowing the addition of 'numeric' and 'datetime' would at least allow a 
mapping to sorts although sort support 'international' (perhaps should 
be the default for a polygrid column of type "text" and "binary". I am 
also not sure how svg-iconname, imagedata, imagefile, and color should 
sort. Perhaps svg-iconname should sort as "text". Bolean can sort as 
"text" since ascending puts "false" first and descending puts "true" first.



On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote:
So it occurred to me, while playing with sorting by columns, that it 
might be nice to have an additional "sortType" available.


I'd like to be able to say

 - if all the 'things' being sorted on are numbers, then sort numeric, 
otherwise sort alphabetical.


Would that be a reasonable enhancement request ?

Would "natural" be a reasonable suggested name ?

Alex.


___
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: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode

On 8/15/2022 4:55 PM, Mark Wieder via use-livecode wrote:

On 8/15/22 13:12, Paul Dupuis via use-livecode wrote:
So I see that the Summer Bundle of widgets in the store has a note 
that says "Latest update 1.0.19: 11 August 2022"


However, the Download button says "Version 1.0.0". Does anyone know 
how to update the widget set to 1.0.19 or how to update a single widget?


Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 
version is always the most recent.


From a July 27 comment from Steven Crighton on 
https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572


For the moment you have to update the new widgets manually. To do 
this, first log in to your LiveCode account. In the left hand 
navigation make your way to Products > thirdparty. Scroll down this 
list to find LiveCode Enhancements and download that bundle. Inside 
the bundle folder there is a widgetpackinstaller.livecode file – If 
you want to update everything in your bundle in one go I recommend 
using that. Simply open that stack and click the install button. Note 
– DataView will now be PolyList after you have updated.


I updated once and looks like I'll have to again.



Thank you Mark! (and Steven)

___
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: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode

FYI,

I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 
and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid 
and my sample stack displayed for me at 10, 100, and 500 columns and rows.



On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote:

Hi Paul,

I downloaded your sample stack, put 100 into the Columns field, heard 3 audible 
beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames 
and pgdata custom properties (so those values were defined). It’s just the grid 
that did not appear. Thinking it might be my laptop (apple silicon M1) I tried 
it on an Intel MacBook Pro and got the same result.

I am a big fan of being able to lock top and left-most column/rows of any grid 
and would happily endorse your request.

Cheers,
Mark




___
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: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
I just tested on macOS Mojave (10.14) on an Intel MacBook Pro and the 
PolyGrid and my sample stack work as expected. Tried 10, 100, and 500 
columns/rows.


Now I have to find the MacBook Air with Monterey and see...


8/15/2022 4:01 PM, Mark Smith via use-livecode wrote:

Hi Paul,

I downloaded your sample stack, put 100 into the Columns field, heard 3 audible 
beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames 
and pgdata custom properties (so those values were defined). It’s just the grid 
that did not appear. Thinking it might be my laptop (apple silicon M1) I tried 
it on an Intel MacBook Pro and got the same result.

I am a big fan of being able to lock top and left-most column/rows of any grid 
and would happily endorse your request.

Cheers,
Mark




___
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: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
So I see that the Summer Bundle of widgets in the store has a note that 
says "Latest update 1.0.19: 11 August 2022"


However, the Download button says "Version 1.0.0". Does anyone know how 
to update the widget set to 1.0.19 or how to update a single widget?




On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote:

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application 
uses a Datagrid to display customer research data. The columns headers 
are text and the left most column ROWs are test and all other cells 
are numbers. Some customers can have quite large data sets and I have 
been running into the number of columns (ad a default width of 100px 
per column) exceeding a GROUPs 32,767px width maximum (about 327-328 
columns). At this point the Datagrid just fails - no data is displayed.


I can now attest that a Polygrid (under LC 9.6.8) does not have this 
limit. I have a "test" stack (for Datagrid testing) I converted to the 
Polygrid and can easily generate 1000 columns x 1000 rows of data and 
it works.


So I guess the answer to bug 
https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid"


On that note, the Datagrid has 2 features I use in this specific case, 
user column resizing (built into the Polygrid - Yea!) and column 
sorting (NOT built into the Polygrid - Boo!). So, does anyone have 
some column sort code for the Polygrid they have written that they 
might be willing to share?


Also, I have filled a Polygrid enhancement request to allow the left 
column (or the left N columns) to be locked/frozen, so they remain 
visible when the Polygrid is scrolled horizontally. See 
https://quality.livecode.com/show_bug.cgi?id=23880. If you might 
benefit from this enhancement, please follow the bug or add a comment 
to that effect.



___
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: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
Okay, I built the stack and tested it under Windows 10. The 3 beeps are 
intentional. It is to let me know when it is done as some test with 500+ 
columns/rows takes a while. It does display under LC9.6.8 (64 bit) on 
Windows 10.


Now I have to go try it on macOS?



On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote:

Hi Paul,

I downloaded your sample stack, put 100 into the Columns field, heard 3 audible 
beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames 
and pgdata custom properties (so those values were defined). It’s just the grid 
that did not appear. Thinking it might be my laptop (apple silicon M1) I tried 
it on an Intel MacBook Pro and got the same result.

I am a big fan of being able to lock top and left-most column/rows of any grid 
and would happily endorse your request.

Cheers,
Mark


On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode 
 wrote:

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application uses a 
Datagrid to display customer research data. The columns headers are text and 
the left most column ROWs are test and all other cells are numbers. Some 
customers can have quite large data sets and I have been running into the 
number of columns (ad a default width of 100px per column) exceeding a GROUPs 
32,767px width maximum (about 327-328 columns). At this point the Datagrid just 
fails - no data is displayed.

I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a 
"test" stack (for Datagrid testing) I converted to the Polygrid and can easily 
generate 1000 columns x 1000 rows of data and it works.

So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is 
"Use the PolyGrid"

On that note, the Datagrid has 2 features I use in this specific case, user 
column resizing (built into the Polygrid - Yea!) and column sorting (NOT built 
into the Polygrid - Boo!). So, does anyone have some column sort code for the 
Polygrid they have written that they might be willing to share?

Also, I have filled a Polygrid enhancement request to allow the left column (or 
the left N columns) to be locked/frozen, so they remain visible when the 
Polygrid is scrolled horizontally. See 
https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from 
this enhancement, please follow the bug or add a comment to that effect.


___
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: Polygrid sorting (problems)

2022-08-15 Thread Paul Dupuis via use-livecode
So there is an example of sorting in the PolyGrid documentation under 
the entry for the MESSAGE "headerClick" and under the entry to the 
PROPERTY "text" (and in 'the text of me')


The example code only sort the visible rows as "the text of widget X" 
returns the data of PolyGrid X as tab delimited, WITHOUT the column 
headers, but ONLY the visible rows.


So, what to use for sorting all the data in a PolyGrid by a particular 
column?


The tsvData of widget X (and csvData, and Text) doesn't seem to work. 
The all seems to only get the visible data (rows). Only the pgData of 
widget return the whole dataset of the PolyGrid. Is this the way these 
properties are supposed to work?


If that is how text, csvData, and tsvData are supposed to work 
(returning only the visible rows), then the sort example in the PolyGrid 
documentation require updating otherwise these properties require updating!




On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote:

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application 
uses a Datagrid to display customer research data. The columns headers 
are text and the left most column ROWs are test and all other cells 
are numbers. Some customers can have quite large data sets and I have 
been running into the number of columns (ad a default width of 100px 
per column) exceeding a GROUPs 32,767px width maximum (about 327-328 
columns). At this point the Datagrid just fails - no data is displayed.


I can now attest that a Polygrid (under LC 9.6.8) does not have this 
limit. I have a "test" stack (for Datagrid testing) I converted to the 
Polygrid and can easily generate 1000 columns x 1000 rows of data and 
it works.


So I guess the answer to bug 
https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid"


On that note, the Datagrid has 2 features I use in this specific case, 
user column resizing (built into the Polygrid - Yea!) and column 
sorting (NOT built into the Polygrid - Boo!). So, does anyone have 
some column sort code for the Polygrid they have written that they 
might be willing to share?


Also, I have filled a Polygrid enhancement request to allow the left 
column (or the left N columns) to be locked/frozen, so they remain 
visible when the Polygrid is scrolled horizontally. See 
https://quality.livecode.com/show_bug.cgi?id=23880. If you might 
benefit from this enhancement, please follow the bug or add a comment 
to that effect.



___
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


Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode

So, I bought the Summer Bundle. Yes, it is a good deal.

In my case it was primarily for the Polygrid widget. Our application 
uses a Datagrid to display customer research data. The columns headers 
are text and the left most column ROWs are test and all other cells are 
numbers. Some customers can have quite large data sets and I have been 
running into the number of columns (ad a default width of 100px per 
column) exceeding a GROUPs 32,767px width maximum (about 327-328 
columns). At this point the Datagrid just fails - no data is displayed.


I can now attest that a Polygrid (under LC 9.6.8) does not have this 
limit. I have a "test" stack (for Datagrid testing) I converted to the 
Polygrid and can easily generate 1000 columns x 1000 rows of data and it 
works.


So I guess the answer to bug 
https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid"


On that note, the Datagrid has 2 features I use in this specific case, 
user column resizing (built into the Polygrid - Yea!) and column sorting 
(NOT built into the Polygrid - Boo!). So, does anyone have some column 
sort code for the Polygrid they have written that they might be willing 
to share?


Also, I have filled a Polygrid enhancement request to allow the left 
column (or the left N columns) to be locked/frozen, so they remain 
visible when the Polygrid is scrolled horizontally. See 
https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit 
from this enhancement, please follow the bug or add a comment to that 
effect.



___
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


Datagrid and new Summer Bundle table/grid widgets

2022-08-11 Thread Paul Dupuis via use-livecode

To anyone with the Summer Bundle:

The Datagrid object has a practical limit on the number of columns that 
I just reported as https://quality.livecode.com/show_bug.cgi?id=23875
(about 327 columns at a default column width of 100px due to the Group 
objects 32767px width limit)


Do any of the table/grid widgets in the Summer Bundle allow going beyond 
this limit? Could someone with a Summer Bundle please test the 
table/grid widgets. I have included the script I populate the column 
names and a first row of data in a Datagrid with below. I'd just like to 
know whether any of the new table widgets can exceed thsi Datagrid 
limit. Thank you to anyone who can spare the time to test in advance.


on mouseUp pMouseButton
  local tColumnNames, tArray
  ask "Number of columns?"
  if it is empty then exit mouseUp
  --
  repeat with i=1 to it
    set cursor to busy
    put "Column"& into tColumnName
    put tColumnName into line i of tColumnNames
    put i into tArray[1][tColumnName]
  end repeat
  --
  set cursor to watch
  set the dgData of group "Table" to tArray -- replace this line and 
the nest with code for the new widget

  set the dgProp["columns"] of group "Table" to tColumnNames
  beep 3
end mouseUp

___
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: Datagrid internal error

2022-08-11 Thread Paul Dupuis via use-livecode

On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote:

32,767 is the max for width as well. If there are enough columns it is
possible that the DataGrid is rendering a group that exceeds this limit and
hence the error. The DataGrid works around the limit when rendering rows,
but not when rendering columns.

I suppose a quick test would be to create a DataGrid with 330 columns that
are at least 100 pixels wide and see if you get the same error.



So I created 2 test stacks with a Datagrid and a button to set the 
number of columns and populate a row of data. One stack I did in 
Livecode 4.6.4 (the oldest I have) and one I built in Livecode 9.6.8 to 
see if there were differences in the handling of the error condition 
between versions of the Datagrid object.


[Note: Some of the Datagrids in our app are from LC 4.6.4 and we've 
never removed them and replaced them with newer versions and I don't 
believe Livecode does anything to automatically update the Datagrid 
objects in an old stack when opened in a new version of Livecode]


Under LC464, trying to create a number of columns with default widths 
that would exceed the 32,767 pixel width limit of the group object 
(using 330 columns with a default width of 100px or 33,000 pixels) produces:


1) A blank header (no columns)
2) Visible column for data, where only the visible columns of the first 
row (8 columns) are populated with data and when you scroll to the 
right, all remaining column of the 1st row of data are empty. The grid 
is scrollable horizontally to what looks to be around 320-330 columns.


Using 320 columns, works as expected. 325 works; 327 works. 328 only 
produces 327 columns in the header with 327 values for data in the first 
row. 329 produces a header with 329 columns and no data is rendered in 
the 1st row.


Under LC968, the LC968 test version of this with 330 columns produces:

1) Columns headers 1 to 8 (the header that are the visible width of the 
Datagrid)

2) No data is rendered and the grid is not scrollable.

Using 320 columns, works as expected. 325 works. 327 works. 328 produces 
327 columns in the header and no data in the first row. 329 is the same 
as 330 (only 8 visible column headers and no data and no scrolling).


So, the results are subtly different from Datagrids from LC4.6.4 and 
Datagrids from LC9.6.8, but both fail to do what a user would expect 
without any visible errors.


However, having the number of columns exceed the width of a Livecode 
group object in pixels does not seem to be the source of the error I am 
trying to track down which was:


Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to 
tColumnNames


tColumnNames is a variable containing a list of text lines that are 
customer entered column names, so they could be ANYTHING (up to 255 
chars, no control characters, including DEL (127)) that a user could 
type or paste into a field, including words in any language using Unicode.


As the executionContexts data does not contain the actual values of the 
variable tColumnNames when the error occurs AND (for reasons) I can not 
get the data from the customer, does ANYONE have any idea what 
tColumnNames might contain that could produce the error(s) show below?


Technical information:
Property: value is not a number: (Line 11, column 1)
Object: can't set object property: (Line 11, column 5)
set: can't set property: (Line 11, column 1)
Handler: error in statement: LayoutControl (Line 11, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior"
-
repeat: error in statement: (Line 5066, column 1)
Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.ResizeColumns (Line 4967, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.CreateColumns (Line 4737, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
switch: error in statement: (Line 6150, column 1)
Handler: error in statement: dgProps (Line 5553, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
set: can't set property: (Line 5529, column 1)
Handler: error in statement: dgProp (Line 5529, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
set: can't set property: (Line 139, column 1)
if-then: error in statement: (Line 139, column 1)
Handler: error in statement: populateMe (Line 138, column 1)
Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl"
Object ID: group id 1162 of card id 1002 of stack 
"/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl"


___
use-livecode mailing list

Re: Datagrid internal error

2022-08-10 Thread Paul Dupuis via use-livecode

On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote:

32,767 is the max for width as well. If there are enough columns it is
possible that the DataGrid is rendering a group that exceeds this limit and
hence the error. The DataGrid works around the limit when rendering rows,
but not when rendering columns.

I suppose a quick test would be to create a DataGrid with 330 columns that
are at least 100 pixels wide and see if you get the same error.



Thank you!


___
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: Datagrid internal error

2022-08-10 Thread Paul Dupuis via use-livecode
I do appreciate the responses. My question was not about the number of 
records, but about the number of COLUMNS and whether there is any 
practical or known limit.


When my code is setting the column names, that list comes from customer 
entered data. I know that each name is less than 255 characters and 
restricts entry of certain characters (previously listed) such as comma, 
[ ], etc. How many names is unknown.


In this specific case of the error I reported, the customer is not in a 
position to be able to help much (if at all). Since it is customer data 
dependent, we are not able to reproduce the error in the IDE. SO my very 
specific questions was: Has any one seen an error like the one I 
reported (copied again below) OR know of any issues/limits when setting 
the dgProp["columns"] property of a Datagrid?


A customer encountered the following execution error (below) in our app 
(built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the 
scripts for the Datagrid itself, rather than our code. At the end, it is 
one of our handler, "populateMe", where line 139 is where the error starts.


Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to 
tColumnNames


tColumnNames is a variable containing a list of text lines that are 
customer entered column names, so they could be ANYTHING (up to 255 
chars, no control characters, including DEL (127)) that a user could 
type or paste into a field, including words in any language using Unicode.


As the executionContexts data does not contain the actual values of the 
variable tColumnNames when the error occurs, does ANYONE have any idea 
what tColumnNames might contain that could produce the error(s) show below?


Technical information:
Property: value is not a number: (Line 11, column 1)
Object: can't set object property: (Line 11, column 5)
set: can't set property: (Line 11, column 1)
Handler: error in statement: LayoutControl (Line 11, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior"
-
repeat: error in statement: (Line 5066, column 1)
Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.ResizeColumns (Line 4967, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.CreateColumns (Line 4737, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
switch: error in statement: (Line 6150, column 1)
Handler: error in statement: dgProps (Line 5553, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
set: can't set property: (Line 5529, column 1)
Handler: error in statement: dgProp (Line 5529, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
set: can't set property: (Line 139, column 1)
if-then: error in statement: (Line 139, column 1)
Handler: error in statement: populateMe (Line 138, column 1)
Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl"
Object ID: group id 1162 of card id 1002 of stack 
"/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl"



___
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: Datagrid internal error

2022-08-10 Thread Paul Dupuis via use-livecode
I'm sorry, I don;t see what setting the dgData or dgText or 
dgNuberofRecords has to do with my original post - I get an internal 
Datagird script error when setting the names of the columns (see 
original post)


On 8/10/2022 11:11 AM, Bob Sneidar via use-livecode wrote:

I was referring to dgNumberOfRecords

• get the dgNumberOfRecords
• set the dgNumberOfRecords of group "DataGrid" to 20
• Getting the dgNumberOfRecords is the same as getting the 
dgNumberOfLines. Setting the dgNumberOfRecords has a special significance 
however. If you set the dgNumberOfRecords then you are telling the data grid 
that you know how many total records there are and you are going to supply the 
data for each record on an as-needed basis. This is useful when you have data 
in a database cursor that you would like to feed into the data grid.
After setting this property the data grid will send the GetDataForLine message 
to the data grid whenever it needs to display data for a particular line. You 
can define this command in the data grid script or elsewhere in the hierarchy. 
The definition is as follows:

command GetDataForLine pLine, @pDataA
   
end GetDataForLine


You should fill pDataA with the appropriate data based on the line of data 
being requested. pDataA should not have a numeric index. It is the array that 
would be assigned to one of the numeric indexes if you were assigning the 
dgData property.

Bob S



On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode 
 wrote:

This seems like a fragment of a longer thread, but the “dgText” and the 
“dgData” are the two methods I use to extract, process and reload the content 
of a data grid.

Craig


On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode 
 wrote:

I believe there is a property you set, after which you programmatically control 
the population of the datagrid. I am in a hurry so I can't look it up right 
now, but it is in the datagrid API in livecode lessons.

Bob S



On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode 
 wrote:

I can only image that the customer entered a name with some characters that 
Datagrid has a problem with as a column name OR that the shear number of 
columns (as the customer is working with a very large dataset) exceeds some 
practical Datagrid limit, but what would that be?


___
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: Windows standalone settings

2022-08-10 Thread Paul Dupuis via use-livecode

On 8/10/2022 4:14 PM, J. Landman Gay via use-livecode wrote:

Does anyone still build for Windows x86 or is x86-64 sufficient now?

Also, what UAC execution level do you set? Default, highest avialable, 
etc.?




I still build for 32 bit windows as it still works and is the lowest 
common denominator - it works on all windows systems. I leave the UAC at 
Default for our apps but Admin for our Installer (built in Livecode like 
our 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


Summer Bundle table/grid widgets....

2022-08-09 Thread Paul Dupuis via use-livecode
I am in need of a control to display a table of numbers. The top ROW are 
column labels (text, sometimes up to 255 characters). The left COLUMN is 
row labels (text, sometime up to 255 characters). I'd like a widget that:
1) Can display this with the top row (or headers) fixed so they remain 
visible when the data is scrolled
2) Can display this with the left column fixed to they remain visible 
when the data is scrolled
3) Provides built in abilities to sort the numbers in all the data of 
the grid/table, by any column, ascending or descending as the user desires.


I have already built this with a grouped field (for the fixed left 
column) and Datagrid (for the remained of the table).


Do any of the new widgets in the Summer Bundle do this inherently 
without me having to make a custom object (as I had to do with the field 
+ Datagrid)?



___
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: Datagrid internal error

2022-08-09 Thread Paul Dupuis via use-livecode
comma delimited or cr delimited, without looking it up, I am sure it is 
in the right format since it work 99.99% of the time.


The names that would be in the column list all go through a name check 
function. That function prevents names that are all spaces, longer than 
255 characters, or are a handful of "reserved words" and checks that 
each name does not contain the following characters


    if (it < 32)  then return false -- all control characters (0x 
to 0x0031)
    if (it = 34)  then return false -- "    quote (0x0034) 
-- LC string encapsulator
    if (it = 40)  then return false -- ( left parenthesis (0x0040) 
-- used in filter and theory criteria
    if (it = 41)  then return false -- )    right parenthesis (0x0041) 
-- used in filter and theory criteria
    if (it = 44)  then return false -- ,    comma (0x0044) 
-- LC item delimiter
    if (it = 60)  then return false -- <   less than sign (0x0060) 
-- htmlText tag delimiter
    if (it = 62)  then return false -- >    greater than sign (0x0062) 
-- htmlText tag delimiter
    if (it = 91)  then return false -- [  left square bracket (0x0091) 
-- LC merge delimiter
    if (it = 92)  then return false -- \    backslash (0x0092) 
-- regex string escape character
    if (it = 93)  then return false -- ] right square bracket (0x0093) 
-- LC merge delimiter
    if (it = 124) then return false -- | vertical bar (0x0124) 
-- used in code

    if (it = 127) then return false -- DEL delete (0x0127)

So, comma's are excluded, as are [ and ], and control characters, etc.. 
However all Unicode characters, codepoints 128 and up are allowed. 
Testing shows you can have a Datagrid where you can set the columns to 
empty, so that is not the cause of the error.


I can only image that the customer entered a name with some characters 
that Datagrid has a problem with as a column name OR that the shear 
number of columns (as the customer is working with a very large dataset) 
exceeds some practical Datagrid limit, but what would that be?


I don't really want to have to carve out time to build test stacks to 
try names with every possible characters or ever increasing numbers of 
column names until the error occurs or those possibilities are ruled 
out. I was hoping there might be someone on the list who was familiar 
enough with the internals of the Datagrid to have some idea what might 
have caused the error.


Unfortunately, the customer's data is confidential, so they do not want 
to provide the data to us to use for testing. And the customer is either 
not technically savvy or does not have time (they have said they are 
under a deadline) to help much in troubleshooting. They can get the 
analysis this Datagrid provides by exporting some data to Excel and 
doing the analysis in Excel, so the error is not a show-stopper for them 
as well. Definitely not as convenient as the report in our app, but a 
viable work-around.


See my original post for the executionContexts and the specific error.


On 8/8/2022 7:56 PM, Bob Sneidar via use-livecode wrote:

Nope I take that back it's lines. I remember now wondering why that was.

Bob S



On Aug 8, 2022, at 16:53 , Bob Sneidar  wrote:

I believe dgProp ["columns"] is a comma delimited list.

Bob S



On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode 
 wrote:

A customer encountered the following execution error (below) in our app (built on 
Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid 
itself, rather than our code. At the end, it is one of our handler, 
"populateMe", where line 139 is where the error starts.
Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames


___
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: Datagrid internal error

2022-08-08 Thread Paul Dupuis via use-livecode

On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote:
A customer encountered the following execution error (below) in our 
app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in 
the scrips for the Datagrid itself, rather than our code. At the end, 
it is one of our handler, "populateMe", where line 139 is where the 
error starts.
Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to 
tColumnNames




For example, some information from the customer suggest they are working 
with a VERY large dataset, so the length of the list in TColumnNames 
could be quit long - perhaps hundreds of lines. Is there a practical 
limit on the number of columns a Datagrid can be set to?



___
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


Datagrid internal error

2022-08-08 Thread Paul Dupuis via use-livecode
A customer encountered the following execution error (below) in our app 
(built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the 
scrips for the Datagrid itself, rather than our code. At the end, it is 
one of our handler, "populateMe", where line 139 is where the error starts.
Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to 
tColumnNames


tColumnNames is a variable containing a list of text lines that are 
customer entered column names, so they could be ANYTHING (up to 255 
chars, no control characters, including DEL (127)) that a user could 
type or paste into a field, including words in any language using Unicode.


As the executionContexts data does not contain the actual values of the 
variable tColumns when the error occurs, does ANYONE have any idea what 
tColumns might contain that could produce the error(s) show below?


Technical information:
Property: value is not a number: (Line 11, column 1)
Object: can't set object property: (Line 11, column 5)
set: can't set property: (Line 11, column 1)
Handler: error in statement: LayoutControl (Line 11, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior"
-
repeat: error in statement: (Line 5066, column 1)
Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.ResizeColumns (Line 4967, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.CreateColumns (Line 4737, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
switch: error in statement: (Line 6150, column 1)
Handler: error in statement: dgProps (Line 5553, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
set: can't set property: (Line 5529, column 1)
Handler: error in statement: dgProp (Line 5529, column 1)
Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior"
-
set: can't set property: (Line 139, column 1)
if-then: error in statement: (Line 139, column 1)
Handler: error in statement: populateMe (Line 138, column 1)
Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl"
Object ID: group id 1162 of card id 1002 of stack 
"/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl"


___
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: megabundle thoughts

2022-08-05 Thread Paul Dupuis via use-livecode

On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote:

i have not seen much discussion of the megabundle, especially about the
widgets, etc.
i'm not sure if it's worth the $.
thoughts?



I think the widgets are great additions to Livecode. That said, I have 
not purchased the MegaBundle. My Livecode commercial/business/whatever 
license is paid out to something like 2023 or 2024 due to past fund 
raising where the mothership offered license extensions as part of the 
packages in those efforts. I am licensed for all platforms, with the 
professional extensions, so I don't need any more platforms and I really 
don't need my license extended or any store credits. If there had been a 
bundle offering that was JUST the extra widgets and stuff without an LC 
license stuff bundled in, I would have bought one.


I don't like to get too far ahead of LC licensing. After all I could get 
hit by the proverbial bus tomorrow and having 2 years or prepaid LC 
licensing would go to waste (for me at least).


So, I think it is worth the $ if you need additional platforms and/or 
your license extended (if it is about to expire in, say, another 15 
months or less). It may not be worth the $ if you are all set for the 
next couple of years on LC licensing itself.


___
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: wait 0 with messages (and the defaultStack)

2022-08-01 Thread Paul Dupuis via use-livecode
Yea, a number of years ago, I went to always fully qualifying object 
references through all the techniques you mentioned, but we've just not 
had a chance to scrub the entire code base (100,000 lines+) and so this 
one got missed until now.


We're now going through the entire code base to catch any last cases 
where object references could be in error due to any wait with messages 
statements (combined with user actions).



On 8/1/2022 4:16 PM, Bob Sneidar via use-livecode wrote:

As my application(s) became more complex, I also ran into topstack and curentcard issues. 
As a result, I am in the habit now of either using "of me" appended to every 
command of in a card or stack script, or else sending the long id of an object to a 
command or function that is not in the message path.

For instance, if I am processing all the fields on a card, I put the handler in the card script 
and then use the form 'field "myField" of me' to reference each field. Even better, 
if I reference the object repeatedly I will 'put the long id of  of me' 
into a variable initially, then use the variable as a reference.

Bob S



On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode 
 wrote:

The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, 
LiveCode continues normal processing during the wait. The current handler is frozen, but 
the user can start other handlers and perform other actions such as switching 
cards." and 'switching cards' does imply changing the context of relative object 
references even if the defaultStack does not change, so perhaps I should have realized, 
but didn't until just last week.


___
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: wait 0 with messages (and the defaultStack)

2022-08-01 Thread Paul Dupuis via use-livecode

On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote:
My understanding of 'wait 0 with messages' is that it will cause any 
pending messages, that are not scheduled for a time later than the 
current time, in the pendingMessages queue to be processed before 
continuing. Messages later than the current time (when the statement 
is executed) will not be processed (yet).


Is this correct?



First, than you to those that have responded.

The reason I got curious about 'wait 0 with messages' (or even just 
'wait 0') is because of an epiphany I had just last week regarding a bug 
a customer reported in our software. The customer experienced and 
execution error and our software presents a custom dialog that allows 
them to email out support account some information, including the 
'executionContexts' so we have some code debugging information.


The problem as a 'can't find object' error. In reviewing the code, I 
could see no way that the error should have occurred. The code was using 
the ChartMaker library to create a graph. It all looked good per 
documentation and we could not reproduce the error in house. I then 
noticed a 'wait 0 with messages' prior to the line the error occurred on 
and noticed that the line that had the error used object references 
relative to the current stack (which the defaultStack was explicitly set 
to much prior).


My epiphany was realizing - for the first time, despite LiveCodeing 
since HyperCard and having a Masters in Computer Science and my entire 
career being in the IT/software development space for over 40 years - 
that when the 'wait 0 with messages' is executed, if there was a pending 
USER click on another window, the defaultStack could change and then the 
relative object references would not be able to find their target objects.


Perhaps I should have realized that a 'wait 0 with messages' COULD 
result in the defaultStack changing much sooner OR perhaps I should 
always fully qualify all object references (which I have been doing for 
quite a few years, but this was old code), but it is a 'gotcha' of using 
wait with messages I had never thought of.


The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages 
form is used, LiveCode continues normal processing during the wait. The 
current handler is frozen, but the user can start other handlers and 
perform other actions such as switching cards." and 'switching cards' 
does imply changing the context of relative object references even if 
the defaultStack does not change, so perhaps I should have realized, but 
didn't until just last week.


Now I am very curious about exactly what wait 0 with messages does and 
also about what actions change the defaultStack. Does anyone know of an 
article or something someone has done to identify all the messages, 
commands, or functions that change (or potentially change) the defaultStack?





___
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: wait 0 with messages

2022-07-30 Thread Paul Dupuis via use-livecode

On 7/30/2022 7:49 PM, Mark Wieder via use-livecode wrote:

On 7/30/22 12:53, Paul Dupuis via use-livecode wrote:
My understanding of 'wait 0 with messages' is that it will cause any 
pending messages, that are not scheduled for a time later than the 
current time, in the pendingMessages queue to be processed before 
continuing. Messages later than the current time (when the statement 
is executed) will not be processed (yet).


Is this correct?


My understanding of this is close but not quite the same.
The "wait 0 with messages" statement is the fastest implementation 
("wait 0") of an opportunity for the system event loop to process any 
pending instructions. The "with messages" statement in effect yields 
control to the event loop to check if any "send in time" messages have 
timed out and are pending or to handle other tasks that may have 
accumulated (mouse or keyboard events, etc).




So Mark,

Your understanding is that 'wait 0' (WITHOUT with messages) would allow 
OS events like a screen redraw, USB drive insertion/removal, etc. but 
NOT livecode engine events in the queue like mouseDown, mouseUp, 
resumeStack, etc,


OR

That wait 0 (again without with messages) would include in addition to 
OS events, LC built-in events like mouseDown, resumeStack, etc., but not 
custom messages (or LC standard messages) sent to the queue via sent in 
time?


Thanks for responding!


___
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


wait 0 with messages

2022-07-30 Thread Paul Dupuis via use-livecode
My understanding of 'wait 0 with messages' is that it will cause any 
pending messages, that are not scheduled for a time later than the 
current time, in the pendingMessages queue to be processed before 
continuing. Messages later than the current time (when the statement is 
executed) will not be processed (yet).


Is this correct?


___
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: Livecode Builder developer wanted

2022-07-28 Thread Paul Dupuis via use-livecode
I've hired and managed independent software developers for various 
businesses for nearly 40 years. I am well aware of the market.


We pay competitive contract rates. My estimate of time is probably about 
right for someone who has set up at least 1 or 2 cross-platform LCB DLL 
wrappers based on decades of estimating IT projects, but it was more 
meant to suggest the work is something in the scope of many hours to 
days vs. weeks or months.


As for job size, if you are a contract developer who has a queue of 
large jobs providing regular income, good for you. My experience is that 
many contract developers value non-time sensitive small jobs they can 
fit in and around larger projects to fill in the inevitable gaps between 
larger projects that can come up.


If no one is available or interested, as I said, it is not time 
sensitive, so we can either wait or tackle it ourselves as time permits.


Paul Dupuis
Researchware

 On 7/28/2022 11:57 AM, harrison--- via use-livecode wrote:

Hi Paul,

I seriously doubt that anyone would be chomping at the bit for this task.

First, you expect the person to spend their free time looking at the task to
determine the effort and cost required to accomplish the task.  There is
no paid incentive to do that first step.  If after the person gave you their
estimate, and you decided you didn’t like it, then the developer has lost
their time and effort for nothing.

Secondly you have stated that you expect the effort required would be
no more than 1 day.  It’s very possible that your 1 day projection is
completely off the mark. If it took the person more time than that, you
would probably be dissatisfied.  Who would want to deal with that?

Thirdly, even if your projection of 1 day of effort was 100% correct, why would
anyone want to bother trying to do the task for just one day’s pay?  It simply
isn’t worth the time or the hassle for any potential programmer to want to
deal with the task for that reason alone.

So yes, the bottom line here for you is that you indeed will have to work
on the task yourself or it’s not going to get done at all.

I hope you will keep this in mind for any future work you would like
to have performed.

I have to get back to my work here.

I hope you have a fruitful and productive day!

Cheers,

Rick




On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode 
 wrote:

What I'm seeking is just to take what Trevor has already done in LCB for macOS 
and set it up for Windows as well. For someone with with experience at making 
LCB wrappers for DLLs, I would expect this work to be a relatively small effort 
(most likely no more than 1 day).

___
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: Livecode Builder developer wanted

2022-07-28 Thread Paul Dupuis via use-livecode

On 7/28/2022 8:39 AM, Mike Kerner via use-livecode wrote:

I don't know if I'm surprised or not surprised that the LCB takeup seems to
be low.




Actually, I am surprised. I have seen mentioned on this list dozens of 
LCB widgets and libraries, including those developed by others and 
licensed by Livecode for the Summer Bundle. Not hundreds true, but many 
dozens. That implies to e there are at least a few dozen LCB developers 
out there.


What I'm seeking is just to take what Trevor has already done in LCB for 
macOS and set it up for Windows as well. For someone with with 
experience at making LCB wrappers for DLLs, I would expect this work to 
be a relatively small effort (most likely no more than 1 day). I can 
learn how to do this, but I expect it will take me 4-8 times as long. So 
basic math says that if I can find someone to perform the task for pay, 
it is likely a better option than my trying to spend the time to do it 
myself. I also figured, since it would seem to be a small job, that it 
might be attractive to an LCB developer out there to fill in and around 
other work they are doing.


However, if there are no takers, then I guess I'll just make the time 
and jump in.



___
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: Livecode Builder developer wanted

2022-07-27 Thread Paul Dupuis via use-livecode
Still looking for a LCB developer to build/configure Trevor's wrapper 
for pocketsphinx for macOS also for Windows.



On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote:
I am looking to hire someone to take what Trevor DeVore started 3 
years ago, for the Livecode conference, of making an LCB wrapper for 
pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for 
macOS and extend it to Windows including builds of the pocketsphinx 
libraries for macOS and Windows. Essentially, advance it a bit further 
so it can just be plugged into Livecode and used as a library in the 
IDE and standalones.


Anyone experienced in making LCB libraries for macOS and Windows 
interested?


If so, please email me off-list and send me a rate and/or estimate.

P.S. I contacted Trevor, but he is tied up with other work and 
unavailable.


Paul Dupuis
Researchware

___
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


Livecode Builder developer wanted

2022-07-14 Thread Paul Dupuis via use-livecode
I am looking to hire someone to take what Trevor DeVore started 3 years 
ago, for the Livecode conference, of making an LCB wrapper for 
pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for macOS 
and extend it to Windows including builds of the pocketsphinx libraries 
for macOS and Windows. Essentially, advance it a bit further so it can 
just be plugged into Livecode and used as a library in the IDE and 
standalones.


Anyone experienced in making LCB libraries for macOS and Windows interested?

If so, please email me off-list and send me a rate and/or estimate.

P.S. I contacted Trevor, but he is tied up with other work and unavailable.

Paul Dupuis
Researchware

___
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: macOS Ventura (13.x.x)...

2022-07-10 Thread Paul Dupuis via use-livecode

On 7/10/2022 1:26 PM, Colin Holgate via use-livecode wrote:

With 9.6.3 Community version, showing the message box, or the script window of 
a button, crashes LiveCode right away.

Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 
9.6.3 in Ventura.




Thank you.


___
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


macOS Ventura (13.x.x)...

2022-07-10 Thread Paul Dupuis via use-livecode
Is anyone out there in Livecode land running a developer beta of macOS 
Ventura (13.x.x)?


If so, I am hoping you can perform a quick test:

systemVersion() returns 10.16 for macOS Big Sur or Monterey under 
Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() 
bug was just fixed in LC 9.6.8.


I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 
9.6.x less than 9.6.8) and confirm that systemVersion() also reports 
10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the 
same way under Ventura for recent versions of LC less than LC 9.6.8.


Thank you to anyone that can do this test in advance,

Paul Dupuis
Researchware

___
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


Images and arrays...

2022-07-05 Thread Paul Dupuis via use-livecode

I am drawing a blank:

If I have the following code:

  export snapshot from rect tRect of player 
"mediaConvert" of stack "libHrAPI" to tImage as PNG

  put tImage into pRefArray[tRef]

The actual image (not a reference, such as a long ID) is placed in the 
tRefArray[tRef] array element


However, if I have a variable tImageID that contains a reference to an 
image such as


image id 10328 of card id 10001 of stack "X"

How do I get that actual Image stored in the array?

put tImageID into pRefArray[tRef] -- results in the array element 
storing the long ID


put (tImageID) into pRefArray[tRef] -- also results in the array element 
storing the long ID. I thought the () might for the long ID to be 
evaluated to an actual image





___
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 on the list still using macOS 10.11?

2022-06-27 Thread Paul Dupuis via use-livecode
I still have a system running High Sierra and one running El Capatan. I 
can test on either of those.



On 6/27/2022 8:26 AM, matthias rebbe via use-livecode wrote:

Hi,
is there anyone on the list still using macOS 10.10 and would be willing to 
test 2 or 3 sample apps for me.
The apps are just with one answer dialog.

There seems to be a problem with standalones under macOS 10.10 that were code 
signed with a Mac with Apple cpu (M1/M2).

The results of the testing would me help to enhance my LC Notarizing lesson.


Regards,
Matthias




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



___
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: {OT} Are there any ffmpeg "experts" on this list?

2022-06-24 Thread Paul Dupuis via use-livecode

Panos,

Thank you!

I was unaware of the mediaFoundation library - I had thought that we'd 
not see support under LiveCode 10 switches from DirectShow to 
MediaFoundation.


That said, our application is macOS and Windows and the appeal of ffmpeg 
via shell is that the same code will work across platforms for us.


Still, for other projects, I'm very happy to have been made aware of the 
mediaFoundation library!



On 6/24/2022 11:27 AM, panagiotis m via use-livecode wrote:

Hello Paul

Not a ffmpeg expert, but have you seen the mediaFoundation library? See the
dictionary entry for "mediaFoundationTranscode" - it has a detailed example
for concatenating 2 media files.

Hope this helps

Kind regards,
Panos
--

On Fri, 24 Jun 2022 at 18:08, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


I am doing some work with Livecode script constructing calls (via
shell()) to ffmpeg to perform some video/audio concatenation.

I have barely learned a tiny bit of ffmpeg and and wondering if there
are any people proficient with ffmpeg wh might be interesting in a small
bit of paid consulting to help with ffmpeg command line syntax for
various operations?

If interested, please email me directly.


___
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


{OT} Are there any ffmpeg "experts" on this list?

2022-06-24 Thread Paul Dupuis via use-livecode
I am doing some work with Livecode script constructing calls (via 
shell()) to ffmpeg to perform some video/audio concatenation.


I have barely learned a tiny bit of ffmpeg and and wondering if there 
are any people proficient with ffmpeg wh might be interesting in a small 
bit of paid consulting to help with ffmpeg command line syntax for 
various operations?


If interested, please email me directly.


___
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: char as word boundary

2022-06-13 Thread Paul Dupuis via use-livecode

On 6/13/2022 12:13 PM, Mark Waddingham via use-livecode wrote:

Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
numtochar(202)(32)& numtochar(202)(32)) = 2
livecode 9.67  :   the number of chars
(numtochar(32)& numtochar(202)(32)&
numtochar(202)(32)) = 0 


LC 9.6.7 STABLE (Win 10)
put the number of chars of (numtochar(32) & numtochar(202) & 
numtochar(32) & numtochar(202) & numtochar(32))   -> results in 5 in the 
message box, exactly as it should. The number of words (of the same 
string) is 2


LC 6.7.11 STABLE (Win 10)
put the number of chars of (numtochar(32) & numtochar(202) & 
numtochar(32) & numtochar(202) & numtochar(32))   -> ALSO results in 5 
in the message box, exactly as it should. The number of words (of the 
same string) is 2


Or. at least those are the results I am getting, and I think that may be 
because numToChar(202) is a different character on macOS vs Windows.



___
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: Would anyone miss convertOctals?

2022-06-09 Thread Paul Dupuis via use-livecode
Never use octal. pretty much any entries theses days are decimal or 
hexadecimal. Even binary (bit shifting or masks) is exceedingly rare



On 6/9/2022 8:44 AM, Mark Waddingham via use-livecode wrote:
So I'm currently sitting here about to embark on fixing 
 (which is the 
final thing to sort out before being able to merge my constant 
expression patch) and I was reminded of 'convertOctals'.


Now, generally, I am somewhat averse to actually removing any language 
feature (even those we have deprecated, unless we absolutely have to!) 
- however, I would really like to make convertOctals have no effect at 
all in 10.0+ as it adds a disproportionate amount of complexity 
compared to (what I think, at least) its utility is (particularly in 
the context of things 'coming next' like the script compiler).


So three questions:

  1) Do you know what convertOctals is, and what it does?

  2) If you do, have you ever actually used it in any scripts which 
are actually still in use?


  3) If you do use it in any scripts which are still in use, would you 
be willing to change them to not use it?


  4) If you do use/have used it, had you ever noticed that it has been 
slightly broken for years?


Now, its always better to offer a carrot when there is a stick (or in 
this case, an axe) being wielded and the carrot in this case would be 
to expand the numeric literal syntax to add both explicit octal and 
binary number literals alongside hexadecimal:


    0xabcdef - hex literal
    0o777 - octal literal
    0b101110101

The key difference between 0o777 and using 0777 (with convertOctals 
true) is that the former is not ambiguous at parse time, it doesn't 
require a runtime property set to true in order for the engine to 
convert the string to a number correctly.


Please let me know your thoughts :)

Warmest Regards,

Mark.

P.S. In the scheme of 'breaking changes' - we've already made a number 
of them for 10 already, and my gut tells me removing convertOctals is 
likely to cause less consternation than those we already have - but I 
could be wrong!





___
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: HTML font size in percentages

2022-05-25 Thread Paul Dupuis via use-livecode

On 5/20/2022 4:30 PM, J. Landman Gay via use-livecode wrote:
Thanks for verifying it Paul, that's what I was thinking too. I'm 
looking at replacing the sizes via the style runs, I have a handler 
Mark Waddingham gave me/us on the list last year that I think I can 
modify.


But I'd be grateful to see yours too. No big hurry, I just need to get 
an idea of how to estimate my time at this point. Thank you very much.





Sorry for the delay. By some weird email glitch I only saw this list 
post today.


Anyway, here is the routine, While it works, if I was rewriting it, I 
would probably just do a loop with a match to the html font size 
attribute. This code does ensure that the size can't go below a minimum 
where LC's legacy font size values actually make the text bigger.


on ChangeTextSize pBiggerOrSmaller, pObj
  -- usage: ChangeTextSize "bigger"|"smaller",the long ID of field X of 
stack Y

  lock screen
  if len(the text of pObj) > 5000 then
    set cursor to watch
  end if

  -- Get current scaling. The textSize will be set to the effectove 
textSize + tCurScale (+1|-1)

  -- uTextScaling is defauted to 0 in the object (field) custom properties
  put the uTextScaling of pObj into tScale
  if tScale is empty then put 0 into tScale
  if pBiggerOrSmaller is "bigger" then
    add 1 to tScale
    put 1 into tCurScale
  else
    subtract 1 from tScale
    put -1 into tCurScale
  end if
  set the uTextScaling of pObj to tScale
  --
  put the htmlText of pObj into tHtml
  --
  set the textHeight of pObj to empty
  set the textSize   of pObj to max(8,the effective textSize of 
pObj+tCurScale)

  --
  replace "size=" with "size="(1500) in tHtml
  set the itemdel to numToChar(1500)
  if the number of items of tHtml <> 1 then
    put 0 into testItem
    repeat for each item theItem in tHtml
  add 1 to testItem
  if testItem<>1 then
    put offset(quote,theitem) into counter
    put char 1 to counter-1 of theItem into theSize
    put max(8,theSize+tCurScale) into theSize
    put theSize into char 1 to counter-1 of theItem
    put quote after newHTML
  else
    put theItem into newHTML
    next repeat
  end if
    end repeat
    set the htmlText of pObj to newHTML
    --
  end if
  unlock screen
end ChangeTextSize

___
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: HTML font size in percentages

2022-05-20 Thread Paul Dupuis via use-livecode
You have to do replacement of the size value in the field's htmlText (or 
perhaps styledText)


I have code that does this. I can provide it to you if you like. I don't 
claim it is the bets or most effiecent. Unfortunately, I am gone for the 
rest of today, s tomorrow is the earliest I could send code to you.




On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote:
I have a field whose HTMLtext is set to a heavily tagged HTML file 
that changes the font size repeatedly. We want to allow the user to 
adjust the size of the text. The easiest way would be to use 
percentages for the font sizes so that changing the field's textsize 
would change the markup proportionally, but LC fields don't seem to 
support that. Is there a trick or do I need to do a series of 
replacements? I'm afraid that will be too slow, there's a lot of text.


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



___
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: Maximum length of mySQL request ?

2022-05-20 Thread Paul Dupuis via use-livecode

You can save some characters by the following:

SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...)

which is the same as using multiple OR equals in your example.

If you need to break this up further, you can UNION the results of 
multiple queries, such as:


SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) -- i.e. 
the first 100 or 1000 ids

UNION
SELECT ... FROM myTable WHERE id IN (100,512,,16545,...) -- the next 
100 or 1000 ids

UNION
... repeat as needed

On 5/20/2022 6:34 AM, jbv via use-livecode wrote:

Hi list,

Is there a maximum length limit for mySQL requests ?
I don't mean the results returned by mySQL, but the request itself.

For instance, I have a table with 18 entries and counting, and
I will need to send requests such as :
SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id 
= 34895...

and at times the request might concern 100 ids or even more.

I am not too concerned about execution speed, as id is a unique key,
but rather for the request itself : I wonder if it might be truncated
if too long...
Or perhaps a better and safer practice would be to break it into a 
serie of

shorter successive requests when it exceeds a certain threshold ?

Thank you in advance.
jbv

___
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: Where is the pdf external in LC 9.6 and 10?

2022-05-18 Thread Paul Dupuis via use-livecode

On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote:

Hi Paul,


Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode 
:

It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode 
Support) said it would be back in LC 10.0.0 dp 4 and presumable and further 
releases in the 9.6.x series.

I thought this has been replaced with the PDF widget, which is only available in the 
"Pro Pack" addon?




I can't see how Livecode can replace the XPDF external with the PDF 
Widget UNTIL the PDF Widget provided all the functions the External does 
(and it does not). Well, of course they could drop the external even if 
it does a bunch of thinsg people depend on that the Widget does not, but 
it would just be bad of them to do so!



___
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


IDE Property Editor for Custom Properties error

2022-05-18 Thread Paul Dupuis via use-livecode
This bug probably won't impact many people, but I just reported bug 
https://quality.livecode.com/show_bug.cgi?id=23712


In older versions of LC you could have custom property keys that had 
commas in them, such as a key like "topic,subtopic" for a online help 
system. The current (and recent) property inspect tries to convert 
custom property keys with a comma into arrays! Just thought I would 
raise this on the list for anyone else who might be impacted.






___
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: Where is the pdf external in LC 9.6 and 10?

2022-05-18 Thread Paul Dupuis via use-livecode
It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They 
(Livecode Support) said it would be back in LC 10.0.0 dp 4 and 
presumable and further releases in the 9.6.x series.


You can copy it from the 9.6.5 of earlier to the ccorresponding folder 
for LC 9.6.7. For example, on Windows it is C:\Program 
Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45


Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7


-- Paul

On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote:

Hi all.

I just wanted to update an older stack in LC10 that uses the xpdf external, but 
it seems that XPDF is not available anymore in LC. Further testing shows that 
at least also LC 9.6 and up does not have XPDF included anymore?

Am i am missing something?

I do not remember that XPDF was discontinued. Was there any notification about 
it?

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



___
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: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Paul Dupuis via use-livecode

Instead of:

set the HTMLText of VarHTMLText to URL VarURL

Use:

set the HTMLText of the templateField to URL VarURL

And instead of:

get the effective HTMLText of VarHTMLText2

Use:

get the effective HTMLText of the templateField

___
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: Movie text tracks

2022-05-17 Thread Paul Dupuis via use-livecode
This is not any sort of immediate help, but a quick Google search 
suggests that both AVF (Apple Video Foundation) and MMF (Microsoft Media 
Foundation - the underlying framework for the player in Livecode 10) 
support classes and APIs to access multiple media tracks and metadata. I 
don't know about Mobil player support (or Linux), but now is the time 
while Livecode 10 is in developer preview stages to lobby Livecode Ltd 
to broaden the player object to support more cross-platform features. I 
suggest opening an enhancement request at https://quality.livecode.com/ 
for text track access (subtitles are an accessibility requirement on 
lots of media these days) for LC 10.



On 5/17/2022 1:28 PM, Devin Asay via use-livecode wrote:

Hi all,

I’m resurrecting some QuickTime movies from years ago, and some of them have 
text tracks. (Remember those?)

In the LC player object you can still see that there is a text track with `put 
the tracks of player 1`. But there doesn’t seem to be a way anymore to show 
text tracks, either in the player object or in QT Player. All of the hits I get 
on the topic in a DuckDuckGo search are 15 - 20 years old.

Anybody know how to show, or at least recover, old text tracks from video files?

(Man I hate it when the technology gets *less* capable!)

- Devin


Devin Asay
Office of Digital Humanities
Brigham Young University

___
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: Sqlite and Monterey on M1

2022-05-12 Thread Paul Dupuis via use-livecode

On 5/12/2022 2:25 PM, Richard Gaskin via use-livecode wrote:

Bob Sneidar wrote:

> I don't think the latest Apple operating systems allow the writing
> to the App Support folder, even if you have explicit write
> permissions.

Where are we supposed to write application support files if not to 
Application Support?


First they demanded control of the file format apps use for Prefs, now 
this...




I did a little bit of research when I ran into my app breaking on 
Catalina and up when trying to reach a folder at 
specialFolderPath("temporary") and write files in that folder. The 
problem is that newer macOSes use an runtime algorithm to try to 
determine when an application is asking for access in "special" places. 
If the algorithm detect special access (sat to the Desktop or Documents 
folder or a Webcam and so on) the OS pops up the "Do you want to allow 
.. " dialog for the user to allow or deny access. An application signed 
and notarized WITH entitlements can specify some entitlements that are 
checked and if the App has declared these entitlements to protected 
resources, they are allowed. Some "protected" resources have NOT 
corresponding entitlements (at least currently). For disk access to 
folder paths without entitlements, the user can grant an application 
Full Disk Access, from System Preferences > Security, but and App can 
not specify an entitlement for Full Disk Access. It must be granted by 
the user.


Further, an Apple Engineer is a forum response (or someone claiming to 
be an Apple Engineer) noted that the algorithm to detect requests for 
special access resources can make mistakes and not recognize a request 
as a request and there for present a dialog to the user for allowing or 
denying and the default is to deny. So some circumstances, like apps 
running  in multiple processes (was an example cited, but it was implied 
there are other circumstances) your app MIGHT get the allow/deny dialog 
OR it might not - depending on your app. And for some resources, it just 
won't get any dialog and no entitlement will allow access, only 
instructions to the user to grant Full Disk Access (or some other 
similar ONLY allowed by the user permissions) will work.


In short, Apple's sandboxing is a developer mess. If you can, placing 
files in the Documents folder is best as (A) you can specify the 
Documents folder in an entitlement and (C) the sandboxing algorithm does 
seem to always detect (first time) Documents access requests and pop up 
the dialog.


DISCLAIMER: I did not have time to research this in detail and the 
"apple engineer" may or may not have been a real Apple engineer or knew 
what they were posting about. Our installer asks people on the last 
screen to grant our apps full disk access (if they are on Catalina+) and 
most people do and it solved a lot of recoding.




___
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 subscription and special characters

2022-05-12 Thread Paul Dupuis via use-livecode

On 5/12/2022 6:18 AM, panagiotis m via use-livecode wrote:

Hello Paul,

Does Alt+A9 work for you?

Cheers,
Panos
--



No. Alt+A9 does not work. I checked my Registry (per 
https://quality.livecode.com/show_bug.cgi?id=18702#c15) and in 
Computer\HKEY_CURRENT_USER\Control Panel\Input Method there is no 
"EnableHexNumpad". There is only "(Default)" and "Show Status" and a 
"Hot Keys" sub key list.


I thought I would be clever and write a bit of LC script (see below) 
using listRegistry, queryRegistry, and setRegistry. However, none of the 
registry functions appear to be working in the IDE under LC 9.6.7 and I 
vaguely recall that they now only work if the application executing them 
has Administrative privileges? Is that correct?


I guess the larger question is: For a person developing an LC based app 
who's users what to enter Unicode characters, what is the "best 
practice" for doing this? Is it always copy and paste from some web site 
or the "Character Map" accessory on Windows or what? If there some bit 
of working code a person can put in their application to set the 
Registry key IF the user checks a preference option or clicks a button 
or something?


For NEXT MONTH's Livecode Global troubleshooting session, how would one 
address this? :-)



on mouseUp pMouseButton
  if platform() = "Win32" then
    put listRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input 
Method") into tList


    answer "Keys at 'Computer\HKEY_CURRENT_USER\Control Panel\Input 
Method':"&"On my computer I should see 1 key: 'Show Status'" 
-- DEBUG


    if "EnableHexNumpad" is not among the lines of tList then
  -- no registry key exists
  put empty into tData -- flag teh key does not exists
    else
  -- a key exists, now check its value
  put queryRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input 
Method\EnableHexNumpad\") into tData

    end if
    if tData <> 1 then
  put "Your Windows system is not configured for keyboard 
entry of Unicode characters!" into tPrompt
  put "The value of Registery Key 
'Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\' 
is:"& &"." after tPrompt

  put "A reboot will be required." after tPrompt

  answer warning tPrompt with "Confgured" or "Skip"
  if it = "Configure" then
    if not setRegistry("Computer\HKEY_CURRENT_USER\Control 
Panel\Input Method\EnableHexNumpad",1) then

  -- an error occured
  answer error (the result)
    else
  answer warning "Please reboot your computer."
    end if
  end if
    end if
  end if
end mouseUp

___
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 subscription and special characters

2022-05-11 Thread Paul Dupuis via use-livecode

Well, Microsoft is not consistent (not that I am surprised!)

ALT X number works in TextPAd, but not in MS-Word. The alternate method 
(mention in this MS support note: 
https://support.microsoft.com/en-us/office/insert-ascii-or-unicode-latin-based-symbols-and-characters-d13f58d3-7bcb-44a7-a4d5-972ee12e50e0) 
of type U+ such as U+B5 for µ and then pressing ALT-X does work 
in MS-Word, but not in TextPad!


Neither method works in Livecode 9.6.7
So, not:
ALT + 00A9
ALT 00A9
ALT X 00A9
U+A9 ALT X


On 5/11/2022 5:10 PM, Paul Dupuis via use-livecode wrote:
According to Microsoft, for Windows 10, Unicode typing is now ALT X 



This works for me in TextPad Press and hold ALT and X together a box 
appears in Textpad to enter the Unicode number into. Once 4 digits 
have been entered the character appears.


It does not work in LC 9.6.7 STABLE in a new stack with a new 
scrolling field.


-- Paul

On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote:
In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with 
a single new scrolling field. I switch to run mode (pointer tool) and 
with a blinking insertion bar in the field, tried:


ALT+00A9
and
ALT00A9

Which should have produced a © symbol

Neither worked. I tried several other Unicode codes. None worked.

Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be 
reopened
It may be related to bug 
https://quality.livecode.com/show_bug.cgi?id=23688 as the 
optionKeyDown (ALT key on Window) message is completely broken



On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote:

Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1.

https://quality.livecode.com/show_bug.cgi?id=18702


On May 10, 2022, at 11:54 PM, jbv via use-livecode 
mailto:use-livecode@lists.runrev.com>> 
wrote:


Thank you for your reply.
Obviously, it was possible in earlier versions of LC.

So, could someone be kind enough to make a quick test with the most 
recent versions of LC, by typing text inside a field, if special 
characters can be used, like alt+144 for É, and possibly on azerty 
and qwerty keyboards ?

Thank you in advance.

Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit :
I thought I recalled a bug in the LC engine where using the keyboard
method of typing the character code, press ALT, and then press X. For
example, to type a dollar symbol ($), type 0024, press ALT, and then
press X, didn't work in Livecode. However, I just tried searching the
Livecode Quality Center for a bug number and couldn't find it so
perhaps I am mis-remembering.

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

Devin Asay
Office of Digital Humanities
Brigham Young University

___
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: LC subscription and special characters

2022-05-11 Thread Paul Dupuis via use-livecode

According to Microsoft, for Windows 10, Unicode typing is now ALT X 

This works for me in TextPad Press and hold ALT and X together a box 
appears in Textpad to enter the Unicode number into. Once 4 digits have 
been entered the character appears.


It does not work in LC 9.6.7 STABLE in a new stack with a new scrolling 
field.


-- Paul

On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote:
In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a 
single new scrolling field. I switch to run mode (pointer tool) and 
with a blinking insertion bar in the field, tried:


ALT+00A9
and
ALT00A9

Which should have produced a © symbol

Neither worked. I tried several other Unicode codes. None worked.

Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened
It may be related to bug 
https://quality.livecode.com/show_bug.cgi?id=23688 as the 
optionKeyDown (ALT key on Window) message is completely broken



On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote:

Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1.

https://quality.livecode.com/show_bug.cgi?id=18702


On May 10, 2022, at 11:54 PM, jbv via use-livecode 
mailto:use-livecode@lists.runrev.com>> 
wrote:


Thank you for your reply.
Obviously, it was possible in earlier versions of LC.

So, could someone be kind enough to make a quick test with the most 
recent versions of LC, by typing text inside a field, if special 
characters can be used, like alt+144 for É, and possibly on azerty 
and qwerty keyboards ?

Thank you in advance.

Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit :
I thought I recalled a bug in the LC engine where using the keyboard
method of typing the character code, press ALT, and then press X. For
example, to type a dollar symbol ($), type 0024, press ALT, and then
press X, didn't work in Livecode. However, I just tried searching the
Livecode Quality Center for a bug number and couldn't find it so
perhaps I am mis-remembering.

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

Devin Asay
Office of Digital Humanities
Brigham Young University

___
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 subscription and special characters

2022-05-11 Thread Paul Dupuis via use-livecode
In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a 
single new scrolling field. I switch to run mode (pointer tool) and with 
a blinking insertion bar in the field, tried:


ALT+00A9
and
ALT00A9

Which should have produced a © symbol

Neither worked. I tried several other Unicode codes. None worked.

Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened
It may be related to bug 
https://quality.livecode.com/show_bug.cgi?id=23688 as the optionKeyDown 
(ALT key on Window) message is completely broken



On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote:

Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1.

https://quality.livecode.com/show_bug.cgi?id=18702


On May 10, 2022, at 11:54 PM, jbv via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thank you for your reply.
Obviously, it was possible in earlier versions of LC.

So, could someone be kind enough to make a quick test with the most recent 
versions of LC, by typing text inside a field, if special characters can be 
used, like alt+144 for É, and possibly on azerty and qwerty keyboards ?
Thank you in advance.

Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit :
I thought I recalled a bug in the LC engine where using the keyboard
method of typing the character code, press ALT, and then press X. For
example, to type a dollar symbol ($), type 0024, press ALT, and then
press X, didn't work in Livecode. However, I just tried searching the
Livecode Quality Center for a bug number and couldn't find it so
perhaps I am mis-remembering.

___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

Devin Asay
Office of Digital Humanities
Brigham Young University

___
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 subscription and special characters

2022-05-10 Thread Paul Dupuis via use-livecode
I thought I recalled a bug in the LC engine where using the keyboard 
method of typing the character code, press ALT, and then press X. For 
example, to type a dollar symbol ($), type 0024, press ALT, and then 
press X, didn't work in Livecode. However, I just tried searching the 
Livecode Quality Center for a bug number and couldn't find it so perhaps 
I am mis-remembering.


On 5/10/2022 2:33 PM, jbv via use-livecode wrote:

Hi list,
I have been asked by a client to make some upgrades to a standalone 
app that I built with LC 6.5 about 12 years ago.
The app is a front end for managing a remote DB on a server. The DB 
content is roughly 90% in french, and the rest in english and german. 
It has about 16 entries and counting.


I am about to buy a LC standard plan for both Mac and Win, since the 
app is been used on both platforms, and will also be in the future.
But before I proceed, I'd like to make sure that it will help solving 
a minor problem that users have met lately.


Last year a re-compiled the app, without changing anything, with a LC 
8.2 Community version.
It keeps running fine on both Win & Mac, except that on Windows, some 
special characters in french (like Ê or Æ or Œ) have become impossible 
to type with regular keys combinations (or any other mean), when it 
was possible before with the LC 6.5 version.
Furthermore, a few new users will be added to the crew, who will work 
with qwerty keyboards, when the rest of the staff will continue to 
work with azerty keyboards.


So finally my question : it seems that the standard plan is the best 
option because it will give me access to the latest LC versions, but 
what about these special characters issue ? Is it only related to LC 
8.2, or will it also occur with the latest versions ?


Thanks in advance.
jbv

___
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: Launch of multiple application instances (Mac vs Win)

2022-05-08 Thread Paul Dupuis via use-livecode
Nevermind. I found the "Relaunch Sampler.rev" stack referred to in the 
Dictionary entry and it explains how the message is used further.



On 5/8/2022 12:08 PM, Paul Dupuis via use-livecode wrote:

The LC 9.6.7 Dictionary entry to 'relaunch" states:

It can be used in the following three ways:

|1. If the message is passed, then the new instance continues running. 
2. If "background" is returned, then the new instance is terminated. 
3. If nothing is returned but the message is not passed, then the new 
instance is terminated and the existing instance's "defaultStack" is 
made the foreground window.|


If there are no existing instances, the new instance will run.

1. seems pretty straightforward:

on relaunch

  pass relaunch

end relaunch

Would allow the 2nd (or whatever number) instance to continue to start up


3. Seems obvious as well:

on relaunch

  -- trap the message

end relaunch

Here, the message is not passed, so the new instance is terminated and 
the "defaultStack" of the existing instance is brought to the foreground



However, I do not understand 2. What the heck does ;If "background" is 
returned" mean in the context of this handler? Returned from what? The 
only example given is:


onrelaunch pDocument openDocument pDocument endrelaunch

And the Dictionary states that actually multiple parameters can be 
passed (for example if multiple documents where dragged onto the app 
to launch it). I feel there is something missing in the Dictionary entry!



___
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: Launch of multiple application instances (Mac vs Win)

2022-05-08 Thread Paul Dupuis via use-livecode

The LC 9.6.7 Dictionary entry to 'relaunch" states:

It can be used in the following three ways:

|1. If the message is passed, then the new instance continues running. 
2. If "background" is returned, then the new instance is terminated. 3. 
If nothing is returned but the message is not passed, then the new 
instance is terminated and the existing instance's "defaultStack" is 
made the foreground window.|


If there are no existing instances, the new instance will run.

1. seems pretty straightforward:

on relaunch

  pass relaunch

end relaunch

Would allow the 2nd (or whatever number) instance to continue to start up


3. Seems obvious as well:

on relaunch

  -- trap the message

end relaunch

Here, the message is not passed, so the new instance is terminated and 
the "defaultStack" of the existing instance is brought to the foreground



However, I do not understand 2. What the heck does ;If "background" is 
returned" mean in the context of this handler? Returned from what? The 
only example given is:


onrelaunch pDocument openDocument pDocument endrelaunch

And the Dictionary states that actually multiple parameters can be 
passed (for example if multiple documents where dragged onto the app to 
launch it). I feel there is something missing in the Dictionary entry!



___
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: Launch of multiple application instances (Mac vs Win)

2022-05-08 Thread Paul Dupuis via use-livecode

On 5/8/2022 11:47 AM, Colin Holgate via use-livecode wrote:

I wonder if the relaunch approach would leave the user in File Explorer, and 
would not switch across to the existing app instance? Hopefully it will be that 
simple.

If it isn’t, try this approach:

https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows



Thanks!

___
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: Launch of multiple application instances (Mac vs Win)

2022-05-08 Thread Paul Dupuis via use-livecode

On 5/8/2022 11:37 AM, Klaus major-k via use-livecode wrote:

just add this "dummy" handler to your stack:

on relaunch
   ## Nada :-)
end relaunch
-
That will prevent the launching of multiple instances on Windows!




Thank you! I was unaware of 'relaunch' and it looks like I can make it 
do exactly what I want (warn the user and let them bring the 1st 
instance to the foreground or continue). Much appreciated!



___
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


Launch of multiple application instances (Mac vs Win)

2022-05-08 Thread Paul Dupuis via use-livecode

Seeking help:

On MacOS when you try to launch a second instance of an application, the 
macOS just brings the open app to the front (for example, if it is 
hidden on minimized).


On Windows, when you try to launch a second instance of an application, 
Windows launches a second (or 3rd or 4th or ...) instance of the 
application.


All well and good, but here is my problem. We have some users of our 
application that, on Windows, are accidentally launching more than once 
instance of our application and then getting confused (our users are 
often not very computer literate).. This confusion can lead to them 
thinking they have lost data or other problems caused by doing some work 
in one instance and some in another and not recognizing they have 
multiple instances running.


I would like to add some start up code to application, that on Windows, 
detects if our app is already running and  (a) shuts the 2nd instance 
down OR (b) [PREFERABLY] warns the user they are launching a second 
instance and offers to (1) bring the existing instance to the foreground 
(and shut itself down) or actually continue and launch a seconds 
instance (for power users who know what they are doing)


Has anyone written code to do this?

i.e. code to detect an already running instance and code to bring that 
instance to the foreground?


If so, are you willing to share the code?

Just looking to not have to reinvent the wheel here.

Thank you in advance!


___
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 9.6.7 export snapshot from a player object seems to fail on Windows (10)

2022-04-29 Thread Paul Dupuis via use-livecode
There are apparently no work-arounds for the failure of this version of 
the export snapshot on Windows 10/11


I've tried:
    -- method that does not work on Windows, but works on macOS with 
player hidden [A REQUIREMENT]

    put the rect of player "myPlayer" into tRect
    export snapshot from rect tRect of player "myPlayer" to tImage as PNG
    put tImage into img "myImage"

    -- trying alt method #1 [FAILS LIKE ABOVE]
    export snapshot from player "myPlayer" to tImage as PNG
    put tImage into img "myImage"

    -- trying alt method #2 [TAKES A SNAPSHOT OF THE WINDOWS SCREEN]
    put the rect of player "myPlayer" into tRect
    export snapshot from rect tRect to tImage as PNG
    put tImage into img "myImage"

    -- trying alt method #3 [WORKS ONLY IF VISIBLE ON SCREEN WITH 
NOTHING ON TOP (no overlapping windows)] This also fails (with an 
execution error) if the user has moved the window so the player is 
off-screen!

    put the rect of player "myPlayer" into tRect
    export snapshot from rect tRect of window (the windowID of this 
stack) to tImage as PNG

    put tImage into img "myImage"

As I need to grab multiple specific frames of video as a series of 
images behind the scenes for any analysis/report, I can not have the 
player visible while the user is running the analysis. Current the code 
hides the player controller. The player is on a non-visible stack and 
the video is associated with that hidden player. A loop then sets the 
currentTime of the player to various points based on clips provided by 
the researcher and takes an image of each frame that currentTime is set to.


This works on macOS and in some prior versions of LC and/or Windows, 
worked on Windows as well and now in LC 9.6.7 on WIn 10/11 it does not.




On 4/27/2022 6:21 PM, Paul Dupuis via use-livecode wrote:

I am executing the following 2 lines of code:

  export snapshot from rect tRect of player "mediaConvert" 
of stack "libHrAPI" to tImage as PNG

  put tImage into img "imageConvert" of stack "libHrAPI"

Prior to the export the player has a video load and has the 
currentTime set to a particular frame, and I can see in the stack that 
the player is showing the correct frame is visible.

I can also see that the image "imageConvert" is also visible, but empty

After the Export Snapshot is executed, it looks like tImage contains 
valid PNG data, although I can not tell if it is the correct image
After the Put statement, the image "imageConvert" is set to a white 
rectangle with a little bit of the player border on the left and top. 
It is the same size as the player where as the empty image I started 
with was larger.


This is with LC 9.6.7 on Windows 10. This code works on macOS. Does 
anyone know if there is a known Windows bug with export a snapshot 
form a player and any work around?



___
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 9.6.7 export snapshot from a player object seems to fail on Windows (10)

2022-04-29 Thread Paul Dupuis via use-livecode

Martin,

Thank you for confirming. I have filed a bug with Livecode: 
https://quality.livecode.com/show_bug.cgi?id=23694


On 4/29/2022 8:45 AM, Martin Koob wrote:

Hi Paul

I just tried the same thing and got the same result.  It works on Mac, not on 
Windows.

I also tried exporting the image as a file to see if that made any difference.

   export snapshot from rect tRect of player "mediaConvert" of stack 
"libHrAPI" to file [filepath/filename.png] as PNG

  I got an image file but it is the same as what you see in the image object on 
the stack — an image of a white rect inside the player boarder.

So it looks like it is a bug.  The snapshot does create a proper png it just 
doesn’t grab the current video image inside the player it just gets a white 
rect.

Martin


On Apr 27, 2022, at 6:21 PM, Paul Dupuis via use-livecode 
 wrote:

I am executing the following 2 lines of code:

   export snapshot from rect tRect of player "mediaConvert" of stack 
"libHrAPI" to tImage as PNG
   put tImage into img "imageConvert" of stack "libHrAPI"

Prior to the export the player has a video load and has the currentTime set to 
a particular frame, and I can see in the stack that the player is showing the 
correct frame is visible.
I can also see that the image "imageConvert" is also visible, but empty

After the Export Snapshot is executed, it looks like tImage contains valid PNG 
data, although I can not tell if it is the correct image
After the Put statement, the image "imageConvert" is set to a white rectangle 
with a little bit of the player border on the left and top. It is the same size as the 
player where as the empty image I started with was larger.

This is with LC 9.6.7 on Windows 10. This code works on macOS. Does anyone know 
if there is a known Windows bug with export a snapshot form a player and any 
work around?


___
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: devcon 2022 recap

2022-04-28 Thread Paul Dupuis via use-livecode

On 4/28/2022 11:12 AM, Mike Kerner via use-livecode wrote:

I did, but I was hoping for some community comment, as well.


Here is my take on the content I was interested in:

1) Web application development. If you are building a new app for the 
web, you can do that pretty well now in LC 9.6.7 and LC 10 will be even 
better.


2) If you have an existing application, say for the Desktop, but also 
for Mobile, depending upon what that app does, porting it to the web 
under LC 9.6.7 can run into problems, under LC 10 it will be easier, but 
10 still has a lot of "developer preview (dp) releases to go before all 
the things that will make web apps under 10 better will be there.


3) The compiler will be a nice addition for most people, an *essential* 
addition if you have some app that is currently performance constrained. 
The compiler is off in the LC 10 (release) and LC 11 time frame.


4) In Kevin keynote he alluded to some possible language/object 
enhancements t o make responsive UI design easier (less coding). These 
may (or may not) include such things as a "group type" object to layout 
panes or rows and columns  for interface elements (other LC objects) and 
- as part of another topic - a new single window IDE design may have 
dockable and undockable windows that may or may not have code support 
that developers can use to make having their own dockable/undockable 
windows built more easily. Some of this work will be a replacement for 
the Geometry Manager (little used due to problems with it)


So, for me, a number of things I am keenly interested in: (1) easier 
posting of existing desktop apps to the web, (2) faster apps, and (3) 
language enhancements that may UI design faster and involves less 
coding. However none of this is available now and it will be arriving 
over various time frames from "soon" to "later".


All comments and interpretations of what was presented are my own.

Paul Dupuis
Researchware

___
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


LC 9.6.7 export snapshot from a player object seems to fail on Windows (10)

2022-04-27 Thread Paul Dupuis via use-livecode

I am executing the following 2 lines of code:

  export snapshot from rect tRect of player "mediaConvert" 
of stack "libHrAPI" to tImage as PNG

  put tImage into img "imageConvert" of stack "libHrAPI"

Prior to the export the player has a video load and has the currentTime 
set to a particular frame, and I can see in the stack that the player is 
showing the correct frame is visible.

I can also see that the image "imageConvert" is also visible, but empty

After the Export Snapshot is executed, it looks like tImage contains 
valid PNG data, although I can not tell if it is the correct image
After the Put statement, the image "imageConvert" is set to a white 
rectangle with a little bit of the player border on the left and top. It 
is the same size as the player where as the empty image I started with 
was larger.


This is with LC 9.6.7 on Windows 10. This code works on macOS. Does 
anyone know if there is a known Windows bug with export a snapshot form 
a player and any work around?



___
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: Single Window LC IDE?

2022-04-27 Thread Paul Dupuis via use-livecode

On 4/27/2022 11:58 AM, J. Landman Gay via use-livecode wrote:
I like the new look very much, but most of us old timers have specific 
requirements which LC agrees they want to accommodate. 


I'm fine with the IDE being either multi-window or single-window. I've 
worked with both in the past and can adapt to either.


I would REALLY like language support for easier layouts, from groups (or 
views) with built-in slidable dividers (H & V) to easier way to set up 
resizable groups or controls. The geometry manager is not idea and 
coding by hand gets exact results but is time intensive. Language 
support for "tearable" or "dockable" windows is another HIGHLY desired 
enhancement.


80% of our development time is on the UI. We're a data analytics 
product. Much more of our developer time should be on the data analysis 
code for new analytical features not  simply making the UI work.


___
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: Single Window LC IDE?

2022-04-27 Thread Paul Dupuis via use-livecode

On 4/27/2022 10:06 AM, David V Glasgow via use-livecode wrote:



On 27 Apr 2022, at 2:17 pm, Mike Kerner via use-livecode 
 wrote:

  they not only discussed it, but they demo'd it

… and referred to it as a “new ‘dock windows’ capability”.Which sounds like 
it will still be each to his/her own.


Well, if the language isn't updated to support dockable windows then 
that sucks! I've coded dockable windows in LC script currently. Each of 
2 Windows has a group that contains all the relevant functions of the 
windows. One window has a dock/undock control outside it's groups. 
Docking moves the groups to the 1st window and remove the window so now 
the 1st window contains the 2 functional groups next to one another. The 
groups that was just docked has an undock control. Clicking it move that 
group back to it's own window which appears and is sized appropriately 
and the 1st window is resized for just the single group.


It is a pain to script and it would make single vs multiple window 
layout management much easier if it was built into the language in some way.


___
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: Curved text possible?

2022-04-27 Thread Paul Dupuis via use-livecode

There is not a native way to do this in LiveCode.

An approach might be to use the shell() function (see Dictionary) to 
pass the text to some external graphics utility that renders and image 
of it curved and then import the image back into Livecode. There may be 
other work-arounds.


On 4/27/2022 11:12 AM, William de Smet via use-livecode wrote:

Hi There,

I am in the need for curved text.
User input via a text field need to have a copied curved text output.
Is this even possible in Livecode?
I was thinking of text to the points of a path? Something like that?


Greetings William
___
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: Single Window LC IDE?

2022-04-26 Thread Paul Dupuis via use-livecode
I didn't have a chance to ask follow up questions, but I recall Kevin 
saying they were headed towards "dockable windows", presumably meaning 
that all (or many) of the parts of the IDE can be docked into a single 
window view or undocked to separate windows (for example for people with 
multiple monitors doing desktop development. I have no idea if that 
includes the Script Editor, but I might expect that it would.


On 4/26/2022 3:37 PM, Craig Newman via use-livecode wrote:

Saw this on Kevin's keynote.

Some parts of having such a thing, as opposed to a sea of separate palettes, 
are attractive indeed.

But one aspect would prevent me from EVER upgrading to v10, and that is if the 
SE also had to be incorporated into that single window. Anyone know if this is 
in fact planned?

Craig
___
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: optionKeyDown message broken

2022-04-22 Thread Paul Dupuis via use-livecode

FYI for anyone who is interested:

I submitted a bug report for the broken state of the optionKeyDown 
message. See https://quality.livecode.com/show_bug.cgi?id=23688


Please follow if you are interested in seeing this fixed.



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


Re: optionKeyDown message broken

2022-04-21 Thread Paul Dupuis via use-livecode

On 4/21/2022 3:27 PM, J. Landman Gay via use-livecode wrote:

On 4/21/22 10:55 AM, Paul Dupuis via use-livecode wrote:

In a new stack, place the following in the card script:

on optionKeyDown pKeyName
   if platform() = "MacOS" then
 put numToChar(charToNum(pKeyName)-128) into tKey1 -- original 
sample from Dictionary
 put numToCodePoint(codepointToNum(pKeyName)-128) into tKey2 -- 
trying using non-deprecated functions

 answer pKeyName,tKey1,tKey2
   else -- windows
 answer pKeyName
   end if
end optionKeyDown


The equivalent new functions for numToChar and charToNum is 
numToNativeChar and nativeCharToNum. Those return the same values as 
the originals. However, I'm still getting the wrong result. I can 
subtract 94 to get lower-case "f" but that isn't consistent; the 
amount to subtract varies depending on the value of pKeyName. So 
there's some trick I'm missing.


Tested on Mac.



Thank you for verifying macOS!

I did not know about numToNativeChar and nativeCharToNum so thanks for 
that also. However, after looking at a decimal table of MacRoman, the 
suggested formula to remove the "high-bit" in the Dictionary will NEVER 
work no matter what functions are used. The high-ASCII characters of 
MAcROman (bytes 128 to 255) do not correspond to any alphabetical range. 
In other words, the numerical equivalent of OPTION-A through OPTION-Z is 
not in sequential order.


You would either have to code it as:

on optionDownKey pKey
  if platform() = "MacOS" then
    if pKey = "ƒ" then put "f" in tKey -- MacRoman byte 196 (OPTION-F 
is pressed)
    if pKey = "≈" then put "x" in tKey -- MacRoman byte 197 (is NOT 
OPTION-G (expected if in alphabetical order and you could just do math 
to get the ASCII key character), but is OPTION-X)


In my opinion, this makes the optionKeyDown handler on macOS next to 
useless and it is far more intuitive from a develop and code 
documentation perspective if the letter of the key pressed in 
conjunction with the OPTOPN key was returned.


And, of course, you can work around this with a rawKeyDown or rawKeyUp 
handler, but I would consider the state of optionKeyDown on macOS defective.




___
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: optionKeyDown message broken

2022-04-21 Thread Paul Dupuis via use-livecode
Yes, there are work-arounds. My post was about confirming the bug so I 
can report it to Livecode.


In this case, we have a shipping application in which the optionKeyDown 
handler USED to work that now a customer has (correctly) reported it 
broken.


If everyone just codes work-arounds and bugs are never reported, then 
the bugs will never get fixed.


Sorry, a long frustrating day.


On 4/21/2022 1:04 PM, Craig Newman via use-livecode wrote:

Have not played with your handler, but why not just:

on rawKeyDown tKey

if the optionkey is down then answer numToChar(tkey)

end rawKeyDown


Craig


On Apr 21, 2022, at 11:55 AM, Paul Dupuis via use-livecode 
 wrote:

on optionKeyDown pKeyName
   if platform() = "MacOS" then
 put numToChar(charToNum(pKeyName)-128) into tKey1 -- original sample from 
Dictionary
 put numToCodePoint(codepointToNum(pKeyName)-128) into tKey2 -- trying 
using non-deprecated functions
 answer pKeyName,tKey1,tKey2
   else -- windows
 answer pKeyName
   end if
end optionKeyDown

___
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


optionKeyDown message broken

2022-04-21 Thread Paul Dupuis via use-livecode
I am finding problems with the optionKeyDown handler on both Windows 
(where it's the ALT key) and macOS (OPTION key). This is in Livecode 
9.6.7 STABLE under macOS Mojave and Windows 10


In a new stack, place the following in the card script:

on optionKeyDown pKeyName
  if platform() = "MacOS" then
    put numToChar(charToNum(pKeyName)-128) into tKey1 -- original 
sample from Dictionary
    put numToCodePoint(codepointToNum(pKeyName)-128) into tKey2 -- 
trying using non-deprecated functions

    answer pKeyName,tKey1,tKey2
  else -- windows
    answer pKeyName
  end if
end optionKeyDown

On macOS, the LC 9.6.7 Dictionary shows the need to strip the "high" bit 
off the character to get the letter of the key pressed, for example, 
OPTION-F produces ƒ

The above script on macOS produces for OPTION-F the following ƒ, D, Ë
Where as what you want for either tKey1 or tKey2 to be "F" the key 
pressed with OPTION-F


I think this is a case where the Dictionary entry for optionKeyDown (for 
macOS) needs to be updated with a formula that works since LC was 
updated to Unicode with version 7 "High" ASCII macOS characters are now 
UNicode and not the same character codes.


But Wait. Windows is even worse

This code on Windows does not produce a letter of any sort. It produces  
As soon as you press the ALT key, before you can even press ALT-F, this 
script displays 65513 in the answer dialog. This, I believe is the RAW 
key code for the ALT key!


In other words, the optionKeyDown message is not sending the key pressed 
as a letter/character as the dictionary says and the parameter passed to 
the optionKeyDown message is the code for the ALT key itself (which 
makes no sense).


Could enough folks on this list conform both the macOS and Windows 
errors, so I can log a bug with LiveCode? I am not looking for 
work-around (I can do that if I have to), just for confirmation that 
these are bugs.


The macOS can be resolved by a better method for mapping macOS 
"high-ASCII" characters, now mapped to Unicode in LC, back to the ASCII 
key characters pressed.


The Windows may not have a work-around as, according to the dictionary, 
keyDown/keyUp messages are not passed in Control or Alt keys are down, 
the commandKeyDown, optionKetDown messages are sent instead, so you can 
using a keyDown handler and check for the altKey() = "down" condition. 
Perhaps rawKeyDown...


___
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: Quick Windows 11 test...

2022-04-13 Thread Paul Dupuis via use-livecode

Thank you to everyone for the responses.

I hope that LC 10 will "fix" the systemVersion() to return customer 
meaningful OS version information, but I recognize that is hard to do 
when the OS manufacturers (I am looking at YOU Microsoft and Apple) do 
not update their OS APIs to return the same versions their MARKETING 
people insist on labeling the OSes as!


Grr!


___
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: Quick Windows 11 test...

2022-04-13 Thread Paul Dupuis via use-livecode

On 4/13/2022 11:19 AM, panagiotis m via use-livecode wrote:

Hello all,

The function systemversion() returns 10.16.0 on MacOS Big Sur and above.
This is something we should fix.

As a workaround, until this is fixed, you can use this to get the system
version on MacOS:

function mySystemVersion
get shell("sw_vers -productVersion")
return it
end mySystemVersion

Cheers,
Panos
--


Panos (or any other LC staffer?)

Do you have a companion work-around for Window 11 which where 
systemVersion() reports "NT 10.0"?



___
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: Quick Windows 11 test...

2022-04-13 Thread Paul Dupuis via use-livecode

On 4/13/2022 10:58 AM, Paul Dupuis via use-livecode wrote:
Can someone on Windows 11 with either (or both) LC 9.6.6 and 9.6.7 
execute


put systemVersion()

and tell me what is reported?



I would also be really helpful to know exactly what

put systemVersion()

returns on macOS Monterey for LC 9.6.6 or 9.6.7 as well.


___
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


Quick Windows 11 test...

2022-04-13 Thread Paul Dupuis via use-livecode

Can someone on Windows 11 with either (or both) LC 9.6.6 and 9.6.7 execute

put systemVersion()

and tell me what is reported?

___
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: Confirm sort container order...

2022-04-05 Thread Paul Dupuis via use-livecode

On 4/5/2022 10:58 AM, Craig Newman via use-livecode wrote:

The discussion may seem academic to some, and perhaps pointless to others. But 
I like this sort of nonsense, and actually believe it is rather more than just 
that. In fact, it speaks to the internal working of the “sort” command itself, 
which seems counterintuitive at least, and a mystery at best.




I certainly agree a nice enhancement to sort would be something like

sort lines of  by item 3 of each then [by] item 2 of each then [by] 
item 1 of each


to replicate exactly (below) but in a single, easier to read, line

sort lines of  by item 3 of each
sort lines of  by item 2 of each
sort lines of  by item 1 of each

a reduction in code and a more intuitive way of stating a multi-level 
sort with the addition of a "then", "then by", or some sort of delimiter 
keyword


Still that assumes you want to do an ascending text sort for all 3 
levels, since ascending text is the default and the syntax is


sort lines  ascending text by item 3 of each

If you want different sorts for each key

sort lines of  ascending text by item 3 of each
sort lines of  descending numeric by item 2 of each
sort lines of  ascending international by item 1 of each

might still be easier that any new syntax that reads something like:

sort lines of  by item 3 of each ascending text then by item 2 of 
each descending numeric then by item 1 of each ascending international


Although the single line is slightly shorter code and still relatively 
easy to read. Still, I have NO idea how difficult it would be to add the 
syntax to the LC engine. If not too difficult to implement, it could be 
a handy enhancement to LC's sort.



___
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: Confirm sort container order...

2022-04-05 Thread Paul Dupuis via use-livecode
All those forum efforts (except Richard's) ignore that the dictionary 
entry states that the "sort" command is a stable sort precisely so that 
you can do multiple sorts to sort by multiple chunks


Whether you do

  sort lines of tText by word 3 of each
  sort lines of tText by word 2 of each
  sort lines of tText by word 1 of each

or

repeat from i = 3 down to 1
  sort lines of tText by word i of each
end repeat

and whether you want to sort by "word i of each" or "item i of each" or 
"token i of each" or whatever, the multiple sort commands is the LC 
recommended way to perform  multi-level sort.



On 3/30/2022 4:16 PM, Craig Newman via use-livecode wrote:

I hate that one cannot edit previous posts here like we can on the forum.

I meant “tabs”. not “tase”.

Craig


On Mar 30, 2022, at 4:15 PM, Craig Newman  wrote:

I am assuming here that there are spaces separating the chars in your list. The 
use of “words” will also delimit if those are tase instead of spaces. But the 
method is worth exploring…

Craig


On Mar 30, 2022, at 3:39 PM, Paul Dupuis via use-livecode mailto:use-livecode@lists.runrev.com>> wrote:

A B C
A A B
A B A
A A A
A A C

___
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: Debugger issues in 9.6.7 (unfolding array variables)

2022-04-02 Thread Paul Dupuis via use-livecode

On 4/2/2022 12:42 AM, Tom Glod via use-livecode wrote:

Hi Folks,

Today I upgraded my windows 10 LC installation to 9.6.7
and I'm finding I cannot unfold arrays while tracing code.
I click and nothing happens.
Anyone else?



I'm on Windows 10 (Dell AMD Ryzen 5) and just tested LC 9.6.7 STABLE 
with the following button script:

on mouseUp pMouseButton
  local tArray
  put "A" into tArray[1]
  put "B" into tArray[2]
  put "C" into tArray[3]
  --
  wait 0 with messages
end mouseUp

With a debug point on the Wait statement. Clicking the button, opens the 
debugger and I can inspect the array, seeing all 3 elements, so it's 
working here for me.


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


Re: How to Do: Download per http

2022-03-31 Thread Paul Dupuis via use-livecode

On 3/31/2022 3:00 PM, Hillen Richard via use-livecode wrote:

Hello,

My Mac is by usb connected to an iPhone, on which is running the 
data-aggregator Phybox.app and aggregates the sensor-data of the internal 
acceleration-sensor.

On Mac, when I write into the Safari address bar
"http://192.168.178.66/export?format=1“,
I receive the sampled data in a .xls-file by download from the iPhone-app.

I would like to download this file by LiveCode. But  I have no plan, how to do 
it.

May you help? I am very grateful for tips.

Richard.



I think you can do:

put URL "http://192.168.178.66/export?format=1; into URL 
("binfile:") -- where the variable tLocalFile contains the 
file path to a new .xls file, such as 
"/Users/Fred/Documents/mySensorData.xls"


___
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


<    1   2   3   4   5   6   7   8   9   10   >