Re: DataGrid question...

2020-03-26 Thread Paul Dupuis via use-livecode

On 3/26/2020 9:54 AM, zryip theSlug via use-livecode wrote:

Paul,

I have somewhere a stack demonstrating how to use a second datagrid
with the columns to freeze and how to synchronize this second datagrid
with the main datagrid when the rows are scrolled.

If you may interested I can share it.




Very interested!

Given everyone's responses, I was just about to code something up myself 
using two Datagids for consistency in user interface.


Thank you!

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


Re: DataGrid question...

2020-03-26 Thread Paul Dupuis via use-livecode

On 3/26/2020 4:31 PM, zryip theSlug via use-livecode wrote:

The "Freeze pane" stack is available here:
https://www.aslugontheroad.com/download/category/4-lab

It demonstrates how to scroll, select and sort two datagrids synchronizaly.


 Thank you. That is really a helpful time saver. All I need to add to 
it for my use is a overlaid resize between the fixed datagrid and the 
scrolling one and I have multi-field resized code all over the pace to 
reuse.


Thanks again for sharing!

___
use-livecode mailing list
use-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: Its very quiet

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

On 3/27/2020 11:16 AM, Bob Sneidar via use-livecode wrote:

All I am doing right now is working in Livecode! Very refreshing. How about we 
all chime in on what we are currently working on?


I'm working on implementing a frozen left column pane "Datagrid" based 
on the code zryip theSlug kindly provided yesterday in response to my 
"DataGrid question..." thread on this list.


But I am only doing that for about another hour or two and then since 
this Friday is finally warm and sunny where I live, I am planning on 
taking the afternoon to get some year chores done.


___
use-livecode mailing list
use-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: Cross-platform Bluetooth and Speech to text

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

On 3/27/2020 1:38 PM, R.H. via use-livecode wrote:

Cross-platform Speech to Text

Has anybody ever implemented "speech to text" (not TTS)? It should be
possible with the browser widget using web API's: Microsoft Cognitive
Serrvices, IBM Watson, Speechmatics...? But ideally, it would not depend on
available Internet connection and use some good enough text recognition
engine.


For last year's LiveCode conference, Trevor DeVore kindle wrapped Pocket 
Sphinx in a widget library for LC for OSX. He left Window and other 
platforms as an exercise for any one interested. However, this effort 
represents the current - and best - work at STT for LC


https://github.com/trevordevore/lc-pocketsphinx

Should you do the FFI wrapping for any other platforms, please let 
people know.



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


specialFolderPath, Microsoft Window, and 64 bits

2020-03-31 Thread Paul Dupuis via use-livecode
On Windows, the SpecialFolderPath function can use Constant Special Item 
ID List (CSIDL) values, but since Windows Vista, developer were supposed 
to switch to using the Microsoft Known Folder ID system instead (I just 
learned this, so there's that!) (see 
https://docs.microsoft.com/en-us/windows/win32/shell/knownfolderid)


Under CSIDL, specialFolderPath("38") is the equivalent of 
CSIDL_PROGRAM_FILES or C:\Program Files\ on older systems or C:\Program 
Files (x86)\ on Windows 8 or 10 (for 32 bit apps)


Under KNOWNFOLDERID, this is FOLDERID_ProgramFiles and there is a 
seconds KNOWNFOLDERID, FOLDERID_ProgramFilesX64 that on 64 bit Window 8 
and 10 gets you the 64 bit app installation folder, typically C:\Program 
Files\



Under LiveCode 9.x.x (up to 9.6.0dp3) I can see no way to obtain the 
64bit application installation folder using SpecialFolderPath? Does 
anyone know if this is correct or am I missing something?


And does anyone know if LC plans to update the specialFolderPath 
function on Windows to use KNOWNFOLDERID? Or if it currently uses 
KNOWNFOLDERID (for all I know).



My use case is that I need to check both the 32 bit app installation 
folder and the 64 bit app installation folder to see if a particular app 
is installed (either the 32 or 64 bit version could be present) and I 
would rather NOT hard code the paths since we do run into non-standard 
installations among our customer base.




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


Re: specialFolderPath, Microsoft Window, and 64 bits

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

On 3/31/2020 11:24 AM, Bob Sneidar via use-livecode wrote:

Isn’t the defaultFolder the app folder when you launch it?



Yes, but I am interested in where OTHER applications have been installed 
(a specific other application that could have ts 32 bit OR its 64 bit 
version installed)



___
use-livecode mailing list
use-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: specialFolderPath, Microsoft Window, and 64 bits

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

On 3/31/2020 8:37 AM, Paul Dupuis via use-livecode wrote:
Under LiveCode 9.x.x (up to 9.6.0dp3) I can see no way to obtain the 
64bit application installation folder using SpecialFolderPath? Does 
anyone know if this is correct or am I missing something?


So answering my own question, as of LC9.6.0dp3 here are all the Windows 
paths for any given CSIDL number between 0 and 255). None return the 
64-bit applications folder path. I will file an enhancement request.


specialFolderPath(0) = C:/Users//Desktop
specialFolderPath(2) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Start Menu/Programs

specialFolderPath(5) = C:/Users//Documents
specialFolderPath(6) = C:/Users//Favorites
specialFolderPath(7) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Start 
Menu/Programs/Startup
specialFolderPath(8) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Recent
specialFolderPath(9) = 
C:/Users//AppData/Roaming/Microsoft/Windows/SendTo
specialFolderPath(11) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Start Menu

specialFolderPath(13) = C:/Users//Music
specialFolderPath(14) = C:/Users//Videos
specialFolderPath(16) = C:/Users//Desktop
specialFolderPath(19) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Network Shortcuts

specialFolderPath(20) = C:/Windows/Fonts
specialFolderPath(21) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Templates

specialFolderPath(22) = C:/ProgramData/Microsoft/Windows/Start Menu
specialFolderPath(23) = C:/ProgramData/Microsoft/Windows/Start Menu/Programs
specialFolderPath(24) = C:/ProgramData/Microsoft/Windows/Start 
Menu/Programs/StartUp

specialFolderPath(25) = C:/Users/Public/Desktop
specialFolderPath(26) = C:/Users//AppData/Roaming
specialFolderPath(27) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Printer Shortcuts

specialFolderPath(28) = C:/Users//AppData/Local
specialFolderPath(29) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Start 
Menu/Programs/Startup
specialFolderPath(30) = C:/ProgramData/Microsoft/Windows/Start 
Menu/Programs/StartUp

specialFolderPath(31) = C:/Users//Favorites
specialFolderPath(32) = 
C:/Users//AppData/Local/Microsoft/Windows/INetCache
specialFolderPath(33) = 
C:/Users//AppData/Local/Microsoft/Windows/INetCookies
specialFolderPath(34) = 
C:/Users//AppData/Local/Microsoft/Windows/History

specialFolderPath(35) = C:/ProgramData
specialFolderPath(36) = C:/Windows
specialFolderPath(37) = C:/Windows/System32
specialFolderPath(38) = C:/Program Files (x86)
specialFolderPath(39) = C:/Users//Pictures
specialFolderPath(40) = C:/Users/
specialFolderPath(41) = C:/Windows/SysWOW64
specialFolderPath(42) = C:/Program Files (x86)
specialFolderPath(43) = C:/Program Files (x86)/Common Files
specialFolderPath(44) = C:/Program Files (x86)/Common Files
specialFolderPath(45) = C:/ProgramData/Microsoft/Windows/Templates
specialFolderPath(46) = C:/Users/Public/Documents
specialFolderPath(47) = C:/ProgramData/Microsoft/Windows/Start 
Menu/Programs/Administrative Tools
specialFolderPath(48) = 
C:/Users//AppData/Roaming/Microsoft/Windows/Start 
Menu/Programs/Administrative Tools

specialFolderPath(53) = C:/Users/Public/Music
specialFolderPath(54) = C:/Users/Public/Pictures
specialFolderPath(55) = C:/Users/Public/Videos
specialFolderPath(56) = C:/Windows/Resources
specialFolderPath(59) = 
C:/Users//AppData/Local/Microsoft/Windows/Burn/Burn



___
use-livecode mailing list
use-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: specialFolderPath, Microsoft Window, and 64 bits

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

On 3/31/2020 12:12 PM, Mark Waddingham via use-livecode wrote:

On 2020-03-31 17:07, Paul Dupuis via use-livecode wrote:

On 3/31/2020 8:37 AM, Paul Dupuis via use-livecode wrote:
Under LiveCode 9.x.x (up to 9.6.0dp3) I can see no way to obtain the 
64bit application installation folder using SpecialFolderPath? Does 
anyone know if this is correct or am I missing something?


So answering my own question, as of LC9.6.0dp3 here are all the
Windows paths for any given CSIDL number between 0 and 255). None
return the 64-bit applications folder path. I will file an enhancement
request.


Is your app running as 32-bit?

Just to note (looking at the MSDN reference you mentioned):

FOLDERID_ProgramFilesX64
This value is not supported on 32-bit operating systems. It also is 
not supported for 32-bit applications running on 64-bit operating 
systems. Attempting to use FOLDERID_ProgramFilesX64 in either 
situation results in an error. See Remarks for more information.


So even if we did move to FOLDERIDs it wouldn't make much difference 
if the app is 32-bit as 32-bit apps won't return 64-bit related OS 
paths (it seems).


If the app is running as 64-bit then I think the relevant CSIDLs 
return the right thing?


Warmest Regards,

Mark.



Okay, I was running LC960dp3 (32 bit) so I downloaded LC960dp2 (64 bit) 
[I chose dp2 only because I didn't want 32 and 64 bits of the same 
version installed in case of some unknown conflict). Reran my paths test 
and your DO get different results!


Most interestingly:
specialFolderPath(38) = C:/Program Files is the 64 bot applications folder
and
specialFolderPath(42) = C:/Program Files (x86) is teh 32 bit 
applications folder


So, if I am using LC to build a Windows 64 bit standalone that 64 bit 
standalone can get BOTH the 64 bit Programs folder path AND the 32 bit 
Program folders path to check for the presence of a 3rd party 
application that could be installed as either 32 or 64 bit.


HOWEVER, if I have built a 32-Bit LC standalone, that can not get the 
path for the 64 bit Programs folder. It can ONLY get the path for the 32 
bit Programs folder


A little disappointing. My use case remains. My app (currently 32 bit)  
needs to check if a 3rd party app is installed. That 3rd party app could 
be have either a 32 bit version or a 64 bit version installed. I would 
like to use some sort of "specialFolderPath" precisely so it a user has 
a non standard installation I get the correct paths.


In at least one actual customer instance we have - out customer is 
running our app on a Microsoft Terminal Server and users get a remote 
desktop access to the server to run our app. In this specific case, 
REGISTRY queries get the users local registery on the CLIENT, but PATH 
queries check file paths on the SERVER, so registry checks do not work 
in this case.



Folder paths for 64-bit LiveCode 960dp2
specialFolderPath("home") = C:/Users/paul
specialFolderPath("desktop") = C:/Users/paul/Desktop
specialFolderPath("documents") = C:/Users/paul/Documents
specialFolderPath("support") = C:/Users/paul/AppData/Roaming
specialFolderPath("system") = C:/Windows
specialFolderPath("start") = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Start Menu

specialFolderPath("fonts") = C:/Windows/Fonts
specialFolderPath("temporary") = C:/Users/paul/AppData/Local/Temp
specialFolderPath("engine") = C:/Program Files/RunRev/LiveCode Business 
9.6 (dp 2)

specialFolderPath("resources") = C:/Users/paul/Desktop
specialFolderPath(0) = C:/Users/paul/Desktop
specialFolderPath(2) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Start Menu/Programs

specialFolderPath(5) = C:/Users/paul/Documents
specialFolderPath(6) = C:/Users/paul/Favorites
specialFolderPath(7) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup
specialFolderPath(8) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Recent
specialFolderPath(9) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/SendTo
specialFolderPath(11) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Start Menu

specialFolderPath(13) = C:/Users/paul/Music
specialFolderPath(14) = C:/Users/paul/Videos
specialFolderPath(16) = C:/Users/paul/Desktop
specialFolderPath(19) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Network Shortcuts

specialFolderPath(20) = C:/Windows/Fonts
specialFolderPath(21) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Templates

specialFolderPath(22) = C:/ProgramData/Microsoft/Windows/Start Menu
specialFolderPath(23) = C:/ProgramData/Microsoft/Windows/Start Menu/Programs
specialFolderPath(24) = C:/ProgramData/Microsoft/Windows/Start 
Menu/Programs/StartUp

specialFolderPath(25) = C:/Users/Public/Desktop
specialFolderPath(26) = C:/Users/paul/AppData/Roaming
specialFolderPath(27) = 
C:/Users/paul/AppData/Roaming/Microsoft/Windows/Printer Shortcuts

specialFolderPath(28) = C:/Users/paul/AppData

Re: specialFolderPath, Microsoft Window, and 64 bits

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

On 3/31/2020 12:26 PM, Bob Sneidar via use-livecode wrote:

The Windows Registry uses 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths as the 
path to the installation folder for all installed applications.

put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App 
Paths\AcroRd32.exe\path")

seems to work.


Thanks for the suggestion, but that will not work in our case

In at least one actual customer instance we have - out customer is 
running our app on a Microsoft Terminal Server and users get a remote 
desktop access to the server to run our app. In this specific case, 
REGISTRY queries get the users local registery on the CLIENT, but PATH 
queries check file paths on the SERVER, so registry checks do not work 
in this case.


___
use-livecode mailing list
use-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: specialFolderPath, Microsoft Window, and 64 bits

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

On 3/31/2020 12:54 PM, Bob Sneidar via use-livecode wrote:

Well that certainly complicates things! :-)




Yea! Our application is used by researchers in Academia, and more are 
shifting to served application for distance learning, especially with 
the pandemic.


We know we work under Citrix App Server, but this is the first (in 
recent times) Microsoft Terminal Server and every app server is slightly 
different.


We're big enough to have customers with weird configuration, but in no 
way big enough to be able to afford to have app servers we can test on, 
so each one is a sudden new support and development challenge!



___
use-livecode mailing list
use-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: specialFolderPath, Microsoft Window, and 64 bits

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

On 3/31/2020 1:13 PM, Trevor DeVore via use-livecode wrote:


Paul,

I had a similar situation recently where I needed to get some DPI
information about the monitors that wasn't available through my LC main
application. I ended up writing a simple command line tool in Visual Studio
that used the Windows APIs and returned the proper information. I included
that exe with my app and called it from within LC. In your case you would
create a 64-bit command line app and I'm guessing you could find sample
code for such a common API call.



That's a good idea! I will  look into that for a more solid and reliable 
fix.


___
use-livecode mailing list
use-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: specialFolderPath, Microsoft Window, and 64 bits

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

So, I think I may have answered by own question.

IF my app is 32 bit THEN
   specialFolderPath(38) returns the 32 bit app folder (C:\Program 
Files (x86)\)

  and
   specialFolderPath(42) returns the 32 bit app folder (C:\Program 
Files (x86)\)


IF my app is 64 bit THEN
   specialFolderPath(38) returns the 64 bit app folder (C:\Program Files\)
  and
   specialFolderPath(42) returns the 32 bit app folder (C:\Program 
Files (x86)\)


I don't want to change to building a 64-bit Windows version of my - 
mostly because we are just not geared up to QA test for that and 32 bit 
builds.


My main concerns is where the Window OS is installed to a not standard 
volume, so you have something like:


D:\Program Files\
or
\\system07\C$\Program Files\
or
etc.

However, I can write a custom function to get the 32 bit path 
(C:\Program Files (x86)\) and take everything before "Program Files" as 
the VOLUME\ or \\SERVER\VOLUME\ and just put it in front of the 64 bit 
Program Files folder name to get a correct 64 bit path.


