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


Re: playrate & templateimage

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

On 3/31/2022 3:40 AM, Klaus major-k via use-livecode wrote:

Hi Paul,


Am 31.03.2022 um 02:01 schrieb Paul Dupuis via use-livecode 
:

...
Today I was delighted to find out that this is not the case anymore!
PITCH does not change anymore when setting the PLAYRATE!
Thanks for the hint, Frans!

At least on a Mac. Is this also the case on Windows?

could someone please test it and report here?

...

If PITCH was a property value I could test and report, but as I understand what 
you are looking for is for someone to adjust the playRate and HEAR whether the 
pitch is changing and I doubt - with my bad hearing - I could tell if the PITCH 
was changing!

Well, that is the point, the PITCH does NOT change, only the speed of the 
playback,
and even you might to be able to hear that. :-D





Okay, I made a test stack with a player and a slider with playRate from 
-2 to +2, current Thumb position 1 that on scrollBarDrag set the 
playRate to the thumbPosition and opened a mp4 video a tested.


1) Under LC 9.6.6, changing the playRate can cause LC to hang, whether 
the video is playing or paused. Not every time, but some of the times it 
would just pop up an endless spinning windows cursor ball and Windows 
would declare that LiveCode 9.6.6. was "not responding" and a forced 
quit would be required.


2) When it did work, I was able to change the playRate to 1.2 or 1.4 and 
while the video sped up, apparently my ears are better than I thought, 
as even I could tell the pitch got higher (the people's voices got 
higher pitched and "squeaky")


Windows 10 (latest build) LiveCode 9.6.6 STABLE.

___
use-livecode mailing list
use-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: playrate & templateimage

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

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



Am 27.03.2022 um 10:33 schrieb Klaus major-k via use-livecode 
:

Hi all,


Am 24.03.2022 um 12:31 schrieb Klaus major-k via use-livecode 
:

Hi friends,

LC never ceases to surprise me and I love that!

1. In earlier versions setting the "playrate" of a player object to a different 
value than 1
unfortunately also changed the PITCH of the sound/movie.

Today I was delighted to find out that this is not the case anymore!
PITCH does not change anymore when setting the PLAYRATE!
Thanks for the hint, Frans!

At least on a Mac. Is this also the case on Windows?

could someone please test it and report here?
Thank you!

really noone has a minute to test? :-(




If PITCH was a property value I could test and report, but as I 
understand what you are looking for is for someone to adjust the 
playRate and HEAR whether the pitch is changing and I doubt - with my 
bad hearing - I could tell if the PITCH was changing!



___
use-livecode mailing list
use-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-03-30 Thread Paul Dupuis via use-livecode

On 3/30/2022 4:39 PM, Craig Newman via use-livecode wrote:

Paul

I just reread your earlier post. Did you mean concatenating as if each line 
became a single long word? That would never do, of course, and is not how the 
line of code works.




This is what I was referring to:

Input data: (note line 5)
ABE XYZ GGG
ACB XYZ GHH
ABC XYZ DEF
AAB XYZ GGG
AB D GHH
AAA XYZ DEF

sortlines oftText by word 1 ofeach & word 2 ofeach & word 3 ofeach

Gives:

AAA XYZ DEF
AAB XYZ GGG
ABC XYZ DEF
AB D  GHH
ABE XYZ GGG
ACB XYZ GHH

Note line 4 should come before line 3 as "AB" should sort before "ABC" 
but in the sort above it gets concatenated with the "D" in column 2 to 
form ABD which places it between ABC and ABE. The concatination can 
cause errors in the sort order depending upon the actual data being 
sorted. However, if you sort as follows:


  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

You get it sorted correctly:

AAA XYZ DEF
AAB XYZ GGG
AB D  GHH
ABC XYZ DEF
ABE XYZ GGG
ACB XYZ GHH



___
use-livecode mailing list
use-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-03-30 Thread Paul Dupuis via use-livecode

On 3/30/2022 4:13 PM, Craig Newman via use-livecode wrote:

A way I have always used was developed back in the HC days. Assuming you have your 
list in the variable “yourList"

sort lines of yourList by word 1 of each & word 2 of each & word 3 of each




I used single letters as an example, but my text is tab delimited and 
each cell is moderately long text.


I think using "word 1 of each & word 2 of each & word 3 of each" or 
"item 1 of each & item 2 of each & item 3 of each" concatenates all 3 
"cells" together and sort by that string of characters. I think this 
could result in an invalid sort order of, for example, item 2 started 
with words found at the end of some items 1'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


Confirm sort container order...

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

Hello,

I need a little help today wrapping my mind around something simple in 
LiveCode.


sort [{lines | items} of] container [direction] [sortType] [by sortKey ]

I have 3 columns of tab and cr delimited data. For example:

A B C
A A B
A B A
A A A
A A C

If I want to sort by col 1, then 2, then 3, I would reverse the sort 
statements. i.e.


sort lines of tData ascending text by item 3 of each
sort lines of tData ascending text by item 2 of each
sort lines of tData ascending text by item 1 of each

to end up with:

A A A
A A B
A A C
A B A
A B C

Is this "correct"? This is what the dictionary entry is referring to as 
a "stable sort"?


I just get this, but my mind is confusing me today.

___
use-livecode mailing list
use-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: New user

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

On 3/30/2022 9:50 AM, Guillaume Hédieu via use-livecode wrote:

Hi everyone,

Just a message to say hello. I'm new to Livecode. First of all, please
apologize for my english, it's not my native language.

I am a computer scientist in an association that trains students for
working in some social profession.

I like "make and dev" and working with Livecode it's just a hobby for me. I
love learning and discovering new things and tools, that's why I am here.

Pleased to meet the community, I hope I will be able to read some of your
messages here.

Have a nice day,

Regards,

Guillaume
___



Welcome!

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


tags in menus other than Pulldown (menubar) menus

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

Here is another LC wish list for practical reasons:

I with that the menu item format for "regular" (pulldown/menubar) menus of:

[]  ['/'  ['|' ]] -- with the caveat 
that to have a  with out an , you just use /| 
[NOTE: This syntax is listed in the Dictionary under the "Menu" (keyword)]


Would work with other menu types, like OPTION menus (as 1 example)

I have several option menus with some long text for each options, for 
example:


All References to one media file
All References for each Case to a media file per Case
All References for each Source to a media file per Source
All References for each Code to a media file per Code
All References for each Code for each Source to a separate media file
All References for each Code for each Case to a separate media file
Each Reference to a individual media file

I would LOVE to be able to use s for internationalization (and 
simplicity), for example:


All References to one media file/|all
All References for each Case to a media file per Case/|case
All References for each Source to a media file per Source/|source
All References for each Code to a media file per Code/|code
All References for each Code for each Source to a separate media 
file/|codeSource
All References for each Code for each Case to a separate media 
file/|codeCase

Each Reference to a individual media file/|individual

This way my menuPick handler could look like:
on menuPick pChosenItem, pPreviousTab
  switch pChosenItem
    case "all"
  -- do stuff for the 1st option
  break
    case "case"
  -- do stuff for the 2nd option
  break
    case "source"
  -- do stuff for the 3rd option
  break
    -- etc
  end switch

And if I need to change the text of the OPTION menu items, say to 
another language for internationalization, I do not have to change my on 
menuPick handler as well. Every button of type menu that is handled by a 
menuPick handler, should support  for ease of internationalization.


Unfortunately,  do not work in Option menus (I have not tested any 
other non-menubar menu types)

end menuPick


___
use-livecode mailing list
use-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 bait and switch ;-)

2022-03-26 Thread Paul Dupuis via use-livecode
So I was doing some coding today and in the IDE as you type a keyword, 
the syntax options popup. You can arrow down to the one you want and 
press tab to have the code template for the syntax filled in.


I was typing a 'repeat for each..." loop when I notices the popup list 
of syntax options had a "... with index"! WOW, I thought, some new 
syntax was added to included an automatic counter variable with a 'for 
each' loop. This is great!


I could really use a syntax like "repeat for each line tLine in 
container with index" where "index" gets auto incremented for each loop.


I immediately opened the dictionary (LC 9.6.6) to check the syntax and 
usage and was surprised to find NO reference to the "with index" 
(apparent) syntax. Well, okay, sometime the Dictionary fails to get 
updated with the latest stuff, so I'll go back to the IDE and just try 
it! So I pick that syntax options and I get:


put 0 into tIndex
repeat for each line tLine in container
  add 1 to tIndex
  -- code
end repeat

Which, of course, is how we all do it.

While it is nice the IDE syntax feature kindly placed this whole code 
snippet, I feel like a "Bait and Switch" was just pulled on me! An now I 
really want LC, Ltd. to add a "with tIndex" syntax to the repeat for 
each loop structure!



___
use-livecode mailing list
use-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: Weird Standalone Builder issue

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

On 3/25/2022 9:05 AM, Mark Waddingham via use-livecode wrote:

On 2022-03-24 21:07, Paul Dupuis via use-livecode wrote:

I'm on Windows 10, using LC 9.6.6, and building for macOS and Windows
...
This is not a problem form me as I can use revDeleteFolder to remove
Contents\Resources\_MacOS\Utilities\ on the mac build and
revDeleteFile to remove "ffmepeg" from the Utilities folder on Windows
and I am left with the right utility for the right platform. I could
also just copy the utilities from the project folder each build during
the "on standaloneSaved" message handler.