I don't believe that the 64bit Program Files and 32 Bit Program Files 
folders can be on different volumes.


Both Mark and Trevor's suggestions of Shell environment variables OR LCB 
wrapped windows API) (respectively) potentially offer a more stable and 
reliable solution that my thought above and I'll look into them.


Thank you all who responded.



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


Answer dialog enhancement...

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

Here is another attempt to not reinvent the wheel:

We, like a lot of people, use:

answer [/iconType/]/prompt/[with/button1/[or/buttons/]] 
[titled/windowTitle/] [as sheet]


And we use the various iconTypes to who error, warning, or informational 
icons. We have a lot of these that are caution dialogs (are you sure 
that... sort of thing). We'd like to move to the (now) common UI 
convention of having a "Do not show this again." check box in the dialog 
combined with a set of saved preferences for whether the used indicated 
it should not be shown again. We already have a preferences system in place.


I am seeking if someone has already written code to ADD a "Do not ask 
this again." check box to the existing Answer Dialog, so you could do 
something like:


DontShowAgain "on"
answer warning "Are you sure you want to quit before saving?" with 
"Save" or "Quit" titled "Are You Sure?"

put it into tResponse
put line x of the dalogData into tDontShowAgain
DontShowAgain "off"

where a handler DontShowAgain creates and positions a check box in the 
existing Answer Dialog and adds a script to put the result in the 
dialogData (or some means to check it afterwards)


Alternatively, if no one has glued this onto the existing Answer Dialog 
has anyone created a custom Answer Dialog with a Do Not Show Again check 
box that has the same general capabilities (icon type by platform 
(Win/OSX), html text prompts, named buttons, and windowTitle as parameters)



___
use-livecode mailing list
use-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: Answer dialog enhancement...

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

On 3/31/2020 6:10 PM, Bob Sneidar via use-livecode wrote:

The answer dialog is simply a stack in and of itself if I am not mistaken. I’m 
wondering if you couldn’t find that stack and clone it for your own purposes…

Bob S


Yes. That is easy enough. Turn on "Show IDE Stacks in List" from the 
"View" menu and there are the Answer and Ask Dialogs.


Then you need to work out how the Answer command passes its data via 
"the dialogData" property into order to create an alternative calling 
routine that sets up the Don't Ask Again check box


You could copy the Answer to your own project  and in the Standalone 
Settings switch to Manual Inclusions and exclude the Answer Dialog. Then 
I believe the answer command will use the copy of the dialog in your 
project. Then you need to add the button, change the resizeStack 
handlers accordingly, script its show and hide, add code to get the 
return value


AND remember to see if the dialog needs updates with each new release of 
LiveCode.


That is why I asked if anyone has already done it so as to not re-invent 
the wheel.


___
use-livecode mailing list
use-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: Answer dialog enhancement...

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

On 3/31/2020 7:12 PM, Bob Sneidar via use-livecode wrote:

Seems like most if not all this code has been done already in the dialog 
itself. I’ll look into it because I wanted at one point to make an enhanced 
answer dialog as well.

Bob S


I'm thinking that if I need to roll my own, then my approach might be to 
write a handler that adds or removes the button by script from the 
standard Answer Dialog. That was if LC Corporate every makes changed to 
the dialog, your project inherits them with a new built under a new 
version of the engine.


If you copy the dialog, then you either need to rename it and maintain 
it or do manual Inclusions and exclude the engine from conflicting with 
your copy.


I was thinking something like:

on mouseUp
  dontaskagain "on","Do not show this message again."
  answer warning "Some message I may not want to see again." with 
"Cancel" or "OK" titled "A Message"

  put it into tAnswer
  dontaskagain "off"
end mouseUp

command dontaskagain pActivate, pLabel
  -- usage:
  -- dontaskagain "on|off" [, ]
  --   dontaskagain "on","Do not show this message again."
  --   answer warning "Some message I may not want to see again." with 
"Cancel" or "OK" titled "A Message"

  --   put it into tAnswer
  --   dontaskagain "off"

  switch pActivate
    case "on"
  -- setup the templateButton
  set the style of the templateButton to "checkbox"
  set the label of the templateButton to pLabel
  set the width of the templateButton to the formattedWidth of the 
templateButton

  set the height of the templateButton to 23
  --
  create btn "DontAskAgain" in cd 1 of stack "Answer Dialog"
  --
  reset the templateButton
  break
    case "off"
  delete btn "DontAskAgain" of cd 1 of stack "Answer Dialog"
  break
  end switch
end dontaskagain

This adds the checkbox or removes it to the built in Answer Dialog 
dynamically. The problem is pre-positioning the checkbox. The dialog has 
a preOpenCard handler that does the position and if I position it ahead 
of time the code it the preOpenCard changes things


I think I need to insert a openCard handler into the stack dynamically, 
which would execute after preOpenCard, that positions the check box OR


attach a behavior script with an "after preOpenCard" handler, but I 
don't understand exactly how to do that??




___
use-livecode mailing list
use-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: Answer dialog enhancement...

2020-04-01 Thread Paul Dupuis via use-livecode
So I have a working mechanism to add a "Don't Ask Again" check box to 
the existing standard Answer Dialog on the fly. I offer it up to the 
community for anyone who needs it and for anyone who may want to improve 
the code. The scripts are below. There is a sample usage you can place 
in a clickable button and below that is a BEHAVIOR script that must be 
in button whose name matches what is used in the clickable button.


This is the first time I have really found a use for the "before" and 
"after" handlers. What a great addition to LiveCode!


Essentially, I add a behavior to the card of the standard "Answer 
Dialog" that positions and cleans up the Don't Ask Again check box AFTER 
the proOpenCard handler has positioned everything else AND a BEFORE 
mouseUp handler to trap clicks for changing the checkbox hilite that 
would otherwise close the dialog and return a clicked button name.


I needed to set a number of properties for the checkbox because the 
preOpenCard treats ANY button in the Answer Dialog like regular buttons 
and hides those not in use by making them 1px in size and moving them 
off screen. I may not have needed to change every property I did, but I 
didn't have the time to go through the Answer Dialog card script to 
determine exactly what properties those scripts were changing that I 
needed to reset.


I think it would be great in LC, Ltd. could fold this into the standard 
'answer' command some how.



-- Sent when the mouse is released after clicking
-- pMouseButton specifies which mouse button was pressed
on mouseUp pMouseButton
  dontaskagain "on"
  answer warning "Some message I may not want to see again." with 
"Cancel" or "OK" titled "A Message"

  put it into tAnswer
  put dontaskstatus() into tDontAskAgain
  dontaskagain "off"
  --
  put "Don't Ask is:"&&tDontAskAgain &&"And button clicked is:"&&tAnswer
end mouseUp

command dontaskagain pActivate
  switch pActivate
    case "on"
  set the behavior of cd 1 of stack "Answer Dialog" to the long id 
of btn "DontAskBehavior" of this cd

  break
    case "off"
  set the behavior of cd 1 of stack "Answer Dialog" to empty
  delete btn "DontAskAgain" of cd 1 of stack "Answer Dialog"
  break
  end switch
end dontaskagain

function dontaskstatus
  if exists(btn "DontAskAgain" of cd 1 of stack "Answer Dialog") then
    put the hilite of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" into tDontAskAgain

    return tDontAskAgain
  else
    return false
  end if
end dontaskstatus

BEHAVIOR BUTTON SCRIPT

after preOpenCard
  if exists(btn "DontAskAgain" of cd 1 of stack "Answer Dialog") then
    set the style    of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to "checkbox"
    set the autoHilite   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the opaque   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the threeD   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the showBorder   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the hiliteBorder of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false


    set the height   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to 25
    set the width    of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to 120
    set the bottomLeft   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to the bottomLeft of cd 1 of stack "Answer Dialog"

  else
    -- setup the templateButton
    set the style of the templateButton to "checkbox"
    set the label of the templateButton to "Don't Ask Again."
    --
    create btn "DontAskAgain" in cd 1 of stack "Answer Dialog"
    --
    reset the templateButton
    --
    set the style    of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to "checkbox"
    set the autoHilite   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the opaque   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the threeD   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the showBorder   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false
    set the hiliteBorder of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to false


    set the height   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to 25
    set the width    of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to 120
    set the bottomLeft   of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to the bottomLeft of cd 1 of stack "Answer Dialog"

  end if
end preOpenCard

before mouseUp pMouseButton
  -- if the target is the check box, check the box and do not pass mouseUp
  if the long ID of the target = the long id of btn "DontAskAgain" of 
cd 1 of stack "Answer Dialog" then
    set the hilite of btn "DontAskAgain" of cd 1 of stack "Answer 
Dialog" to not (the hilite of btn "DontAskAgain" of cd 1 of stack 
"Answer Dialog")

    

Re: DataGrid question: Suggestions for further enhancements

2020-04-02 Thread Paul Dupuis via use-livecode

On 4/2/2020 10:35 AM, Bob Sneidar via use-livecode wrote:

As far as I am concerned, datagrids make table fields obsolete.

I agree.


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

2020-04-05 Thread Paul Dupuis via use-livecode

On 4/5/2020 1:16 AM, J. Landman Gay via use-livecode wrote:
I have a field that reports a formattedheight of 125396. I want to 
extend it to full height for use inside an enclosing scrolling group. 
But when I try to set the height to the formattedHeight, I get an 
error: Value is not a number.


If I try to set its height in the property inspector, it reverts to 
9,040.


Does it exceed some maximum? If I set a scrollbar on the field, it 
scrolls fine and includes all the text. But it won't expand to its 
full height for use inside a scrolling group, which I need for smooth 
scrolling on mobile.




I thought objects in LC still were limited to 32000px (or perhaps -32000 
to +32000 in coordinates) from the ancient QuickDraw 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: Maximum field height?

2020-04-06 Thread Paul Dupuis via use-livecode

On 4/5/2020 10:48 PM, JB via use-livecode wrote:

The question is why don’t they make them compatible?  Is their some
kind of FCC regulation that prevents Apple from using phone apps on
the desktop?  Back in the HyperCard days there was hyperDialer and
I really liked it a lot but I think the company was blocked from using it
by the phone companies or something like that.  Anyway there are no
replacements and I haven’t seen any others that survived so there is
a reason the desktop does not have simple phone capabilities.


Apple is absolutely working towards iOS and macOS being highly similar. 
However, if you're hoping that brings increased simplicity of 
application development to iOS, that isn't Apple's aim. The value to 
them of unification is to get macOS app into the same exclusivity an app 
store as iOS. Currently deployment of macOS apps can be through the 
macOS App store or outside of it. iOS app must be through the App store. 
Apple wants to gradually migrate the macOS base to the point where they 
can say macOS apps will only be available through the App store as well. 
Then they can drive the same developer changes on OSX that they do on 
iOS and take their same 30% cut.


___
use-livecode mailing list
use-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 equivalent of php utf8_encode and utf8_decode ?

2020-04-13 Thread Paul Dupuis via use-livecode

On 4/13/2020 9:07 AM, jbv via use-livecode wrote:

Hello list,
Suddenly I'm having a blank : what is the LC equivalent
of utf8_encode and utf8_decode in php for a string ?

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


textEncode and textDecode -- see dictionary for syntax

___
use-livecode mailing list
use-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: What is a real?

2020-04-25 Thread Paul Dupuis via use-livecode

On 4/25/2020 10:40 AM, Bob Sneidar via use-livecode wrote:

Apparently nothing is a real. Neither is anything strictly a real.


I have never heard a more philosophical statement in all my life ;-)

___
use-livecode mailing list
use-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: How to graph a specific data set?

2020-05-05 Thread Paul Dupuis via use-livecode

This is NOT a "How to do this in LiveCode" question.

I have a data set (below), produced by a LiveCode program and the data 
is exported to Excel.


I am trying to figure out:

1) What the "best" style of graph to visualize this data is? I thought 
perhaps a "Bubble Chart" but  - in Excel at least - does not seem to 
work for this data.



2) After determining the "best" chart style is, what charting tool (if 
not Excel) can generate that style of chart for this data?


Any tips anyone may have would be very welcome.

The data set is below. This shows that "A" intersects with B once and C 
intersects with J 4 times (as example of how to read the data). I have 
replaced the actual labels (text strings for rows and columns) with the 
English alphabet for simplicity.




	A 	B 	C 	D 	E 	F 	G 	H 	I 	J 	K 	L 	M 	N 	O 	P 	Q 	R 	S 	T 	U 	V 	W 	X 
Y 	Z
A 	0 	1 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 
0 	0 	0

B   
0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0
C   

0   0   0   0   0   1   0   4   1   
0   2   0   0   1   1   0   0   1   0   
0   1   0   1   1
D   


0   0   0   1   0   0   0   1   0   
0   0   1   0   0   0   1   0   0   0   
0   0   1   0
E   



0   1   0   0   0   0   1   0   1   
0   0   0   0   0   0   0   0   0   0   
0   0   0
F   




0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0
G   





0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   1   0
H   






0   0   0   0   0   0   0   0   1   
0   0   0   0   0   0   0   0   0   0
I   







0   0   0   1   0   0   0   0   0   
0   0   0   0   0   0   0   0   0
J   








0   1   0   1   0   0   0   0   0   
0   0   0   0   0   0   0   0
K   









0   0   1   0   0   0   0   0   1   
0   0   1   1   0   0   0
L   










0   0   0   2   0   0   0   0   0   
0   0   0   0   0   0
M   











0   0   0   0   0   0   0   0   0   
0   0   0   0   0
N   












0   0   0   0   0   0   0   0   0   
0   0   0   0
O   













1   0   0   0   1   0   0   0   0   
1   0   0
P   














0   0   1   0   1   0   0   0   0   
1   1
Q   















0   0   0   0   0   0   0   0   0   0
R   
















0   0   0   0   0   0   0   0   0
S   

















0   0   0   0   0   0   0   0
T   








   

Re: OT: How to graph a specific data set?

2020-05-05 Thread Paul Dupuis via use-livecode

On 5/5/2020 11:17 AM, Prothero-ELS via use-livecode wrote:

Paul,
The first question I have is: “what are you trying to communicate with your 
chart?” The answer to that question will point to a charting strategy.
Bill


I am trying to visually call attention to those intersections with high 
occurrences.


However, the labels that I replaced with the alphabet for 
confidentiality have meaning to the researchers looking at this and they 
may equally be fascinated when a pair has NO intersections in the data.


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


I need some DataGrid performance help

2020-05-05 Thread Paul Dupuis via use-livecode
I have a datagid operation that should be fast that is taking a long 
time and I don't understand why.


I use a datagrid to display a table of data as part of an analysis. The 
columns are file names and the rows are selected phrases found in those 
files. The first column is the list of phrases (162 in this example). 
The remaining columns are all the file name (254 in this example). So 
each cell (2 to 254) represents a count of the number of times the 
phrase (in column 1 of the row) was found the the file that column 
represents.


I have the following code:

  set the dgColumnWidth[tRowColumnName]  of grp 
"rwMatrixObj_DataGrid" to 200
  set the dgColumnAlignment[tRowColumnName]  of grp 
"rwMatrixObj_DataGrid" to "left"
  set the dgColumnSortType[tRowColumnName]   of grp 
"rwMatrixObj_DataGrid" to "text"
  set the dgColumnIsEditable[tRowColumnName] of grp 
"rwMatrixObj_DataGrid" to false

  repeat with i=2 to the number of lines in tColumnNames
    put line i of tColumnNames into tColumnName
    set the dgColumnTooltip[tColumnName]    of grp 
"rwMatrixObj_DataGrid" to tColumnName
    set the dgColumnWidth[tColumnName]  of grp 
"rwMatrixObj_DataGrid" to 75
    set the dgColumnAlignment[tColumnName]  of grp 
"rwMatrixObj_DataGrid" to "right"
    set the dgColumnSortType[tColumnName]   of grp 
"rwMatrixObj_DataGrid" to "numeric"
    set the dgColumnSortDirection[tColumnName] of grp 
"rwMatrixObj_DataGrid" to "descending"
    set the dgColumnIsEditable[tColumnName] of grp 
"rwMatrixObj_DataGrid" to false

  end repeat

The first time this executes it takes just under 3 minutes for this size 
of data (254 columns). However, the second and each successive time in 
the same session it takes just under 30 minutes!


Any idea why it would take so long?

Thoughts on how to speed it up?

I realize that I could use: 'set the dgProp["column widths"] of grp  
to ' as a single set action vs a loop where 
I am using 'set the dgColumnWidth[tColumnName] of grp  to 
'.


However, there are only Datagid properties so set attributes for ALL 
columns for alignments, visibility, widths, and labels. Therefore, I 
have to use a loop anyway to set the tooltip, sorttype, sortdirection, 
end editability


The column names (in the variable tColumnNames) are file names. Some are 
long (longest is 113 characters) and some contain assorted punctuation. 
I wonder is the column NAMES should be somehting plain ASCII and short 
and the column LABELS contain the file names?


This is all in LiveCode 9.5.1 on Windows. Timing is approximately the 
same in a Standalone or the IDE.


Anyway, if anyone has a good idea of what is taking this 30 minutes, 
ideas would be very 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


Re: I need some DataGrid performance help

2020-05-06 Thread Paul Dupuis via use-livecode

On 5/6/2020 6:55 AM, Pi Digital via use-livecode wrote:

What handler do you have this code? From what you are saying it seems it’s 
deploying this formatting script every time it redraws which itself is very 
inefficient and unnecessary. It should only have to deal with the data itself 
ideally.


This code is called only when the data is changed such as columns added 
or removed or rows added or removed or both.


___
use-livecode mailing list
use-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: I need some DataGrid performance help

2020-05-06 Thread Paul Dupuis via use-livecode

On 5/6/2020 7:58 AM, zryip theSlug via use-livecode wrote:

After each call to a column property such as dgColumnWidth, the datagrid is
resized (header, column, rectangles, etc)


This I did not know. Thank you.


Instead of having them in the loop, prepare the column size, columns label,
etc and uses the table properties existing for setting all the values at
once. In this case the refresh of the datagrid is internally made only one
time.


This I did know. As I said in my initial message:

I realize that I could use: 'set the dgProp["column widths"] of grp  
to ' as a single set action vs a loop where 
I am using 'set the dgColumnWidth[tColumnName] of grp  to 
'.


However, there are only Datagid properties so set attributes for ALL 
columns for alignments, visibility, widths, and labels. Therefore, I 
have to use a loop anyway to set the tooltip, sorttype, sortdirection, 
end editability



SO, while I can change the code to set the column ALIGNMENTS and WIDTHS 
all at once, I am still stuck setting the TOOLTIP, SORTTYPE, 
SORTDIRECTION, and EDITABILITY column by column in a repeat loop. So 
what do I do about setting the TOOLTIPs? There is NO 'set the 
dgProp["column tooltips"] of grp  to '


Obviously, I can just TRY using LOCK MESSAGES (as Paul Hibbert 
suggested), but I am concerned that may cause more problems that it 
solves. Does anyone 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: I need some DataGrid performance help

2020-05-06 Thread Paul Dupuis via use-livecode

On 5/6/2020 1:53 PM, Mark Waddingham via use-livecode wrote:
In reality, 'lock messages' is a sledge-hammer and like a 
sledge-hammer it can cause fallout if not wielded carefully.




Slightly off topic, but I have run into time where I wish I could lock a 
specific message or set of messages. Something like:


Lock messages for "mouseUp,mouseDown"

Generally, like so many many things in LiveCode, you can code this with 
a flag in the handlers or a bunch of alternatives. However, I still find 
myself running into this now and then.


___
use-livecode mailing list
use-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: Re: I need some DataGrid performance help

2020-05-07 Thread Paul Dupuis via use-livecode
Reduced to a consistent 1.5 to 2 minutes by revising the setting of 
datagrid column properties


the columns themselves, widths, and alignments set all at one. Tooltips, 
sort type and sort direction set in a loop in revised code.


I still do not understand why in the original code, when 1st set in a 
session it took 3 min and on subsequent updates in the same session, it 
took 30 minutes. The datagrid must be slow erasing certain properties 
for updating.


Thank you to everyone who responded with advice.


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


Drawing a blank on simple code...

2020-05-19 Thread Paul Dupuis via use-livecode
I have a set of custom properties in stack "X", a lot of which begin 
with "options_"


I want to loop through them and get the values, so I have:

  local tDisplayList
  put the customKeys of stack "X" into tProperties
  filter lines of tProperties with "options_*"
  if tProperties is empty then exit to top

  repeat for each line tLine in tProperties
    put the customKeys[tLine] of stack "X" into tProp

    -- do stuff here
  end repeat


When I walk through this code in the debugger, I see that tProperties 
gets a list of the names of all custom properties in the "X" stack. YEA!


Then I see that that list correctly gets filtered to just those that 
begin with "options_" YEA!


Then I see the in the repeat loop the variable "tLine" get the name of 
each "options" property in succession. YEA!


PROBLEM: put the customKeys[tLine] of stack "X" into tProp DOES NOT 
fetch the value of the indicated property into tProp


I know this is simple - and I have coded it before - but I can seem to 
find my past code in prior projects and obviously am missing something.


___
use-livecode mailing list
use-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: Drawing a blank on simple code...

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

On 5/19/2020 6:46 PM, Phil Davis via use-livecode wrote:

You're almost there Paul!

On 5/19/20 2:18 PM, Paul Dupuis via use-livecode wrote:
I have a set of custom properties in stack "X", a lot of which begin 
with "options_"


So I assume these are members of a customPropertySet, whose name I'll 
call "myOptions".


Actually, the custom properties were NOT part of a customPropertySet, 
but were custom properties in the DEFAULT property set AND I apparently 
either never knew or had forgotten that you can not use array notation 
to set custom properties in the default property set since the default 
property set has no name. I could put the  customer properties array in 
an array variable and get the values that way, but to set them I had to 
construct a DO command. They all really should be moved to a custom 
property set (called "options" for example), but I don't have the time 
to change that much code.




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

2020-05-28 Thread Paul Dupuis via use-livecode

On 5/26/2020 6:56 PM, Dan Friedman via use-livecode wrote:

Has anyone done anything in regards to ADA compliancy in mobile apps built with 
LiveCode?   Using the apple or android accessibility tools such as Screen 
reading, for example.




I have been periodically looking at assistive technologies for LiveCode 
built applications on desktop platforms (vs mobile) over the years. 
Certain OS bases assistive tool like screen magnifiers do work as they 
are application independent. Unfortunately, screen readers and voice 
recognition tools generally don't work with LiveCode because the 
application independent tools look to act on OS native controls which 
most LC app don't use through out.


With LC 9 and the FFI/Widgets it may be possible to build integration 
libraries for one or more of those assistive tools that require 
application specific integration, but I don't think anyone has done it.


For mobile ADA compliance, you best bet is to test your app with 
whatever OS level assistive tools are provided with iOS and Android or 
look in the associated App store for application independent assistive 
app to test with your app.


If you mobile uses all native controls it *may* work better with OS or 
3rd party assistive tool, but that is a guess. I have no mobile app 
experience.



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


Unicode and languages

2020-06-05 Thread Paul Dupuis via use-livecode
In all the added stuff the LC7 and higher Unicode engine includes, is 
there any way to determine the LANGUAGE of a range of text?


USE-CASE

We have a tool that helps researchers transcribe text from digital 
media. It is used internationally. We have added spell checking using 
lclSpell form Live Code Labs, a LiveCode store add-on.


For lclSpell, we only have Dictionaries for a small set of languages. 
You can build you own Dictionaries for lclSpell, but we'll still only 
have Dictionaries for a small subset of the languages people transcribe 
in. We also have people who do BOTH transcription AND translations.


For example, transcribing a Chinese language media recording, typing in 
the Simplified or Traditional Chinese characters AND then translate it 
to English, typing the English translation after the transcription.


With lclSpell (or I suspect ANY LiveCode compatible spell checker) if 
you try to spell check a reasonably large chunk of text that is NOT in 
the same language as your Dictionary, it ties up LiveCode forever, or at 
least such a long time and most people would force-quit. It is after all 
marking every word as misspelled and trying to do whatever it does to 
determine  that.


Now, you can react, that the researcher should just KNOW better than to 
do Spell check a text in a language that is not their loaded Dictionary! 
However, people are people, and will do such things and expect software 
to protect them from their own mistakes. Also, with mixed transcription 
and translation, you do want to spell check the English part and skip 
the Chinese (if you do not have a Chinese Dictionary)


So, we're looking for a way to detect the LANGUAGE of a range of text, 
in a LiveCode field, to be able to then determine whether it matches the 
current (or any available) dictionary or not and act accordingly.


There is a "fontLanguage" function in LC, but that seem to predate 
Unicode Everywhere and seem pretty useless now.


For example. in a new stack, with a single scrolling field, we paste in 
a Chinese text and then execute:


put the fontLanguage of (the effective textfont of char 1 to -1 of fld 1)

and get "ansi". Even you you set the range (char 2 to 3) that is 
specifically Chinese (no white space), it still returns "ansi". The 
textFont returns empty and the effective textFont returns "Segue UI"


I don't even know if language exists in the IBM Unicode engine as some 
exportable property a future version of LiveCode could expose.


Any clever ideas or thoughts on this problem are 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


Re: Unicode and languages

2020-06-05 Thread Paul Dupuis via use-livecode

On 6/5/2020 1:46 PM, Mark Waddingham via use-livecode wrote:

On 2020-06-05 18:15, Paul Dupuis via use-livecode wrote:

I don't even know if language exists in the IBM Unicode engine as some
exportable property a future version of LiveCode could expose.

Any clever ideas or thoughts on this problem are welcome.


Unicode doesn't deal in languages but 'scripts' e.g. English and 
French are both written in the Latin script, whereas Ukrainian can be 
written in either the Latin or Cyrillic script.


LiveCode gives you access to the unicode properties of all codepoints 
(as held by ICU) via the 'codepointProperty(codepoint, property)' 
function.


e.g. codepointProperty("A", "Script") => "Latin"
 codepointProperty(numToCodepoint(0x03B1), "Script") => "Greek"

This might at least help to cut out trying to spellcheck things which 
are definitely not the languages you do have dictionaries for.


Warmest Regards,

Mark.



Thank you Mark!

That is a least a start as to minimizing the problem for our customers. 
We can make a table of Scripts to Dictionaries and at least prevent 
erroneous spell checking of Chinese with an English Dictionary!




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


Possible Catalina problem...

2020-06-08 Thread Paul Dupuis via use-livecode
We have run into a possible problem. Researchware makes two 
applications, HyperRESEARCH and HyperTRANSCRIBE. We have new forthcoming 
versions of both built on LiveCode 9.5.1.


These two applications are code signed and the DMG is code signed, 
notarized, and stapled for Catalina. They both work fine on testing on 
macOS ranging from Mavericks (10.9) to Mojave (10.14).


We also only have a single Catalina system to test on. On that single 
system, each application seems to work fine, but if we run them at the 
same time, the second app to launch throws a script error on startup - 
and it looks like it may be related to network actions on startup.


We have a TON more testing to do, but I wanted to ask if anyone have 
seen ANY Catalina specific problems running multiple LiveCode 
standalones at the same time?


Our hope is that this is a problem SPECIFIC to our single Catalina mac 
and not a LC Engine or tsNet Catalina specific bug of some sort. To know 
that some one else has run multiple LC 9 standalones at the same time on 
Catalina and seen no errors would be kind of encouraging right now.







___
use-livecode mailing list
use-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: Possible Catalina problem...

2020-06-08 Thread Paul Dupuis via use-livecode

Torsten,

Thank you. That is encouraging. I may take you up on your offer later to 
run a test on your Catalina Mac.


-- Paul

On 6/8/2020 11:10 AM, Torsten Holmer via use-livecode wrote:

Hi Paul,

I have started three LiveCode standalones on Catalina with no problems. But 
they are just standalones created frome the IDE with no signing etc.

If you like, I can test your apps on my MacBook with Catalina in order to check 
if the problems are replicable.

CU,
Torsten



Am 08.06.2020 um 16:55 schrieb Paul Dupuis via use-livecode 
:

We have run into a possible problem. Researchware makes two applications, 
HyperRESEARCH and HyperTRANSCRIBE. We have new forthcoming versions of both 
built on LiveCode 9.5.1.

These two applications are code signed and the DMG is code signed, notarized, 
and stapled for Catalina. They both work fine on testing on macOS ranging from 
Mavericks (10.9) to Mojave (10.14).

We also only have a single Catalina system to test on. On that single system, 
each application seems to work fine, but if we run them at the same time, the 
second app to launch throws a script error on startup - and it looks like it 
may be related to network actions on startup.

We have a TON more testing to do, but I wanted to ask if anyone have seen ANY 
Catalina specific problems running multiple LiveCode standalones at the same 
time?

Our hope is that this is a problem SPECIFIC to our single Catalina mac and not 
a LC Engine or tsNet Catalina specific bug of some sort. To know that some one 
else has run multiple LC 9 standalones at the same time on Catalina and seen no 
errors would be kind of encouraging right now.






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


Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-15 Thread Paul Dupuis via use-livecode

We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application 
(LiveCode standalone) is code-signed. It is then packaged in an 
installers (LiveCode standalone) and the installer is code signed. That 
is then placed in a DMG, which is code-signed, notarized, and stapled.


This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and 
installation, when the applications is first launched, Catalina does not 
ask for the permissions the Application needs. Instead certain handler 
throw an execution error. The handlers that produce the errors on 
startup when Catalina fails to ask for permissions have the following in 
common:


The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the 
home folder & "/Library/PreferencePanes/"

or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems 
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks 
and earlier teh temporaty folder was 
/Users//Library/Caches/TemporaryItems


After setting the defaultFolder, the code gets 'the files' or 'the 
folders' and fails (actually we've not pinned down whether it fails on 
set the defaultFolder OR on the call to 'the files/folders')


Going to Apple (menu) > System Preferences (menu item) > Security & 
Privacy (control) > Privacy (tab) and selecting Full Disk Access and 
adding our applications prevents these errors from occuring.


The issue is clearly with Catalina failing to detect and ask for the 
correct permissions. This is a known issue a number of developers have 
run into. See https://forums.developer.apple.com/thread/125438 as one 
example where an Apple support person admits that detecting what 
permissions a process is requesting that is tied back to your user 
visible app (something Apple calls 'responsibility tracking') is really 
hard.


For iOS and Android, you can specify entitlements or requested 
permissions in the Standalone Builder Settings. How do you do this for 
macOS Catalina?


Does anyone know if there is a way to specify entitlements for a macOS 
desktop app built in LiveCode? I have been googling and googling and can 
seem to find anything. I found one discussion on stackExchange that seem 
to imply that the PLIST file could be edited to specify entitlements. I 
have tried the Apple Developer site, but SO MUCH of it is orient towards 
people with lots of Apple Developer experience and focuses of C and 
SWIFT and Apple specific technologies I don't understand.


I can edit the XML in a PLIST file in the standalone bundle IF I only 
knew what to add?



___
use-livecode mailing list
use-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: Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-16 Thread Paul Dupuis via use-livecode

Hi Panos,

Thank you very much. The discussion in the bug entry answered  lot of my 
questions. I have one last thing I hope you or someone can point me two, 
which is a list of Apple macOS "entitlements"