I am mostly curious as to why the Standalone Builder splits the
files/folder for macOS and leaves them together for Windows?


So this is by design although its been so many years since this was 
done my memory is a little hazy!


I think the evolution of this was as follows:
   - originally copy files were put next to the executable (i.e. 
Contents/MacOS on macOS)
   - Apple made that path read-only and things had to be put in 
.app/Contents/Resources
   - the s/b started doing that, but we added internal redirects to 
the low-level file functions in the engine so code wouldn't see a 
difference
   - Apple then made it so that Apple executables could not be 
launched from anywhere except from Contents/MacOS
   - so we made it so the s/b sniffed the header of all files copied 
for Mach-O files and left those in Contents/MacOS


Basically, we've tried to make changes to Apple's structuring 
requirements transparent to developers all the way along - and its 
worked fine up until now, but admittedly looks a little strange if you 
dig around into things!


I've been pondering whether we should ditch the mechanism soon though:

   - remove the magic redirection
   - require code to use specialFolderPath("resources") to find 
non-executable resources
   - require code to use (a new) specialFolderPath("executable 
resources") to find executable resources (which would only be 
different to the above on macOS systems)
   - keep the magic sniffing of files in the S/B so executables still 
go in Contents/MacOS


This may break some really old code - but would remove some rather 
fiddly code in the engine which does the magical redirection - and 
mean things would be structured as expected (with the new definition 
of expected).


FWIW, even with the above you would still have to branch code to do 
what you want as the macOS exes would be in a different place (because 
they need to be!) so it wouldn't resolve that - but at least you 
wouldn't have been 'surprised' by what you found!


Warmest Regards,

Mark.


Mark,

Thank you! Now that you mention it, I do seem to remember a period of 
time when Apple seem to keep changing it's mind on where stuff was 
supposed to be located. With Apple's drive towards sandboxing and 
extensive permissioning system, I expect that keeping up with it, while 
trying to keep it as simple as possible for LiveCode developers, will be 
an ongoing headache for all of you in Scotland!


I DO appreciate the explanation!

-- Paul.



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


Weird Standalone Builder issue

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

I'm on Windows 10, using LC 9.6.6, and building for macOS and Windows

I have a folder called "Utilities" and in it I have the Windows version 
of an open source video utility called ffmpeg (specific file is just 
called "ffmpeg.exe". In the same "Utilities" folder, I have the macOS 
version of ffmpeg (called "ffmpeg" with no extension)


In the standalone setting, under the Copy Files tab, I added the folder 
"Utilities" and then I build for macOS and Windows;


Results:
For Windows I get 
C:\Users\paul\Desktop\HR460-LC9xx\HyperRESEARCH\Windows\Utilities\ and 
in that folder I have BOTH "ffmpeg.exe" (windows version) AND "ffmpeg" 
(macOS version) as expected. I intent in the "on standaloneSaved" 
message to remove the one that is NOT for the target platform


For macOS, there is weirdness, as I get 
C:\Users\paul\Desktop\HR460-LC9xx\HyperRESEARCH\MacOSX\HyperRESEARCH.app\Contents\MacOS\Utilities\ 
with "ffmpeg" (the macOS version)

AND
C:\Users\paul\Desktop\HR460-LC9xx\HyperRESEARCH\MacOSX\HyperRESEARCH.app\Contents\Resources\_MacOS\Utilities\ 
with "ffmpeg.exe" (the windows version)


So, not what I expected? The Standalone Builder somehow places the macOS 
version of the utility in .app bundle in Contents\MacOS\Utilities\ and 
splits the Windows version out to the app bundle at 
Contents\Resources\_MacOS\Utilities\


How does it know that the file "ffmpeg" is a macOS compatible command 
line binary???


This is not a problem form me as I can use revDeleteFolder to remove 
Contents\Resources\_MacOS\Utilities\ on the mac build and revDeleteFile 
to remove "ffmepeg" from the Utilities folder on Windows and I am left 
with the right utility for the right platform. I could also just copy 
the utilities from the project folder each build during the "on 
standaloneSaved" message handler.


I am mostly curious as to why the Standalone Builder splits the 
files/folder for macOS and leaves them together for 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: destroystack/destroywindow not working?

2022-03-21 Thread Paul Dupuis via use-livecode
We use this code in an internal Installer builder app to ensure a stack 
is actually removed from memory:


command removeStackFromMemory pStackName
  set wholeMatches to true
  repeat while pStackName is among the lines of 
revLoadedStacks(application)

    set cursor to busy
    set the destroyStack of stack pStackName to true
    set the cantDelete of stack pStackName to false
    lock messages
    close stack pStackName
    delete stack pStackName
    unlock messages
    wait 0.5 second with messages
  end repeat
  set cursor to arrow
end removeStackFromMemory

NOTE: The lock messages ensures that no closeSTack or deleteStack or 
related messages get processed when removing the stack from memory. The 
wait is necessary as it takes the engine some time to actually remove 
the stack, but it will do so - eventually ;-)


I do not claim this is the most efficient way nor the fastest, only that 
it works.



On 3/21/2022 2:29 PM, J. Landman Gay via use-livecode wrote:
I've seen this occasionally, where the mainstack is removed but the 
substacks are still in the list of available stacks. I think the IDE 
list of stacks in memory isn't updated correctly unless all substacks 
are marked as destroyed. At least, that's what it looks like.



On 3/21/22 6:46 AM, Klaus major-k via use-livecode wrote:

Hi all,

I have a stack with its destroystack/destroywindow
properties set to true.

When I close it and open another stack which has a
substack with ther same name as a substack of the
previous stack, I get this really annoying dialog:
"A stack with that name is already in memory..."

Shouldn't setting destroystack/destroywindow prevent this?
Or am I misunderstanding the meaning of these props?






___
use-livecode mailing list
use-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 extract a video clip...

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

Thanks Martin,

My issue with mergeAV is that it is macOS/iOS only and I need macOS and 
Windows, so I would have to find another solution for Windows and if I 
use ffmpeg for Windows, I might as well use it for macOS as well so the 
same command line works across platforms and I am just installing a 
different version of ffmpeg based upon OS.


If mergeAV was macOS and Windows, I would definitely prioritize it over 
ffmpeg as a solution. I appreciate the suggestion though. I did not know 
mergeAV could create clips.


-- Paul

On 3/19/2022 3:50 PM, Martin Koob via use-livecode wrote:

Hi

Look up the mergAVVideoComposition commands etc. in the dictionary.

They are for Mac and iOS.  Lots of versatility to slice dice and concatenate 
clips in a video composition.

If you are on Windows I guess the ffmpeg would work.


Martin

Sent from my iPhone


On Mar 19, 2022, at 3:19 PM, Paul Dupuis via use-livecode 
 wrote:

On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote:

You could use ffmpeg for this.

Here‘s a post where it is described how to do it

https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg



I have (and still am) considering ffmpeg. It was what I was alluding to with 
the mention of a command line utility called by shell() in my original post. To 
bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that 
compressed) to my Standalone, so my app can install it on the users system (I 
have the sort of computer novice customers that you do NOT want to ask to 
download additional software of). That's not too bad a size increase as my App 
sits at about 200-230mb currently.

Still, I asked the USE-LIST as you never know whether some one out there has 
made a widget that could just be part of the standalone app or someone knows of 
a clever technique or a smaller utility

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


___
use-livecode mailing list
use-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: How to extract a video clip...

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

On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote:

You could use ffmpeg for this.

Here‘s a post where it is described how to do it

https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg




I have (and still am) considering ffmpeg. It was what I was alluding to 
with the mention of a command line utility called by shell() in my 
original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that 
size (or that compressed) to my Standalone, so my app can install it on 
the users system (I have the sort of computer novice customers that you 
do NOT want to ask to download additional software of). That's not too 
bad a size increase as my App sits at about 200-230mb currently.


Still, I asked the USE-LIST as you never know whether some one out there 
has made a widget that could just be part of the standalone app or 
someone knows of a clever technique or a smaller utility


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


How to extract a video clip...

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

Hivemind,

I have, in LiveCode, a list of media files (various formats mp4, mp3, 
etc.) and a list of start and end times for various clips from each of 
the files. A file may (and usually does) have several clips.


Much to my disappointment, I can find NO way in LiveCode script to 
export a portion of the media from the start time to the end time. I 
hope with the revised media in LC10, this may get added!


I CAN in LiveCode open the media in a Player object and play just the 
clip from startTime to endTime.


Has anyone come up with a way, given just a file, start time, and end 
time, to output a new media file with just that clip?


Perhaps a shell command to some already installed utility or a widget? 
I'd even consider installing a free command line utility IF it was 
relatively small (in terms of disk size) so I could packing in my app 
and have my app unpack it on startup (the first time). I need this 
capability on macOS and Windows at a minimum - other platforms are 
desirable, but a solution must be available for macOS and windows (need 
not be the SAME solution as long as the same result is achieved). Also, 
any solution needs to be local and not require a server based service.


Thoughts? Ideas?


___
use-livecode mailing list
use-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 1.4

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

On 3/18/2022 6:56 PM, Curry Kenworthy via use-livecode wrote:


SpreadLib: Excel files to LC fields in 1 script line!
"Excel-lent spreadsheet import and export for LiveCode"
http://livecodeaddons.com/spreadlib.html



I recommend Spreadlib for reading or writing Excel spreadsheets. We've 
used in in our products for sometime to easily enhance data imports and 
exports.



___
use-livecode mailing list
use-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: Emojis in Text

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

On 3/18/2022 12:18 PM, Dan Friedman via use-livecode wrote:

I can't be the first to bring this up, so sorry if this has been asked 
already...

Is there a current solution for Emojis in text?  On a mobile device, in a 
native field, a user enters a emoji (no method to stop them that I can find).  
I save that text somewhere like a database.  When I load it back (into a LC 
field for display), it appears as a question mark.   What up?   Anyone have 
knowledge on this topic?   Is there a useEmojis property I don't know about?



It probably depends on 2 things:

1) If the app the Emojis are created in is creating them as Unicode 
Emojis or as images. If they are created as images, then they are 
probably not getting transferred to the database correctly. If they are 
Unicode, also make sure they are not being lost in the upload to the 
database - the database encoding needs to support some Unicode encoding 
like UFT8


2) If the database has the correct data, then when loading it into a 
LiveCode field you probably need to textDecode (see dictionary) the data 
from UTF8 to LiveCode's native (UTF16) text.


See https://unicode.org/emoji/charts/full-emoji-list.html 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


LC and SqlLite Question

2022-03-10 Thread Paul Dupuis via use-livecode
Can a sqlLite database file on disk be accessed by more than 1 LiveCode 
app at the same time?


A server hosted mySql database can be accessed by any number of client 
LC apps at the same time as the serve side mySql does the record locking 
necessary, but what about a sqlLite file?


Obviously, I could code up some test apps and try it, but I am hoping 
some one on the list definitively know for sure.



___
use-livecode mailing list
use-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: Into the future

2022-02-28 Thread Paul Dupuis via use-livecode
It isn't really a LiveCode ting. This is Apple placing these 
requirements on their developers no matter what language you write code 
in for the macOS.


On 2/28/2022 12:43 PM, Bob Sneidar via use-livecode wrote:

I guess the question now becomes, what is the last Livecode app that can create 
standalones without requiring these certificates? I may need to plant my flag 
there and go no further.

Bob S



On Feb 28, 2022, at 09:36 , Bob Sneidar via use-livecode 
 wrote:

It occurs to me that this may drive a lot of hobbyist Livecoders away, and 
discourage others from coming onboard. There ought to be some kind of 
disclaimer on the website, since it is a paid product only now. I'd be a bit 
miffed if I bought an application for developing new apps and didn't know that 
there would be more cash outlay required before it would work.

Bob S



On Feb 28, 2022, at 09:25 , Paul Dupuis via use-livecode 
 wrote:

No, you really have to go through all of that. The few helper stacks out there 
are just front ends (using the shell command to call command line utilities 
from xcode) that make it easier once you have everything set up.

Yes, it sucks.


On 2/28/2022 12:18 PM, Bob Sneidar via use-livecode wrote:

Okay, so I am at the point that I cannot build apps without codesigning and 
notarizing. Livecode will throw an error now if I try and don't have these 
certificates installed. Great.

So I have been going through the tutorial, and I see I have to be an Apple 
Developer, which means I have to shell out yet another $100 per year. Fine, I 
did that, even though my app is for internal consumption only.

Now It appears that for me to get the certificates needed to create a Mac 
standalone, I need xCode! Okay, I go to download xCode, and it will not install 
because my MacOS is too old! 10.15.1 is apparently ancient! So I am at the 
point now where I am asking myself, is this really worth it? After all the back 
and forth on the list where people's certificates expire, or the version of 
xCode they are forced to use isn't compatible with one thing or another, is 
building Mac standalones really worth it?

So my question is, do I really have to go through all this just to create a Mac 
standalone from livecode? Or do these other utilities, mrSignNotarizeHelperV3 
for example, eliminate the need for all of that?

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


___
use-livecode mailing list
use-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: Into the future

2022-02-28 Thread Paul Dupuis via use-livecode
No, you really have to go through all of that. The few helper stacks out 
there are just front ends (using the shell command to call command line 
utilities from xcode) that make it easier once you have everything set up.


Yes, it sucks.


On 2/28/2022 12:18 PM, Bob Sneidar via use-livecode wrote:

Okay, so I am at the point that I cannot build apps without codesigning and 
notarizing. Livecode will throw an error now if I try and don't have these 
certificates installed. Great.

So I have been going through the tutorial, and I see I have to be an Apple 
Developer, which means I have to shell out yet another $100 per year. Fine, I 
did that, even though my app is for internal consumption only.

Now It appears that for me to get the certificates needed to create a Mac 
standalone, I need xCode! Okay, I go to download xCode, and it will not install 
because my MacOS is too old! 10.15.1 is apparently ancient! So I am at the 
point now where I am asking myself, is this really worth it? After all the back 
and forth on the list where people's certificates expire, or the version of 
xCode they are forced to use isn't compatible with one thing or another, is 
building Mac standalones really worth it?

So my question is, do I really have to go through all this just to create a Mac 
standalone from livecode? Or do these other utilities, mrSignNotarizeHelperV3 
for example, eliminate the need for all of that?

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: Standalone build under Big Sur on M1 Airbook

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

On 2/27/2022 12:18 PM, Curry Kenworthy via use-livecode wrote:


Paul:

> building an app under Big Sur on a new M1 Airbook

> macOS told me the command 'lipo' was not installed

> Has anyone else seen this?

I only noticed this thread today, but FWIW ... Yes!
Exactly the same when setting up M1 Mac mini.

I think I had to install a recent xCode, after
first updating to a newer version of Big Sur.



I posted about this not because it was a problem - the OS asked whether 
I wanted to download the required tool and did when I told it to and 
LiveCode then built everything correctly. I mentioned it in that I would 
have expected LiveCode to have either preemptively downloaded any 
utility it needs to build standalones if it was not already installed OR 
presented some sort of alert noting that an OS utility was missing when 
I tried to first build a standalone and that I SHOULD click download. I 
presume, if I had clicked NO to the download questions from macOS, there 
may have been a problem building my standalone. Or perhaps not?



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


Standalone build under Big Sur on M1 Airbook

2022-02-22 Thread Paul Dupuis via use-livecode
I was just building an app under Big Sur on a new M1 Airbook when during 
the build process with the build dialog showing "Copying files..." the 
macOS told me the command 'lipo' was not installed and did I want to 
download it.


Has anyone else seen this?

I mean I already get a whole pile of "Do you want to allow permission to 
..." the Desktop, Documents, etc. etc.


You would think the LC being code signed, entitled, notarized, stapled, 
etc. would mean the macOS would not ask me, but Apple is nuts with 
"security" these days.




___
use-livecode mailing list
use-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: Message box failure in 10.0.0?

2022-02-21 Thread Paul Dupuis via use-livecode
We're tracking down a Big Sur "bug/feature" that I don't have a recipe 
stack for yet, but I'll explains as it *might* be related?


We've found that if a stack is internal to the .app under Big Sur (and 
presumably Monterey) that has a video player, the video in the player 
plays and pauses normally (i.e the UI is responsive to any messages to 
the player or menus that control the player). i.e it behaves as expected 
- normally.


However, if the player is in a LOCAL stack, but loaded from OUTSIDE the 
.app package (say from the desktop or elsewhere in the Applications 
folder, but outside the BUNDLE), then when the video is played, the UI 
becomes non-responsive until the video is finished playing.