From the bug entry I see:

com.apple.security.device.audio-input

com.apple.security.device.camera


I need to figure out the ones for email access, finder integration 
(drag/drop), internet access, and disk access.


We've seen Catalina ask the user for:

1. HyperRESEARCH requests access to the Internet (if Apple Firewall is
   turned on). - We assume this is because out app needs to check for
   new versions and updates and for license management.
2. HyperRESEARCH requests access to the "Finder". - We assume this is
   to receive AppleEvents (system messages) if a Study file is double
   clicked or dragged and dropped on HyperRESEARCH to open the Study.
3. HyperRESEARCH requests access to your "Contacts". We assume this is
   for access to send an email for an error report if an error occurs.
   Our App does not accessing any names or addresses.

I have tried Google for macOS or Catalina and entitlements but all I 
seem to be able to find is articles from the user's perspective, not 
developers information.





On 6/15/2020 12:21 PM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I guess you can sign the standalone mac app with entitlements, i.e. use a
file that will contain all the necessary entitlements, and include it in
the params passed to the codesign command. See this report for more details:

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

Kind regards,
Panos
--

On Mon, 15 Jun 2020 at 14:56, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application
(LiveCode standalone) is code-signed. It is then packaged in an
installers (LiveCode standalone) and the installer is code signed. That
is then placed in a DMG, which is code-signed, notarized, and stapled.

This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and
installation, when the applications is first launched, Catalina does not
ask for the permissions the Application needs. Instead certain handler
throw an execution error. The handlers that produce the errors on
startup when Catalina fails to ask for permissions have the following in
common:

The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the
home folder & "/Library/PreferencePanes/"
or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks
and earlier teh temporaty folder was
/Users//Library/Caches/TemporaryItems

After setting the defaultFolder, the code gets 'the files' or 'the
folders' and fails (actually we've not pinned down whether it fails on
set the defaultFolder OR on the call to 'the files/folders')

Going to Apple (menu) > System Preferences (menu item) > Security &
Privacy (control) > Privacy (tab) and selecting Full Disk Access and
adding our applications prevents these errors from occuring.

The issue is clearly with Catalina failing to detect and ask for the
correct permissions. This is a known issue a number of developers have
run into. See https://forums.developer.apple.com/thread/125438 as one
example where an Apple support person admits that detecting what
permissions a process is requesting that is tied back to your user
visible app (something Apple calls 'responsibility tracking') is really
hard.

For iOS and Android, you can specify entitlements or requested
permissions in the Standalone Builder Settings. How do you do this for
macOS Catalina?

Does anyone know if there is a way to specify entitlements for a macOS
desktop app built in LiveCode? I have been googling and googling and can
seem to find anything. I found one discussion on stackExchange that seem
to imply that the PLIST file could be edited to specify entitlements. I
have tried the Apple Developer site, but SO MUCH of it is orient towards
people with lots of Apple Developer experience and focuses of C and
SWIFT and Apple specific technologies I don't understand.

I can edit the XML in a PLIST file in the standalone bundle IF I only
knew what to add?


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

Re: Catalina Entitlements or Permissions (was Possible Catalina problem)

2020-06-17 Thread Paul Dupuis via use-livecode

Arghh!

So I am Googling and Googling and hunting around the Apple Developer 
site to try to find a comprehensive list of macOS entitlements so I can 
code sign my app with the the entitlements my app needs to not generate 
errors under Catalina.


I want to execute: codesign --verbose --deep --force --sign 
"" --entitlements 
 
with an entitlements.plist file with entitlemenst to grant my app 
certain disk access, internet access, email access, and finder integration.


Finally, I find this article that basically says Apple has no 
comprehensive list - their published developer documentation has not 
kept up with the additions they have been making in point release 
updates to macOS: 
https://eclecticlight.co/2019/02/26/entitlements-how-apps-get-back-what-theyve-given-up/


The lack of an up-to-date comprehensive entitlements list was apparently 
bad enough that a guy by the name of Jonathan Levin built a database to 
keep track of them since Apple couldn't (or wouldn't), so at least there 
is this hand database at http://newosxbook.com/ent.jl


Now, if only I could figure out from the database which ones I need to add.

Perhaps, it is time to switch to Mark Talluto's suggestion to use 
AppWrapper!



On 6/16/2020 6:28 PM, Paul Dupuis via use-livecode wrote:

Hi Panos,

Thank you very much. The discussion in the bug entry answered  lot of 
my questions. I have one last thing I hope you or someone can point me 
two, which is a list of Apple macOS "entitlements"


From the bug entry I see:

com.apple.security.device.audio-input

com.apple.security.device.camera


I need to figure out the ones for email access, finder integration 
(drag/drop), internet access, and disk access.


We've seen Catalina ask the user for:

1. HyperRESEARCH requests access to the Internet (if Apple Firewall is
   turned on). - We assume this is because out app needs to check for
   new versions and updates and for license management.
2. HyperRESEARCH requests access to the "Finder". - We assume this is
   to receive AppleEvents (system messages) if a Study file is double
   clicked or dragged and dropped on HyperRESEARCH to open the Study.
3. HyperRESEARCH requests access to your "Contacts". We assume this is
   for access to send an email for an error report if an error occurs.
   Our App does not accessing any names or addresses.

I have tried Google for macOS or Catalina and entitlements but all I 
seem to be able to find is articles from the user's perspective, not 
developers information.





On 6/15/2020 12:21 PM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I guess you can sign the standalone mac app with entitlements, i.e. 
use a

file that will contain all the necessary entitlements, and include it in
the params passed to the codesign command. See this report for more 
details:


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

Kind regards,
Panos
--

On Mon, 15 Jun 2020 at 14:56, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


We're having some macOS Catalina permissions/entitlements issues

We have applications that we deliver for Catalina where the application
(LiveCode standalone) is code-signed. It is then packaged in an
installers (LiveCode standalone) and the installer is code signed. That
is then placed in a DMG, which is code-signed, notarized, and stapled.

This has worked for us since October when Catalina was released.

It still works, except sometimes, after successful downloading and
installation, when the applications is first launched, Catalina does 
not

ask for the permissions the Application needs. Instead certain handler
throw an execution error. The handlers that produce the errors on
startup when Catalina fails to ask for permissions have the 
following in

common:

The set the defaultFolder to folders such as:

/Library/PreferencePanes
/Users//Library/Preferences -- this is using the code: the
home folder & "/Library/PreferencePanes/"
or
/private/var/folders/fj/0llnt4vs44vfzy4r97k_wngcgp/T/TemporaryItems
-- this is 'the temporary folder' on Mojave or Catalina. On Mavericks
and earlier teh temporaty folder was
/Users//Library/Caches/TemporaryItems

After setting the defaultFolder, the code gets 'the files' or 'the
folders' and fails (actually we've not pinned down whether it fails on
set the defaultFolder OR on the call to 'the files/folders')

Going to Apple (menu) > System Preferences (menu item) > Security &
Privacy (control) > Privacy (tab) and selecting Full Disk Access and
adding our applications prevents these errors from occuring.

The issue is clearly with Catalina failing to detect and ask for the
correct permissions. This is a known issue a number of developers have
run into. See https://forums.developer.apple.com/thread/125438 as one
example where an Apple support person admits tha

Re: Platform Divergence

2020-06-23 Thread Paul Dupuis via use-livecode
We make and sell a desktop application (Windows and macOS) for a niche 
research market. I expect when Apple does their migration to a common 
processor and OS, Apple Developer's will have to go through all of Apple 
hoops for all their platforms.Most of our customer don't care about UI 
widget animations. They want the app to do certain functions and do them 
well and quickly to work with their data. As long as the UI is 
effective, whether it conforms precisely to Microsoft or Apple UI 
guidelines is secondary. So, even if you only care about desktops, your 
app will have to be sold through Apple's single App Store, conform to 
all screen sizes on all their devices, and follow all their UI 
guidelines, etc.


At that point, given that Windows is 2/3rd of our market and macOS 
1/3rd, we'll drop support for macOS sadly. I say sadly because our 
application originated way back in the late 1980 as a HyperCard App for 
MacOS.


But, to your point, your concern IS valid for those people wanting Apps 
from you that they insist MUST conform to all of Apple's esoteric 
requirements. It is likely it will become increasingly harder for the 
LiveCode ideal of develop once and deploy everywhere.



On 6/23/2020 2:56 PM, Jim Lambert via use-livecode wrote:

This year’s WWDC shows Apple is moving to a unified ‘system' for all their 
products: Mac, iPhone, iPad, Apple Watch, AppleTV.
The Apple development environment promises to produce a single app capable of 
running on all, or almost all, of Apple devices. This unification promises to 
be quite convenient for Apple developers.

In contrast, over the last decade or so there has been an ever increasing 
divergence in UX between major operating systems: Apple, Windows, Linux, 
Android. The days when systems were so similar that you could rely on the 
commonality of a handful of UI elements across platforms seems over to me. 
That’s troubling because such commonality is fundamental to LiveCode’s approach 
- write once, run everywhere.

In watching WWDC sessions it’s pretty clear that even simple UI elements have 
become more like UX elements having intrinsic and complex properties, such as 
certain visual and behavioral animations. Users readily learn to expect these 
behaviors. Yet such things are increasing difficult to fake with LiveCode’s 
basic palette of objects.

Enter LiveCode Builder and LC Widgets. They offer the promise of 
platform-specific UI elements - a promise fulfilled with some simple elements 
like iOS Native Button or Android Native Field. But I’m concerned that as 
platforms diverge in the interface experiences they present to users, that LC 
and LC developers will have difficulty satisfying users' divergent expectations.

Is my concern valid?

Jim Lambert


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



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


Mora Catalina permissions woes....

2020-06-29 Thread Paul Dupuis via use-livecode

List Folks: A head up of a Catalina issue:

If your code signed Standalone is trying to access stacks that are 
OUTSIDE the app bundle under Catalina, sometimes Catalina will not 
properly detect your apps need for access. You will not get an "App 
wants access to blah blah: Allow or Deny" dialogs and you app will throw 
a script error (if you have assumed successful access and not coded for 
errors)


In our case, we have the App (bundle) and a folder of stacks that sits 
next to it, both in a containing folder that is what is installed where 
the user installs it. So


FOLDER: OurAppFolder
> OurApp.app
>FOLDER: OurStacks
>> Some library stacks

We construct a full path to each library stack in "OurStacks" in a 
variable called tLibrary and when we execute

if there is a file tLibrary then
  start using tLibrary
end if
for the 1st library, we get a script error on the start using statement. 
The test for existence does return true.


start: can't find object

If you go to Apple (menu) > System Preferences (menu item) > Security & 
Privacy (panel) > Privacy (tab) > Full Disk Access and grant 
"OurApp.app" access, then subsequent launches work flawlessly.


This is clearly a Catalina entitlements/permissions issue.

We have distilled a test stack and have seen the error occur multiple 
times. The problem is we have not found a recipe that reproduces the 
error 100% reliably.


I have seen discussions that suggest Apple has provided NO entitlement 
you can code sign your app with to allow full disk access. They see 
individual folder access (like Documents, Desktop, etc.) and Full Disk 
Access (which subsumes all individual folder access) as being only 
grantable by the user.


QUESTIONS:

1) Any one else run into any situations where Catalina is failing to 
detect and ask for ANY given entitlement?


2) Any one else run into failures in detecting and asking for disk 
access entitlements?


3) If you have this problem, do you you tell customers to grant the app 
full disk access before running it? If so, how do you phrase that in a 
way that makes them comfortable and works?


4) Does anyone know of an entitlement for macOS Catalina that allows 
full disk access? Or even access to say the Applications folder?



P.S. If we can produce a recipe that is reliable, we will file a bug 
report on this. At the very least, LC may want to update "start using" 
to return an error code so you don't have to trap it with a try...end 
try block.





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

2020-06-30 Thread Paul Dupuis via use-livecode

On 6/30/2020 5:18 AM, Richmond via use-livecode wrote:
Why does fontLanguage return ANSI for English language fonts instead 
of romething like 'Roman'?


There is a fundamental mismatch between 'ANSI' and Unicode.

Richmond.

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

http://lists.runrev.com/mailman/listinfo/use-livecode


I asked a similar question back on June 5th under the subject "Unicode 
and languages" and Mark Waddingham provided the following answer 
(essentially the fontLanguages function no longer applies)


--
Unicode doesn't deal in languages but 'scripts' e.g. English and French 
are both written in the Latin script, whereas Ukrainian can be written 
in either the Latin or Cyrillic script.


LiveCode gives you access to the unicode properties of all codepoints 
(as held by ICU) via the 'codepointProperty(codepoint, property)' function.


e.g. codepointProperty("A", "Script") => "Latin"
 codepointProperty(numToCodepoint(0x03B1), "Script") => "Greek"

This might at least help to cut out trying to spellcheck things which 
are definitely not the languages you do have dictionaries for.

--

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


Building a Windows standalone without tsNet?

2020-08-12 Thread Paul Dupuis via use-livecode
I have a very simple stack that I want to build a Windows standalone for 
(.exe). I do not use any internet/networking related commands or 
functions in my scripts


The standalone builder for LC9.6.0 insists on including the "Externals" 
folder with tsNet dll in it.


Can some one remind me how I tell the LC not to include tsNet? I knew it 
once, have forgotten, and can't find in anywhere in any documentation.


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: Building a Windows standalone without tsNet?

2020-08-12 Thread Paul Dupuis via use-livecode

On 8/12/2020 11:59 AM, Ralph DiMola via use-livecode wrote:

Paul,

Disable:
dispatch "revunloadlibrary" to stack tsnetliburl


If I execute this in the message box in the IDE does that then prevent 
the Standalone builder from including it? Or do I need to execute this 
in the startup of the Standalone itself?





Enable:
dispatch "revloadlibrary" to stack tsnetliburl

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Paul Dupuis via use-livecode
Sent: Wednesday, August 12, 2020 11:40 AM
To: How to use LiveCode
Cc: Paul Dupuis
Subject: Building a Windows standalone without tsNet?

I have a very simple stack that I want to build a Windows standalone for
(.exe). I do not use any internet/networking related commands or functions
in my scripts

The standalone builder for LC9.6.0 insists on including the "Externals"
folder with tsNet dll in it.

Can some one remind me how I tell the LC not to include tsNet? I knew it
once, have forgotten, and can't find in anywhere in any documentation.

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


___
use-livecode mailing list
use-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: Building a Windows standalone without tsNet?

2020-08-12 Thread Paul Dupuis via use-livecode

Thank you Matthias and Ralph.

In general, I am more of a Windows person than a macOS person, but one 
thing I really wish Windows would adopt is .exe folder, like macOS .app 
folders so that things like the Externals folder and anything else the 
app needed could app "appear" to be inside the .EXE



On 8/12/2020 1:21 PM, matthias rebbe via use-livecode wrote:

As Ralph wrote,

execute this in message box

dispatch "revunloadlibrary" to stack tsnetliburl

and then build your standalone.


-
Matthias Rebbe
Life Is Too Short For Boring Code


Am 12.08.2020 um 17:59 schrieb Ralph DiMola via use-livecode 
:

Paul,

Disable:
dispatch "revunloadlibrary" to stack tsnetliburl

Enable:
dispatch "revloadlibrary" to stack tsnetliburl

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Paul Dupuis via use-livecode
Sent: Wednesday, August 12, 2020 11:40 AM
To: How to use LiveCode
Cc: Paul Dupuis
Subject: Building a Windows standalone without tsNet?

I have a very simple stack that I want to build a Windows standalone for
(.exe). I do not use any internet/networking related commands or functions
in my scripts

The standalone builder for LC9.6.0 insists on including the "Externals"
folder with tsNet dll in it.

Can some one remind me how I tell the LC not to include tsNet? I knew it
once, have forgotten, and can't find in anywhere in any documentation.

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


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


More Standalone Building Weirdness...

2020-08-12 Thread Paul Dupuis via use-livecode
I have a stack that when I build into a Windows Standalone (only 
Windows) in LC 9.6.0 under Windows, the dialog that says "Attaching 
Engine..." never finishes.


The Standalone gets built and runs properly, but the "Attaching 
engine..." dialog in the building process never finishes (waiting over 
an hour for a tiny stack) and I have to bring up teh Task Manager and 
force the LiveCode app to exit.


Anyone seen anything like this? Have any idea what causes it?

Since the app does get built and runs fine, and I am under a deadline, I 
don't really have time to troubleshoot it. It is easier to just force LC 
to exit, but if someone has seen this and knows the cause, please let me 
know.


Thanks 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: More Standalone Building Weirdness...

2020-08-14 Thread Paul Dupuis via use-livecode
The stack where building a Windows Standalone just stays on "Attaching 
Engine..." forever had no 'closeStack' handlers at all.


I added the following:

on closeStack
   -build close issue--
   if the environment is "development" and \
 there is a stack "revStandaloneProgress" and \
 the mode of stack "revStandaloneProgress" > 0 then
  exit closeStack
   end if
   ---
   pass closeStack
end closeStack

An there was no change in behavior. Under LC960 (I have not tried other 
versions), it builds the standalone, but then just remains on "Attaching 
engine..." and I have to force LC to exit.


If no one else has seen anything like this, then it is probably 
something about the stack. I don't have problems building other 
standalones in LC960.



On 8/13/2020 1:06 PM, JeeJeeStudio via use-livecode wrote:

Put this in every stack you build, and i mean the "build close issue" part
in the on closeStack Handler

It was in one of the release notes.

Maybe that is holding your build to complete



on shutdownRequest
answer question "Are you sure you want to stop?" with "Y" or "N"
if it is "Y" then
   pass shutdownRequest
end if
end shutdownRequest

on closeStack
-build close issue--
if the environment is "development" and \
  there is a stack "revStandaloneProgress" and \
  the mode of stack "revStandaloneProgress" > 0 then
   exit closeStack
end if
---
lock messages
quit --triggers shutdownrequestmessage, if not handled then it hangs
pass closeStack
end closeStack

Op wo 12 aug. 2020 om 20:32 schreef Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com>:


I have a stack that when I build into a Windows Standalone (only
Windows) in LC 9.6.0 under Windows, the dialog that says "Attaching
Engine..." never finishes.

The Standalone gets built and runs properly, but the "Attaching
engine..." dialog in the building process never finishes (waiting over
an hour for a tiny stack) and I have to bring up teh Task Manager and
force the LiveCode app to exit.

Anyone seen anything like this? Have any idea what causes it?

Since the app does get built and runs fine, and I am under a deadline, I
don't really have time to troubleshoot it. It is easier to just force LC
to exit, but if someone has seen this and knows the cause, please let me
know.

Thanks 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


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


Old stack will not save or save as...

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

I have a really old stack (the file ends in .mc for Metacard)

When I open it in LiveCode, the save and save as are disabled in the 
File menu. This us under Windows and the same in LC 4.6.4, LC 6.7.11 and 
in LC 9.6.0, the Save and Save As are enabled, but when I select the 
stack and try to Save As... it thinks it is saving "revRefactor" not my 
stack.


My stack opens and I can see and edit UI objects, properties and 
scripts. I just don't seem to be able to save it.


Just changing the extension to .rev or .livecode makes the stack 
unreadable in LC464, but it will still open in LC960, but still can save 
or save as (File menu items greyed out)


Anyone seen this? Know what to do?


___
use-livecode mailing list
use-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: Old stack will not save or save as...

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

On 8/19/2020 12:02 PM, Bob Sneidar via use-livecode wrote:

Just a shot in the dark, suppress messages before opening?




Good guess, but no winner. However, your suggestion did put me on to the 
answer.


The stack was set to "modeless". If I execute in the message box

save stack "XYZ" as "C:/Users/MyUser/Desktop/XYZ.livecode" -- no lock. 
No error, but no save.


However, after I execute in the message box:

topLevel "XYZ" -- everything now works. The File save and save as menus 
items as enable and behave correctly.


Why I can't save or save as a modeless stack in IDE is a mystery to me.

It is also a mystery to me how Bob suggesting "suppress messages" led my 
brain to look at a stacks Modality, but it did, so thank you Bob!



___
use-livecode mailing list
use-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: Playing movies in LC_ Docs??

2020-08-20 Thread Paul Dupuis via use-livecode
Yes, there is a lot of information that circulates on the forums or 
lists or in people's head that probably should be in the LC documentation


In the LC9.x.x series, the Player supports any audio or video formats 
supported by Apple Video Foundation (AVF) on macOS - google the apple 
developer docs for AVF formats supported by macOS version. The Player 
supports any audio of video formats supported by DirectShow on Windows. 
Google DirectShow formats supported to find those.


NOTE while there is over lap, there are also formats supported only on 
one platform or the other.


Also, unfortunately, if you are planning on doing anything more complex 
that placing a video in a player and letting the user play it, you 
should search the LiveCode quality center for player bugs - there are 
many dozens. Some minor, some more serious.




On 8/20/2020 6:15 PM, William Prothero via use-livecode wrote:

Folks:
I’m building an app that needs to play movies. It’s a desktop app that I need 
to work on Mac and Windows. But, when looking at the dictionary and the 
lessons, all I get is references to Quicktime and the dictionary is hopelessly 
uninformative about what formats are required.

I haven’t done this in a while. But, when I searched my emails from the users 
list, the most recent reference I have is 2016. What the heck? The dictionary 
entries are ancient and the lesson is totally useless. Sorry if I’m being 
critical about this, but “what the heck is up with movie players??”. Have I 
missed something? I really hope so.

Best,
Bill

William A. Prothero
https://earthlearningsolutions.org


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



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


formattedRect, formattedLeft, formattedWidth of chunks

2020-09-01 Thread Paul Dupuis via use-livecode
Just a heads up to anyone else out there who may be having VERY hard to 
track down crashes in LC 9.x.x.


The following functions: formattedRect, formattedLeft, formattedWidth 
when operating on chunk expressions (i.e. char X to Y of field Z) can 
cause an engine crash for certain field content.


This is present in all versions of LC 9.x.x (actual back to some version 
of LC8)


The issue is when the chuck contains tab characters.

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

FYI: formattedTop and formattedHeight of chunks still 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: formattedRect, formattedLeft, formattedWidth of chunks

2020-09-01 Thread Paul Dupuis via use-livecode
If you control the content, it is probably not an issue. In our case, 
the content and the ranges (char x to y) are set by the people that use 
our product - we have no control - so we end up with customer's trying 
to do their research and suddenly our product hard crashes, sometimes 
resulting in lost work. They don't understand why since bunches of other 
documents they are working with all process fine. Even the document that 
is causing the crash may seem fine UNTIL they add a bookmarked range 
that includes the tabs. As tabs are invisible in MS-Word and a lot of 
MS-Word user are not really skilled at formatting, they may end up with 
tabs in their documents that they are not even aware they are there.


This one really was a pain to track down as we had to get a customer, 
with the crashing, who was willing to provide their whole research study 
so we could reproducethe error in-house and then tracing it down in the 
IDE took a very long time to go through the 1000's of lines of code to 
find the crash on the 'formattedRect' call.



On 9/1/2020 5:49 PM, Bob Sneidar via use-livecode wrote:

I have a great many of these. I’ll keep a lookout.

Bob S


On Sep 1, 2020, at 6:25 AM, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

formattedWidth

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



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


Re: text manipulation with Chinese characters (unicode): guide?

2020-09-09 Thread Paul Dupuis via use-livecode
As mentions, Unicode in a field just works (there is a known issue with 
Thai word breaks and another with printing Hindi)


If you want to get Chinese (traditional or simplified) into a field, you 
can:


1)  get the text from a Utf8 ot utf16 text file and textDecode it i.e 
put url ("file:"&filepath) into tContent; put 
textDecode(tContent,"utf8") into fld "someField"
2) get the text from an RTF file, like the above, but set the rtfText of 
the field to the imported rtf data
3) use a 3rd party library, like Wordlib (see the livecode store) to 
read Microsoft Word .docx or Open Office .odt files



On 9/8/2020 11:55 PM, Eric A. Engle via use-livecode wrote:

Hi!

I would like to be able to copy and paste into fields and scripts Chinese 
characters, which are of course unicode and then manipulate the resulting 
strings.

Is this possible in livecode? How? Are there any good Recent guides to working 
with unicode 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



___
use-livecode mailing list
use-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: sudo apt-get install livecode

2020-09-14 Thread Paul Dupuis via use-livecode

On 9/13/2020 10:39 PM, Eric A. Engle via use-livecode wrote:

  I just get tired of downloading the silly installer app etc. why isn't it in 
a repo?

any way i will google it but if there is a terminal command line interface set 
of commands which will gksudo aptitude livecode OR SIMILAR please tell me


It probably isn't in a 'repo' because I, like probably a number of other 
people on this list who use LiveCode a lot, have no idea what 'gksudo 
aptitude livecode' is other than probably some Linux commands.


I'd much rather download and run the installer than need to learn some 
more esoteric commands to install the software.


___
use-livecode mailing list
use-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 do we set layers for groups

2020-09-17 Thread Paul Dupuis via use-livecode

see the 'relayer' command in the dictionary


On 9/17/2020 2:34 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

if the layer of fld "checkHtml" > 3 then
   set the layer of fld "checkHtml" to 3
else
   set the layer of fld "checkHtml" to 20 
end if

# do not work.

stack "SlideShowSetUp": execution error at line 107 (Object: can't set layer 
(card not open, or control in group)), char 1

??

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



___
use-livecode mailing list
use-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 get htmltext from the field to display in another field

2020-09-17 Thread Paul Dupuis via use-livecode

OR

set the text of fld "Dest" to the htmText of fld "Src"


IF you want to see what the htmlText (i.e. the tags) of fld 
"Src"actually is.



On 9/17/2020 3:31 PM, Ralph DiMola via use-livecode wrote:

BR,

set the htmltext of fld "Dest" to the htmlText of fld "Src"

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Sannyasin Brahmanathaswami via use-livecode
Sent: Thursday, September 17, 2020 3:14 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: HOw to get htmltext from the field to display in another field

--set the htmltext of fld "mainText" into fld "checkHTML"

put text of fld "mainText" into  fld "checkHTML"


??

___
use-livecode mailing list
use-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: Converting from unicode to ASCII

2020-09-22 Thread Paul Dupuis via use-livecode

On 9/22/2020 6:58 PM, Devin Asay via use-livecode wrote:

But it that doesn’t help, and if nobody ever sees the filenames, why not just 
loop through the string and delete anything that’s not in ASCII range?


Well, if the name is in Chinese,  you would delete the entire name.

___
use-livecode mailing list
use-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: Converting from unicode to ASCII

2020-09-23 Thread Paul Dupuis via use-livecode

On 9/22/2020 6:48 PM, J. Landman Gay via use-livecode wrote:
I have a stack with an index. When a user clicks a line, a handler 
uses the clicktext to create a file name which is always the clicktext 
plus the ".livecode" extension. The stack is then downloaded from an 
AWS server and displayed.


We are now translating some stacks to other languages which require 
unicode text. AWS recommends not using accented characters in file 
names, so we need to translate the clicktext into plain ASCII.


Is there a good way to do that without using a lookup table or 
metadata? The file names doesn't need to make sense syntactically. For 
example,


   l’Académie française -> lAcademiefrancaise.livecode

...or similar, whatever works. The user will never see the file name.



You should probably use the same model as LiveCOde uses to match files 
names returned from the files("detailed-utf8") function:


urlEncode(textEncode(normalizeText(,"NFC"),"utf8"))

Converts:
Russian-русский-Lipsum.docx

To:
Russian-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9-Lipsum.docx

For what your doing, I think that using:

urlEncode(textEncode(,"utf8")) -> gets 

and

textDecode(urlDecode(),"utf8") -> gets 

should be enough.


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


Accessing files on a local network file server - BEST PRACTICE?

2020-09-24 Thread Paul Dupuis via use-livecode
This question may have an obvious answer, but I am brain dead today, so 
here goes:


I have a app installed with some customers in a Windows network 
environment. They have all their laptops set so that their Home 
directories are on a local network server.


So, where as on a local laptop, specialFolderPath("documents") might 
return "C:/Users//Documents" as the path, for them 
specialFolderPath("documents") returns something like 
"//s1.somedomain.com/mountPoint//Documents"


We save a number of folders and files in the user's Documents folder. In 
some cases, if the file is not present (i.e. if there is a file tFile is 
false) we regenerate the file from a default.


Sometime, the server is offline or the user is disconnected from the 
network.


What is a good way to differentiate between:

1) one of these files is not present so must be regenerated, i.e

if there is not a file (specialFolderPath("documents")&slash&tFilename) then
  -- regenerate the file tFile at location specialFolderPath("documents")

Versus

2) The Server (//s1.somedomain.com/ is disconnected to down?

So that in case (1) , we regenerate the file and in case (2) we present 
a warning that the server is disconnected or down?


Mu gut says this should be simple, but I just can not wrap my brain 
around it 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: Accessing files on a local network file server - BEST PRACTICE?

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

On 9/25/2020 2:42 PM, J. Landman Gay via use-livecode wrote:
I know very little about Windows network addresses, but from the 
example you gave, I'd check to see if (slash-delimited) item 1 of the 
path is a single letter followed by a colon.




Thanks for thought.

In a Windows server environment (i.e many corporation, government 
agencies, etc.), computer are often set so tat their specific "User" 
directories (Documents, Desktop, "Home", etc.) at on a server rather 
than local disk. So a path to a file called "somefile.txt" is a user's 
Documents folder looks like:


//s1.somedomain.com/mountPoint//Documents/somefile.txt

The question is, if you execute the line of  LiveCode script:

if there is a file 
"//s1.somedomain.com/mountPoint//Documents/somefile.txt" then

  -- true
else
  -- false
end if

In the "true" case, the file is there, which means the server and 
network are both accessible. Yea! proceed with whatever.


In the "false" case, you do not know whether the FILE is missing OR the 
NETWORK is disconnected or the SERVER is down.


It is in the "false" case that I am looking for approaches (if there are 
any) to tell the difference between

1) the file is missing
and
2) the network or server is down.

Bernard has a suggestion of keeping an invisible file. Being hidden, it 
is unlike that it could be removed by intent or accident and so, if the 
file I am looking for "somefile.txt" does not exists, I could test for 
the hidden file. If that exists, I know my file is missing and the 
server and network are still up. If the hidden file also does not 
exists, the server or network is "probably" down.


I could probably improve on Bernard's suggestion by testing for:

if there is a folder "//s1.somedomain.com/mountPoint/" then
  -- the server is up
else
  -- the server or network is down OR or the user has been fired and 
their account delete!

end if

I was hoping someone out there had actually dealt with LiveCode working 
with files on a Windows network server and have a definite approach. 
Maybe testing for the user's folder is the definitive way OR the 
mountPoint folder may be even better?


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


Re: Accessing files on a local network file server - BEST PRACTICE?

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

Thanks Bob,

Yes, the error messages you get on a failed file open are pretty generic.

I am thinking that whether Mac or Win, the key is to check for whether 
there is a folder:


/volumes/mountpoint/ (osx)
or
//server/mountpoint/ (win)

For a given path tPath, I can tell if it is a windows server bu looking 
at the 1st two characters of tPath and if they are // then I can try t 
pull off //server/mountpoint and test for a folder by that name exists.


However, on OSX,

/volumes/mountpoint/ looks just like any local path.