We have seen other issues relating to file and folder actions that FAIL 
under Catalina and up if performed from a loaded external stack but work 
if loaded from a substack as part of the .app build. (Stacks in the app 
bundle, but external to the .app standalone may work - we've not tested)


We think this is due to Apple's permission scheme under Catalina and 
above and how it tries to detect resource access in real time and 
perhaps something about the stack being external sets the permissions 
system off.


I mention it in the unlikely case you are loading a external stack prior 
to your message box tests.



On 2/21/2022 2:16 AM, J. Landman Gay via use-livecode wrote:
Thanks, looks like it's just me. Glad I asked here first, but I have 
no idea what might be causing it. .


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 20, 2022 11:13:33 PM Terry Judd via use-livecode 
 wrote:



Just downloaded and tested and it works ok for me on Monterey.

Terry

From: use-livecode  on behalf 
of J. Landman Gay via use-livecode 

Date: Monday, 21 February 2022 at 3:26 pm
To: How to use LiveCode 
Cc: J. Landman Gay 
Subject: Re: Message box failure in 10.0.0?
Thanks for the reply. I should have mentioned I'm on Mac OS X Big Sur.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
On February 20, 2022 6:21:01 PM Paul Dupuis via use-livecode
 wrote:


These are working for me in the message box under LC 10.0.0dp2 (64bit)
under Windows 10

On 2/20/2022 6:48 PM, J. Landman Gay via use-livecode wrote:

I'm trying out LC 10.0.0dp2 and the message box doesn't seem to be
working. I'm just checking here before I report it, in case it's just
me. None of the following work, the message box doesn't error but no
response appears:

put the number of cds
put the number of cds of this stack
put the number of cards of stack "mystack"
the rect of stack "mystack"
edit script of 
etc.

This works sometimes:
set the rect of this stack to 

I'm not positive but it seems that "put" isn't working but "set" does.
Maybe.

Also, keyboard shortcuts do not open the script editor, nor do
contextual menus show when Cmd-Control-Shift clicking. The only way I
can currently get to scripts is via the property inspector button or
the Objects menu. Cmd-opt-click doesn't open scripts of controls, and
since those aren't in the Object menu I need to use the property
inspector since typing "edit script of btn 


___
use-livecode mailing list
use-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: Message box failure in 10.0.0?

2022-02-20 Thread Paul Dupuis via use-livecode
These are working for me in the message box under LC 10.0.0dp2 (64bit) 
under Windows 10


On 2/20/2022 6:48 PM, J. Landman Gay via use-livecode wrote:
I'm trying out LC 10.0.0dp2 and the message box doesn't seem to be 
working. I'm just checking here before I report it, in case it's just 
me. None of the following work, the message box doesn't error but no 
response appears:


put the number of cds
put the number of cds of this stack
put the number of cards of stack "mystack"
the rect of stack "mystack"
edit script of 
etc.

This works sometimes:
set the rect of this stack to 

I'm not positive but it seems that "put" isn't working but "set" does. 
Maybe.


Also, keyboard shortcuts do not open the script editor, nor do 
contextual menus show when Cmd-Control-Shift clicking. The only way I 
can currently get to scripts is via the property inspector button or 
the Objects menu. Cmd-opt-click doesn't open scripts of controls, and 
since those aren't in the Object menu I need to use the property 
inspector since typing "edit script of btn box does nothing.


I've double-checked the Messages button in the toolbar and toggled it 
a few times, but no change. I tested on a couple of stacks in case it 
was stack-related.


Just 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: full justification in a text field

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

On 2/9/2022 5:24 PM, Curt Ford via use-livecode wrote:
This seems like an awfully basic question, but is it possible to have 
text with full justification in a field?


I've looked at using WordLib, but this client's text has lots of fussy 
formatting (background colors, different colors for individual 
characters) that didn't come through well.


Thanks for any ideas,

Curt


See the Dictionary entry for textAlign:

set the textAlign [of line] of {button | field} to {left | center | right}

There is no justified option. There is a REALLY old enhancement request 
at https://quality.livecode.com/show_bug.cgi?id=4714


___
use-livecode mailing list
use-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: video formats for Windows in LC 9.6.5?

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

On 1/21/2022 12:47 PM, Curry Kenworthy via use-livecode wrote:
(I've heard that a future LC version will add better support.) 
LC 10 is supposed to move from DirectShow to Windows Media Framework, 
but I have no idea what d.p. version will make that change (or if it 
will really occur).


DirectShow has limited media file format support. Microsoft (I think) 
saw additional formats as a "third party opportunity". LAVFilters add 
almost all the formats you find with Quicktime or Apple Video Foundation 
(AVF) for DirectShow and the newer Windows Media Framework comes with 
support for most popular formats. So, until a hopeful LC10 release, you 
need to also install LAVFilters to get any sort of parity in support 
media file formats between macOS and Windows in 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: Sorting cards

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

On 1/1/2022 5:40 PM, doc hawk via use-livecode wrote:

paul pondered,


I'm not sure about this, but do all the cards have the SAME background with the 
SAME fields (I think they were Category and Title?). If you have mixed 
backgrounds - I think there may be sort problems sorting on background fields. 
Again, this is from memory and I could be wrong.

If memory serves, you couldn’t *have* multiple backgrounds, as the background 
was a stack attribute.

  But then, it’s almost 30 years . . .




I meant different backgrounds on different cards. For example, cards 
1-20 have background ID 1234 but cards 21-40 have background ID 6789. I 
think both both could even have the same name, and have the same fields, 
but a sort by a bg fld might only sort the cards with the current bg.


___
use-livecode mailing list
use-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 cards

2022-01-01 Thread Paul Dupuis via use-livecode
I'm not sure about this, but do all the cards have the SAME background 
with the SAME fields (I think they were Category and Title?). If you 
have mixed backgrounds - I think there may be sort problems sorting on 
background fields. Again, this is from memory and I could be wrong.



On 1/1/2022 3:10 PM, J. Landman Gay via use-livecode wrote:
I'm still not having much luck with this. Everything works as expected 
except that the first 50 cards or so simply don't move. I can't find 
anything different about them that would explain it.


Anyone out there have an inclination to take a look and find what I'm 
missing? There's nothing confidential about the stack.



On 12/31/21 12:05 AM, J. Landman Gay via use-livecode wrote:
Thanks for all the ideas, guys. I seem to get the most consistent 
results if I sort by the short ID of each card and then follow that 
with the sort for category or title. Because the data was imported 
from a text file, the original order is the order of the card IDs.


What threw me originally is that some cards don't sort in the order I 
expect. A category that starts with B is sorted before a category 
that starts with A. I assume the categories retain their original 
order when they collect matching cards. A few cards with blank 
categories sort to the front (good) but when sorted by title they 
remain at the front even though the titles all start with "The". 
That's okay because they are summary cards that should be at the 
front, but I'm not sure why they stay there during an alphabetical 
title sort instead of moving to the Ts. I didn't find any leading 
spaces or invisible characters.








___
use-livecode mailing list
use-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 VM's and LiveCode app's cursors

2021-12-19 Thread Paul Dupuis via use-livecode

I am not sure and will check with the customer. Thank you for the tip!

On 12/19/2021 4:59 PM, matthias rebbe via use-livecode wrote:

Paul,

are you sure that the user directly accesses the VM? Or is the user by any chance 
accessing that VM using some RemoteControl software like TeamViewer or so. I only noticed 
such "double" cursor (not only with LC created apps) when using RemoteControl 
tools and when i had selected that the remote cursor should also be shown.


Matthias



Am 19.12.2021 um 19:05 schrieb Paul Dupuis via use-livecode 
:

We have a customer who runs our LiveCode built Windows app under a VirtualBox 
VM running Windows 10, under Manjaro Linux.

The app displays a "double cursor" (i.e if the cursor is the pointer, there are 
2 images of the pointer slightly offset from one another that track the mouse).

I build a simple text app under LC 10.0.0dp1 that is just a window with a Quit 
button. Built 32 and 64 bit versions with and without High DPI check box 
checked and the customer tested them. All 4 display a double cursor.

None of the 4 test apps display a double cursor when running in Window 10 
Native or a Windows 10 VirtualBox VM under Windows 10 - just under Linux.

I know - a fringe configuration for sure - but has anyone encountered anything 
like this or have any idea what might cause it?

___
use-livecode mailing list
use-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


Windows VM's and LiveCode app's cursors

2021-12-19 Thread Paul Dupuis via use-livecode
We have a customer who runs our LiveCode built Windows app under a 
VirtualBox VM running Windows 10, under Manjaro Linux.


The app displays a "double cursor" (i.e if the cursor is the pointer, 
there are 2 images of the pointer slightly offset from one another that 
track the mouse).


I build a simple text app under LC 10.0.0dp1 that is just a window with 
a Quit button. Built 32 and 64 bit versions with and without High DPI 
check box checked and the customer tested them. All 4 display a double 
cursor.


None of the 4 test apps display a double cursor when running in Window 
10 Native or a Windows 10 VirtualBox VM under Windows 10 - just under Linux.


I know - a fringe configuration for sure - but has anyone encountered 
anything like this or have any idea what might cause it?


___
use-livecode mailing list
use-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 extract whole text from a PDF file with the PDF

2021-12-14 Thread Paul Dupuis via use-livecode

On 12/14/2021 10:33 AM, Paul McClernan via use-livecode wrote:

I was fairly certain that XPDF external was/is based on this XPDF:
https://en.m.wikipedia.org/wiki/Xpdf
Which has both GPL and Proprietary Licensing options available.


Nope. My company (Researchware) and I paid for the development of the 
XPDF External shipped with LiveCode. Monte did the code for us when he 
was an independent LiveCode developer, paid directly by Researchware. It 
is based on the C++ "external" API template, calling the Google PDFium 
library. Researchware then transferred the license to LiveCode when 
Monte went to work for them. I called it XPDF because it was an eXternal 
for PDFs. I was unaware (at the time) for anything else using the XPDF 
name. And yes, I am to blame (or credit) for the majority of the syntax 
for messages, commands, and functions of the XPDF external (with Monte 
correcting me when I had a really stupid syntax specified)




The newer (> 9.6.3) PDF Widget is based on PDFium which is an offshoot
project that spawned from Google’s Chromium project. I’m not sure about the
licensing involved with that.

If you’re running macOS I released a (semi-complete) library that uses
Apple PDFKit (not to be confused with several other PDFKits that are out
there, such as this JS PDFKit: https://pdfkit.org ). That can extract text
from PDF, per-document or per-page.

At some point I may update that library, adding the ability to extract RTF
styled text and also make iso it can use UIView, which would make available
on iOS devices too, but I’m really busy right now so that’s not likely to
get attention from me anytime soon.


On Mon, Dec 13, 2021 at 12:47 PM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:


Richmond wrote:

  > On 12.12.21 21:33, Richard Gaskin wrote:
  >> Stam Kapetanakis wrote:
  >> > i presume the pdf widget in pro is the opensource xpdfReader but
  >> > don’t know for sure.
  >>
  >> If it is that would be problematic, as the open source edition of
  >> xpdfReader is licensed under GPL, and LC no longer has an edition
  >> compatible with GPL.
  >
  > The consequences are endless.

Note my "if".

In the next message in this thread Paul clarified that the component is
not derived from a GPL-governed work, so the rights and responsibilities
of the GPL do not apply here:
http://lists.runrev.com/pipermail/use-livecode/2021-December/266435.html

--
   Richard Gaskin
   Fourth World Systems
   Software Design and Development for the Desktop, Mobile, and the Web
   
   ambassa...@fourthworld.comhttp://www.FourthWorld.com


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


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



___
use-livecode mailing list
use-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 extract whole text from a PDF file with the PDF widget?

2021-12-12 Thread Paul Dupuis via use-livecode

Thank you Monte,

We've just started to make a map from XPDF APIs to the PDF Widget APIs, 
so I'll make sure that gets done soon and add any missing capabilities 
as requests to the LC Quality Center.


With regard to the hilitedRange and hilitedRangeText properties, can you 
just advise on the correct use to get a PDF's text? i.e can you use a 
range of 1 to -1 to get the whole document text or would that just be 
the current page text?


Thanks in advance,


On 12/12/2021 6:49 PM, Monte Goulding via use-livecode wrote:

Hi Folks

Currently you can extract text in the widget by setting the hilitedRange and 
getting the hilitedRangeText. It wouldn’t be that hard to add extracted text to 
the documentPages property. The PDF widget was built to meet the requirements 
for a client rather than to match the features of XPDF so it’s worthwhile 
anyone still using XPDF to take the time to audit their use and see if there’s 
any extra features required. If so please create feature requests for them. 
While XPDF will continue to function we intend to stop including it in LiveCode.

Cheers

Monte


On 12 Dec 2021, at 12:27 am, Paul Dupuis via use-livecode 
 wrote:

I suspect it is for backward compatibility.

When I turned over the XPDF external to Livecode, I asked that they maintain it 
for a couple years. I had expected we'd migrate out apps to the PDF widget by 
then, but business factors mean we're only now just starting a migration.

That's why I jumped in on this thread - we HAVE to have the ability to extract 
text and images from the PDF widget (as you can with the External) - to migrate 
to the Widget.

I suspect many other commercial developers who used the External still have 
active code using it that they have not migrated yet OR the issue of the 
undocumented (or, even worse, missing) properties of the widget most likely 
would have been raised before now.

To migrate, all the command and functions of the External need to be mapped to 
the properties of the Widget. We have probably a couple hundred calls to the 
External in our code all of which need to be mapped, updated, and tested - so 
no trivial task.


On 12/11/2021 6:50 AM, matthias rebbe via use-livecode wrote:

Ah, i thought you were referring only to XPDF.
Btw. do you have an idea why both, XPDF external and PDF widget, are 
maintained? Wouldn't it make sense to have only one pdf solution included?
Or am i missing something?

Regards,
Matthias



Am 11.12.2021 um 02:01 schrieb Paul Dupuis via use-livecode 
:

Yes, I am familiar with the XPDF external (based on Google's PDFium library), 
having designed it and paid Monte to code it and then turned it over to 
LiveCode.

I was referring to the PDF Widget (also based on Google's PDFium), which should 
have a comparable property for fetching the text of a page. The LC dictionary 
does not list any property for returning the page text, so I assume that is a 
Dictionary/Documentation error and that Monte can tell us the correct property 
of the PDF widget that will return the text of a page.


On 12/10/2021 7:05 PM, matthias rebbe via use-livecode wrote:

Paul,

here on mac OS the dictionary of LC 10 DP1 definitely lists the function 
XPDFViewer_Text(viewerName, pageNumber).
Btw. checking this showed me that this function seems to be deprecated and 
instead the command
  XPDFViewer_Unicode viewerName, pageNumber, variableName
should be used.



Am 10.12.2021 um 23:22 schrieb Paul Dupuis via use-livecode 
:

There must be an undocumented property for the text of a page - there was a 
function to return the full text of a page in the External (XPDF) and to get 
the full text of the PDF file, you just stepped through the pages (1..N) 
getting and concatenating the page text.

Monte? LC 10.0.0 Dictionary does not list a property for the page text.


On 12/10/2021 4:46 PM, Torsten Holmer via use-livecode wrote:

Hi,

I have a PDF file with text and pictures, but I just want the text.

I can do it manually with Ctrl-A and Ctrl-Copy by viewing the file with Preview 
on MacOS.

I have a business licence and want to use the PDF widget but I cannot find a 
way to do it.

Can someone help me out?

Cheers,
Torsten
___
use-livecode mailing list
use-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

Re: How to extract whole text from a PDF file with the PDF

2021-12-12 Thread Paul Dupuis via use-livecode

On 12/12/2021 8:59 AM, Stam Kapetanakis via use-livecode wrote:

Hi Torsten,
i presume the pdf widget in pro is the opensource xpdfReader but don’t know for 
sure.


It is not xpdfreader. The XPDF Erternal AND the PDF Wdiget with Licecode 
are based on the Google PDFium Library. The first is C++ code using the 
External template to call the PDFium library APIs and the second is 
using LCB to do the same.



___
use-livecode mailing list
use-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 extract whole text from a PDF file with the PDF widget?

2021-12-11 Thread Paul Dupuis via use-livecode

I suspect it is for backward compatibility.

When I turned over the XPDF external to Livecode, I asked that they 
maintain it for a couple years. I had expected we'd migrate out apps to 
the PDF widget by then, but business factors mean we're only now just 
starting a migration.


That's why I jumped in on this thread - we HAVE to have the ability to 
extract text and images from the PDF widget (as you can with the 
External) - to migrate to the Widget.


I suspect many other commercial developers who used the External still 
have active code using it that they have not migrated yet OR the issue 
of the undocumented (or, even worse, missing) properties of the widget 
most likely would have been raised before now.


To migrate, all the command and functions of the External need to be 
mapped to the properties of the Widget. We have probably a couple 
hundred calls to the External in our code all of which need to be 
mapped, updated, and tested - so no trivial task.



On 12/11/2021 6:50 AM, matthias rebbe via use-livecode wrote:

Ah, i thought you were referring only to XPDF.
Btw. do you have an idea why both, XPDF external and PDF widget, are 
maintained? Wouldn't it make sense to have only one pdf solution included?
Or am i missing something?

Regards,
Matthias



Am 11.12.2021 um 02:01 schrieb Paul Dupuis via use-livecode 
:

Yes, I am familiar with the XPDF external (based on Google's PDFium library), 
having designed it and paid Monte to code it and then turned it over to 
LiveCode.

I was referring to the PDF Widget (also based on Google's PDFium), which should 
have a comparable property for fetching the text of a page. The LC dictionary 
does not list any property for returning the page text, so I assume that is a 
Dictionary/Documentation error and that Monte can tell us the correct property 
of the PDF widget that will return the text of a page.


On 12/10/2021 7:05 PM, matthias rebbe via use-livecode wrote:

Paul,

here on mac OS the dictionary of LC 10 DP1 definitely lists the function 
XPDFViewer_Text(viewerName, pageNumber).
Btw. checking this showed me that this function seems to be deprecated and 
instead the command
  XPDFViewer_Unicode viewerName, pageNumber, variableName
should be used.



Am 10.12.2021 um 23:22 schrieb Paul Dupuis via use-livecode 
:

There must be an undocumented property for the text of a page - there was a 
function to return the full text of a page in the External (XPDF) and to get 
the full text of the PDF file, you just stepped through the pages (1..N) 
getting and concatenating the page text.

Monte? LC 10.0.0 Dictionary does not list a property for the page text.


On 12/10/2021 4:46 PM, Torsten Holmer via use-livecode wrote:

Hi,

I have a PDF file with text and pictures, but I just want the text.

I can do it manually with Ctrl-A and Ctrl-Copy by viewing the file with Preview 
on MacOS.

I have a business licence and want to use the PDF widget but I cannot find a 
way to do it.

Can someone help me out?

Cheers,
Torsten
___
use-livecode mailing list
use-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: How to extract whole text from a PDF file with the PDF widget?

2021-12-10 Thread Paul Dupuis via use-livecode
Yes, I am familiar with the XPDF external (based on Google's PDFium 
library), having designed it and paid Monte to code it and then turned 
it over to LiveCode.


I was referring to the PDF Widget (also based on Google's PDFium), which 
should have a comparable property for fetching the text of a page. The 
LC dictionary does not list any property for returning the page text, so 
I assume that is a Dictionary/Documentation error and that Monte can 
tell us the correct property of the PDF widget that will return the text 
of a page.



On 12/10/2021 7:05 PM, matthias rebbe via use-livecode wrote:

Paul,

here on mac OS the dictionary of LC 10 DP1 definitely lists the function 
XPDFViewer_Text(viewerName, pageNumber).
Btw. checking this showed me that this function seems to be deprecated and 
instead the command
  XPDFViewer_Unicode viewerName, pageNumber, variableName
should be used.



Am 10.12.2021 um 23:22 schrieb Paul Dupuis via use-livecode 
:

There must be an undocumented property for the text of a page - there was a 
function to return the full text of a page in the External (XPDF) and to get 
the full text of the PDF file, you just stepped through the pages (1..N) 
getting and concatenating the page text.

Monte? LC 10.0.0 Dictionary does not list a property for the page text.


On 12/10/2021 4:46 PM, Torsten Holmer via use-livecode wrote:

Hi,

I have a PDF file with text and pictures, but I just want the text.

I can do it manually with Ctrl-A and Ctrl-Copy by viewing the file with Preview 
on MacOS.

I have a business licence and want to use the PDF widget but I cannot find a 
way to do it.

Can someone help me out?

Cheers,
Torsten
___
use-livecode mailing list
use-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: How to extract whole text from a PDF file with the PDF widget?

2021-12-10 Thread Paul Dupuis via use-livecode
There must be an undocumented property for the text of a page - there 
was a function to return the full text of a page in the External (XPDF) 
and to get the full text of the PDF file, you just stepped through the 
pages (1..N) getting and concatenating the page text.


Monte? LC 10.0.0 Dictionary does not list a property for the page text.


On 12/10/2021 4:46 PM, Torsten Holmer via use-livecode wrote:

Hi,

I have a PDF file with text and pictures, but I just want the text.

I can do it manually with Ctrl-A and Ctrl-Copy by viewing the file with Preview 
on MacOS.

I have a business licence and want to use the PDF widget but I cannot find a 
way to do it.

Can someone help me out?

Cheers,
Torsten
___
use-livecode mailing list
use-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: How to in LC for Desktop and the Web?

2021-12-09 Thread Paul Dupuis via use-livecode

Following up (in case someone has an answer):

I see in the description for SpecialFolderPath(), that under HTML5 
(platform) the following are available:

"temporary": A folder where temporary files can be placed
"engine": The folder where the standalone initial file system is extracted
"resources": The resources folder where files or folders specified in 
the Standalone Builder are located.


But where do these point to:

1) When the HTML5 app is running from the local file system (say 
Windows) in a browser


VS

2) When the HTML5 app is running from a server URL in a browser

If no one knows the answers, I can always run a set of tests to 
determine the values.



On 11/24/2021 7:15 PM, Paul Dupuis via use-livecode wrote:
I have an LC application that currently runs on Window and macOS, that 
I want to try to get running under LC 10 for the web. One 
characteristic of the app is that it opens a number of external 
stacks. On desktop platforms, these external stacks (outside the .EXE 
(windows) or .app package (macOS) are found in a folder at the same 
level as the installed application.


So if the app is installed at C:\Program Files\MyApp\MyApp.exe
The the folder containing the external stacks is at C"\Program 
Files\MyApp\FolderOfStacks\


I get the path of the mainstack and use it to construct the path to 
the folder


If I build for Web, is there some equivalent model for external stacks?

I get that I may need to have a:

switch platform()
  case "Win32"
  case "macOS"
 -- load external stacks the way I do now
 break
  case "web"
 -- load external stacks some other way
    break
end switch

but what is the web best practice for that 'some other way"? And is it 
different if I am testing locally vs hosting MyApp on a server?


___
use-livecode mailing list
use-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


How to in LC for Desktop and the Web?

2021-11-24 Thread Paul Dupuis via use-livecode
I have an LC application that currently runs on Window and macOS, that I 
want to try to get running under LC 10 for the web. One characteristic 
of the app is that it opens a number of external stacks. On desktop 
platforms, these external stacks (outside the .EXE (windows) or .app 
package (macOS) are found in a folder at the same level as the installed 
application.


So if the app is installed at C:\Program Files\MyApp\MyApp.exe
The the folder containing the external stacks is at C"\Program 
Files\MyApp\FolderOfStacks\


I get the path of the mainstack and use it to construct the path to the 
folder


If I build for Web, is there some equivalent model for external stacks?

I get that I may need to have a:

switch platform()
  case "Win32"
  case "macOS"
 -- load external stacks the way I do now
 break
  case "web"
 -- load external stacks some other way
    break
end switch

but what is the web best practice for that 'some other way"? And is it 
different if I am testing locally vs hosting MyApp on a server?


___
use-livecode mailing list
use-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: HTML5 Deployment

2021-11-09 Thread Paul Dupuis via use-livecode

Found it. Thank you Mathias!


On 11/9/2021 7:06 PM, matthias rebbe via use-livecode wrote:

Paul, if you open the Livecode Dictionary, then you can see 2 tabs in the left upper corner. One is 
labeled "API" and one is labeled "Guide".

Click on "Guide" and then select "Deploying Your Application" and then "HTML5 
Deployment settings".
There you should find a bunch of information.

Hope this helps.

Matthias


Am 10.11.2021 um 00:41 schrieb Paul Dupuis via use-livecode 
:

I am trying to deploy and HTML app. Standalone building was straightforward and 
I now have a folder of stuff.

MyApp.html
standalone.zip
standalone-commercial-9.6.3.html.mem
standalone-commercial-9.6.3.js

The HTML5 panel in the Standalone Builder says to see the "HTML5 Deployment 
Guide in the Dictionary. In LC 9..6.3, there is no such guide in the dictionary. I 
have tried searching Livecode.com with no luck.

Where can the deployment guide be found?

___
use-livecode mailing list
use-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


HTML5 Deployment

2021-11-09 Thread Paul Dupuis via use-livecode
I am trying to deploy and HTML app. Standalone building was 
straightforward and I now have a folder of stuff.


MyApp.html
standalone.zip
standalone-commercial-9.6.3.html.mem
standalone-commercial-9.6.3.js

The HTML5 panel in the Standalone Builder says to see the "HTML5 
Deployment Guide in the Dictionary. In LC 9..6.3, there is no such guide 
in the dictionary. I have tried searching Livecode.com with no luck.


Where can the deployment guide be found?

___
use-livecode mailing list
use-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: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Paul Dupuis via use-livecode

On 11/4/2021 7:18 AM, Curry Kenworthy via use-livecode wrote:


I'm checking up on the Script Editor Disassociation Bug,
described in this thread:

 







But first: Has anyone seen this bug lately? (On LC 9.6.3 or later.)
Especially Paul, Bob, Ben, Mark?



I have not noticed recently - not in the 9.6.x series. I am not saying 
it might not be present, but I can not recall running into it since back 
in the 9.0.x time frame.


My vague recollection was I encountered it when the property inspector 
was open and the project browser was open and I selected a different 
object (although whether I selected the new object in the project 
browser or by clicking on the object in a stack I can't recall. As I 
said in my original post, it was intermittent at best, so it was 
probably some specific sequence of object selection actions that I was 
doing sometimes unconsciously that led to the disassociation. At any 
rate, it may be "fixed" in current releases.



___
use-livecode mailing list
use-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: Lemniscate Polygon

2021-11-02 Thread Paul Dupuis via use-livecode
For the infinity symbol polygon, wouldn't a possible way to do this is 
by modeling a tear drop (see http://paulbourke.net/geometry/teardrop/ 
which does not require imaginary numbers) and duplicating the points 
with opposite signs for the other half?


On 11/2/2021 6:27 PM, Roger Guay via use-livecode wrote:

Dear List,

Bernd has produced an absolutely beautiful animation using a Lemniskate polygon 
that was previously provided by Hermann Hoch. Can anyone provide some help on 
how to create this polygon mathematically? Since the equation for a Lemniskate 
involves the SqRt of negative numbers, which is not allowed in LC, I am stumped.

You can find Bernd’s animation here: 
https://forums.livecode.com/viewtopic.php?f=10=36412 


Thanks,
Roger
___
use-livecode mailing list
use-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] Multiple macOS recommendation sought

2021-10-26 Thread Paul Dupuis via use-livecode
A problem I have struggled with for decades is software testing on the 
various versions of operating systems our software deploys on.


For testing on Windows, we use Virtualbox with Virtual Machines (VMs) 
for Windows 7, Windows 8.1, and Windows 10 (we have yet to try to build 
a Windows 11 VM)


For macOS we have tried a multi-boot system, a mac Mini with hard disks 
partitions to boot to OSX 10.9, 10.10, 10.11, 10.12, 10.13, and 10.14 
(Mojave). We tried a partition for 10.15 Catalina, but were were already 
experience problems switching between boot partitions where the Mini 
would forget what Startup disk it should boot from. When we added 
Catalina, the problem became worse, trying to go from Catalina to an 
older OS on reboot or vice versa would fail.


So we tried a Mojave (10.14) laptop with Virtualbox and build a Catalina 
VM. This worked well for Catalina testing. We like VMs for the ability 
to reset to a snapshot or to clone them. We added a Big Sur VM, but 
playing video does not work in the VM and Virtualbox's latest release 
has not fixed this and macOS VMs are not really supported, even on mac 
hardware. We just tried a Monterey VM and it is unstable. It will crash 
and reboot after a random amount of time.


Some sort of virtual machine is very appealing because of the ability to 
restore the machine to a snapshot after testing or to clone it. If 
testing messes something up, you can always get back to a known state 
without rebuilding a computer.


What have other people's experiences been? Does anyone have a more 
stable, easier solution?


___
use-livecode mailing list
use-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: Number of items

2021-10-25 Thread Paul Dupuis via use-livecode

On 10/25/2021 5:03 PM, J. Landman Gay via use-livecode wrote:

Found it:
 



Thank you! It continues to make more sense to ignore trailing delimiters 
however initially non-intuitive it may seem.


___
use-livecode mailing list
use-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: Number of items

2021-10-25 Thread Paul Dupuis via use-livecode

Ok Bob, Mark, and Jacqueline,

Now I know. I hope I remember.

I just checked the Dictionary entry for "number" and "item" and the 
"Item" entry actual states:


/Note:/In LiveCode, if the last character of a string is the 
itemDelimiter, then this character is ignored by theitemkeyword. For 
example the last item of the string "1,2,3," is "3" (assuming comma is 
the itemDelimiter)


Sorry, I should have just read the Dictionary!

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: Number of items

2021-10-25 Thread Paul Dupuis via use-livecode
Why is it a feature? (I'm sorry, I am sure it has been explained before 
in these lists)


I searched the Quality Center and could find no open bug entry for this. 
As LC 9.6.3 still gives and item count of ",1" as 2 and an item count of 
"1," as 1 that this is indeed the expected behavior?!?


I would have personally expected them both to be 2, but perhaps these is 
a reason trailing empty items are not counted?



On 10/25/2021 11:06 AM, Pi Digital via use-livecode wrote:

It’s not a bug. It’s a feature. And a welcome one, too. We just have to handle 
it differently to the way it is for CSVs and DB records.

Sean



On 25 Oct 2021, at 15:56, Paul Dupuis via use-livecode 
 wrote:

On 10/25/2021 10:46 AM, Mike Kerner via use-livecode wrote:

I'm glad we have these sorts of discussions out in the open.
I hope there is not an appeal coming based on the lists that are submitted.
And even though this horse is dead, maybe some day we can have equal rights
for all items, especially the poor, empty ones. For those of you that don't
recall, the number of items in ",1" and the number of items in "1," are not
the same. Database records and CSV's continue to object.

I didn't realize that. What bug number is it in the Livecode Quality Center 
Bugzilla database? I'd like to CC myself on the bug.

___
use-livecode mailing list
use-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: Number of items

2021-10-25 Thread Paul Dupuis via use-livecode

On 10/25/2021 10:46 AM, Mike Kerner via use-livecode wrote:

I'm glad we have these sorts of discussions out in the open.
I hope there is not an appeal coming based on the lists that are submitted.
And even though this horse is dead, maybe some day we can have equal rights
for all items, especially the poor, empty ones. For those of you that don't
recall, the number of items in ",1" and the number of items in "1," are not
the same. Database records and CSV's continue to object.


I didn't realize that. What bug number is it in the Livecode Quality 
Center Bugzilla database? I'd like to CC myself on the bug.


___
use-livecode mailing list
use-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: Hot Folders solution for Windows with LC

2021-10-07 Thread Paul Dupuis via use-livecode
I've done a lot with lists of files and moving and renaming files and 
folders.


I've run into no 'gotchas' other my my fat fingers making typos in my 
code ;-)



On 10/7/2021 5:00 PM, matthias rebbe via use-livecode wrote:

Thanks Paul,

that's the way i was planning to do it. But i will move the original file into 
a subfolder, so that the hot folder only contains new unprocessed files.

I was more looking to rule out any known problems that might occur when doing 
this.

Matthias


Am 07.10.2021 um 22:32 schrieb Paul Dupuis via use-livecode 
:

The only way I know to to that in LiveCode is by polling the folder at some 
interval.

You get the detailed files (for the last modification date)
filter to PDFs
output them to pdf/1-1b's
Save this initial detail list of PDF files (in a variable or property or field)
Then send a message to yourself in x minutes

That message get the detailed files and compares the new list to the save list
Any new or updated file is sent to Ghostscript
Then the save list is updated
Send a message to myself in X minutes

That's pretty much it.

On 10/7/2021 3:39 PM, matthias rebbe via use-livecode wrote:

Hi,

before i reinvent the wheel...

Has anyone on the list already created a solution for monitoring a folder on 
Windows (server) for new files and to do some action on that new files?

I need to create a tool that monitors a folder on Windows Server 2019  and if a 
new pdf file is in the folder, the tool shall convert that pdf to pdf/a-1b with 
Ghostscript in an destination folder and rename the original one.

Is there anything i should keep in mind? Are there any pitfalls?

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


___
use-livecode mailing list
use-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: Hot Folders solution for Windows with LC

2021-10-07 Thread Paul Dupuis via use-livecode
The only way I know to to that in LiveCode is by polling the folder at 
some interval.


You get the detailed files (for the last modification date)
filter to PDFs
output them to pdf/1-1b's
Save this initial detail list of PDF files (in a variable or property or 
field)

Then send a message to yourself in x minutes

That message get the detailed files and compares the new list to the 
save list

Any new or updated file is sent to Ghostscript
Then the save list is updated
Send a message to myself in X minutes

That's pretty much it.

On 10/7/2021 3:39 PM, matthias rebbe via use-livecode wrote:

Hi,

before i reinvent the wheel...

Has anyone on the list already created a solution for monitoring a folder on 
Windows (server) for new files and to do some action on that new files?

I need to create a tool that monitors a folder on Windows Server 2019  and if a 
new pdf file is in the folder, the tool shall convert that pdf to pdf/a-1b with 
Ghostscript in an destination folder and rename the original one.

Is there anything i should keep in mind? Are there any pitfalls?

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: Can't reach license server...

2021-08-31 Thread Paul Dupuis via use-livecode

Apparently only temporary as now the license server is back and responding.


On 8/31/2021 10:57 AM, Paul Dupuis via use-livecode wrote:
When trying to launch LiveCode, I keep getting errors contacting the 
license server and I see that Livecode.com is currently down for 
maintenance, so hopefully, this is a very temporary issue.


However, is anyone else having problems running LC due to not getting 
a license validated?


___
use-livecode mailing list
use-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


Can't reach license server...

2021-08-31 Thread Paul Dupuis via use-livecode
When trying to launch LiveCode, I keep getting errors contacting the 
license server and I see that Livecode.com is currently down for 
maintenance, so hopefully, this is a very temporary issue.


However, is anyone else having problems running LC due to not getting a 
license validated?


___
use-livecode mailing list
use-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: setting the dragImage under LC 9.6.3

2021-08-26 Thread Paul Dupuis via use-livecode

Panos,

Thank you. I should have searched the quality center, but knowing that 
it is a bug has just saved me from hours of debugging. So thanks for 
replying to my post.



On 8/26/2021 10:29 AM, panagiotis m via use-livecode wrote:

Hello all,

Yes, unfortunately the dragImage is broken on Windows:

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

Kind regards,
Panos
--




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


setting the dragImage under LC 9.6.3

2021-08-25 Thread Paul Dupuis via use-livecode

I have a situation I just noticed running under LC 9.6.3.

I have a field where you can drag lines to drop on other specific lines. 
on dragStart, take a snapshot of the line just clicked and make set and 
existing image object to the image data of the snapshot.

i.e.
  put pText into fld "DragList"
  export snapshot from fld "DragList" to tImg as PNG
  put tImg into img "CodeBookDrag"

I have check all this in the debugger. The field "DragList" has the text 
of the line clicked on at the start of the drag. The image 
"CodeBookDrag" is set to an image of the field containing the text - all 
is good


In my dragStart handler, I have:

set the dragImage to the id of image "CodeBookDrag" of this cd

on macOS (Mojave), as I perform the drag, the cursor changes to the line 
of text image (YEA!)


on Windows (same exact code) , the cursor remains a circle with a slash 
(default) when over a line that can not be dropped on and a plus icon 
over a lien that can be dropped on.


This used to work cross-platform. The code is the same across macOS and 
Windows. Has anyone else seen an issue like this? is dragImage broken on 
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: AW: List fields question...

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

Thanks for the info!

On 8/10/2021 10:01 PM, Richard Gaskin via use-livecode wrote:

Paul Dupuis wrote:

>  Using the message watcher is practically useless unless I took the
>  time to filter out all the existing messages I am not looking for.


How about in addition to filtering by message name you could also 
filter by any part of the long name of the object containing the 
called handler...


And have results listed in indented outline format so you can easily 
see the calling chain from user event all the way down...


And optionally save the session log to a file...

And have profiling info provided with relative timing and frequency of 
calls...


And didn't want to wait for an enhancement request to find its way 
through the company work queue...



Here I took a moment to outline 4W Flight Recorder, a free tool I 
wrote some time ago and rely on every week:


https://forums.livecode.com/viewtopic.php?f=6=35496=207822#p207822

4W Flight Recorder is available in the Stacks section of the GoLiveNet 
plugin in the IDE.





___
use-livecode mailing list
use-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: List fields question...

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

On 8/10/2021 4:58 PM, Craig Newman via use-livecode wrote:

I had made a suggestion (Forum, “Message Watcher Enhancement”) that the message 
watcher have the ability to not only ignore certain messages, but to allow only 
certain messages. I am amazed this got no traction from anyone. It would also 
be terrific to only allow only those containing, say, the word “mouse”.




What I great enhancement!

Is there a enhancement request in the Quality Center?

I'd vote for it if the bug system still allowed voting.

___
use-livecode mailing list
use-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: List fields question...

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

Thank you. mouseRelease is perfect for what I need.

The specific app I am working in sends a crap load of messages - 
constantly - as part of it's functions. Using the message watcher is 
practically useless unless I took the time to filter out all the 
existing messages I am not looking for.


Thank you!

On 8/10/2021 3:12 PM, J. Landman Gay via use-livecode wrote:
You can use the Message Watcher to see. For your needs, you'll get 
mouseDown and mouseRelease, as well as mouseStillDown, mouseEnter, 
mouseLeave, and some others you probably don't care about.


On 8/10/21 1:44 PM, Paul Dupuis via use-livecode wrote:
I have a list field with a number of lines that do not fill the whole 
height of the field, so a user can click in the empty part of the 
field below the last line with content


When someone does click in the empty area of the field below the last 
line, I am not seeing messages I would expect sent to the field. For 
example, no 'mouseUp' is being sent. I get the expected 'mouseUp' if 
the user clicks on any line that have content, but not in the space 
in the field after the last line of content?


Without me trying every possible message, does anyone KNOW what a 
field does get sent if you click on a part of the field with no content?


For example the field is sized to allow 10 lines visible, but only 
has 3 lines:

Item One
Item Two
Item Three

The field is set to List Behavior, Multiline Hilites, Non-contigious, 
and Click to Toggle (Autohilite is NOT checked)


If I click on lines 1, 2, or 3, I get the mouseUp I expect

If I click below line 3 I get no museUp - this last case is what I am 
asking about? Whould a mouseUp be sent? If not what messages are sent?



___
use-livecode mailing list
use-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


List fields question...

2021-08-10 Thread Paul Dupuis via use-livecode
I have a list field with a number of lines that do not fill the whole 
height of the field, so a user can click in the empty part of the field 
below the last line with content


When someone does click in the empty area of the field below the last 
line, I am not seeing messages I would expect sent to the field. For 
example, no 'mouseUp' is being sent. I get the expected 'mouseUp' if the 
user clicks on any line that have content, but not in the space in the 
field after the last line of content?


Without me trying every possible message, does anyone KNOW what a field 
does get sent if you click on a part of the field with no content?


For example the field is sized to allow 10 lines visible, but only has 3 
lines:

Item One
Item Two
Item Three

The field is set to List Behavior, Multiline Hilites, Non-contigious, 
and Click to Toggle (Autohilite is NOT checked)


If I click on lines 1, 2, or 3, I get the mouseUp I expect

If I click below line 3 I get no museUp - this last case is what I am 
asking about? Whould a mouseUp be sent? If not what messages are sent?



___
use-livecode mailing list
use-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: Also looking for MSSQL integration person

2021-07-26 Thread Paul Dupuis via use-livecode
I can't help you figure it out, but text coming through as questions 
marks is almost always and text encoding issue.


For example, if the text is stored in the mySQL database as UTF8, then 
after fetching it in LiveCode nd before placing it in a field, you need 
to textDecode(,"UTF8") (see the textDecode 
dictionary entry)


If you are going the other way, text entered into a LiveCode field needs 
to be textEncode(,"UTF") before storing in the database.


You need to either look up what encoding you table(s) are using or set 
the encoding of the table(s) in the database to what you want and then 
perform the appropriate textEncode or textDecode operations in LC




On 7/26/2021 4:44 PM, Skip Kimpel via use-livecode wrote:

I have MSSQL data flowing into my project but two data input fields are
coming through as "?" instead of the actual text.

WIlling to pay someone to help me figure this out.

Please contact me directly at s...@magicgate.com


Thank you!

SKIP
___
use-livecode mailing list
use-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: Double checking maximum vertical scroll

2021-07-20 Thread Paul Dupuis via use-livecode

I should have said: Desktop - macOS and Windows

On 7/20/2021 12:19 PM, Andrew at MidWest Coast Media via use-livecode wrote:

What device and fullscreenmode are you using while running into this?
Possibly related to: https://quality.livecode.com/show_bug.cgi?id=21456 


-- Andrew Bell


Subject: Double checking maximum vertical scroll
Message-ID: <42be648c-8e83-1bcd-b804-ec5547c6b...@researchware.com>
Content-Type: text/plain; charset=utf-8; format=flowed

In a list field, if you are scrolling a field by script control, the max
vertical scroll to display the last line would be:

put (the height of me - the topMargin of me - the bottomMargin of me)
into tAdjustedHeight -- tope and bottom margins
if the showBorder of me is true then put tAdjustedHeight - (the
borderWidth of me * 2) into tAdjustedHeight -- top and bottom borders
the formattedHeight of me - tAdjustedHeight into tMaxVerticalScroll

-- essentially you have to take the formattedHeight minus the field
height and subtract out the margins and borders (if there are borders shown)

Is this correct? Am I missing anything?



___
use-livecode mailing list
use-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: Drag and drop within a list field

2021-07-19 Thread Paul Dupuis via use-livecode

Devin,

Thank you for the link below. I find it interesting that Scott did not 
use any of the "drag" messages for dragging a line within a field. He 
did use the rarely used "before mouseDown", "before mouseMove" and so 
one to capture various mouse messages related to drag actions and coded 
the drag and drop behavior there.



One thing I have noted is that in LC 9.6.2 STABLE "dragMove" is only 
sent while the mouse is moving. "mouseMove" is similar. Scott used in 
his sample stack a "send in time" action to keep autoscrolling smooth if 
the drag action required the field to autoscroll. I would have hoped 
there was a better way to autoscroll a field during a drag operation 
within the field in LC, but apparently not.


I guess I will need to adapt the "send xxx in 80ms" trick for smooth 
autoscrolling during a drag to my code.


Thank you for the pointer to Scott's sample stack!


On 7/16/2021 11:48 AM, Devin Asay via use-livecode wrote:

Hi Paul,

Some years back Scott Rossi created a nifty little demo called GetInLine that 
shows how to do the interface part of drag-reordering. It’s in his archive at 
http://tactilemedia.com/blog/2018/05/12/blasts-from-the-past/. It might give 
you a good foundation, even if you don’t use the exact interface he created.

I don’t think the data part of it should be too hard; just make sure you keep 
the visible list and the custom property synched the same. Or you could 
possibly use hidden text or metadata tags in you visible list to embed the type 
for each line.

Hope this helps.

- Devin




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


Double checking maximum vertical scroll

2021-07-19 Thread Paul Dupuis via use-livecode
In a list field, if you are scrolling a field by script control, the max 
vertical scroll to display the last line would be:


put (the height of me - the topMargin of me - the bottomMargin of me) 
into tAdjustedHeight -- tope and bottom margins
if the showBorder of me is true then put tAdjustedHeight - (the 
borderWidth of me * 2) into tAdjustedHeight -- top and bottom borders

the formattedHeight of me - tAdjustedHeight into tMaxVerticalScroll

-- essentially you have to take the formattedHeight minus the field 
height and subtract out the margins and borders (if there are borders shown)


Is this correct? Am I missing anything?

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


Drag and drop within a list field

2021-07-16 Thread Paul Dupuis via use-livecode

I have a scrolling list field that has contents like:

name1
name2
nameA
name3
name4
name5
nameB
name6
name7
nameC
name8
etc.

the field has a custom property with the contents and a "type" for each 
name, so the data in the custom property look like:


codename1
codename2
foldernameA
codename3
codename4
codename5
foldernameB
codename6
codename7
foldernameC
codename8
etc.

The type for each line can be either 'code' or 'folder'. I am trying to 
craft code for the field script that supports dragging a line that is a 
'code' or 'folder' onto a line that is a 'folder'. You can not drag a 
'code' or 'folder' onto a 'code' line.


I have a dragStart, dragMove and dragEnd handlers, but something is off 
with my code with regard to autoscrolling the field. (the actual list of 
names is much longer than my example above). When dragging near the 
bottom of the field, I try to detect if I am within a textHeight of the 
bottom of the field (or top if scrolling up) and and scroll the field, 
but it is very jerky. The user must keep moving the mouse around 
slightly so that continual dragMove messages are sent and I have other 
problems with highlighting the destination line when you are over a 
'folder' that you can drop on.


Does anyone have some "best practice" code for this capability that they 
would be willing to share? I admit coding drag and drop operations in LC 
is one of the areas I am least familiar with.


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


scripted find and find again...

2021-06-26 Thread Paul Dupuis via use-livecode
I suspect may of us on this list have coded their own Find and Find 
Again (or Find Next) commands.


Some may use the Livecode "find" command (find [form] textToFind [in 
field]), but I suspect most (as even the Dictionary entry for Find 
recommends this) use offset or matchText.. Either approach, using 
"Find"or using "offset: (or equivalent) let you do Forward searches 
without jumping through hoops.


Many typical applications (MS-Word for example) support searching in 
either direction, forward or backwards. It appears Livecode's language 
has no support for Backwards searching. I found this positively ancient 
enhancement request:


https://quality.livecode.com/show_bug.cgi?id=946 (from 2003!!!)

So, I have the following questions:

1) Has anyone scripted  text search (of a field or variable content)  
that support forward and backwards searching?


1.1) As the equivalent of Find and Find Again

1.2) With hints, so it shows you snippets of the matches for you to jump 
to one rather then advancing sequentially through them?


2) I know the mother ship does not generally comment about future 
features, bit is any enhancement to scripted searching planned for 
LiveCode 10 or soon after?



___
use-livecode mailing list
use-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   >