On 9/25/2020 6:12 PM, Bob Sneidar via use-livecode wrote:

QUALIFIER: this is in Livecode on a Mac. Mac mount points work differently than 
Windows. However using the form /volumes/mountpoint/folderpath/filename I get 
the simple error “Can’t open that file.” No detail about WHY I cannot open it. 
I can see how it would be helpful if the result contained “path not 
accessible”, “write access denied”, “file already exists” etc.

Bob S


On Sep 25, 2020, at 2:28 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

OK using your convention I cannot even open a file with the server mounted and 
an actual file that DOES exist! (//servername/mountpoint/pathtofile/filename)

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: Accessing files on a local network file server - BEST PRACTICE?

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

Well, at least you have a server to test it on. Thank you.

I am trying to resurrect a Windows 2003 Server VM and a Windows 7 VM 
configured to have it's home directory on the server. I just got both to 
run (finally) yesterday and just (at the end of teh day today) figured 
out what the admin password was to the 2003 server.


Maybe by sometime next week, I'll be able to test some code.


On 9/25/2020 7:26 PM, Bob Sneidar via use-livecode wrote:

After a little experimenting it appears that open file does not create a new 
file on OS X mount points! I can open a file that already exists but it will 
not create a new file. You learn something new every day!

Bob S



On Sep 25, 2020, at 4:21 PM, Bob Sneidar via use-livecode 
 wrote:

Hmmm. Neither does open file for read…

Bob S



On Sep 25, 2020, at 4:20 PM, Bob Sneidar  wrote:

Even worse, if the mount point is mounted it does not create the file.

Bob S



On Sep 25, 2020, at 4:18 PM, Bob Sneidar via use-livecode 
 wrote:

Unfortunately, if it fails no error is generated, and nothing is in the result 
or the it variable.

Bob SW


On Sep 25, 2020, at 3:56 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On my Mac this form works to a Win 10 smb share

put url ("file://volumes/shareName/folder/sub-folder/file.ext")

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

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

___
use-livecode mailing list
use-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 delete cards but card 1

2020-09-28 Thread Paul Dupuis via use-livecode

repeat with i = the number of cards down to 2
  delete card i
end repeat

On 9/28/2020 9:02 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

repeat forever
   go last card
   delete this card
end repeat

I have tried everything in the manual

??
BR

___
use-livecode mailing list
use-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: Problem an Repeat Loop

2020-09-28 Thread Paul Dupuis via use-livecode

On 9/28/2020 8:42 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

  repeat with x = 2 to sTotalSceneCount

put line x of sImageList into tPath
go to card x
 set the filename of sStoryImage to tPath
 set the itemDelimiter to “|”
put item x of sQuoteList into fld “mainText”
  end repeat


something like this? It might be easier to help if you explained what 
you are trying to do. Have all the cards in this stack been created 
already? i.e. do you have sTotalSceneCount cards? Does each card contain 
a field called "mainText" and an image called "slideImage"?


set the itemDelimiter to “|”
repeat with x = 2 to sTotalSceneCount
   set the filename of img "slideImage" of card x to line x of sImageList
   set the text of fld "mainText" of card x to item x of of sQuoteList
end repeat


___
use-livecode mailing list
use-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: Canvas Limited to 32767

2020-10-06 Thread Paul Dupuis via use-livecode
You would think with 32K px at 72px/inch being like 450 inches that the 
32K limit would not be an issue, but I have run into it as well


I have written a custom graph (like a bar graph for example sake) that 
is generally fine with most customer data. However, on one customer data 
set it started blowing up. It turns out that one of the bars was "huge" 
(an the order of 400k px) at the zoom level where they could see the 
details in the remaining bars. So, in this case the researchers wanted 
to "zoom" in on noise in a larger data set, causing that larger data to 
become huge in a graph.


And yes, you can code in bounds limits and attaching labels to indicate 
a bar is out of bound or exceeds display area, etc., but I do agree that 
for a number of applications having a large drawing area would be a big 
improvement.



On 10/6/2020 2:28 PM, Ralph DiMola via use-livecode wrote:

Desktop and mobile. It's a scrolling group with many sub-groups each with 1
or more fields. Sometimes the height of the main group > 32767.

It's the result of a proximity search and in dense areas users are getting
hosed by this limit. Customer is screaming (but don't they always).

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Richard Gaskin via use-livecode
Sent: Tuesday, October 06, 2020 2:01 PM
To: use-livecode@lists.runrev.com
Cc: Richard Gaskin
Subject: Re: Canvas Limited to 32767

Ralph DiMola wrote:

  > I just ran head first into this. Could someone explain why other than  >
moving from an int16 to an int32 this is such a challenge? This should  >
have been addressed during the refactoring of the engine.

Is this for the weird recommended mobile workaround of putting a text field
into a group just to have it scroll, or something else?

--
   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: formattedwidth/height does not work with some fonts

2020-10-07 Thread Paul Dupuis via use-livecode
It is different symptoms from this bug 
(https://quality.livecode.com/show_bug.cgi?id=22882) but it could be 
related in the code?


I recommend filing a bug report and I will be happy to add a note 
connecting the two bugs. The more issues found surrounding "the 
formattedWhatever" functions, the more likely we may see action at 
fixing them sooner rather than later.



On 10/7/2020 10:03 AM, Klaus major-k via use-livecode wrote:

Hi all,

looks like formattedheight/formattedwidth does not work with some fonts!?

See screenshot, I even added a little generous offset to make sure the text 
does not
get cut off, but e.g. "Damascus Light" (and others) do not respect formattedXXX?


Any hints and workarounds very welcome!


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread Paul Dupuis via use-livecode
Window 10 has a snap to feature on by default that will try to snap any 
window of any application to the edges and resize it to have the screen 
(or perhaps other options) if the windows is being dragged and the mouse 
moves close to a screen edge. I have not explored the feature fully, so 
I am not sure of the details.




On 10/9/2020 9:48 AM, David Bovill via use-livecode wrote:

I’m getting pretty curious about this bug :)

Testing  mouse clicks- and not stacks jumping position when moving their 
location - I find that a stack that is successfully moved between the four 
quadrants of the screen - accepts mouse clicks accurately in the bottom-left, 
top-right and bottom right quadrants - but in the top-eft quadrant the 
mouse-click interactions are offset vertically in a way that is compatible with 
the stack jump. So if you manage to locate the. Stack without it jumping - in 
the top-left quadrant the mouse clicks are off.

Monitor settings are set for default value of the MacBook Pro display. I think 
I’ll make a short video of this behaviour.
On 9 Oct 2020, 14:35 +0100, David Bovill , wrote:

Also tested on Livecode 8.1.5 with same results.
On 9 Oct 2020, 14:00 +0100, David Bovill , wrote:

Windows intermittently jump to a location on the screen when I move windows. 
It’s got too annoying to ignore.

• Is anyone else having this problem?

I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing this without 
any of my own code such just was IDE stacks. This I “think” is quite a long 
standing bug that I suspect is related to the global coordinate system as I 
have been working around this for quite a while now.


Detail
The location of the jump seems to be the same horizontal x location. But with 
the vertical value being reset to the halfway point.

I am testing by. Simply moving the message box. It is intermittent - so 
occurring about once every 5 moves, and strangely is happening only when the 
top left of the stack window is within the top left quadrant of the screen. 
Using. The following code int eh message box I find the top of the message box 
stack is always 492 after a jump (see below). This appears to be related to 
half the screen less the decorations like menu?

> > put the screenrect & CR & the rect of stack” Message box"
> >
> > 0,0,1680,1050
> > 215,492,634,640

As a further indication that the problem is due to the IDE, I find that 
creating a test stack (no scripts or controls) exhibits the same behaviour - 
but this behaviour can be suppressed by choosing “Suppress Messages” from the 
“Development” menu. This suppression has no effect on the message box or other 
IDE windows which still jump intermittently.

The problem is most intense when working with multiple screens. For at least a 
couple of years stacks I create and place on second or third monitors receive 
mouse clicks in the wrong location. This happens on different machines, and 
different. Monitor setups. Only tested on Macs.

I am currently creating a multiscreen app - so taking the tracking down. Of 
this bug more seriously. The current tests are one on my laptop without 
external monitors, and having restarted the computer (several times). 
Applications other than Livecode don’t suffer this problem.

How should I report this bug - should I submit a video / screen recording?


___
use-livecode mailing list
use-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: Bug: jumping stack windows (when supress messages is off)

2020-10-09 Thread Paul Dupuis via use-livecode

Sorry,

When I read you posts and saw "windows" I thought you were talking about 
this happening on Microsoft Windows.


I have seen something similar on macOS, but only when you have dual 
monitors and the second monitor has it's top positioned higher than the 
primary monitor.







On 10/9/2020 10:23 AM, Paul Dupuis via use-livecode wrote:
Window 10 has a snap to feature on by default that will try to snap 
any window of any application to the edges and resize it to have the 
screen (or perhaps other options) if the windows is being dragged and 
the mouse moves close to a screen edge. I have not explored the 
feature fully, so I am not sure of the details.




On 10/9/2020 9:48 AM, David Bovill via use-livecode wrote:

I’m getting pretty curious about this bug :)

Testing  mouse clicks- and not stacks jumping position when moving 
their location - I find that a stack that is successfully moved 
between the four quadrants of the screen - accepts mouse clicks 
accurately in the bottom-left, top-right and bottom right quadrants - 
but in the top-eft quadrant the mouse-click interactions are offset 
vertically in a way that is compatible with the stack jump. So if you 
manage to locate the. Stack without it jumping - in the top-left 
quadrant the mouse clicks are off.


Monitor settings are set for default value of the MacBook Pro 
display. I think I’ll make a short video of this behaviour.
On 9 Oct 2020, 14:35 +0100, David Bovill , 
wrote:

Also tested on Livecode 8.1.5 with same results.
On 9 Oct 2020, 14:00 +0100, David Bovill , 
wrote:
Windows intermittently jump to a location on the screen when I move 
windows. It’s got too annoying to ignore.


• Is anyone else having this problem?

I am testing this on Mojave and Livecode 9.6.1 rc2. I am testing 
this without any of my own code such just was IDE stacks. This I 
“think” is quite a long standing bug that I suspect is related to 
the global coordinate system as I have been working around this for 
quite a while now.



Detail
The location of the jump seems to be the same horizontal x 
location. But with the vertical value being reset to the halfway 
point.


I am testing by. Simply moving the message box. It is intermittent 
- so occurring about once every 5 moves, and strangely is happening 
only when the top left of the stack window is within the top left 
quadrant of the screen. Using. The following code int eh message 
box I find the top of the message box stack is always 492 after a 
jump (see below). This appears to be related to half the screen 
less the decorations like menu?

> > put the screenrect & CR & the rect of stack” Message box"
> >
> > 0,0,1680,1050
> > 215,492,634,640
As a further indication that the problem is due to the IDE, I find 
that creating a test stack (no scripts or controls) exhibits the 
same behaviour - but this behaviour can be suppressed by choosing 
“Suppress Messages” from the “Development” menu. This suppression 
has no effect on the message box or other IDE windows which still 
jump intermittently.


The problem is most intense when working with multiple screens. For 
at least a couple of years stacks I create and place on second or 
third monitors receive mouse clicks in the wrong location. This 
happens on different machines, and different. Monitor setups. Only 
tested on Macs.


I am currently creating a multiscreen app - so taking the tracking 
down. Of this bug more seriously. The current tests are one on my 
laptop without external monitors, and having restarted the computer 
(several times). Applications other than Livecode don’t suffer this 
problem.


How should I report this bug - should I submit a video / screen 
recording?



___
use-livecode mailing list
use-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: Bug: jumping stack windows (when supress messages is off)

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

https://support.apple.com/guide/mac-help/work-with-app-windows-mchlp2469/mac

Could it just be macOS's windows alignment feature?

On 10/11/2020 8:28 AM, David Bovill via use-livecode wrote:

Hi Bernd, the bug is not to do with the standard window snap. This is 
unresponsive try to any mouse clicks and a big jump across half the screen 
without any other windows present. Check the video to see.
On 10 Oct 2020, 22:15 +0100, Niggemann, Bernd via use-livecode 
, wrote:

Hi David,

What I see on Mojave is that e.g. TextEdit or Safari show a similar behavior.
Open 2 windows in TextEdit. Move one close to the other and they will snap into 
place, if the tops of those two windows are almost horizontally aligned they 
will snap into place.

Same goes for Safari with two windows open. And the same happens in the IDE.
If that is what you describe on a single monitor setup then it is an operating 
system thing.

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


Slightly OT: Windows Code Signing

2020-10-26 Thread Paul Dupuis via use-livecode

My Windows Code signing cert for signing LiveCode standalones has expired.

I purchased it from instantsll.com (3 year) which has become sectigo.com 
and it appears that they never moved over old accounts since my prior 
username, email, and password do not work nor does the email work for 
password recovery.


So I bought a new one from comodosslstore.com (which turns out is also 
sectigo.com). Verification was quick and automate - no problem.


Now my cert is ready, but the download/install instructions requires 
Internet Explorer 11 or Firefox 68 or older (Firefox is at version 82 
and Microsoft Edge is what comes with Windows 10 not Internet Explorer 11


Their support documentation is conflicting and terrible (IMHO).

It is not too late to cancel the order and buy elsewhere. Does anyone 
have a recommendation for a supplier of Windows Code Signing certs that 
have a simple and straight forward process for buying AND getting the 
.p12 file you ultimately need for code signing?


This is kind of urgent since we are unable to sign until we get a new cert.

___
use-livecode mailing list
use-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: Slightly OT: Windows Code Signing

2020-10-26 Thread Paul Dupuis via use-livecode

Thank you Matthias,

I did notice the unexpectedly large price on Sectigo direct and purchase 
a 3 year through comodosslstore.com for about $212.50 USD, so at an okay 
price for me. Mine is just a plain signing cert, not the EV.


What I ran into that was very frustrating was the browser requirements. 
You would think - especially with the vagueness of browsers supporting 
certain features - that they would make an app to do their own CSR 
generation at the start of the process and the same app can do the 
download at the end


I do not have any older version of IE (on VMs or otherwise). I did 
download Firefox 68 (current release is 82!, but 68 is only from early 
2019) but could not get it to work. Finally I was able to download my 
cert via Safari under Mojave and move it to my Windows 10 via Dropbox 
and under Windows 10 use the MMC (Microsoft Management Console) to 
import it and export it in p12 (.pfk) format for use in signing 
Standalones. Success, but what a pain to go through.


If anyone has found a Issuer that will just let you download the code 
signing cert as a .p12 pr .pfk file, I'd like to know.


On 10/26/2020 2:25 PM, matthias rebbe via use-livecode wrote:

Hi Paul,

first of all buying directly through Sectigo is expensive. If you purchase from 
one of Sectigo's partners you'll get it much cheaper.
I've  purchased in July a 3year code signing certificate ( not the ELV) for 207 
Euro for all 3 years. The certifcate was also delivered by Sectigo. And i was 
able to download the certificate on my Windows 10 VM with Internet Explorer, if 
i remember right. I even cannot remember that a special version of Mozilla was 
required.
They only mentioned, that you cannot fetch your certificate with MS Edge, 
Chrome and Safari.
I've did the complete purchase process on my Windows 10 VM.

Regards,
Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code


Am 26.10.2020 um 18:32 schrieb Paul Dupuis via use-livecode 
:

My Windows Code signing cert for signing LiveCode standalones has expired.

I purchased it from instantsll.com (3 year) which has become sectigo.com and it 
appears that they never moved over old accounts since my prior username, email, 
and password do not work nor does the email work for password recovery.

So I bought a new one from comodosslstore.com (which turns out is also 
sectigo.com). Verification was quick and automate - no problem.

Now my cert is ready, but the download/install instructions requires Internet 
Explorer 11 or Firefox 68 or older (Firefox is at version 82 and Microsoft Edge 
is what comes with Windows 10 not Internet Explorer 11

Their support documentation is conflicting and terrible (IMHO).

It is not too late to cancel the order and buy elsewhere. Does anyone have a 
recommendation for a supplier of Windows Code Signing certs that have a simple 
and straight forward process for buying AND getting the .p12 file you 
ultimately need for code signing?

This is kind of urgent since we are unable to sign until we get a new cert.

___
use-livecode mailing list
use-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: Code Signing and Kernel Mode drivers

2020-11-08 Thread Paul Dupuis via use-livecode
The basic windows code signing cert works fine. You do not need the more 
expensive "EV" certificate.


On 11/8/2020 12:58 PM, General 2018 via use-livecode wrote:

Hi ,

Are the standard Livecode .dll that are included with the standalone Kernel 
mode drivers ??

The reason for asking is that codesigning for Windows 10 needs a more expensive 
certificate if kernel mode drivers signing is required.

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



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


Re: Windows startup issue

2020-11-09 Thread Paul Dupuis via use-livecode
The first things is to determine what the error codes mean. I forget off 
teh top of my head, but I things of the first 2 numbers one is a line 
number and the other an error code?


Hopefully someone can chime in who knows for sure. Knowing the errors 
will tell you more about what the likely cause may be.


I suspect it is some sort of permissions issue. In all most all 
instances where we have run into a weird startup issue with just one 
customer, it has turned out to be permissions related. For example, does 
you application create any preferences or license files or temporary 
files? Or try to save anything to disk behind the scenes (i.e. not a 
user driven file save dialog)? If so, chances are the place you are 
trying to write to is read-only.


It could be many other things, but this has been the most common issue 
like this we've run into.



On 11/9/2020 4:10 PM, Marty Knapp via use-livecode wrote:

I have a customer who is having a weird issue with a Windows app built in LC 
(9.6.1). It worked fine for about a month, it works fine here for me all the 
time and it works fine for all our other customers.

On startup is begins to launch then gets a bunch of errors:

269,76,1
262,67,1
252,67,1
241,67,1
353,0,0
573,68,1
253,68,1
241,67,1
353,0,0

But it only happens for this *one* person. They have the latest version of 
Windows 10, have tried multiple installs and uninstalls, turned off virus 
software, etc. I have downloaded from the same link I've sent him, installed 
and it runs fine for me and all our other customers.

I know it's along shot, but has anybody seen anything like this or offer any 
advice?
---
Marty
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



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


Re: Windows startup issue

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

On 11/10/2020 2:14 AM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:

> On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote:
>> And WTH happened to LC's error reporting dialog?
>
> Standalones have always reported this way on both desktop and mobile.
> It is up to the developer to include the translated references if
> they want to see those. Generally I don't bother, I provide the
> optional built-in ability to send email to support or save a file.
> I can translate the numbers myself since the meanings usually mean
> nothing to the end-user anyway.

I've been using my own error-reporting for so long I can't recall 
seeing the default standalone handling.


I have made a couple of quickies where I just used LC's error 
reporting, but clumsy as that design is at least the output from the 
"Send Report" button is more useful than the raw list of triplet 
integers.


How has such ungraceful error handling become acceptable?

Why is the least useful thing the easiest for new developers to do?

Shouldn't it be easy for LC devs to deliver a great application 
experience?




One big thing that LC could do to let developer's improve error handling 
and standalone troubleshooting would be to include the 
"scriptExecutionErrors" in Standalones. I know it is along list, but 
would it really add that many more bytes to Standalones relative to the 
current engine size?


I know you can replicate having the error text present by copying the 
scriptExecutionErrors to a custom property in your standalone, but then 
you have to be sure to update it with each engine release. To just have 
it included when you build a standalone would be much better.



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

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

On 11/10/2020 7:45 PM, J. Landman Gay via use-livecode wrote:
But Paul's suggestion that standalones include the entire error list 
isn't a bad one, though I'd like it to be optional. Users don't care 
what the descriptions are and I can look them up, but some might want 
those included. 


I imagine that they could be added to the Inclusions - if on automatic, 
use of the "scriptExecutionErrors" in your code would lead to automatic 
inclusion. If on manual, you get to include them or 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


Re: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread Paul Dupuis via use-livecode
I have an on standaloneSaved handler that reads and writes an updated 
info.plist for my standalone that adds additional document types since 
the standalone builder only allows a single document type.


On 11/12/2020 7:30 PM, matthias rebbe via use-livecode wrote:

Hi,

does anyone know if it is possible to use the xml library to read values from 
an info.plist file?


Regards,

Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code


___
use-livecode mailing list
use-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: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-13 Thread Paul Dupuis via use-livecode

On 11/12/2020 8:32 PM, matthias rebbe via use-livecode wrote:

Are you using the xml library for that?
Anyway, would you like to share your handler?


Yes, and yes (below). tDocTypes contains a cr delimited list of addition 
document types to add to the pList file. Also, the old use of 
uniEncode/uniDecode should be replaced with textEncode. This is code is 
working with LC9.6.1


    -- updating the generated plist file
    put tMac64BuildFolder&tAppName&".app/Contents/Info.plist" into 
tSrcFile -- overwrite original

    --
    if there is a file tSrcFile then
  put revXMLCreateTreeFromFile(tSrcFile,true,true,false) into tTreeID
  if tTreeID begins with "xmlerr" then
    answer error "Error reading XML plist file for updating 
document types during build."&tTreeID&""

  else
    -- list of document types ,,code>
    put "HyperTRANSCRIBE Files,StandaloneDoc.icns,ht2,HTh2"&cr into 
tDocTypes

    -- XML template
    put 
""&cr&"CFBundleTypeExtensions"&cr&""&cr&"[[tExtension]]"&cr&""&cr 
into tXMLTemplate
    put 
"CFBundleTypeIconFile"&cr&"[[tIconFile]]"&cr&"CFBundleTypeName"&cr 
after tXMLTemplate
    put 
"[[tDocName]]"&cr&"CFBundleTypeOSTypes"&cr&""&cr&"[[tTypeCode]]"&cr 
after tXMLTemplate
    put 
""&cr&"CFBundleTypeRole"&cr&"Editor"&cr&""&cr 
after tXMLTemplate

    -- add document types under parent  at end
    repeat for each line tDocType in tDocTypes
  put item 1 of tDocType into tDocName
  put item 2 of tDocType into tIconFile
  put item 3 of tDocType into tExtension
  put item 4 of tDocType into tTypeCode
  put merge(tXMLTemplate) into tNodeContents
  revXMLAppend tTreeID, "/plist/dict/array",tNodeContents
    end repeat
    -- output updated plist
    get empty -- clear 'it' for any possible error from revXMLText 
that places the error in 'it'

    put revXMLText(tTreeID,,true) into tXMLText
    if it is not empty then
  answer error "Error writing updated XML plist 
file."&it&""

    end if
    put uniDecode(uniEncode(tXMLText),"UTF8") into URL 
("file:"&tSrcFile)

  end if
    end if


___
use-livecode mailing list
use-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: Big Sur bugs

2020-11-15 Thread Paul Dupuis via use-livecode

So Big Sur was released on the 12th. It is not our in user's hands.

Does anyone (or LiveCode corporate) have any update about Big Sur 
compatibility? We have customer's inquiring. We can not afford the time 
to jump through Apple's hoops for any of their beta versions. Now that 
the release is out, we can start testing our apps with it IF we can get 
it installed over one of our Catalina VMs but it would be nice to know 
what testing LC Ltd has done or others have done?



On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote:

In my testing of LC apps running under Big Sur I have run into the following 
bugs running LC 9.6.1:

1) Tabbed buttons: The background of the highlighted tab is now white by 
default. Since LC renders the text for the highlighted button as white, it is 
not readable until you switch to another tab. Work-around - set the 
backgroundColor of the button to black. Bug report 22879

2) Window Shape: Setting the windowShape of a stack to an imported image no 
longer works. It will show the rectangle of the stack. Bug report 22880

3) SystemVersion: Big Sur is designated by Apple as version 11 but LC will 
report it as 10.16. Easy enough to code around until it’s fixed. Bug report 
22887

4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930
___
use-livecode mailing list
use-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: Big Sur bugs

2020-11-15 Thread Paul Dupuis via use-livecode

Panos,

Thank you for the rapid-response update!

The link you provide presents me with the error "There is no with the id 
'97748'. " Just knowing a compatible LC release is on its way in 9.6.1 
is a help, but I'd love to see the list of bugs if there is an alternate 
URL to view them.




On 11/15/2020 10:31 AM, panagiotis merakos via use-livecode wrote:

Hello Paul,

Here are the bugs that have been discovered so far, either by LC users or
by us (LiveCode Ltd):

https://quality.livecode.com/buglist.cgi?regetlastlist=97748

The 2 serious ones have been addressed and are to be tested in our
pre-release build. There are another 2 cosmetic bugs, and one that seems to
affect only the new ARM Macs.

These bugfixes are expected to appear in the upcoming release of LC 9.6.2
RC-1.

Kind regards,
Panos
--

On Sun, 15 Nov 2020 at 17:05, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


So Big Sur was released on the 12th. It is not our in user's hands.

Does anyone (or LiveCode corporate) have any update about Big Sur
compatibility? We have customer's inquiring. We can not afford the time
to jump through Apple's hoops for any of their beta versions. Now that
the release is out, we can start testing our apps with it IF we can get
it installed over one of our Catalina VMs but it would be nice to know
what testing LC Ltd has done or others have done?


On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote:

In my testing of LC apps running under Big Sur I have run into the

following bugs running LC 9.6.1:

1) Tabbed buttons: The background of the highlighted tab is now white by

default. Since LC renders the text for the highlighted button as white, it
is not readable until you switch to another tab. Work-around - set the
backgroundColor of the button to black. Bug report 22879

2) Window Shape: Setting the windowShape of a stack to an imported image

no longer works. It will show the rectangle of the stack. Bug report 22880

3) SystemVersion: Big Sur is designated by Apple as version 11 but LC

will report it as 10.16. Easy enough to code around until it’s fixed. Bug
report 22887

4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930
___
use-livecode mailing list
use-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: Big Sur bugs

2020-11-15 Thread Paul Dupuis via use-livecode

On 11/15/2020 11:27 AM, Klaus major-k via use-livecode wrote:

But just enter -> Big Sur
in the search field on the page and hit RETURN!:-)


Thank you!


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


Re: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode
Has any experienced any problems playing back media (.mp3 audio files or 
.mp4 video) under macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) in a 
LC9.6.1 built stand-alone under Big Sur.



___
use-livecode mailing list
use-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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode

I just filed bug https://quality.livecode.com/show_bug.cgi?id=22986

Media is dead under Big Sur


On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote:
Has any experienced any problems playing back media (.mp3 audio files 
or .mp4 video) under macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) in 
a LC9.6.1 built stand-alone under Big Sur.



___
use-livecode mailing list
use-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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode
No, however, I am running Big Sur in a Virtual Box VM under macOS 
Mojave. All other Big Sur features and functions appear to work fine in 
the VM (we just can not afford Apple hardware for every version of their 
OS from Mavericks to Big Sur. VM's are a lot more versatile as they can 
be clones, snapshotted, and restored when things get messed up)


If I try to just double click on the video under Big Sure, it opens the 
Quicktime Player (?) and I get a "unknown error occurred (-101).


I am glad to hear it is working for you Panos - very glad. Both our 
commercial apps depend on the player object and I was in a panic! I'd 
ask anyone following this thread to please take time to test media under 
Big Sur.


I would be ecstatic to learn in is a VM issue. We'll then move to our 
backup of installing on a partition for a dual (actually more than dual 
as we have about 5 version of macOS each on its own partition) boot system.


-- Paul

On 11/18/2020 2:21 PM, panagiotis merakos wrote:

@Paul Dupuis <mailto:p...@researchware.com>

Hmm that is strange, the player works for me. I used the video you 
attached in the bug report. Are you by any chance using a new Silicon 
(ARM) Mac?


I am curious to see if other folks can reproduce this bug.

Kind regards,
Panos
--

On Wed, 18 Nov 2020 at 20:58, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> 
wrote:


I just filed bug
https://quality.livecode.com/show_bug.cgi?id=22986
<https://quality.livecode.com/show_bug.cgi?id=22986>

Media is dead under Big Sur


    On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote:
> Has any experienced any problems playing back media (.mp3 audio
files
> or .mp4 video) under macOS Big Sur?
>
> I just ran into an issue where none of my media is playing (at
all) in
> a LC9.6.1 built stand-alone under Big Sur.
>
>
> ___
> 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
<http://lists.runrev.com/mailman/listinfo/use-livecode>


___
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
<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: Big Sur bugs

2020-11-18 Thread Paul Dupuis via use-livecode

Jacque,

Thank you! My blood pressure is already going down to more normal 
levels. I will work on the assumtion it is a VM issue for now and set up 
a partitioned Big Sur install.




On 11/18/2020 3:07 PM, J. Landman Gay via use-livecode wrote:

On 11/18/20 12:06 PM, Paul Dupuis via use-livecode wrote:
Has any experienced any problems playing back media (.mp3 audio files 
or .mp4 video) under macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) 
in a LC9.6.1 built stand-alone under Big Sur.


I haven't built an app in Big Sur yet, but an app built in Mojave 
plays audio when run in Big Sur.





___
use-livecode mailing list
use-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: Getting a real number from scientific notation

2020-11-22 Thread Paul Dupuis via use-livecode
So, if you want to concert form scientific notation to a real number, 
you can use the "format" function (see dictionary). Example:


putformat("%1.0f",4.21911E+11) -- outputs 42191100

Is that shat yo are looking for?


On 11/22/2020 3:30 PM, Klaus major-k via use-livecode wrote:

Please, this is quite urgent, my customer is waiting impatiently,
so if someone has an idea...


Am 22.11.2020 um 21:25 schrieb Klaus major-k via use-livecode 
:

Hi friends,

see subject.

I have some values in a CSV with this notation
According to the dictionary I tried:
on mouseUp pMouseButton
   put "4.21911E+11" into tSN
   set itemdel to "+"
   put char 1 to -2 of item 2 of tSN into t1
   put item 2 of tSN into t2
   put t1*10^t2 into tRes
   #x*10^y.
end mouseUp

But tRes is also in scientific notation ->  1e+11
When I set a breakpoint and doubleclick that value
the little popup palette shows a real number however!?

What am I missing and is this the correct way to do what I need?

Thanks a lot in advance!

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-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: Getting a real number from scientific notation

2020-11-23 Thread Paul Dupuis via use-livecode
All this is why I prefer format() over numberFormat. The function is 
more versatile and you get exactly what you specify with less guess work.


On 11/23/2020 6:52 PM, Roger Guay via use-livecode wrote:

Yaknow, this whole thing is confusing. Turns out you don’t even need to set the 
numberFormat.
put 4.21911e+11 + 0 results in 42191000.

Roger


On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode 
 wrote:

Nope.

The "numberFormat" property is perfectly happy with quotes around its 
formatExpression. It is also perfectly happy without it. But I always use quotes for 
things like this.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Roger Guay via use-livecode
Sent: Monday, November 23, 2020 5:25 PM
To: How to use LiveCode 
Cc: Roger Guay 
Subject: Re: Getting a real number from scientific notation

That works. Thanks, Klaus!

Roger




On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode 
 wrote:

Hi Roger,

you forgot + 0 :-)

on MouseUp
set the numberformat to 0 # NO quotes around this 0 or LC gives an
error  put 4.21911e+11 + 0 End mouseUp

-> 42191100


Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode 
:
on MouseUp
set the numberformat to  “0"
put 4.21911e+11
End mouseUp
puts 4.21911e+11 into msg box
What am I missing?

Roger

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


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


LC9.6.2rc build issues?

2020-11-24 Thread Paul Dupuis via use-livecode
So, I have a large applications. Under 9.6.1 STABLE I open the main 
stack and build the standalone (Windows and macOS) without issue.


I just tried it under 9.6.2rc1 and I get an infinite loop of "duplicate 
stacks" errors and it keeps trying to reload the app over and over?!?!? 
I had to force quit (on Windows 10).


Any one else have any problems?

___
use-livecode mailing list
use-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: LC9.6.2rc build issues?

2020-11-24 Thread Paul Dupuis via use-livecode
okay, this did not happen the next time I tried. The first time I have 
made a number of changes to two substacks in the mainstack (and saved) 
and then tried building the standalone and got the errors and loop.


The second time I made no changes. I just opened the mainstack (and let 
the app startup) and then build the standalones using 962rc1 and it worked.


I have to try making changes again and see if I can get the issue to 
repeat itself.



On 11/24/2020 8:44 AM, Paul Dupuis via use-livecode wrote:
So, I have a large applications. Under 9.6.1 STABLE I open the main 
stack and build the standalone (Windows and macOS) without issue.


I just tried it under 9.6.2rc1 and I get an infinite loop of 
"duplicate stacks" errors and it keeps trying to reload the app over 
and over?!?!? I had to force quit (on Windows 10).


Any one else have any problems?

___
use-livecode mailing list
use-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: LC9.6.2rc build issues?

2020-11-24 Thread Paul Dupuis via use-livecode

On 11/24/2020 8:54 AM, Paul Dupuis via use-livecode wrote:
I have to try making changes again and see if I can get the issue to 
repeat itself. 


Now trying to repeat the build issue in LC962rc1, I made an edit to a 
button script. Applied the change, closed the substack window (getting 
prompted to save my changes), and the LC just exited.


Then trying a 3rd time, everything worked as expected.

Maybe it was a bad preferences file that fixed itself or  gremlins!



___
use-livecode mailing list
use-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: Slow performance on Big Sur

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

On 12/14/2020 2:04 PM, J. Landman Gay via use-livecode wrote:
My client is running Big Sur and says that changing cards in a stack 
causes a very slow, stuttering display. The background image appears 
in chunks and text in the fields comes in as sequential pieces. The 
order of the display varies, sometimes the text appears first, 
sometimes the background image. The first few cards are fairly normal, 
but as she pages through the stack it gets slower.


I had her watch Activity Monitor and CPU usage goes up as she 
navigates through cards. At first the display is fairly normal but 
each successive card change increases CPU useage a little bit. She 
stopped when usage got to about 50% when she said it was unusable. 
This was in the IDE. She says the standalone is even slower.


Has anyone seen this? On Mojave and Catalina everything is fine.



I had a weird display issue where a transition between two cards left 
with one card semi-transparent behind the new card. It was also slow. I 
have a visual effect dissolve between these two cards I removed the 
visual effect and changing between the cards was fast and clean.


Examine any visual effect transitions you may have between cards.

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

2020-12-29 Thread Paul Dupuis via use-livecode

On 12/29/2020 6:07 PM, J. Landman Gay via use-livecode wrote:

Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie 


URLEncode(textEncode(,"UTF8")) -> gets you a properly URL 
encoded string where the server is expecting UTF8


___
use-livecode mailing list
use-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 & Mac M1 Chip

2020-12-31 Thread Paul Dupuis via use-livecode

You need to be on macOS Big Sur for the new hardware (I think).

There are bugs in LC vs Big Sur that are only fixed in LC 9.6.2rc1 so 
you probably want to rebuild any Standalones using that version of LC



On 12/30/2020 10:29 PM, John Balgenorth via use-livecode wrote:

Should any LC standalone work with the Mac M1 Chip
if it was working on Mojave and above?

JB



On Dec 30, 2020, at 7:07 PM, Roger Guay via use-livecode 
 wrote:

Yes, I just tried it and it works fine! I’m happy to try yours out if you 
wish??

Roger



On Dec 30, 2020, at 2:47 PM, Marty Knapp via use-livecode 
 wrote:

Has anyone tried an LC standalone on one of the new Macs with the M1 chip? I 
have customers asking and I don’t want to go buy one just to find out!

Thanks,
Marty
___
use-livecode mailing list
use-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 & Mac M1 Chip

2020-12-31 Thread Paul Dupuis via use-livecode

On 12/31/2020 8:22 AM, John Balgenorth via use-livecode wrote:

I thought the Mac M1 Chip has Rosetta or something
like that allowing most 64 bit programs to still  run
so I was thinking any 64 bit version of LC would still
work.


You can search the Livecode Quality center for Big Sur bugs. As I recall 
the 3 main ones were:


1) A bug with custom window shapes (not an issue if you do not use any 
custom window shapes)
2) A bug with the highlights on tabbed buttons (not an issue if you do 
not use tabbed buttons - also there was a script work-around available)

3) An issue with dialogs displayed "as sheet"

These bugs are resent under Big Sur (regardless of whether you are on 
the M1 chip or Intel) in LC 9.6.1 and are fixed in 9.6.2rc1


Again, search the https://quality.livecode.com/ for "big sur" for details



JB



On Dec 31, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
 wrote:

You need to be on macOS Big Sur for the new hardware (I think).

There are bugs in LC vs Big Sur that are only fixed in LC 9.6.2rc1 so you 
probably want to rebuild any Standalones using that version of LC



On 12/30/2020 10:29 PM, John Balgenorth via use-livecode wrote:
Should any LC standalone work with the Mac M1 Chip
if it was working on Mojave and above?

JB



On Dec 30, 2020, at 7:07 PM, Roger Guay via use-livecode 
 wrote:

Yes, I just tried it and it works fine! I’m happy to try yours out if you 
wish??

Roger



On Dec 30, 2020, at 2:47 PM, Marty Knapp via use-livecode 
 wrote:

Has anyone tried an LC standalone on one of the new Macs with the M1 chip? I 
have customers asking and I don’t want to go buy one just to find out!

Thanks,
Marty
___
use-livecode mailing list
use-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: Building a Standalone MacOS App in 9.6.1

2021-01-06 Thread Paul Dupuis via use-livecode
macOS Catalina or Big Sur apps have to be code signed AND notarized. You 
must have the command line tools installed and there is a non-trivial 
number of commands you have to execute to prepare you app for code 
signing, then code sign it, and then notarize it, including obtaining an 
app specific password from Apple.


Livecode has a pretty decent tutorial on their web site on the whole 
lengthy process.



On 1/6/2021 9:10 AM, Terence Heaford via use-livecode wrote:

I thought I would try to build a standalone app with the Community Edition in 
Catalina

Many errors. Perhaps someone could shed some light.

This error is the first. "replacing existing signature xcrun: error active 
developer path”

I did see a comment on the LC Forum that suggested

sudo xcode-select —install, to install the command line tools.

I carried this out, still no luck.

Installed 9.6.1 RC1. Still no luck.

Is it necessary to have Xcode installed for this to work?


Thanks

Terry




___
use-livecode mailing list
use-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: Building a Standalone MacOS App in 9.6.1

2021-01-06 Thread Paul Dupuis via use-livecode

On 1/6/2021 10:17 AM, Tore Nilsen via use-livecode wrote:



6. jan. 2021 kl. 15:48 skrev Paul Dupuis via use-livecode 
:

macOS Catalina or Big Sur apps have to be code signed AND notarized. You must 
have the command line tools installed and there is a non-trivial number of 
commands you have to execute to prepare you app for code signing, then code 
sign it, and then notarize it, including obtaining an app specific password 
from Apple.

Livecode has a pretty decent tutorial on their web site on the whole lengthy 
process.


I can happily build a MacOS app without code signing or notarizing the app from 
Big Sur and Catilina. I guess this is needed for an iOS app, but then again you 
cannot build an iOS app with LiveCode Community




Sorry, I thought you meant building a macOS app to deploy to other 
people rather than for your own use on your own computer. Gatekeeper 
will throw a ton of obstacles and warnings for any app not signed and 
notarized that you download and try to install on Catalina or Big Sur. 
Technically, there is probably some way to instruct people how to 
circumvent Gatekeeper objections.


___
use-livecode mailing list
use-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 & Mac M1 Chip

2021-01-07 Thread Paul Dupuis via use-livecode
I know the mothership does not like to estimate release dates, but does 
anyone have a sense of when LC 9.6.2 STABLE may be out? And more 
importantly, whether it will come with 'official' support for the M1 
hardware or at least a fix for this apparent M1 specific bug: 
https://quality.livecode.com/show_bug.cgi?id=23013


We're getting a certain amount of pressure for our primary app to 
support the Big Sur and the new hardware. LC9.6.2rc1 address our main 
Big Sur issues (not that there were many), but the dashes in menus on M1 
(#23013) concerns me as we have several customer who have said they are 
upgrading to M1 laptops.




___
use-livecode mailing list
use-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 & Mac M1 Chip

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

Andre and Panos,

Thank you both. That given us some confidence we can release under LC 
9.6.2rc1 so that customers can go ahead with their M! Big Sur systems as 
they want to.




On 1/8/2021 6:46 AM, Andre Garzia via use-livecode wrote:

Hi Panos,

Just updated https://quality.livecode.com/show_bug.cgi?id=22955 with a
screenshot from 9.6.2-rc-1 running on my M1 machine.

I can't reproduce the bug, I guess it is fixed.

On Fri, 8 Jan 2021 at 10:35, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:


Hello all,

Just a clarification - the bug about dashes in menus in standalones on Big
Sur is:

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

and not https://quality.livecode.com/show_bug.cgi?id=23013

BTW, could someone that has a M1 Mac confirm that in the LC 9.6.2 RC-1 IDE
there are no dashes in front of the menus - in other words that this bug is
fixed:
https://quality.livecode.com/show_bug.cgi?id=22955

Thank you!

Kind regards,
Panos
--

On Fri, 8 Jan 2021 at 01:07, Curry Kenworthy via use-livecode <
use-livecode@lists.runrev.com> wrote:


Paul:

  > we have several customer who have said
  > they are upgrading to M1 laptops

Yes; important to support! I'm looking in that direction too. It'll be
popular, plus it's what I can afford. Many people in the same boat.

(Backstory: Apple's biz model forces Apple to force us to spend on
hardware. The mobile herd sticks with Apple, so the dev herd does too,
so wallets must open and notes must rain down. But not satisfied yet
with the rain from software tweaks, so now hardware tweaks too.)

I'm planning to get an M1 Mac this year, to get back on the bleeding
edge for a while. It's time. My old Mac hardware is still perfectly
good, it was well-built and has zero issues, but finally has been pushed
into what will soon be an untenable corner by the combo of new OS to
support and new chip to support. But the older Mac will continue to
serve for testing and for transition dev if needed.

  > a sense of when LC 9.6.2 STABLE may be out?

Could be roughly predicted, maybe, by looking at what they are working
on. I actually agree with LC's anti release date policy; announcing firm
dates is just begging for another issue to pop up. But since Apple's biz
model places so much pressure on devs to keep up, a sense would be good.
Especially since third-party addons and widgets also have to keep up
with our ecosystem.

(Another backstory: Don't forget the stable/stable linguistic play; I've
seen RCs here that were actually more "stable" than the final, because
glitches, regressions, and extra bugs are sometimes - perhaps often -
introduced in the very process of fixing bugs. Depending on a stable to
be stable is a gamble, and depending on the specific features in an app,
there are times when the RC is more reliable. Nevertheless I really hate
to publish anything with an RC; only when forced to do so.)

BTW, Paul knows all of this very well. I'm just replying publicly in
case the backstories will benefit other readers here in the process. :)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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: [ANN] Release 9.6.2 RC-2

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

On 1/14/2021 5:53 AM, David V Glasgow via use-livecode wrote:

I paid for the Windows version of SuperCard that was advertised in MacUser for 
some considerable time in the ?mid 90s.  I waited, and waited, and waited….


Me too!



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

2021-01-22 Thread Paul Dupuis via use-livecode
When I have a handler that needs to lock the screen I will often do the 
following


begins handler

put the lockScreen into tPreserveLockScreen
if not tPreserveLockScreen then lock screen
...
code
...
if not tPreserveLockScreen then unlock screen

end handler

Code in our main LC app is large enough that there are instances where 
the some code that calls the handler needs to lock the screen and other 
code that call it does not, but the handler always wants to hide changed 
until done.



On 1/22/2021 9:24 AM, Craig newman via use-livecode wrote:

Something else you might want to to know, though it may only be academic.

LockScreen commands are queued. So if you lock the screen twice, you have to 
explicitly unlock twice in order to clear the locked state.

It does not matter what happens in the flow of code in terms of screen locking, 
whether other command or function calls are made. The queue rules throughout. 
All is reset at idle time.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Brian Milby via use-livecode
Sent: Friday, January 22, 2021 6:50 AM
To: How to use LiveCode 
Cc: Brian Milby 
Subject: Re: lock screen

I’m sure someone else can be more clear, but when the engine gets to an idle 
state then locks should be cleared.  In your example, it would probably clear 
at the end of that mouseUp handler, but aTest would completely run with the 
screen locked.

Sent from my iPhone


On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
 wrote:

Just looking for clarity with regard to lock screen.

Is there only one state for the screen, either locked or not locked and when is 
that state changed.

---
on mouseUp

lock screen

aTest

end mouseUp


on aTest

— is the screen still locked here

end aTest



At what point is unlock screen called by livecode without me calling it 
directly.

The docs say when all pending handlers have completed but what exactly is a 
pending handler.



Thanks

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


Comments for Properties in the Property Inspector?

2021-01-23 Thread Paul Dupuis via use-livecode

Random Thought of the Day:

Does anyone else wish that custom properties had an optional comment 
field that could be viewed in the Property Inspector (PI)?


I realize you can always comment properties in the code where you use 
them, but I find myself often in the PI looking at a Property that has, 
say an enumerated set of values, and I don't remember what all the 
values are, nor do I remember exactly where in the many stacks of code 
the property is first documented. I find myself wishing each custom 
property has a comment field.


I suppose I could create a library of setProp and getProp handlers for 
every property I might like to document and document the values or 
constraints there. I suppose if I am doing that extra degree of work 
then I could enforce any constraints on the customer property in the 
getProp and setProp handlers, but that seems like a non-trivial extra 
amount of work just to remember that the custom property should only 
have values of X, Y, and Z.


Thoughts?

___
use-livecode mailing list
use-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: Stack check-out/check-in

2021-01-25 Thread Paul Dupuis via use-livecode
If the could storage the stack is on has write access, the easiest 
mechanism is a file based flag.


When the stack is launched, if checks:

if there is a file  then
  -- the stack is already open, so exit
else
   put empty into URL ("file:"&) -- creates a empty file to 
mark as open

end

and  when the stack exists remove the file

on quit
  delete file 
end quit

Or something like that. I do not have LC open to check my code above.


On 1/25/2021 7:24 PM, Marty Knapp via use-livecode wrote:

I have an app that allows user to create specialized editable documents 
(stacks) that open in my app. Some customers use Dropbox, iCloud, OneDrive or 
similar to store these documents so that they can be accessed from 2 different 
computers. Is there a way to tell if a stack is already open on one computer? I 
need to prevent them from opening a 2nd instance of the stack on the other 
computer so that Dropbox (or other cloud sync service) does not create a 
conflicted copy.

If there is not a way to tell, has anyone created some sort of stack 
check-out/check-in system that they'd be willing to share? I need this for Mac, 
PC and mixed.

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


  1   2   3   4   5   6   7   8   9   10   >