Re: Stylistic question.

2022-06-19 Thread Brian Milby via use-livecode
One reason would be if you were trying to use behaviors so you could manage 
your code with a repository like Git.  This would greatly reduce the number of 
behavior scripts that you would create.  One app that work on has the code in 
the stack’s behavior script.

Sent from my iPhone

> On Jun 19, 2022, at 4:33 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> I've noticed that in a lot of the example code I've seen recently, there's a 
> bit of a common pattern.
> 
> In the card script, there will be code like
> 
> on mouseUp
>   switch the short name of the target
> case "first"
> doCommandFirst
> break
> case "another"
> doCommandAnother
> break
> case "lastnotleast"
> doCommandlastnotleast
> break
>   end switch
> end mouseUp
> 
> I've seen this in examples from Livecloud, Appli, the WebApp example from 
> Steven/Michael, and a few other places.
> 
> I would generally have put this code in each button (or other control) 
> directly, and I'm wondering whether there are advantages or preferences for 
> one of those versus the other.
> 
> Thanks for any opinions,
> 
> Alex.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Referencing Livecode

2022-06-17 Thread Brian Milby via use-livecode
Maybe a direct link here would be better:

https://livecode.com/resources/



Sent from my iPhone

> On Jun 17, 2022, at 6:39 AM, Mark Smith via use-livecode 
>  wrote:
> 
> I think in this instance, probably asking support would be the best bet. 
> 
>> On 16 Jun 2022, at 2:31 pm, David V Glasgow via use-livecode 
>>  wrote:
>> 
>> Hi Folks,
>> 
>> I am writing a paper for publication (I hope) describing analysis of 
>> internet predator messages achieved using Livecode.
>> 
>> I want to reference LC but I am not sure if there is a standard form or URL 
>> for doing this.  If not I am inclined to use 
>> https://en.wikipedia.org/wiki/LiveCode 
>> 
>> Any alternative suggestions?
>> 
>> David Glasgow
>> 
>> PS Also, while trying to find a suitable URL I came across the ‘Cheat 
>> Sheets’ page and PDFs, and stumbled on a couple of errors in the just LC 
>> one… not sure who to alert.
>> 
>> // String
>> 
>> "foo" & "bar" is "foobar" "foo" && "bar" is "foo bar" "str" begins with "st"
>> "str" ends with "g"
>> 
>> // Chunks
>> 
>> char 5 of "str" is "n"
>> ___
>> use-livecode mailing list
>> use-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: Would anyone miss convertOctals?

2022-06-09 Thread Brian Milby via use-livecode
Had to look it up, never used it.

Sent from my iPhone

> On Jun 9, 2022, at 8:45 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> So I'm currently sitting here about to embark on fixing 
>  (which is the final 
> thing to sort out before being able to merge my constant expression patch) 
> and I was reminded of 'convertOctals'.
> 
> Now, generally, I am somewhat averse to actually removing any language 
> feature (even those we have deprecated, unless we absolutely have to!) - 
> however, I would really like to make convertOctals have no effect at all in 
> 10.0+ as it adds a disproportionate amount of complexity compared to (what I 
> think, at least) its utility is (particularly in the context of things 
> 'coming next' like the script compiler).
> 
> So three questions:
> 
>  1) Do you know what convertOctals is, and what it does?
> 
>  2) If you do, have you ever actually used it in any scripts which are 
> actually still in use?
> 
>  3) If you do use it in any scripts which are still in use, would you be 
> willing to change them to not use it?
> 
>  4) If you do use/have used it, had you ever noticed that it has been 
> slightly broken for years?
> 
> Now, its always better to offer a carrot when there is a stick (or in this 
> case, an axe) being wielded and the carrot in this case would be to expand 
> the numeric literal syntax to add both explicit octal and binary number 
> literals alongside hexadecimal:
> 
>0xabcdef - hex literal
>0o777 - octal literal
>0b101110101
> 
> The key difference between 0o777 and using 0777 (with convertOctals true) is 
> that the former is not ambiguous at parse time, it doesn't require a runtime 
> property set to true in order for the engine to convert the string to a 
> number correctly.
> 
> Please let me know your thoughts :)
> 
> Warmest Regards,
> 
> Mark.
> 
> P.S. In the scheme of 'breaking changes' - we've already made a number of 
> them for 10 already, and my gut tells me removing convertOctals is likely to 
> cause less consternation than those we already have - but I could be wrong!
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: storing binary data in a "memory" database

2022-06-04 Thread Brian Milby via use-livecode
Is this the issue?

To pass binary data in an array element, prepend "*b" to the element's key.

Sent from my iPhone

> On Jun 3, 2022, at 6:56 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi Doc thanks for the response. I am using aes256 encryption so an ascii 
> hash is not viable. If this were a file based sqLite database I could perhaps 
> change the encoding. Maybe I can with a :memory: database too! Here's my 
> code. I have posted this before, it's an incredibly useful handler. If you 
> provide pDBID it will ADD or REPLACE a table in that :memory: database. If 
> you do NOT it will create a NEW :memory: database and return the database ID. 
> The parameter pDBName is misnamed it should probably be pTableName. I'll fix 
> that later. 
> 
> I suppose what I need is a statement to change the encoding of the database 
> before I create it. 
> 
> put arrayToSQLite(tPasswordsDataA, ":memory:", "passwords", lMemoryDB) into 
> lMemoryDB
> 
> FUNCTION arrayToSQLite pArrayDataA, pDBFile, pDBName, pDBID
>   put the keys of pArrayDataA into tArrayKeys
>   sort tArrayKeys numeric ascending
>   IF pDBFile is empty THEN put ":memory:" into pDBFile
>   IF pDBName is empty THEN put "arraydata" into pDBName
> 
>   TRY
>  if pDBID is empty then \
>put revOpenDatabase("sqlite", pDBFile) into pDBID
> 
>  IF "Error" is in pDBID THEN
> return empty
>  END IF
> 
>  put "drop table " & pDBName into tDropSQL
>  revExecuteSQL pDBID, tDropSQL
>  put  the result into tResult
>   CATCH tError
>  answer tError
>  IF the environment is "development" THEN exit to top ELSE quit
>   END TRY
> 
>   -- create the table
>   put "create table" && quote & pDBName & quote \
> & cr into tCreateCommand
>   put "(" & quote & "recordid" & quote && "NUMERIC PRIMARY KEY UNIQUE, " \
> & cr AFTER tCreateCommand
> 
>   put the keys of pArrayDataA [1] into tRecordKeyList
> 
>   REPEAT for each line tRecordKey in tRecordKeyList
>  if pArrayDataA [1] [tRecordKey] is an array or \
>pArrayDataA [1] [tRecordKey] begins with "Salted__" then 
> put "BLOB" into tColumnType
>  else
> put VARCHAR into tColumnType
>  end if
> 
>  put quote & tRecordKey & quote && tColumnType & "," && cr AFTER 
> tCreateCommand
>   END REPEAT
> 
>   delete char -3 to -1 of tCreateCommand
>   put ")" AFTER tCreateCommand
> 
>   TRY
>  revExecuteSQL pDBID, tCreateCommand
>  put the result into tResult
>  IF tResult is not 0 THEN breakpoint
>   CATCH tError
>  breakpoint
>   END TRY
> 
>   put 1 into tRecordCounter
>   put "recordid" & cr & tRecordKeyList into tColumns
> 
>   repeat with i = 1 to the number of lines of tColumns
>  put ":" & i into item i of tColumnList
>   end repeat
> 
>   put "(" & tColumnList & ")" into tColumnList
> 
>   -- insert data
>   REPEAT for each line tKey in tArrayKeys
>  put 1 into tColumnCounter
>  put pArrayDataA [tKey] into tRecordDataA
>  put tRecordCounter into tQueryDataA [1]
> 
>  REPEAT for each line tRecordKey in tRecordKeyList
> add 1 to tColumnCounter
> 
> if tRecordDataA [tRecordKey] is an array then
>put arrayEncode(tRecordDataA [tRecordKey]) into tValue
> else
>put tRecordDataA [tRecordKey] into tValue
> end if
> 
> put tValue into tQueryDataA [tColumnCounter]
>  END REPEAT
> 
>  put "insert into" && pDBName &&  "VALUES" && tColumnList into tInsertSQL
> 
>  TRY
> revExecuteSQL pDBID, tInsertSQL, "tQueryDataA"
> put the result into tResult
> if the result is not a number then breakpoint
>  CATCH tError
> breakpoint
>  END TRY
> 
>  add 1 to tRecordCounter
>   END REPEAT
> 
>   return pDBID
> END arrayToSQLite
> 
> 
>> On Jun 3, 2022, at 15:04 , doc hawk via use-livecode 
>>  wrote:
>> 
>> A couple of lines of code with declarations, storing, and retrieving would 
>> probably help.
>> 
>> 
>> There also might be a UTF issue (which would be beyond me)—a hash should be 
>> in good old 6.5 bit ASCII, not something newfangled with eight or more bits.
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Zip file problem on Mac

2022-05-08 Thread Brian Milby via use-livecode
I imagine this one isn’t documented due to the issues where you can’t read 
properties from an existing zip file.  I think I found it when digging into the 
source.

I’m sure there are some that could be found by looking at the source code that 
is still available.

Sent from my iPhone

> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode 
>>> :
 On 8 May 2022, at 2:00 am, Brian Milby wrote:
>>> It is a bug somewhere. See this big report:
>>> https://quality.livecode.com/show_bug.cgi?id=21447 
>>> 
>>> I actually think it is related. The zip should be created as a Unix variant 
>>> and not Fat and file attributes should be stored. One thing that could be 
>>> tried is to manually set the executable bit when creating the archive. I 
>>> was able to store a link in a zip using this method, but there is no way to 
>>> read the file attributes in LC.
>> Brian, utter genius!
>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a 
>> ‘unx’ zip and not adding the external attributes – but it looks like you 
>> have provided the workaround (for my problem of execute permissions at least)
>> I tried the implausible trick of using the undocumented 
>> revZipSetItemAttributes
>> put 0x8000 into tExtAttributes -- regular file
>> add 0x01ED to tExtAttributes -- rwxrwxr-x -- modify as per file (and may 
>> only do for Mac,Linux?)
>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes  — 3 for unix 
>> system
>> for each file as it is added to the archive. I didn’t really expect this to 
>> work as the file is already added to the archive in ‘fat’ format.
>> Not only does unzip -Z report that the archive items are now in ‘unx’ format 
>> with permissions rwxrwxr-x, but astonishingly the zip actually decompresses 
>> to a working executable – well, only so far briefly tested on a Mac but it 
>> seems likely this is going to work on all platforms. 
>> As you point out in your bug 21447 report, revZip probably won’t be able to 
>> decompress the archive correctly because of other deficiencies, but I only 
>> need the user's system to unpack it. And I will have to modify the 
>> permissions for each individual file in the archive. 
>> I never thought I would use the expression, but, like , awesome! OK sorry I 
>> went there, but jolly well done, that man!
>> 
>> Neville
> 
> I really wonder how much more useful features are undocumented and why they 
> do not find their way into the dictionary!?
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: Zip file problem on Mac

2022-05-06 Thread Brian Milby via use-livecode
It is a bug somewhere.  See this big report:
https://quality.livecode.com/show_bug.cgi?id=21447

I actually think it is related.  The zip should be created as a Unix variant 
and not Fat and file attributes should be stored.  One thing that could be 
tried is to manually set the executable bit when creating the archive.  I was 
able to store a link in a zip using this method, but there is no way to read 
the file attributes in LC.

Thanks,
Brian

Sent from my iPhone

> On May 6, 2022, at 3:10 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hm,
> is it really a bug  or does revZip just stick to the zip specs?
> 
> 
> 
>> Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode 
>> :
>> 
>> I have submitting a report to QC (Bug 23698 
>> )
>> 
>> Thanks Matthias for clarifying that permissions are not correct in the 
>> archive. I can now add that the Linux archive has the same problem. The 
>> Windows archive created by revZip executes correctly.
>> 
>> So the problem is nothing to do with Apple. TheUnarchiver and Keka changing 
>> the permissions to what they think they ought to be sounds well-intentioned 
>> but highly problematic (what’s the meme for the opposite of an 
>> overprotective nanny? Busybody big sister?)
>> 
>> Your last comment caused me to realise that I have only changed very 
>> recently to automating the process of creating the zip files as a 
>> post-standalone build-process using revZip. Previously I created the zip 
>> files by hand, and my beta-tester uses Windows. Thought I was being clever. 
>> So the bug in the LC implementation may have been present for a long time.
>> 
>> Neville
>> 
>>> 
>>> Neville, i can confirm that behavior even under BigSur.
>>> 
>>> I've created a small standalone with LC 10DP3 on BigSur and created  2  zip 
>>> files  from the output folder using LC's zip library and using shell 
>>> command zip.
>>> 
>>> Running the shell command 'zipinfo' to analyse both zip files showed, that 
>>> the zip created with LC's zip library did not contain any executable 
>>> permissions while the zip created with macOS zip shell command did contain 
>>> the permissions.
>>> So it seems the LC's zip library does not store the permissions in the zip.
>>> 
>>> According to your comment about The Unarchiver. Yes, i can also confirm 
>>> that The Unarchiver and also Keka can extract the zip file created with LC 
>>> and the standalone in the extracted folder is executable again.
>>> But...
>>> As zipinfo did list all the files wihtout any executable permissions, i 
>>> unzipped the zip with the shell command 'unzip' and that standalone was not 
>>> executable again. All files showed exact those permissions that zipinfo 
>>> showed before.
>>> 
>>> So i assume the following: Keka and The Unarchive seem to correct file 
>>> permissions when they detect a folder structure that seems to be an app 
>>> bundle. But that's just an assumption.
>>> At least Keka seems to have such feature according to its change log 
>>> Changes in version 1.0.11 
>>> 
>>> 
>>> But anyway. The LC zip library ignores the permission when creating an 
>>> archive.  If this worked before with older versions of LC  i cannot say, as 
>>> i always used the zip shell command or tools like Keka.
>>> 
>>> 
>>> Matthias
>>> 
>>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Image Editing

2022-04-08 Thread Brian Milby via use-livecode
The image on the card it 320x200 (rough, for discussion).  The file is 
1280x800.  I do an import as paint and the formatted size matches the file 
initially.  Fill/draw anything and the formatted size is now the same as the 
object.  I’m saying it is downsized (scaled down).

If I zoom in so the object is 640x400 (some not visible as it is off the card), 
then edit the formatted size changes to match.

Sent from my iPhone

> On Apr 8, 2022, at 2:50 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I'm not sure I understand. When you "downsize" do you mean you're scaling? 
> Or are you creating a new image? Or cropping the original?
> 
>> On 4/7/22 9:11 PM, Brian Milby via use-livecode wrote:
>> Greetings list people!
>> I am currently working on a project where we will be editing images on a
>> mobile device.  I'm running into an issue where the formatted height and
>> width of the image change.  Most of the images are natively 1600x1200 but
>> we initially display them scaled to fit on the screen.  When the user does
>> any edit action at a zoomed out level, the image is downsized to the
>> current zoom.  Once downsized, if you zoom in on the image and edit, the
>> formatted size doesn't change.
>> Is there any way around this?  What we would really like is to edit the
>> image and keep it at the full resolution.
>> We are currently using the native LiveCode paint/bucket tools.  Although
>> most of my testing is in the IDE at the moment, we do use resize handlers
>> to format for the actual device resolution.
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Mobile Image Editing

2022-04-07 Thread Brian Milby via use-livecode
Greetings list people!

I am currently working on a project where we will be editing images on a
mobile device.  I'm running into an issue where the formatted height and
width of the image change.  Most of the images are natively 1600x1200 but
we initially display them scaled to fit on the screen.  When the user does
any edit action at a zoomed out level, the image is downsized to the
current zoom.  Once downsized, if you zoom in on the image and edit, the
formatted size doesn't change.

Is there any way around this?  What we would really like is to edit the
image and keep it at the full resolution.

We are currently using the native LiveCode paint/bucket tools.  Although
most of my testing is in the IDE at the moment, we do use resize handlers
to format for the actual device resolution.

Thanks for any thoughts or pointers,
Brian
___
use-livecode mailing list
use-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: drawingSvgCompileIcon(pIconName) always BLACK

2022-04-06 Thread Brian Milby via use-livecode
I guess I need to make an update to this library :)

Sent from my iPhone

> On Apr 6, 2022, at 1:28 PM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2022-04-06 18:16, Klaus major-k via use-livecode wrote:
>> Hi all,
>> so sorry, looks like I completely f. up here.
>> Sorry for the confusion, not may day...
>> See:
>> 
> 
> Hehe - no worries.
> 
> So in answer to your original query about wanting to be able to color the 
> icons - the drawing library supports the 'currentColor' attribute in SVG - 
> and this is tied to the 'backgroundColor' property of the image object the 
> drawing is set on.
> 
> It would only take a small tweak to Brian's extension to make this work - 
> adding `fill="currentColor"` to the path node it generates.
> 
> Brian's extension works by fetching the path data from the IconSVG library, 
> wrapping it in the necessary SVG XML, and then compiling it with 
> drawingSvgCompile.
> 
> Irksomely, there does not seem to be any support for marking colors in SVGs 
> as 'currentColor' in any SVG editor we've come across (unless its deeply 
> buried in it). So one strategy there is making sure the colors you want to be 
> configurable in the SVG are set to a known unlikely random color (e.g. 
> #ABCDEF), exporting as SVG XML from the editor and then just doing a global 
> find/replace of (e.g.) #ABCDEF with currentColor.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

2022-03-22 Thread Brian Milby via use-livecode
True about speed, but I was more thinking about storage space and tolerance to 
missing words.  A complete dictionary would likely be faster.

Brian

Sent from my iPhone

> On Mar 22, 2022, at 9:07 AM, Craig Newman via use-livecode 
>  wrote:
> 
> If you have a database at all, it would cost nothing much in speed to just 
> use the whole thing all the time. Put the database into an array, of the form:
> “cat 1”
> "chicken 2”
> “elephant 3”
> ‘miaou 1"
> …
> 
> The hard part is finding that database. It would take quite a while to build 
> and finalize your own.
> 
> Craig
> 
> 
>> On Mar 21, 2022, at 10:47 PM, Brian Milby via use-livecode 
>>  wrote:
>> 
>> Well, you could set up your rules and just database the exceptions.  Then 
>> you at least have a guess for the words that you don’t “know” the answer 
>> for.  If there is a database miss, then use the rule set.
> 
> ___
> use-livecode mailing list
> use-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: Counting Syllables

2022-03-21 Thread Brian Milby via use-livecode
Well, you could set up your rules and just database the exceptions.  Then you 
at least have a guess for the words that you don’t “know” the answer for.  If 
there is a database miss, then use the rule set.

Sent from my iPhone

> On Mar 21, 2022, at 8:27 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> I’ve tried a bunch of things. It’s 80-90% correct, but failing 10-20% of the 
> time due to irregulars isn’t acceptable.
> I think I have to look into a database table lookup solution, but I’m 
> dreading it.
> 
> Thanks,
> 
> Rick
> 
>> On Mar 21, 2022, at 4:18 PM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Such cases are rare, certainly, but “queue” comes to mind. I am sure that a 
>> vowel parsing routine will be reasonably accurate, but not perfect, as per 
>> the previous example.
>> 
>> A quick search did not turn up any “list of all words and their syllable 
>> count”, but there still might be one. One site mentioned that algorithms 
>> were being used, but were “not perfect”.
>> 
>> Craig
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Funding

2022-03-17 Thread Brian Milby via use-livecode
Would it be bad form to post the link?  I just kicked in a bit more since I 
think it has great potential.  I hope it fully funds.

Sent from my iPhone

> On Mar 17, 2022, at 1:56 PM, Tom Glod via use-livecode 
>  wrote:
> 
> welcome to the club I have the same issue.  No spam filter on my end, I
> checked.
> Heather, I do get the other mailings about blogs and the livecode services.
> Is that a different list?
> 
>> On Thu, Mar 17, 2022 at 1:14 PM J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> I think there's still time to support the project. No risk, you get your
>> money back if it doesn't fund. I personally hope it does, the benefits
>> would be big.
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On March 17, 2022 11:47:05 AM "R.H. via use-livecode"
>>  wrote:
>> 
>>> I did not receive any letter regardings any funding.
>>> 
>>> Roland
>>> ___
>>> use-livecode mailing list
>>> use-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: Problems with Filter?

2022-03-12 Thread Brian Milby via use-livecode
Your source was only one line.  The default for filter is to work by line.  It 
returns all lines that match, hence the same string you started with.

Sent from my iPhone

> On Mar 12, 2022, at 5:22 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> 
> put "THIS*FIND" into tTarget
> 
> put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString
> 
> put tLargeTextString into pText
> 
> 
> — Adding your code here Mark:
> put ".*THIS.*FIND.*" into tTarget
> 
> filter pText with regex pattern tTarget into tFilteredTextResult
> 
> answer "tFilteredTextResult = " & tFilteredTextResult
> 
> yields: 
> 
> tFilteredTextResult = "abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz”
> 
> So what did it filter?  It’s the same string I started with.
> 
> Rick
> 
>> On Mar 12, 2022, at 3:43 PM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> or
>>   put ".*THIS.*FIND.*" into tTarget
>>   filter pText with regex pattern tTarget into tFilteredTextResult
> 
> ___
> use-livecode mailing list
> use-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: Problems with Filter?

2022-03-12 Thread Brian Milby via use-livecode
Filter removes non-matching lines.

On Sat, Mar 12, 2022 at 3:07 PM Rick Harrison via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mark,
>
> matchText works fine.
>
> That doesn’t explain why “filter” doesn’t work though.
>
> Thanks!
>
> Rick
>
> > On Mar 12, 2022, at 2:05 PM, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Try matchtext rather than filter:
> >
> > local tTextt, tFound?
> > put matchtext(tLargeTextString, ".*THIS(.*)FIND.*", tText) into tFound?
>
> ___
> use-livecode mailing list
> use-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: add a "scale" option to the icongravity

2021-12-24 Thread Brian Milby via use-livecode
Wouldn’t you really need another property like “iconSizing” which would have 
values of “none” or “clip” (current behavior), “resize” or “fill” (the current 
iconGravity option), and “scale” (your proposal)?  I can think of situations 
where clip and scale would need the current positioning afforded by the gravity 
setting.

Merry Christmas everyone!
Brian

Sent from my iPhone

> On Dec 24, 2021, at 7:49 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I just added a feature request to the quality center.
> 
> For ICONGRAVITY we now have the "resoie" option, 
> which will scale the image unproportionally in the button,
> which is erm. not the best option... 8-)
> 
> Maybe we can have a "scale" option, too, which will scale the 
> image in the button, but always proportionally!
> That would make snse and remove some extra work!
> 
> Fell free to add a comment:
> 
> 
> Have some nice holidays!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Brian Milby via use-livecode
I’ll admit that I modeled my code after code in the IDE somewhere (property 
editor).  Now I wonder why they didn’t just use split.

Sent from my iPhone

> On Dec 21, 2021, at 1:14 PM, Keith Clarke via use-livecode 
>  wrote:
> 
> Ah, yes of course - split a list variable with comma to form an array, being 
> the inverse of combine tArray with comma to create a list. 
> 
> "The Worm is the Spice! The Spice is the Worm!” - the Dune weird array thing! 
> 
> Thank you, Alex - another synapse is ignited by the enlightenment… for a 
> while, anyway! :D
> Best,
> Keith
> 
>> On 21 Dec 2021, at 17:33, Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> Hmmm - maybe I'm missing something, but 
>> 
>> Can't you use the feature of "using a numeric-indexed array as key" ?
>> 
>> (AFAIK it's an undocumented feature, except in the original release notes 
>> for 5.x, which are no longer on the downloads site, and which I can't find 
>> my copy of - so if anyone has them, could they re-post somewhere. This 
>> feature allows you to use a numeric-indexed array as a key, equivalent to 
>> presenting a set of keys:
>> 
>> put "a,b,c" into tA
>> split tA by comma
>> -- now we have tA[1]="a", tA[2]="b", tA[3]="c"
>> put "def" into tArray[tA]
>> -- now tArray["a"]["b"]["c"] = "def"
>> 
>> So, where Brian's code does
>> 
>>> put the hilitedElement of the target into tElement
>>> put 0 into tIndex
>>> repeat for each item tItem in tElement
>>>   add 1 to tIndex
>>>   put tItem into tReference[tIndex]
>>> end repeat
>>> set the htmltext of field "ItemText" to tArray[tReference]
>> 
>> that should be equivalent to
>> 
>> put the hilitedElement of the target into tElement
>> split tElement by comma
>> set the htmltext of field "ItemText" to tArray[tElement]
>> 
>> Alex.
>> 
>> P.S. I also apologise for not looking at this earlier; I saw an earlier 
>> email and thought to myself "Hmmm. I bet that's a case for that weird array 
>> feature :-), and went looking for my copy of the release notes; when I 
>> failed to find them, I forgot to look further into it.
>> 
>> 
>> 
>> On 21/12/2021 15:19, Brian Milby via use-livecode wrote:
>> 
>>> I saw this originally and meant to dig a bit.  Sorry for causing additional 
>>> work for you.  Here is a widget script that does pretty much what you are 
>>> doing but leverages a way of array access that isn’t obvious.
>>> 
>>> https://github.com/bwmilby/DocEditorPlus/blob/master/DocEditorPlus_Scripts/stack_DocEditorPlus_widget_id_1008.livecodescript
>>> 
>>> You should not need to use a case statement.  In my case the value was HTML 
>>> in one case but plain text otherwise.
>>> 
>>> It is part of a more involved stack, but the card with this widget may be 
>>> helpful for your purposes.
>>> 
>>> Thanks,
>>> Brian
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Dec 21, 2021, at 6:38 AM, Keith Clarke via 
>>>> use-livecode  wrote:
>>>> 
>>>> Hi folks,
>>>> For future reference, below is how I managed to get this sorted. The 
>>>> solution seems rather ugly, but it works for the fixed depth of Tree View 
>>>> data I’m interested in.
>>>> 
>>>> The root cause seems to be down to the way LiveCode handles array keys 
>>>> passed in from variables. It doesn't seem possible to define a complete 
>>>> multidimensional array in as a text string (as one might build URLs with 
>>>> parameters). Rather, variables seem to be recognised and processed only if 
>>>> passed in for each individual array key, within its square brackets. 
>>>> Furthermore, the square brackets seem to need to be present in the markup 
>>>> of the array access call - hence the ugly switch statement with explicit 
>>>> cases for each level of Tree View depth rather than something more dynamic 
>>>> & generic...
>>>> on hiliteChanged
>>>> 
>>>> put the arrayData of control "Tree" into tTreeData
>>>> 
>>>> put the hilitedElement of control "Tree" into tHilitedElement
>>>> 
>>>> // Identify element depth
>>>> 
>>>> put the number of items in tHilitedElement into tDepth
>>>> 
>>&

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Brian Milby via use-livecode
I saw this originally and meant to dig a bit.  Sorry for causing additional 
work for you.  Here is a widget script that does pretty much what you are doing 
but leverages a way of array access that isn’t obvious.

https://github.com/bwmilby/DocEditorPlus/blob/master/DocEditorPlus_Scripts/stack_DocEditorPlus_widget_id_1008.livecodescript

You should not need to use a case statement.  In my case the value was HTML in 
one case but plain text otherwise.

It is part of a more involved stack, but the card with this widget may be 
helpful for your purposes.

Thanks,
Brian

Sent from my iPhone

> On Dec 21, 2021, at 6:38 AM, Keith Clarke via use-livecode 
>  wrote:
> 
> Hi folks,
> For future reference, below is how I managed to get this sorted. The solution 
> seems rather ugly, but it works for the fixed depth of Tree View data I’m 
> interested in.
> 
> The root cause seems to be down to the way LiveCode handles array keys passed 
> in from variables. It doesn't seem possible to define a complete 
> multidimensional array in as a text string (as one might build URLs with 
> parameters). Rather, variables seem to be recognised and processed only if 
> passed in for each individual array key, within its square brackets. 
> Furthermore, the square brackets seem to need to be present in the markup of 
> the array access call - hence the ugly switch statement with explicit cases 
> for each level of Tree View depth rather than something more dynamic & 
> generic...
> on hiliteChanged
> 
> put the arrayData of control "Tree" into tTreeData
> 
> put the hilitedElement of control "Tree" into tHilitedElement
> 
> // Identify element depth
> 
> put the number of items in tHilitedElement into tDepth
> 
> put 0 into tLevelCount
> 
> repeat for each item tKey in tHilitedElement
> 
> add 1 to tLevelCount
> 
> put tKey into tLevel[tLevelCount]
> 
> put "[tLevel[" & tLevelCount & "]]" after tElement
> 
> end repeat
> 
> // Build array key to show element value in field
> 
> switch tDepth
> 
> case 1
> 
> put tTreeData[tLevel[1]] into field "Test"
> 
> break
> 
> case 2
> 
> put tTreeData[tLevel[1]][tLevel[2]] into field "Test"
> 
> break
> 
> case 3
> 
> put tTreeData[tLevel[1]][tLevel[2]][tLevel[3]] into field "Test"
> 
> break
> 
> end switch
> 
> end hiliteChanged
> 
> I’m sure the experienced developers here would find cleaner ways to achieve 
> this but this hack works and I can get back to evaluating the data accessible 
> from the PDF widget! :) 
> 
> Best,
> Keith
> 
>> On 20 Dec 2021, at 21:13, Keith Clarke via use-livecode 
>>  wrote:
>> 
>> I’m using the Tree View widget to provide a quick and dirty read-only 
>> display of the various arrays of information that can be extracted from the 
>> PDF Widget.
>> 
>> Each PDF page contains too much text to read & understand within the 
>> constraints of a single line in a Tree View control. So, on highlighting an 
>> element in the Tree View, I want to display its value - such as 
>> arrayData[“Pages”][“1”][“text”] - into a field to read the detail extracted. 
>> (Currently I’m putting it into the message box as an interim step, as I tend 
>> to build & debug my scripts line by line and this is as far as I’ve got!)
>> 
>> I may have misread the docs but it seems that when a Tree View element is 
>> hilited, one doesn’t get immediate access to the element’s value. Instead, 
>> one has to jump through hoops, by handling the hilitedElement, which returns 
>> the nested keys of the element. So, I’m simply trying to convert this 
>> comma-separated list to an array reference, so that I can get the value 
>> associated with this key.
>> 
>> If I’ve missed a simple means to access the Tree View element’s value 
>> directly ‘on click', I’ll gladly change course!
>> Best,
>> Keith 
>> 
 On 20 Dec 2021, at 20:46, J. Landman Gay via use-livecode 
  wrote:
>>> 
>>> I'm confused about what the goal is. The hilitedElement contains the text 
>>> of the selection. The array is already in place, so you don't really need 
>>> to add to it.
>>> 
>>> The reason you're seeing text in the message box is because the last line 
>>> contains an unspecified "put". Without a destination for the "put" it will 
>>> go automatically to the message box. If you want to work with it, you'd 
>>> need to put the value into a variable.
>>> 
>>> What's the purpose of the concatenation, and what do you want to do with 
>>> the selection?
>>> 
>>> On 12/20/21 11:11 AM, Keith Clarke via use-livecode wrote:
 Hi folks,
 I’m struggling to access the value from a Tree View widget’s data array as 
 the hilitedElement changes - though I think my issue is more about working 
 with arrays than the Tree View widget.
 The following test script (on the Tree widget) successfully gets the 
 Tree’s arrayData into tTreeData and creates a ‘correct-looking’ nested 
 array key syntax for any changing tHilitedElement.
 However, the last line displays the tHilitedElement variable 

Re: How to in LC for Desktop and the Web?

2021-12-09 Thread Brian Milby via use-livecode
As I understand it, #1 doesn’t really work… it needs to be served from a web 
server.  When you test in the IDE, it actually serves it from a server instance 
that is started for that purpose.

As for building the paths, I’m not exactly sure but do know that stuff in the 
“copy files” section ends up in the package and virtual file system that is 
used in the running app.

Sent from my iPhone

> On Dec 9, 2021, at 6:36 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Following up (in case someone has an answer):
> 
> I see in the description for SpecialFolderPath(), that under HTML5 (platform) 
> the following are available:
> "temporary": A folder where temporary files can be placed
> "engine": The folder where the standalone initial file system is extracted
> "resources": The resources folder where files or folders specified in the 
> Standalone Builder are located.
> 
> But where do these point to:
> 
> 1) When the HTML5 app is running from the local file system (say Windows) in 
> a browser
> 
> VS
> 
> 2) When the HTML5 app is running from a server URL in a browser
> 
> If no one knows the answers, I can always run a set of tests to determine the 
> values.
> 
> 
>> On 11/24/2021 7:15 PM, Paul Dupuis via use-livecode wrote:
>> I have an LC application that currently runs on Window and macOS, that I 
>> want to try to get running under LC 10 for the web. One characteristic of 
>> the app is that it opens a number of external stacks. On desktop platforms, 
>> these external stacks (outside the .EXE (windows) or .app package (macOS) 
>> are found in a folder at the same level as the installed application.
>> 
>> So if the app is installed at C:\Program Files\MyApp\MyApp.exe
>> The the folder containing the external stacks is at C"\Program 
>> Files\MyApp\FolderOfStacks\
>> 
>> I get the path of the mainstack and use it to construct the path to the 
>> folder
>> 
>> If I build for Web, is there some equivalent model for external stacks?
>> 
>> I get that I may need to have a:
>> 
>> switch platform()
>>   case "Win32"
>>   case "macOS"
>>  -- load external stacks the way I do now
>>  break
>>   case "web"
>>  -- load external stacks some other way
>> break
>> end switch
>> 
>> but what is the web best practice for that 'some other way"? And is it 
>> different if I am testing locally vs hosting MyApp on a server?
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Android tap location doesn't match visual location

2021-11-19 Thread Brian Milby via use-livecode
Would it be possible to use a send in time approach?  If not for real, you 
might could try to avoid the loop as a test.  I’ll confess I have not seen that 
particular issue though.

Sent from my iPad

> On Nov 19, 2021, at 11:49 PM, scott--- via use-livecode 
>  wrote:
> 
> I’m having trouble with an app that up until now has just been for iOS. Most 
> of the changes have been pretty straight forward but I’ve encountered a 
> specific case where touching a button doesn’t pass the touch message to the 
> button being tapped… unless I touch significantly below the button (I also 
> had to switch from mouse messages to touch messages in this particular case.) 
> This is not a general issue. It only happens when I show a group  containing 
> the buttons in question and while this group is displayed there is repeat 
> loop running that includes  “wait with messages” (I’m faking a modal dialog.) 
> I encountered this once before under the same circumstances (a fake modal 
> dialog while moving an iOS app to Android) and simply switched to using the 
> built in dialog. Unfortunately, that won’t work in this case.  Any thoughts?
> 
> --
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   https://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth1-360-734-4701
> --
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Webview scrolling

2021-10-08 Thread Brian Milby via use-livecode
Could you detect the keyboard being shown and resize the web view?

Sent from my iPad

> On Oct 8, 2021, at 9:21 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I told a web designer I'd ask here to see if anyone has ideas. I'm 
> displaying a web page with a form in a browser widget. On Android, when I tap 
> into one of the lower form fields, the browser content does not scroll up and 
> the keyboard covers the field you're trying to type into. There are two or 
> three entry fields at the bottom that do that.
> 
> On iOS it scrolls up automatically so there's no problem. Android doesn't 
> move at all. You can manually scroll to the bottom but not beyond it, so the 
> lower fields are obscured.
> 
> Anyone here know how to fix that? The designer has tinkered with margins and 
> padding but that isn't working.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Stack with the same name loop

2021-10-07 Thread Brian Milby via use-livecode
Yes, but it does not add anything else.  If you do it two times you end up with 
2 identically named stacks.  You can save them to disk with different long 
names and end up with multiple stacks with the same short name but different 
long name.  My demo is on bug 18793.  It works in the IDE.

Sent from my iPhone

> On Oct 7, 2021, at 1:58 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Brian Milby wrote:
> 
> > Clone stack avoids the check.  It is not that hard to get
> > multiple stacks with the same short name but different
> > long names in memory (in a standalone).
> 
> Clone alters the name of the new clone stack.  The engine prepends it with 
> "Copy of ".
> 
> AFAIK it's done that since 1998.
> 
> 
> FWIW I did some extensive research on duplicate stack names issues about four 
> years ago, attempting to pin down how the engine behaves and what the IDE 
> does.
> https://quality.livecode.com/show_bug.cgi?id=1061#c20
> 
> TL/DR: The engine has no problem with duplicate short stack names, but some 
> IDE needs will be compromised until there is an adjustment to how the engine 
> internally resolves short stack name references;
> 
> Currently the old MC implementation remains in place in which those are 
> resolved by load order (which is almost never what any scripter needs), but 
> more useful would be layer/message path order (which is what most scripts and 
> esp IDE tools need).
> 
> -- 
> 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


Re: Stack with the same name loop

2021-10-07 Thread Brian Milby via use-livecode
I was not aware of the rename possibility, so it would be possible to produce a 
plug-in that would use your code snip to allow a duplicate named stack to open.

The only time I’ve really run into this is with “Untitled 1” stacks.  I’ve done 
something quick and saved it without changing the stack name.  Then opening two 
of those such stacks is an issue.  This is about the only time I would want to 
have two same name stacks open (and would probably rename them anyway once both 
were open).

I think this falls in the realm of something that could be done but there isn’t 
much real reason that it is needed.  That does assume that the engine isn’t 
changed to remove the options that currently exist.  I only really started 
looking at it due to the old bug reports that come up every year or two.

Thanks for your comments Mark!  Very enlightening.

Brian

Sent from my iPhone

> On Oct 7, 2021, at 12:44 PM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2021-10-07 17:25, Brian Milby via use-livecode wrote:
>> I would be more of a fan of lowering the engine check to just a
>> warning vice a hard error/prohibition.  Like you said, if you don’t
>> use the long name then most of the time you are going to reference the
>> earliest opened version of the stack (based on the linked list of open
>> stacks).  But if you reference an object within the same stack (or at
>> least the visible card), it can reference by short name.  I guess I
>> should expand my test stack to check that.
> 
> I'm not quite sure how the engine would give a warning - the behavior being 
> discussed in this thread is the way the IDE deals with how the engine deals 
> with a specific case...
> 
> In general, the engine will either let something happen or it won't. In this 
> specific case, it doesn't let implicit opens of stacks (which is what all 
> initial openings of stacks are when you use a 'stack ' chunk are - 
> given the potential disconnect between what  is, and what stackfile 
> might actually be loaded) proceed if there is already a stack with the same 
> name in memory...
> 
> However it *does* send a message 'reloadStack' that can be handled so script 
> can decide what to do.
> 
> Indeed, this handler could happily let things go ahead:
> 
>  on reloadStack pStackName, pPath
>local tOldFilename
>set the name of stack pStackName to (pStackName & "~")
>put the filename of stack pStackName into tOldFilename
>set the filename of stack pStackName to "this is a unique name"
>go stack pPath
>set the name of stack "this is a unique name" to pStackName
>  end reloadStack
> 
> The IDE chooses not to do this to stop the large number of other issues which 
> could arise from having multiple stacks in memory with the same name (in an 
> environment where it might happen 'by accident', rather than for any 
> particularly controlled reason as might be the case in a standalone 
> environment written to cope with it).
> 
>> I can see a couple of ways to implement this where it would not impact
>> existing code.  First would be a global flag to enable opening of
>> files with the same name (default to off/false).  The second would be
>> a “force” parameter to the open command which would bypass the check.
> 
> I guess my real question here is what would be the purpose of that? i.e. What 
> problem does it solve?
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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 with the same name loop

2021-10-07 Thread Brian Milby via use-livecode
I would be more of a fan of lowering the engine check to just a warning vice a 
hard error/prohibition.  Like you said, if you don’t use the long name then 
most of the time you are going to reference the earliest opened version of the 
stack (based on the linked list of open stacks).  But if you reference an 
object within the same stack (or at least the visible card), it can reference 
by short name.  I guess I should expand my test stack to check that.

I can see a couple of ways to implement this where it would not impact existing 
code.  First would be a global flag to enable opening of files with the same 
name (default to off/false).  The second would be a “force” parameter to the 
open command which would bypass the check.

Sent from my iPhone

> On Oct 7, 2021, at 11:17 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2021-10-07 15:57, Brian Milby via use-livecode wrote:
>> Clone stack avoids the check.  It is not that hard to get multiple
>> stacks with the same short name but different long names in memory (in
>> a standalone).  The engine makes sane choices when referencing the top
>> stack in that case.  Any individual stack can be referenced via the
>> long name.
> 
> Yes indeed, you don't actually need to even use clone stack - just 'set the 
> name of' will do it.
> 
> However, the fact you can do that from script is a different case from what 
> the IDE should let you do in the normal course of things (and indeed, perhaps 
> we should plug the holes in the engine which let it happen) in (a perhaps 
> vain?) attempt to stop people tying themselves into too many knots.
> 
> Things like the 'topStack' and 'defaultStack' are only sane references to the 
> actual underlying stack if they are used as direct syntax (where they resolve 
> to the internal pointer). As soon as they are rendered to a string (e.g. when 
> passed as an argument) that link is gone - further, if a stack has not been 
> saved then there is no way to distinguish one from the other with any 
> string-based reference (a stack's long id is only different from its name / 
> long name if it has a filename).
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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 with the same name loop

2021-10-07 Thread Brian Milby via use-livecode
Clone stack avoids the check.  It is not that hard to get multiple stacks with 
the same short name but different long names in memory (in a standalone).  The 
engine makes sane choices when referencing the top stack in that case.  Any 
individual stack can be referenced via the long name.

Sent from my iPhone

> On Oct 7, 2021, at 10:38 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2021-10-07 15:26, Pi Digital via use-livecode wrote:
>> Hi Mark (both :) )
>> Thanks for your explanation. Very thorough.
>> What I don’t understand is why the engine needs to delete the old
>> reference (weak handle) when invoking a ‘save as’. Is it not just a
>> matter of resaving you a new location and making the pointer to the
>> storage device for that instance? Why does it need to save it and then
>> remove from memory at all? Just carry on with what is already in
>> memory without the need to reload. That’s why we use a ‘save as’
>> anyway.
> 
> This isn't related to 'Save As' - nor is the engine doing anything here 
> beyond sending a message - which is enforcing the 'only one main stack with a 
> given (short) name exists in memory at any one time' invariant.
> 
> When a stack is deserialized from the on-disk file - before it is 'hooked up' 
> to anything (i.e. added to the list of things considered for any sort of 
> search), it sweeps through all loaded mainStacks and checks to see if there 
> is a name conflict (i.e. short name of new stack matches that of old).
> 
> If there is (and the filenames are different) then it deletes what it has 
> just loaded and sends a 'reloadStack' message. Otherwise, it hooks the new 
> loaded stack up to the internal list of things considered actual stacks.
> 
> The IDE handles the reloadStack message - it shows the dialog in question.
> 
> If you choose 'Cancel' it takes no action - so nothing changes (no new stack 
> loaded, no old stack deleted).
> 
> If you choose 'Purge' the IDE does its best to remove the current stack in 
> memory and *then* trys to load the new stack (from the different filepath) - 
> as (in principal) there is no longer any stack in memory with the conflicting 
> name, then engine loads it and things carry on.
> 
> If you choose 'Save' the IDE does the same as above except that *before* it 
> tries to remove the current stack from memory, it saves (save as, if the 
> current stack has no filename).
> 
> So the looping problem here lies somewhere in the process removing the 
> existing stack from memory / saving it.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Brian Milby via use-livecode
Ah, the problem with calling things “facts” where the data isn’t actually 
knowable.  The number of hairs on my head is a fact but not one that can be 
accurately known.  Kind of like the number of people who watched the Super 
Bowl.  In that context, true fact makes sense (also “cold hard fact”).  While 
it should be redundant, it emphasizes that the data being referenced is an 
actual fact and not an assumed fact.

My dad always was clear that “couple” of minutes was 2 and a few was 3.

Sent from my iPhone

> On Sep 8, 2021, at 3:55 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> My husband said the same when I told him about this thread. "Couple" means 
> two. I said yes, but colloquially it can mean "two or three or somewhere in 
> that range." We almost started a longer discussion about it, but I reminded 
> him of our 30+ years of ongoing talk about a "fact" so we both stopped.
> 
> Addendum: he claims there are "true facts." I say that is redundant, that a 
> fact is by definition true, and he's implying there are false facts (or as we 
> say in the US, "alternative facts.") This has been going on for years. It's a 
> friendly, amusing, kind of false disagreement. Then one day we just looked it 
> up in the dictionary and...a fact can either be a true bit of information, or 
> a generic datum.
> 
> And that spoiled all the fun.
> 
> On 9/8/21 6:14 AM, Keith Martin via use-livecode wrote:
 On Sep 7, 2021, at 11:04 PM, Martin Koob via use-livecode 
  wrote:
>>> 
>>> My wife and I have an ongoing disagreement about the term 'couple of’ in 
>>> terms of counting.  I say it means around 2 or 3ish.  She says it means 2. 
>>> Further she says if you wanted to say 3 or 4 you would say ‘a few’.
>> I'm the kind of person that distinguishes between 'like' (exclusive: similar 
>> to but not) and 'such as' (inclusive: similar to and part of the comparison 
>> set), so this is coming from a position of pedantry, but that's because I am 
>> a writer...
>> Strictly speaking, 'a couple' means two, no more and no less. In casual use 
>> (when counting, not when referring to relationship partnerships) it isn't 
>> unusual for it to be used in place of 'a few' and possibly mean three or 
>> even four, but it's not technically *correct.*
>> I too hope your wife's logic is what holds true!
>> :)
>> k
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: matchChunk & matchText broken?

2021-08-13 Thread Brian Milby via use-livecode
If the regularExpression includes a pair of parentheses, the position of the 
substring matching the part of the regular expression inside the parentheses is 
placed in the variables in the positionVarsList.

Sent from my iPhone

> On Aug 13, 2021, at 4:33 AM, Peter Reid via use-livecode 
>  wrote:
> 
> Either I'm doing something wrong or both matchChunk and matchText are broken.
> 
> For example using matchChunk:
> 
> local tStartPos, tEndPos
> put empty into tStartPos
> put empty into tEndPos
> 
> put matchChunk("hello world how are you", "\ ho[a-z]", tStartPos, tEndPos) 
> into itMatches
> 
> put itMatches & "|" & tStartPos & "|" & tEndPos & "|"
> 
> 
> The output is:true|||- in other words a match is found but the 
> positions are not being returned in the variables tStart and tEnd
> 
> I get the same behaviour from matchText, ie it correctly finds or not the 
> patterns I'm looking for but I don't get the positions (matchChunk) or text 
> (matchText).
> 
> These seem to be fairly fundamental and frequently used functions that should 
> just work. Which is why I'm assuming that I'm doing something wrong!
> 
> Please can anyone correct me (or confirm the fault)?
> 
> Thanks
> 
> Peter
> --
> Peter Reid
> Loughborough, UK
> 
> 
> ___
> use-livecode mailing list
> use-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: iOS clipboard?

2021-06-28 Thread Brian Milby via use-livecode
Need to use native fields to enable copy/paste functionality.

On Mon, Jun 28, 2021 at 3:29 PM Marty Knapp via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone have a suggestion for LC’s lack of support for clipboardData
> in iOS? I’ve implemented my customer database as an iOS app so I can do
> tech support when I’m away from the office and not have to lug along a
> laptop. Typically when I need to look up an order number or email (received
> by email) - I either try to memorize it or I write it down on a piece of
> paper and then type it into my database. Very clunk to say the least. It
> seems kinda crazy that I can’t copy the email address from the customer
> email and then paste that into my iOS app… Or did I miss something?
>
> 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: Mobile Scroller

2021-06-18 Thread Brian Milby via use-livecode
I have this working in SivaSiva for the stories module on Android.  It locks up 
on iOS so I have rotation disabled for now.  In my use case, the group is 
essentially the full screen with an image that is being moved around.  I’ll try 
to find the specific scripts tonight.

Thanks,
Brian

Sent from my iPhone

> On Jun 18, 2021, at 3:06 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Tom,
> 
> What handler are you doing this in?
> 
> 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 Tom Glod via use-livecode
> Sent: Friday, June 18, 2021 2:51 PM
> To: How to use LiveCode
> Cc: Tom Glod
> Subject: Mobile Scroller
> 
> Hi Folks,
> 
> I implemented a MobileControl "Scroller" to scroll a group.  Works great.
> However when I change the orientation, it no longer works correctly.
> 
> 
>   - I tried to just update the properties relating to the rect
>   - deleting / recreating
> 
> 
> mobileControlSet "CardContentScroller","visible",true
> 
> mobileControlSet "CardContentScroller","rect",the rect of *group* "Card
> Content" of this card of me
> 
> *put* 0,0,the width of *group* "Card Content" of this card of me,the
> formattedHeight of *group* "Card Content" of this card of me into
> tContentRect
> 
> mobileControlSet "CardContentScroller","contentRect",tContentRect
> 
> mobileControlSet "CardContentScroller","vIndicator",true
> 
> 
> but it still isn't updating properly.
> Not sure what i'm doing wrong.
> 
> The code runs on the orientationChanged message
> 
> Please help.
> 
> Thanks,
> 
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> use-livecode mailing list
> use-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: workaround for cut-off text in native scroller?

2021-06-01 Thread Brian Milby via use-livecode
Ok.  I’ll just pull down your demo and play around with it.

Sent from my iPhone

> On Jun 1, 2021, at 2:56 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Jaques,
> 
>>> Am 01.06.2021 um 20:38 schrieb J. Landman Gay via use-livecode 
>>> :
>>> 
>>> Sorry, no idea what "FSM of empty" might be? :-)
>> 
>> It's either the Flying Spaghetti Monster
> 
> I highly doubt that! :-D
> 
>> or fullscreenmode. ;)
> 
> Makes sense, thanks!
> And "of empty" means with NO fullscreenmode, I guess?
> 
> Tried that, no die!
> The dictionary tells me about "fullscreenmode":
> ...
> • empty - The stack is resized (not scaled) to fit the screen. 
> (default) This is the legacy behavior.
> ...
> 
> Maybe I am misunderstanding this, but my stack was cut off on the right and 
> bottom
> when setting FSM to EMPTY.
> 
> Dimensions of my stack are smaller than my devide!
> Stack: 800*400
> Device: 1280*720
> 
> Is the dictionary wrong or do I miss or misunderstand something important?
> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: workaround for cut-off text in native scroller?

2021-06-01 Thread Brian Milby via use-livecode
One thing to try for testing would be to use FSM of empty and see how many 
lines are required.  One thing I noticed with browser widget is that native 
elements render at device resolution inside regardless of FSM in use.  If it 
requires the same, then this is probably not related.  If the number changes, 
then I may be on to something.  In either case, having to fudge the height of a 
text field is not good.

Sent from my iPhone

> On Jun 1, 2021, at 11:00 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
>> Am 01.06.2021 um 16:38 schrieb Rick Harrison via use-livecode 
>> :
>> Hi Klaus,
>> What happens if you add 100 blank lines?
> 
> I get the white space of hundred empty lines in the scroller.
> 
>> What happens if you add 100 blank lines and the last one has something on it?
> 
> Did not try that.
> 
>> I hope you find a suitable workaround because that’s a serious bug!
> 
> Hm, not sure, but it looks like you need at least 5 empty lines to "fool" LC 
> to compute 
> the correct scroll of the native scroller. Means all lines are visible, but 
> not the EMPTY lines!?
> 
> And yes, this IS a serious bug!
> 
>> Rick
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: workaround for cut-off text in native scroller?

2021-06-01 Thread Brian Milby via use-livecode
I’ll need to build a test project this evening to reproduce using your full 
screen mode.  So far I have only used “empty” with a scroller.  Hopefully 
someone else will have more to suggest before then.

Thanks,
Brian

Sent from my iPhone

> On Jun 1, 2021, at 8:50 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Brian,
> 
>> Am 01.06.2021 um 13:57 schrieb Brian Milby via use-livecode 
>> :
>> 
>> Which full screen mode are you using?
>> The referenced fix works by extending the scroll region longer than the 
>> actual content with a goal of allowing you to get to the last line.  What 
>> are you seeing when you try to use that?  (Does it let you get any further 
>> or just doesn’t change it at all for you?)
> 
> at the end of my field I added:
> ...
> EMPTY line
> --
> Another empty line
> 
> 
> I tested with an offset of 60 and 100:
> ...
> put 0,0,(the formattedWidth of group "scrollgroup"),(the formattedHeight of 
> group "scrollgroup" + 100) into tContentRect
> ...
> These last lines are never displayed/scrolled to!?
> So now what?
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: workaround for cut-off text in native scroller?

2021-06-01 Thread Brian Milby via use-livecode
Which full screen mode are you using?
The referenced fix works by extending the scroll region longer than the actual 
content with a goal of allowing you to get to the last line.  What are you 
seeing when you try to use that?  (Does it let you get any further or just 
doesn’t change it at all for you?)

Sent from my iPhone

> On Jun 1, 2021, at 7:16 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> are there any (working!) workaround for this pesty bug where
> a correctly set up native scroller does not show the last line(s)?
> 
> Bug #: 
> 
> 
> I am really suprised that noone has noticed resp. reported this
> before, since this is a real showstopper in my opinion. :-/
> 
> OK, there is a special workaround on GITHUB for a stack of SWAMIs
> but this does not help in my current situation.
> 
> Any hints highly appreciated!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: lock messages and navigation bar widget

2021-05-21 Thread Brian Milby via use-livecode
Yes, I was impacted the same way a while back.  The lockMessages dictionary 
entry lists the messages that get locked and it is smaller than I expected.

Thanks,
Brian

Sent from my iPhone

> On May 21, 2021, at 2:39 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Brian,
> 
>> Am 21.05.2021 um 20:34 schrieb Brian Milby via use-livecode 
>> :
>> 
>> Works as expected/coded.  
> 
> hm, I had the naive thinking that "lock messages" would erm. lock the 
> messages. und just change the icon. :-D
> But this does obviously not apply to the navigation bar widget.
> 
>> Not sure how it would be changed (don’t know how to get to that state inside 
>> the widget).
> 
> OK, I just thought I was missing something.
> 
>> Anyway, to work with this you need to have your handler check to see if it 
>> needs to run.  Pretty easy if using it to navigate between cards.  If 
>> already on the destination card, then exit the handler.
>> Another way is to set a flag to skip the change handler before manually 
>> making the change in code.  Then when the handler starts, check for the flag 
>> before continuing.
> 
> Yes.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: lock messages and navigation bar widget

2021-05-21 Thread Brian Milby via use-livecode
Works as expected/coded.  Not sure how it would be changed (don’t know how to 
get to that state inside the widget).

Anyway, to work with this you need to have your handler check to see if it 
needs to run.  Pretty easy if using it to navigate between cards.  If already 
on the destination card, then exit the handler.

Another way is to set a flag to skip the change handler before manually making 
the change in code.  Then when the handler starts, check for the flag before 
continuing.

Sent from my iPhone

> On May 21, 2021, at 2:11 PM, Klaus major-k via use-livecode 
>  wrote:
> 

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

2021-05-21 Thread Brian Milby via use-livecode
For text, the method will depend on the size of the text.  In general, 
implement an undo stack and a redo stack.  For single line fields it could 
simply be a list for each.  After each change, add entry to undo list and clear 
redo list.  When doing undo, move entries to redo list allowing 
forward/backward movement between changes.

For longer text, an array based stack could be used.  Either store the full 
text or use the diff library - method will depend on size of text.

Sent from my iPhone

> On May 21, 2021, at 9:28 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Mike,
> 
>> Am 21.05.2021 um 15:23 schrieb Mike Kerner via use-livecode 
>> :
>> 
>> I _think_ that there might also be an undo manager built into levure, if
>> you are interested.
> 
> oh, OK, sounds great, will take a look!
> Thank you!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: dg with native controls in template

2021-04-30 Thread Brian Milby via use-livecode
I’m going to say that with the way the DG manages controls it would be an 
uphill battle to get something native to work.  One of the native widgets may 
work, but I have not purchased that set to test it out.  The one potential 
issue would be layers.  Since native controls layer on top of LC controls, if 
the control was supposed to be partially visible it may be fully visible (not 
sure if the group would clip it properly).

Sent from my iPhone

> On Apr 30, 2021, at 9:47 AM, Mike Kerner via use-livecode 
>  wrote:
> 
> not a terrible idea.
> We could probably also just set the hilite of a row.
> Something I've never tried: different hilite colors based on values in the
> rows...
> 
>> On Thu, Apr 29, 2021 at 3:48 PM Mark Smith via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> You can put an SVG Icon or a graphic image into a DG column, would either
>> of those work? Then you just need to script the behaviour of the widget or
>> graphic when it’s tapped on. I do something similar with check and uncheck
>> SVG icons.
>> 
>>> On Apr 29, 2021, at 8:23 PM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Let's say we want to have a scrolling area, like a DG, and we want one of
>>> the columns in that thing to be a native radio button on mobile, which we
>>> can activate with touch.
>>> I'm not aware of a way to do that in LC at present.
>>> Yes?
>>> No?
>>> Maybe so?
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Dynamic scripted nested array keys?

2021-04-24 Thread Brian Milby via use-livecode
I guess I should reply to myself and say why this works.  At some point the
feature was added that you could use an array as an index into an array.
The format is a one based ordered array of keys.  So tPath[1] is the first
level key, tPath[2] is the second level, etc.  If you wanted to get
tTree["one"]["two"] then tPath[1]="one" and tPath[2]="two" so you could
just get tTree[tPath].  Since comma is the default path delimiter (which
can be changed), you can use split to turn a path list into a path array.

On Sat, Apr 24, 2021 at 9:26 AM Brian Milby  wrote:

> Easiest way is to use split...
>
> Given a tree widget this will take a path from field 1 and put the value
> at that path in field 2
>
> on mouseUp pMouseButton
>local tTree, tLoc
>put the arrayData of widget 1 into tTree
>put field 1 into tLoc
>split tLoc by comma
>put tTree[tLoc] into field 2
> end mouseUp
>
> Thanks,
> Brian
>
> On Sat, Apr 24, 2021 at 9:06 AM Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> I have only partially been following this thread, but if you need to
>> find the array 'content' in an arbitrary nested array from a comma
>> delimited path of array keys, recursion is the way to do it:
>>
>> function fetchArrayContentFromPath pArray,pPath
>>-- pArray is an array
>>-- pPath is a comma delimited 'path' of array keys to the desired
>> content
>>local tKey
>>if pArray is not an array then
>>  return pArray -- I have reached the content, so return that content
>>else if pPath is empty then
>>  return pArray -- should not happen in a tree widget, but this is if
>> the path ends in an array instead of the content of an array element
>>else
>>  put item 1 of pPath into tKey -- get the key of element in the
>> currnet path
>>  delete item 1 of pPath-- remove it from the current path,
>> so the path is the next set of key(s)
>>  return fetchArrayContentFromPath(pArray[tKey],pPath) - recursively
>> fetch the remainig keys from the currnet array element
>>end if
>> end fetchArrayContentFromPath
>>
>> It will not matter is the 'path' is key1,key1 or
>> key1,key2,key3,key4,key5,key6,key7, or whatever.
>>
>>
>> On 4/24/2021 7:10 AM, Keith Clarke via use-livecode wrote:
>> > Hi folks,
>> > Inspired by Jaque’s (working - thank you!) response to my question
>> “Show Tree widget row contents on hover” I’ve isolated the final piece of
>> that puzzle that leaves me baffled.
>> >
>> > Specifically, can LiveCode accept a dynamically built key for a nested
>> multi-dimensional array? Copy the button script recipe below to see the
>> problem.
>> >
>> > Perhaps the LC array experts here can help explain why Jaque’s
>> hard-wired key definition works but my attempts to replicate this syntax
>> via scripting to support variable depth of arrays  get ignored? Is it my
>> syntax or just the way arrays work in LC…?
>> > on mouseUp pButtonNumber
>> >
>> > # Create a nested array
>> >
>> > put "Content" into tArray["key1"]["key2"]["key3"]["key4"]
>> >
>> >
>> > # Replicate the path response from the Tree widget actionInspect
>> function
>> >
>> > put "key1,key2,key3,key4" into pPath
>> >
>> >
>> > # Jaque's 'hard-wired' array key recipe works!
>> >
>> > answer tArray[item 1 of pPath][item 2 of pPath][item 3 of pPath][item 4
>> of pPath] --returns 'Content'
>> >
>> >
>> > # Replicate Jaque's syntax dynamically
>> >
>> > put the number of items in pPath into tKeyCount
>> >
>> > put empty into iNum
>> >
>> > repeat for each item i in pPath
>> >
>> > add 1 to iNum
>> >
>> > # Try building the full key string
>> >
>> > put "[" & item iNum of pPath & "]"after tKey1
>> >
>> >
>> > # Try building keys string to 'embed' into the regular array key syntax
>> >
>> > put item iNum of pPath after tKey2
>> >
>> > if iNum < tKeyCount then put "][" after tKey2
>> >
>> >
>> > # Try building by each key
>> >
>> > if i is not empty then put "[" & item iNum of pPath & "]" after tArray2
>> >
>> > end repeat
>> >
>> >
>> > # Dynamic tKey1 results
>> >
>> > answer tKey1 -- returns '["key1"]["key2"]["key3"]["key4"]' ...seems
>> 'correct'
>> >
>> > answer tArray & tKey1 -- returns '["key1"]["key2"]["key3"]["key4"]'
>> ...dynamic key definition is not appended to array(?)
>> >
>> >
>> > # Dynamic tKey2 results
>> >
>> > answer tKey2 -- returns '"key1"]["key2"]["key3"]["key4"'
>> >
>> > answer tArray[tKey2] -- returns null ...dynamic key definition is not
>> understood (as first level key)?
>> >
>> >
>> > answer tArray2 -- returns '["key1"]["key2"]["key3"]["key4"]' ...dynamic
>> key definition is not appended to array(?)
>> >
>> > end mouseUp
>> >
>> >
>> > Best,
>> > Keith
>> >
>> > ___
>> > use-livecode mailing list
>> > use-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: Dynamic scripted nested array keys?

2021-04-24 Thread Brian Milby via use-livecode
Easiest way is to use split...

Given a tree widget this will take a path from field 1 and put the value at
that path in field 2

on mouseUp pMouseButton
   local tTree, tLoc
   put the arrayData of widget 1 into tTree
   put field 1 into tLoc
   split tLoc by comma
   put tTree[tLoc] into field 2
end mouseUp

Thanks,
Brian

On Sat, Apr 24, 2021 at 9:06 AM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have only partially been following this thread, but if you need to
> find the array 'content' in an arbitrary nested array from a comma
> delimited path of array keys, recursion is the way to do it:
>
> function fetchArrayContentFromPath pArray,pPath
>-- pArray is an array
>-- pPath is a comma delimited 'path' of array keys to the desired
> content
>local tKey
>if pArray is not an array then
>  return pArray -- I have reached the content, so return that content
>else if pPath is empty then
>  return pArray -- should not happen in a tree widget, but this is if
> the path ends in an array instead of the content of an array element
>else
>  put item 1 of pPath into tKey -- get the key of element in the
> currnet path
>  delete item 1 of pPath-- remove it from the current path,
> so the path is the next set of key(s)
>  return fetchArrayContentFromPath(pArray[tKey],pPath) - recursively
> fetch the remainig keys from the currnet array element
>end if
> end fetchArrayContentFromPath
>
> It will not matter is the 'path' is key1,key1 or
> key1,key2,key3,key4,key5,key6,key7, or whatever.
>
>
> On 4/24/2021 7:10 AM, Keith Clarke via use-livecode wrote:
> > Hi folks,
> > Inspired by Jaque’s (working - thank you!) response to my question “Show
> Tree widget row contents on hover” I’ve isolated the final piece of that
> puzzle that leaves me baffled.
> >
> > Specifically, can LiveCode accept a dynamically built key for a nested
> multi-dimensional array? Copy the button script recipe below to see the
> problem.
> >
> > Perhaps the LC array experts here can help explain why Jaque’s
> hard-wired key definition works but my attempts to replicate this syntax
> via scripting to support variable depth of arrays  get ignored? Is it my
> syntax or just the way arrays work in LC…?
> > on mouseUp pButtonNumber
> >
> > # Create a nested array
> >
> > put "Content" into tArray["key1"]["key2"]["key3"]["key4"]
> >
> >
> > # Replicate the path response from the Tree widget actionInspect function
> >
> > put "key1,key2,key3,key4" into pPath
> >
> >
> > # Jaque's 'hard-wired' array key recipe works!
> >
> > answer tArray[item 1 of pPath][item 2 of pPath][item 3 of pPath][item 4
> of pPath] --returns 'Content'
> >
> >
> > # Replicate Jaque's syntax dynamically
> >
> > put the number of items in pPath into tKeyCount
> >
> > put empty into iNum
> >
> > repeat for each item i in pPath
> >
> > add 1 to iNum
> >
> > # Try building the full key string
> >
> > put "[" & item iNum of pPath & "]"after tKey1
> >
> >
> > # Try building keys string to 'embed' into the regular array key syntax
> >
> > put item iNum of pPath after tKey2
> >
> > if iNum < tKeyCount then put "][" after tKey2
> >
> >
> > # Try building by each key
> >
> > if i is not empty then put "[" & item iNum of pPath & "]" after tArray2
> >
> > end repeat
> >
> >
> > # Dynamic tKey1 results
> >
> > answer tKey1 -- returns '["key1"]["key2"]["key3"]["key4"]' ...seems
> 'correct'
> >
> > answer tArray & tKey1 -- returns '["key1"]["key2"]["key3"]["key4"]'
> ...dynamic key definition is not appended to array(?)
> >
> >
> > # Dynamic tKey2 results
> >
> > answer tKey2 -- returns '"key1"]["key2"]["key3"]["key4"'
> >
> > answer tArray[tKey2] -- returns null ...dynamic key definition is not
> understood (as first level key)?
> >
> >
> > answer tArray2 -- returns '["key1"]["key2"]["key3"]["key4"]' ...dynamic
> key definition is not appended to array(?)
> >
> > end mouseUp
> >
> >
> > Best,
> > Keith
> >
> > ___
> > use-livecode mailing list
> > use-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: PDF Widget

2021-04-23 Thread Brian Milby via use-livecode
Either that or everyone that wants it has business edition?

Sent from my iPhone

> On Apr 23, 2021, at 7:09 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> 
> 
>> Am 22.04.2021 um 15:17 schrieb Klaus major-k via use-livecode 
>> :
>> 
>> Hi all,
>> 
>> as far as I know the "PDF widget" is only available in the 
>> BUSINESS Version of Livecode.
>> 
>> I already asked this in the past, but I would like to be
>> able to buy this widget separately. 
>> 
>> Any idea if LC is planning to sell this separately at some time 
>> in the future?
>> 
>> 
>> Best
>> 
>> Klaus
> 
> noone else interested in buying that widget separately?
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: native scroller cuts off parts of last line in a field

2021-04-20 Thread Brian Milby via use-livecode
I think that is just a bug.  See here for workaround idea:

https://github.com/Himalayan-Academy/Siva-Siva-App/blob/nightly/behaviors/behavior_mobileScroller.livecodescript

Basic idea is to add 60 or so px to content region and then adjust a bit when 
not at the top.  Requires adjustments in scrollerDidScroll handler.

Thanks,
Brian

Sent from my iPhone

> On Apr 20, 2021, at 7:26 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> see subject...
> 
> I have a field, I grouped it and in the IDE I show the vscrollbar
> of that group. I added two extra EMPTY lines at the end of that field
> AFTER the last line, and in the IDE I can read the last line and see the bit 
> of white space below.
> 
> Then I created a native scroller according to the LC lesseon and it works 
> fine.
> --
> ommand scrollererstellen
>   put the rect of grp "scrollgroup" into tScrollerRect
>   put 0,0,(the formattedWidth of group "scrollgroup"),(the formattedHeight of 
> group "scrollgroup") into tContentRect
>   mobileControlCreate "scroller", "links"
>   mobileControlSet "links", "rect", tScrollerRect
>   mobileControlSet "links", "contentRect", tContentRect 
>   mobileControlSet "links", "visible", true
>   mobileControlSet "links", "scrollingEnabled", true 
>   mobileControlSet "links", "vIndicator", true 
>   mobileControlSet "links", "vscroll", 0
> end scrollererstellen
> 
> on scrollerDidScroll hOffset, vOffset
>   set the vScroll of group "scrollgroup" to vOffset
> end scrollerDidScroll
> --
> However the lower part of the last line is cut off in the native scroller and 
> I
> do not see the two empty lines!?
> What am I missing?
> 
> Thanks for any hint!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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: Multiple stacks showing at once on mobile

2021-04-19 Thread Brian Milby via use-livecode
Currently only one at a time, even if it does not render with content covering 
the whole screen (some full screen modes have black borders)

Sent from my iPhone

> On Apr 19, 2021, at 11:54 AM, Gabe J via use-livecode 
>  wrote:
> 
> Hey All,
> 
> Is it possible to have more than one stack showing at a time on mobile? Or
> is it always one stack showing at full-screen?
> 
> Gabe
> ___
> use-livecode mailing list
> use-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: Mobile Scroller Advice

2021-04-14 Thread Brian Milby via use-livecode
Thanks to a little off list help from Jacque, I was able to get this
working.  Here's the key piece:

   wait 10 milliseconds -- Panos workaround, bug #18924
   mobileControlSet pName, "hScroll", the hScroll of control pName
   mobileControlSet pName, "vScroll", the vScroll of control pName

The workaround in the bug report actually says wait 0 ms, but I found that
I had to increase it a bit for it to work on my test Pixel (I didn't try to
see how low I could go though).  I'm replying to myself to put the
information out there in case someone is searching the archives.

Thanks all,
Brian

On Wed, Apr 14, 2021 at 12:43 PM Brian Milby  wrote:

> It starts zoomed out with the whole image showing.  A tap will zoom in
> about 25% each time until fully zoomed in (pixel match to display).  The
> idea is that the image will zoom from the center instead of from the
> top/left.  No transition effects are currently used.
>
> At each size, the user can scroll around the entire image.  (It would
> actually be best to zoom around what is currently visible, but that is easy
> once I figure out the other piece.)
>
> The issue is that if viewing a very wide panorama, then jumping to the
> left side isn’t very appealing.
>
> Currently I do delete and recreate the scroller for each zoom, it just
> didn’t work right with the image centered in the group.
>
> Thanks,
> Brian
>
> Sent from my iPhone
>
> > On Apr 14, 2021, at 12:10 PM, J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I'm a little confused. Do you want the zoom to happen within a group
> with a scroller?
> >
> > I've done this a different way. Delete any existing scroller, lock the
> screen, resize the image and its group, unlock the screen with a visual
> effect like zoom in or whatever. Then recreate the scroller at the new
> group size.
> >
> > Is that what you're asking?
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.com
> >> On April 13, 2021 10:31:58 PM Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> Greetings on this lovely Tuesday evening.  I'm in need of a little
> mobile
> >> scroller wisdom.
> >>
> >> I'm working on an app that runs on mobile devices (Apple and Android).
> We
> >> are presenting an image and have enabled the ability for the user to
> tap on
> >> the image to zoom in.  Everything is working except the only way that I
> >> have been able to get the scroller to work reliably is to place the
> image
> >> at the top/left of the group.  What we would really like to do is keep
> the
> >> image centered on the screen as it expands.
> >>
> >> It may be totally obvious, but before I spend a bunch of time throwing
> >> darts and hoping for a bullseye, I thought it would be good to at least
> ask
> >> for a little help.
> >>
> >> Thanks for any assistance you can provide,
> >> Brian
> >> ___
> >> use-livecode mailing list
> >> use-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: Mobile Scroller Advice

2021-04-14 Thread Brian Milby via use-livecode
It starts zoomed out with the whole image showing.  A tap will zoom in about 
25% each time until fully zoomed in (pixel match to display).  The idea is that 
the image will zoom from the center instead of from the top/left.  No 
transition effects are currently used.

At each size, the user can scroll around the entire image.  (It would actually 
be best to zoom around what is currently visible, but that is easy once I 
figure out the other piece.)

The issue is that if viewing a very wide panorama, then jumping to the left 
side isn’t very appealing.

Currently I do delete and recreate the scroller for each zoom, it just didn’t 
work right with the image centered in the group.

Thanks,
Brian

Sent from my iPhone

> On Apr 14, 2021, at 12:10 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I'm a little confused. Do you want the zoom to happen within a group with a 
> scroller?
> 
> I've done this a different way. Delete any existing scroller, lock the 
> screen, resize the image and its group, unlock the screen with a visual 
> effect like zoom in or whatever. Then recreate the scroller at the new group 
> size.
> 
> Is that what you're asking?
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>> On April 13, 2021 10:31:58 PM Brian Milby via use-livecode 
>>  wrote:
>> 
>> Greetings on this lovely Tuesday evening.  I'm in need of a little mobile
>> scroller wisdom.
>> 
>> I'm working on an app that runs on mobile devices (Apple and Android).  We
>> are presenting an image and have enabled the ability for the user to tap on
>> the image to zoom in.  Everything is working except the only way that I
>> have been able to get the scroller to work reliably is to place the image
>> at the top/left of the group.  What we would really like to do is keep the
>> image centered on the screen as it expands.
>> 
>> It may be totally obvious, but before I spend a bunch of time throwing
>> darts and hoping for a bullseye, I thought it would be good to at least ask
>> for a little help.
>> 
>> Thanks for any assistance you can provide,
>> Brian
>> ___
>> use-livecode mailing list
>> use-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


Mobile Scroller Advice

2021-04-13 Thread Brian Milby via use-livecode
Greetings on this lovely Tuesday evening.  I'm in need of a little mobile
scroller wisdom.

I'm working on an app that runs on mobile devices (Apple and Android).  We
are presenting an image and have enabled the ability for the user to tap on
the image to zoom in.  Everything is working except the only way that I
have been able to get the scroller to work reliably is to place the image
at the top/left of the group.  What we would really like to do is keep the
image centered on the screen as it expands.

It may be totally obvious, but before I spend a bunch of time throwing
darts and hoping for a bullseye, I thought it would be good to at least ask
for a little help.

Thanks for any assistance you can provide,
Brian
___
use-livecode mailing list
use-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: On the dangers of automated refactoring

2021-04-13 Thread Brian Milby via use-livecode
It was actually more the mis-application of Hungarian-lite.  I think it 
compiled with strict enabled.

Sent from my iPhone

> On Apr 13, 2021, at 12:50 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Andre Garzia wrote:
> 
> > What I didn’t realise was that there was variable shadowing happening
> > in which handler arguments were named with the same name as script-
> > local variables, my smart replacing removed those arguments because
> > there was no need to redeclare the script-local vars. I didn’t realise
> > at that time, that those variables were real arguments being passed to
> > the handlers, they just happened to have the same name as script-local
> > vars in the same script and were in fact shadowing them.
> 
> Is this a case where "Strict Compilation Mode" or Hungarian-lite* notation 
> may have been useful?
> 
> 
> * http://www.fourthworld.com/embassy/articles/scriptstyle.html
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: On the dangers of automated refactoring

2021-04-13 Thread Brian Milby via use-livecode
There is a test framework in the GitHub repository:

https://github.com/livecode/livecode/tree/develop/tests

Didn’t really see documentation on it, but I’m sure it could be documented and 
used to generate a robust unit test of our own projects.  Plenty of examples 
there on use, just nothing on how to easily kick it off for your own projects.

Sent from my iPad

> On Apr 13, 2021, at 6:07 AM, Andre Garzia via use-livecode 
>  wrote:
> 
> Hi Folks,
> 
> I’ve recently read that long thread that almost got people banned and will 
> not comment on it. What I want to comment on is about the kernel of the 
> activity that was mentioned there: refactoring.
> 
> Often in LiveCode (and most programming languages to be honest) we go coding 
> for a long while and then realise that our code need extensive refactoring. 
> We may have repeated a pattern over and over again and discovered that we 
> need to change every instance of them, or something similar.
> 
> There are small cases of refactoring, such as renaming a variable in a single 
> script, that can be easily (and quite safely) be done with find & replace 
> tools. Others are much more complex and attempting to do it over multiple 
> scripts on a large project will result in crying and maybe needing a drink or 
> hug.
> 
> An example of a really smart IDE that is considered the most advanced in 
> terms of refactoring are the ones based on JetBrains IDEA such as IDEA 
> itself, Android Studio, webStorms, etc. A key part of these IDEs to do 
> refactoring is that they have deep knowledge about the source code being 
> written. The code is constantly parsed and assembled in a AST that is exposed 
> internally for the refactoring tools. When you refactor code in these IDEs, 
> you’re not really working with text, you’re telling the IDE to manipulate a 
> tree in ways the IDE knows how to manipulate such tree. That is why when you 
> “rename a symbol” or “extract selected code into method in enclosing scope” 
> or whatever you do in these IDEs, you end up with the expected result.
> 
> Find and Replace dialogs, or even custom plugins in LiveCode, don’t have the 
> same advanced capabilities. You’re usually working with text and hoping that 
> whatever RegEx you’re applying is error-free. And by error-free I don’t mean 
> it is a “valid regex”, I mean that “it does what you expect, and your 
> expectations are correct”. It is very hard to apply script transformations 
> like that, you can’t be sure they’ll work for every little replacement, and 
> for the cases where it doesn’t work, the bugs introduced might be too subtle 
> to notice. Let me tell you folks a recent story in which I tried to do 
> exactly that and shot myself on the foot.
> 
> I’m dealing with a very large LC app. Very large, thousands and thousands of 
> lines spread in a gazilion stacks, behaviors, and libraries. Some of these 
> files needed refactoring. Among the various tasks I needed to do was to apply 
> our “variable naming scheme” to the scripts because there were variables 
> using the wrong prefixes. 
> 
> Naturally, I tried being smart with find & replace. Even going as far as 
> extracting the script into an editor with more features —such as RegEx 
> replacing— and trying my best to identify and replace the names I needed with 
> vast swoops of RegEx.
> 
> All the replacements worked like I wrote them.
> 
> What I didn’t realise was that there was variable shadowing happening in 
> which handler arguments were named with the same name as script-local 
> variables, my smart replacing removed those arguments because there was no 
> need to redeclare the script-local vars. I didn’t realise at that time, that 
> those variables were real arguments being passed to the handlers, they just 
> happened to have the same name as script-local vars in the same script and 
> were in fact shadowing them. 
> 
> I broke all the source code. It took me a long time to work out which 
> handlers needed arguments, and which didn’t need and were actually using the 
> script-local vars.
> 
> I tried being smart fixing broken code, and for a while it became more broken.
> 
> Refactoring is hard.
> 
> We don’t have a system to create and manipulate LC AST.
> 
> We don’t even have unit testing libraries so that we can make sure our code 
> works as expected.
> 
> Avoid large automated refactoring at all cost, it is not worth it. Do it 
> manually. It will be slower, but it will be safer.
> 
> Best
> A
> ___
> use-livecode mailing list
> use-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: Help! I'm stuck

2021-04-08 Thread Brian Milby via use-livecode
It would be a separate application, but would still be called from the IDE like 
today.  One difference is that as a separate process it would not disrupt the 
current session inside the IDE.

Sent from my iPhone

> On Apr 8, 2021, at 1:21 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi Richard,
> 
> When you say a separate process, do you mean have the standalone builder as
> a separate application from the IDE? Why could it not be accomplished in
> the IDE where it is more convenient?
> 
> Handling it within the IDE process was fine as long as the only thing
>> the Standalone Builder did was bind a copy of the engine to a copy of
>> the stack file.
>> 
> 
> Forgive my lack of knowledge, but when we compile it to an application for
> different platforms, what are the differences from one platform build to
> another, particularly regarding where it is just a stack file bound to the
> engine and the other way(s) not listed here?  I'm genuinely interested.
> 
> Sean
> 
> 
>> On Thu, 8 Apr 2021 at 17:43, Richard Gaskin via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Standalone building needs to be moved to a separate process.
>> 
>> Handling it within the IDE process was fine as long as the only thing
>> the Standalone Builder did was bind a copy of the engine to a copy of
>> the stack file.
>> 
>> But today, building a standalone means deep modifications to the stack
>> file, and this has resulted in multiple successive layers of knock-on
>> effects where design complications are needed to compensate for design
>> complications put in place to compensate for earlier design complications.
>> 
>> The end result of attempting to build standalones within the current IDE
>> process is not merely cumbersome, but disruptive, confusing, and even
>> requires CODE CHANGES from EVERY USER to compensate even further just
>> for the build sequence.
>> 
>> LC has gone from the simplest way to build apps to something no less
>> onerous than most, and more confusing than many.
>> 
>> Standalone building needs to be moved to a separate process.
>> 
>> With that, LC can begin the return journey back on its path to the
>> simplest way to build apps.
>> 
>> --
>>  Richard Gaskin
>>  Fourth World Systems
>> 
>> 
>> 
>> Ralph DiMola wrote:
>> 
>>> I never built a non-mobile standalone for the first 5 years of using
>>> LC. For a mobile build nothing gets closed and gets built from the
>>> stack(s) files on disk. What a surprise I got when I built my first
>>> desktop standalone. I initially thought that something was very wrong
>>> with the IDE and restarted.
>>> After some searches I found that this is the correct behavior??? I
>>> guess there is a reason for closing the stack(s) but I find it very
>>> odd indeed.
>>> 
>>> Ralph DiMola
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Find Replace in Script Editor with cr

2021-04-05 Thread Brian Milby via use-livecode
If using Atom would be helpful for your task, then ScriptTracker could 
facilitate that:

https://github.com/bwmilby/scriptTracker

It exports all of the scripts of a stack to files and can watch that directory 
for changes and automatically import the changes back into the stack.  (I would 
be curious at the performance on a project that large.)

Another option would be to use the code from button 1003 as inspiration to 
write a script that would make your change in all scripts in a stack (thinking 
of the logic that I used to get to every script of a stack without going into 
shared objects more than once).

I know you didn’t want to deal with doing it in code, but just wanted to offer 
a possibility.

Thanks,
Brian

Sent from my iPhone

> On Apr 5, 2021, at 11:44 AM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> No. I mean using the find/replace tool panel of the script editor to insert
> line feed characters to create a new line.
> 
> For instance, suppose I have multiple commands on one line separated by ;
> and I want to search for semicolon and replace with semicolon followed by
> return character to drop the remaining script onto a new line. That kind of
> thing. It’s just easier than taking the whole script and pasting into
> another text editor to do the same operation. With 17,000 scripts to go
> through, it’s a bit tedious doing it by copy paste fix copy paste all the
> time.
> 
>> On Mon, 5 Apr 2021 at 15:22, Craig Newman via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Of course you have to extract the script first (it is a property) then
>> work it, then reset the property/
>> 
>> Craig
>> 
>>> On Apr 3, 2021, at 1:43 PM, Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi all,
>>> 
>>> Just wondering if there is a way of replacing using cr in the
>> find/replace
>>> panel of the script editor. For example, I have a lot of instances in my
>>> inherited code that has 'then put' ... that I want to put over two lines
>>> and then, if necessary add an end if later on. Is there a way to insert a
>>> cr between 'then' and 'put' from the panel? It would be useful to know
>> for
>>> other things too.
>>> 
>>> Cheers
>>> 
>>> Sean
>>> ___
>>> use-livecode mailing list
>>> use-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
>> 
> -- 
> Pi Digital
> ___
> use-livecode mailing list
> use-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: TreeView Widget Drag and Drop Support

2021-03-31 Thread Brian Milby via use-livecode
Check out this script on GitHub:

https://github.com/Himalayan-Academy/Siva-Siva-App/blob/df93a63e40153df6ec4bd29a8571bb0c8a99c2a9/modules/stories/behavior_Stories.livecodescript#L230

The card had a tree widget with 2 levels.  The actual items to select are at 
the second level.

It looks like the drag Enter, Leave, Move, and Drop messages need to be handled 
like the mouse messages (for changing the highlight).

Sent from my iPhone

> On Mar 31, 2021, at 6:34 PM, HENRY LOWE via use-livecode 
>  wrote:
> 
> Thanks Brian. I am handling the ‘on DragDrop’ message in the widget’s script 
> but on completing the drop there is no way to determine which row in the 
> TreeView widget the data was dropped into. Ideally when in DragDrop mode the 
> widget would automatically hilite the row that the mouse is currently over 
> (standard drag and drop behavior) so that when the user finally releases the 
> mouse button the row that was the drop target would be available in 'the 
> hilitedElement’ property of the widget. Currently I am having to try to 
> determine which row was dropped on using the mouseLoc to calculate which row 
> I am in.
> 
> On the second issue, I tried using hiliteChanged message but could not get it 
> to work. Do you have an example script to do this?
> 
> Henry
> 
>> On Mar 30, 2021, at 5:06 PM, Sean Cole (Pi) via use-livecode 
>>  wrote:
>> 
>> Hi Henry,
>> 
>> I often take the widgets, like TreeView, and add in other message
>> responders like this. It's real easy to do?
>> 
>> Just make a copy of the widget folder from the LC Tools Folder
>> (Livecode.app/Contents/Tools/Extensions/com.livecode.widget.treeview) and
>> into your own Livecode extensions folder (mine is in ~/Documents/My
>> LiveCode/Extensions/ or my dropbox folder somewhere). Rename the folder
>> from com.livecode. to com.mine. or something. Then open treeview.lcb in
>> BBEdit or TextEdit, etc, from the copy folder. Line 88, change widget
>> com.livecode.widget.treeview to use the new folder name you gave.
>> 
>> Next, search for 'onMouseUp'. you should find:
>> 
>> public handler onMouseLeave() returns nothing
>> put 0 into mHoverRow
>> redraw all
>> end handler
>> 
>> Before that in the code, add in your other handlers (OnDragDrop, etc) using
>> the same syntax. No need to use the put or redraw messages of course. Look
>> in the dictionary, lcb section, to check the handler names to use.
>> 
>> Then, open the manifest.xml from the same folder. Line 2, again
>> change com.livecode.widget.treeview to use the new folder name
>> and Line 3 to something a little more unique. Then again search for
>> onmouseup. You will see:
>> 
>> 
>> 
>> Again, follow the syntax adding in the lines for the handler.
>> 
>> Look through the other files in the folder and change if you wish but it is
>> not essential.
>> 
>> Now in LC, open the extension builder and use the 'open existing..' button
>> to navigate to the folder you created. Then, from the bottom, the install
>> button will build it into the toolbar.
>> 
>> Now you have a customised version. Make sure you add your replacement
>> widget in the standaloneSettings>Inclusions before building your
>> standalones.
>> 
>> All the best
>> 
>> Sean
>> 
>>> On Wed, 31 Mar 2021 at 00:26, HENRY LOWE via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> I am using the LC TreeView widget to implement a sidebar containing a
>>> hierarchical menu in a MacOS app. The widget seems well suited for this
>>> purpose and I have successfully created a facsimile of the standard sidebar
>>> that is used increasingly in both MacOS and iPadOS apps. However, I need to
>>> drag rows from a data grid table to a TreeView widget row in the sidebar
>>> but the current implementation of the TreeView widget does not report the
>>> TreeView widget row (element) where the drop occurred. A TreeView widget
>>> message, such as 'ActionDragDrop pPath’ where pPath is the path to the
>>> element that was ‘dropped on’ would be incredibly helpful. I have
>>> implemented a workaround method off drag and drop to the widget but it
>>> occasionally breaks.
>>> 
>>> Looking at the LiveCode Builder documentation, widgets can support the
>>> following messages related to drag and drop functionality:
>>> 
>>> OnDragDrop, On DragEnter, OnDragFinish, OnDragLeave, On DragMove, On
>>> DragStart.
>>> 
>>> These messages are not currently supported in the TreeView widget LCB
>>> source. Adding them would make this incredibly useful widget even more
>>> powerful.
>>> 
>>> Another issue that I encountered when using the TreeView widget to
>>> implement a sidebar hierarchical menu was that clicking on a row in the
>>> TreeView widget toggles the row’s hilite state  - click on an item and it
>>> hilites, click on it again and it unhilites. While this may be standard
>>> behavior for a list, in a menu clicking on a hilited row should not change
>>> the row’s hilite state. It should remain hilited. Only clicking on another
>>> 

Re: TreeView Widget Drag and Drop Support

2021-03-30 Thread Brian Milby via use-livecode
This seems like something I could look into.  Many of the recent improvements 
(additions) to that widget are things that I added.  On the surface this seems 
to be not that difficult.  Please add a feature request in bugzilla for this.

For the second issue, this is easily handled in script.  There is a message for 
‘hiliteChanged’ that you can use to clear the highlight.  You just need to trap 
for empty so you don’t create a loop.  We use this approach in SivaSiva where 
this widget is used a couple places as a menu.  It is useful because you can 
have the highlight show briefly to indicate the touch/click happened.

Thanks,
Brian

Sent from my iPhone

> On Mar 30, 2021, at 7:28 PM, HENRY LOWE via use-livecode 
>  wrote:
> 
> I am using the LC TreeView widget to implement a sidebar containing a 
> hierarchical menu in a MacOS app. The widget seems well suited for this 
> purpose and I have successfully created a facsimile of the standard sidebar 
> that is used increasingly in both MacOS and iPadOS apps. However, I need to 
> drag rows from a data grid table to a TreeView widget row in the sidebar but 
> the current implementation of the TreeView widget does not report the 
> TreeView widget row (element) where the drop occurred. A TreeView widget 
> message, such as 'ActionDragDrop pPath’ where pPath is the path to the 
> element that was ‘dropped on’ would be incredibly helpful. I have implemented 
> a workaround method off drag and drop to the widget but it occasionally 
> breaks.
> 
> Looking at the LiveCode Builder documentation, widgets can support the 
> following messages related to drag and drop functionality:
> 
> OnDragDrop, On DragEnter, OnDragFinish, OnDragLeave, On DragMove, On 
> DragStart.
> 
> These messages are not currently supported in the TreeView widget LCB source. 
> Adding them would make this incredibly useful widget even more powerful.
> 
> Another issue that I encountered when using the TreeView widget to implement 
> a sidebar hierarchical menu was that clicking on a row in the TreeView widget 
> toggles the row’s hilite state  - click on an item and it hilites, click on 
> it again and it unhilites. While this may be standard behavior for a list, in 
> a menu clicking on a hilited row should not change the row’s hilite state. It 
> should remain hilited. Only clicking on another row (menu item) should 
> unhilite a row and then hilite the selected row. It would be great to have a 
> ’togglehilite’ TreeView property. If true the TreeView would toggle a row’s 
> hilite state as it does now, while if false it would not.
> 
> Any thoughts?
> 
> Henry
> 
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: slow responsiveness on windows - what was it like?

2021-03-30 Thread Brian Milby via use-livecode
The project browser is also known to slow down the IDE when open which is more 
noticeable on Windows.

Sent from my iPhone

> On Mar 30, 2021, at 9:24 AM, Tiemo via use-livecode 
>  wrote:
> 
> Thanks Matthias,
> 
> I'll give it a try. I don't have MS defender enabled, but Kaspersky, have to
> look, if I can exclude LC there.
> I also think to remember to delete from time to time the preference file...
> 
> Tiemo
> 
> 
> -Ursprüngliche Nachricht-
> Von: use-livecode  Im Auftrag von
> matthias rebbe via use-livecode
> Gesendet: Dienstag, 30. März 2021 14:55
> An: How to use LiveCode 
> Cc: matthias_livecode_150...@m-r-d.de
> Betreff: Re: slow responsiveness on windows - what was it like?
> 
> 
> Tiemo,
> 
> one thing that slows down LC regardless of the platform is when the message
> box contains many lines of text. 
> 
> Do you have Microsoft Defender on your Win10 machine enabled? If so, you
> could exclude the Livecode program folder from realtime scanning. That could
> also help.
> 
> If you experience performance problems while in the script editor then you
> could disable some of the newer options of the SE. While the SE has focus go
> to the menu Options under Edit and disable the newer options. 
> 
> Maybe this helps a little bit.
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
> Regards
> Matthias
> 
>>> Am 30.03.2021 um 14:12 schrieb Tiemo via use-livecode
>> :
>> 
>> Hello,
>> 
>> working with LC 9.6 on a fast win 10 machine the responsiveness of the 
>> IDE on every mouseclick or other action is almost not acceptable slow.
>> 
>> I know that this issue has come up again and again over the years, but 
>> I just don't find the right search terms in the list archive.
>> 
>> I know, there has been some tweaks to speed up.
>> 
>> Thanks for any hint
>> 
>> 
>> 
>> Tiemo
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Resources folder on mac, and the good old days

2021-03-29 Thread Brian Milby via use-livecode
Once I took a version of the LC IDE and edited one of the files in the package 
before opening it the first time.  It would not open and complained about being 
corrupt/modified/something (can’t recall exact message).

I trashed it and extracted a fresh copy.  I launched it once and then quit.  
Then I modified the file (actually a widget I believe).  LC opened fine this 
time.  So, at least a version or two ago (pre Catalina), the package contents 
were only verified as unchanged on first launch.

Sent from my iPad

> On Mar 29, 2021, at 6:22 PM, Neville Smythe via use-livecode 
>  wrote:
> 
> 
> 
>> On 30 Mar 2021, at 12:44 am, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> Unfortunately this has never been true on macOS X.
>> 
>> The Resources folder (which is in the macOS app bundle) should be 
>> treated as read-only…
> 
> Mark Waddingham chides me for saying it is OK to write to the Resources 
> folder in the app bundle on a Mac. Mark is, as ever absolutely correct. The 
> correct place for application support files is the Library/Applications 
> Support folder, and this has been the AppleGuideline for a very long time 
> (although I am not quite so sure about that *always* being the case..) I was 
> wrong, naughty, and I promise… Mea culpa, mea maxima culpa. I strongly advise 
> against this awful filthy and degrading practice.
> 
> Except m’lud (he said in a very small voice), may I offer some admittedly 
> post-hoc and flimsy excuses.
> 
> 1. The app in which I do this originates from the days before the Application 
> Support folder existed (I am pretty sure) and has grown like Topsy ever 
> since. It worked then, it still works now. With one big caveat: this is ad 
> hoc software, distributed to a small group of users (Colin: by all the usual 
> methods - server, email, DropBox… they all work to deliver a working app 
> without my having to renew my lapsed Apple Developer registration.) If I were 
> to commercialise the app and so notarise it, I would expect writing to the 
> Resources folder *not* to work, probably notarising keeps a checksum of the 
> whole app bundle not just the executable. Maybe this distinction between ad 
> hoc and notarised software is part of the confusion of this very confused 
> thread, to which I have regrettably added more confusion.
> 
> 2. It is a great convenience to my Mac users to be able to move their copy of 
> the app to another machine, or give it to a friend, without having to worry 
> about finding and transferring auxiliary files (unlike my linux users, who I 
> must advise to keep everything together in one directory).
> 
> 3. There is no need for Installer code, or more problematic, and with a whiff 
> of sulphur to sensitive old-hand Mac user noses, an Uninstaller. Again if I 
> were to commercialise the app, these would come with the territory of license 
> files etc.
> 
> 4. If my user wants to get at the auxiliary files, it is easy enough to 
> explain the arcane process of opening up the Contents of the bundle. 
> Explaining how to access the Library is only slightly more arcane, but I 
> really don’t want the uninitiated venturing into that dark scary and very 
> dangerous place .
> 
> So, readers, don’t do it. But keep it to yourself if you do. And it probably 
> won’t work in MacOS 17.6.
> 
> Finally on the problem of opening unsafe/unnotarised apps in recent MacOS, I 
> am afraid the discussion here has clearly only increased the confusion of the 
> original forum user. Surely best to refer to the definitive source, the Apple 
> Support documents which you can get by googling “How to open an unsafe app in 
> Big Sur” (or Catalina, or Mojave). The instructions from Apple are clear and 
> straightforward, unlike some tech forums which start off by talking about 
> using the terminal to turn off Gatekeeper. 
> 
> Neville
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-03-29 Thread Brian Milby via use-livecode
The days of distributing apps without a cost to the developer are unfortunately 
over (Mac/Win).  If you want someone to be able to open an app on their Mac 
without jumping through hoops, then you need to be a paid developer and do the 
sign/notarize dance.  LC could help automate parts of the process, but getting 
the certificates seems to require some manual steps.  First advanced session in 
LCG covered it last week (but since I don’t do it, I did not fully pay 
attention to all of the details).

Sent from my iPhone

> On Mar 29, 2021, at 12:38 PM, Roger Guay via use-livecode 
>  wrote:
> 
> YES . . . What he said!
> 
>> On Mar 29, 2021, at 8:55 AM, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> TL/DR:
>> 
>> We don't need a generic player.
>> 
>> What we need is an updated Standalone Builder, to provide more complete 
>> tooling and better guidance for building a modern standalone.
>> 
>> 
>> 
>> - more complete version 
>> 
>> 
>> Background
>> --
>> 
>> This thread, and many others like it, didn't start with a desire for a 
>> player.  That was merely a response to the challenges of building 
>> standalones.
>> 
>> Building standalones is the point of LiveCode, the culmination of everything 
>> in LC's user experience.
>> 
>> And it's become a pain point for most, early-prohibitive for some.
>> 
>> OS changes are of course not LC's fault.  But they are LC's opportunity, if 
>> the company wants to maintain its place as the easiest solution for making 
>> apps.
>> 
>> 
>> 
>> The Last Great Deployment Change
>> 
>> 
>> Back in the early days, the IDE's Standalone Builder didn't provide any 
>> support for document associations, creator codes, or other essentials we now 
>> take for granted.  It was expected we'd open some dev tool from Apple 
>> (ResEdit) to set those up.
>> 
>> LC Ltd recognized those steps were cumbersome, and often error-prone where 
>> they were being done at all.
>> 
>> So they took the time to completely redesign the Standalone Builder to 
>> include support for nearly every detail apps need for solid deployment.
>> 
>> 
>> 
>> The Next Great Deployment Change
>> 
>> 
>> Many if not most deployment tooling required by OSes are command-line apps, 
>> lending themselves well to being called from another program, such as LC's 
>> Standalone Builder.
>> 
>> Automate everything possible.
>> 
>> And where a step can't be automated, guidance and be provided, such as a 
>> direct link right in the SB's UI to the necessary steps for completing the 
>> process, laid out with sufficient clarity and detail to allow the user to 
>> complete the build with confidence.
>> 
>> If a standalone building step is essential, it needs to be handled in the 
>> Standalone Builder.
>> 
>> Use direct automation where possible, or a direct link in the UI to 
>> step-by-step instructions needed to complete the task.
>> 
>> 
>> 
>> The Business Case
>> -
>> As we've seen here and many other threads like it from time to time, as long 
>> as building a standalone in LC is characterized by confusion and dread, 
>> people will seek alternatives.
>> 
>> Any alternative either compromises LC's revenue model (based as it is around 
>> standalone licensing), or eliminates it (if LC is just as hard to use as 
>> anything else, why not use anything else?).
>> 
>> No option provides as much return on investment as focusing on updating the 
>> Standalone Builder to be as simple and graceful as it can possibly be.
>> 
>> LC has a strong advantage with its language, made a nearly unbeatable with 
>> its integrated GUI object model.
>> 
>> Bring deployment up to par with the rest of the experience, and LC has a 
>> chance for a good life ahead, slowing attrition rates while accelerating 
>> growth.
>> 
>> -- 
>> 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: New(?) Idea for Standalones

2021-03-28 Thread Brian Milby via use-livecode
I think the “attachment” is part of the issue.  Save to downloads first?

Sent from my iPhone

> On Mar 28, 2021, at 6:00 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Nope! Right clicking on a standalone I’m trying to share with my wife on her 
> iMac w OS 11.2 results in this menu: Open Attachment - Quick Look Attachment 
> - Save Attachment…. - Save to Downloads Folder - Share - Copy - Speech
> 
> Then, clicking on the “Open Attachment” menu item results in the same 
> response I reported earlier: a simple screen with this message: You do not 
> have permission to open the application “StackOmatic”. “Contact your computer 
> or network administrator for assistance” with a simple “OK” button. Dead end 
> as before!
> 
> Further, at Kelly's suggestion to try and adjust settings in the Security and 
> Privacy System Preferences to downgrade standards to allow a one time 
> opening, I found nothing of the sort. 
> 
> So at this point, I think Kelly’s idea of someone with Apple credentials 
> building a certified standalone that runs stacks is the only short term 
> solution. If it helps, I and probably others, would be willing to pay a 
> reasonable fee for such gem. Otherwise, I and anyone else wanting to share 
> stacks, will have to jump through the increasingly ridiculous hoops that 
> Apple (and Windows?) place before us. OTH….
> 
> Ultimately, I really think that a LiveCodeLight app that runs stacks without 
> the IDE would be the best way to go to share stacks with friends, family and 
> colleagues.
> 
> Roger
> 
> 
> 
>> On Mar 28, 2021, at 12:24 AM, scott--- via use-livecode 
>>  wrote:
>> 
>> Kelly is correct. While holding down the control key, click and hold (or 
>> right click) to get an additional menu allowing you to choose to open the 
>> app.
>> —
>> Scott 
> 
> ___
> use-livecode mailing list
> use-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: New(?) Idea for Standalones

2021-03-26 Thread Brian Milby via use-livecode
Couldn’t your stack hide the IDE stuff on launch and just have them install the 
community IDE?

Sent from my iPhone

> On Mar 26, 2021, at 10:46 PM, Roger Guay via use-livecode 
>  wrote:
> 
> In the good ol days, I could build a standalone for the Mac, Windows and 
> Linux and distribute it willy-nilly. Now I have to jump thru intolerable 
> hoops (at least for the Mac) to give someone my standalone. if someone (hint. 
> . .hint) could build a Livecode reader app for dirt cheap or even free w 
> advertising that would run LC standalones, everything would be right in the 
> world again! 
> 
> I think my martini is showing...
> 
> Roger
> 
>> On Mar 26, 2021, at 5:35 PM, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> What are you looking for?  When were these "good ol days" in which one could 
>> run stack files without an engine, and how did that 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

___
use-livecode mailing list
use-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: Multidimensional array issue

2021-03-09 Thread Brian Milby via use-livecode
Try this:

put tArray[“status”][“text”] into tStatus
If tStatus is empty then
   Put tArray[“status”] into tStatus
End if

Sent from my iPhone


___
use-livecode mailing list
use-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: tsNet mail message not formatting

2021-03-03 Thread Brian Milby via use-livecode
Correct.  So the current situation requires you to use binfile for Mac/Linux 
and file for Windows/Linux to get appropriate line endings.  You can’t do it 
just one way, you have to check your OS.  Notice that Linux works both ways.

(You also should encode/decode if using binfile)

In ScriptTracker I use file for import since it handles everything and then let 
the user choose method for export (binfile would work fine for GitHub and Atom 
even on Windows).  Now that I think about it I could even add a “native” option 
that would use file for Windows and binfile otherwise.

Sent from my iPhone

> On Mar 3, 2021, at 4:37 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 3/3/21 1:51 PM, Brian Milby via use-livecode wrote:
>> If you want to be the most accurate (clear for others reading code) you 
>> would use the LF constant instead of CR since that is how it actually 
>> evaluates.  The only way to generate an actual CR within code is to use CRLF 
>> (which gets both) or use numtobyte(13).
>> If you export as text, then you get what is expected on Win/Linux and get CR 
>> on Mac (which is wrong in my opinion).
> 
> On the other hand, if you export text as binary you get whatever you wrote, 
> and automatic line endings aren't converted.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: tsNet mail message not formatting

2021-03-03 Thread Brian Milby via use-livecode
If you want to be the most accurate (clear for others reading code) you would 
use the LF constant instead of CR since that is how it actually evaluates.  The 
only way to generate an actual CR within code is to use CRLF (which gets both) 
or use numtobyte(13).

If you export as text, then you get what is expected on Win/Linux and get CR on 
Mac (which is wrong in my opinion).

Sent from my iPhone

> On Mar 3, 2021, at 12:40 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> You have to do this:
> 
> replace cr with crlf in tBody
> 
> Personal Btw: I find that using ‘return’ results in ugly code as a personal
> preference, so I avoid that and use cr. it’s just that the script renderer
> shows ‘return’ in yellow for it’s command equivalent because they still
> haven’t coded the editor to work out if you are using it as the command or
> the keyword.
> 
> All the best.
> 
>> On Wed, 3 Mar 2021 at 17:41, matthias rebbe via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Tried this script here on macOS
>> 
>> put "this is line 1" &"this is line 2" into tBody
>> 
>> put "xx" into tFrom
>> 
>> put "xxx...@me.com" into tTo
>> 
>> put "Email test" into tSubject
>> 
>> put "" into tSettings["username"]
>> 
>> put "" into tSettings["password"]
>> 
>> put TRUE into tSettings["NO_REUSE"]
>> 
>> put "smtp://xxx.xxx.Xxx.xxx" into tServer
>> 
>> mimeEncodeAsMIMEEmail tBody,tFrom,tTo,"",tSubject
>> 
>> put it into tData
>> 
>> put tsNetSmtpSync(tServer, tFrom, tTo, tData, rOutHeaders, rBytes,
>> tSettings)
>> 
>> 
>> The email body is showing 2 lines in Apple Mail as expected.
>> 
>> Could you show your code, at least the coder which you are using to
>> fill/create the message (smtp header and body)?
>> 
>> 
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 03.03.2021 um 18:09 schrieb Rick Harrison via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> I want to send a message that has multiple lines.
>>> I have tried inserting cr and return and nothing
>>> works so far. The message ends up on a same line.
>>> 
>>> Ideas?
>>> 
>>> Thanks,
>>> 
>>> Rick
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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
>> 
> -- 
> Pi Digital
> ___
> use-livecode mailing list
> use-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: open secure socket... using certificate

2021-01-26 Thread Brian Milby via use-livecode
“Using tCertificate and tKey” compiles but I don’t know how to test.  It does 
seem like the parser doesn’t recognize those keywords.

Sent from my iPhone

> On Jan 26, 2021, at 2:13 PM, Bernard Devlin via use-livecode 
>  wrote:
> 
> Thanks for the suggestion Erik, but I don't see from that how one specifies
> the certificate.
> 
> Regards, Bernard
> 
>> On Tue, Jan 26, 2021 at 6:03 PM Erik Beugelaar via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Maybe this:
>> 
>> secure socket "livecode.com:443"
>> 
>> Examples:
>> 
>> https://livecode.fandom.com/wiki/Secure_socket
>> 
>> -Original Message-
>> From: use-livecode  On Behalf Of
>> Bernard Devlin via use-livecode
>> Sent: dinsdag 26 januari 2021 16:40
>> To: How to use LiveCode 
>> Cc: Bernard Devlin 
>> Subject: Re: open secure socket... using certificate
>> 
>> I did. I tried these too:
>> 
>> *open* *secure* socket to "localhost:443"  using certificate tc and key tk
>> 
>> *open* *secure* socket to "localhost:443" without verification using
>> certificate tc and key tk
>> 
>> When the above lines are entered in the script editor they are flagged as
>> being syntax errors. In both cases it is what comes after "certificate"
>> that is flagged as a syntax error (flagged as: missing "," near "tc").
>> There seems to be no combination of command options that works with
>> certificates.
>> 
>> The fact that the Dictionary has zero information about what is expected
>> for certificate/key was not a good sign, which is why I searched the
>> archive.  I just went to have a look at the code on Github and I can seen
>> nothing to suggest that "using certificate and key" is implemented.
>> 
>> The server and client certificate are working in a browser, so the problem
>> is definitely on the LC side.
>> 
>> On Tue, Jan 26, 2021 at 2:34 PM Brian Milby via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Did you try with “and key tKey”... it does not look like that part is
>>> optional.
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Jan 26, 2021, at 9:07 AM, Bernard Devlin via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> According to the Dictionary in LC 9.5.1 there is this command:
>>>> 
>>>> open secure socket [from [localHostName][:localPort]] [to] socketID
>>>> [with message callbackMessage] [without verification] *[using
>>>> certificate certificate and key key]*
>>>> 
>>>> However I can't get it to work.
>>>> 
>>>> open secure socket to "localhost:443" using certificate
>>>> 
>>>> throws a runtime error "no handler: using"
>>>> 
>>>> If I use
>>>> 
>>>> open secure socket to "localhost:443"
>>>> 
>>>> I get a socket connection, but all the security of a client
>>>> certificate does not work
>>>> 
>>>> 
>>>> This causes a syntax error in the IDE:
>>>> 
>>>> open secure socket to "localhost:443" using certificate tName
>>>> 
>>>> Looking through the archives I see that a couple of discussions
>>>> where people were asking about this variant of the "open socket"
>>>> command 5 to 6 years ago, *saying that the "certificate" part has
>>>> not been implemented*, regardless of what the Dictionary says.
>>>> 
>>>> Is it really the case that for the past 6 years LC documentation has
>>>> been misleading people concerning the implementation of certificates
>>>> for
>>> secure
>>>> socket connections?
>>>> 
>>>> I notice in the Dictionary the entry for "open socket" in the table
>>>> of options for this command has entries for "certificate" and "key",
>>>> but
>>> these
>>>> are both empty.  As if these features were meant to be implemented
>>>> but
>>> were
>>>> never implemented and the Dictionary was never updated to remove
>>>> this misleading information.
>>>> 
>>>> I just find that hard to believe.
>>>> 
>>>> Regards
>>>> 
>>>> Bernard
>>>> 

Re: open secure socket... using certificate

2021-01-26 Thread Brian Milby via use-livecode
Did you try with “and key tKey”... it does not look like that part is optional.

Sent from my iPhone

> On Jan 26, 2021, at 9:07 AM, Bernard Devlin via use-livecode 
>  wrote:
> 
> According to the Dictionary in LC 9.5.1 there is this command:
> 
> open secure socket [from [localHostName][:localPort]] [to] socketID [with
> message callbackMessage] [without verification] *[using certificate
> certificate and key key]*
> 
> However I can't get it to work.
> 
> open secure socket to "localhost:443" using certificate
> 
> throws a runtime error "no handler: using"
> 
> If I use
> 
>  open secure socket to "localhost:443"
> 
> I get a socket connection, but all the security of a client certificate
> does not work
> 
> 
> This causes a syntax error in the IDE:
> 
>  open secure socket to "localhost:443" using certificate tName
> 
> Looking through the archives I see that a couple of discussions where
> people were asking about this variant of the "open socket" command 5 to 6
> years ago, *saying that the "certificate" part has not been implemented*,
> regardless of what the Dictionary says.
> 
> Is it really the case that for the past 6 years LC documentation has been
> misleading people concerning the implementation of certificates for secure
> socket connections?
> 
> I notice in the Dictionary the entry for "open socket" in the table of
> options for this command has entries for "certificate" and "key", but these
> are both empty.  As if these features were meant to be implemented but were
> never implemented and the Dictionary was never updated to remove this
> misleading information.
> 
> I just find that hard to believe.
> 
> Regards
> 
> Bernard
> ___
> use-livecode mailing list
> use-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: Comments for Properties in the Property Inspector?

2021-01-23 Thread Brian Milby via use-livecode
Could you either create a “comments” custom property set or a “comments” key?

Sent from my iPhone

> On Jan 23, 2021, at 8:05 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> 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

___
use-livecode mailing list
use-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 Brian Milby via use-livecode
Not all widgets behave that way.  Only widgets that use a native control will 
layer over everything else.  Things like the tree view widget are still 
impacted by Lock Screen.

Sent from my iPhone

> On Jan 22, 2021, at 1:07 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> So a widget is not a real live code object. I presume that the browser 
> widget is just an overlaid window without its paraphernalia.
> 
> Terry
> 
>> On 22 Jan 2021, at 16:57, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> I forgot to write that you import a snapshot of the widget before you set 
>> out to perform the visual effect.
>> 
>>>> 22. jan. 2021 kl. 17:54 skrev Tore Nilsen :
>>> 
>>> The browser widget is drawn in a layer of its own and is not affected by 
>>> lock screen. If you need to do a visual effect you then hide the widget 
>>> itself and perform the visual effect on the snapshot. You can then delete 
>>> the snapshot when it is no longer needed.
>>> 
>>> Best regards 
>>> Tore Nilsen
>>>>> 22. jan. 2021 kl. 17:43 skrev Terence Heaford via use-livecode 
>>>>> :
>>>> 
>>>> Thanks for all the replies.
>>>> 
>>>> How does lock screen affect widgets?
>>>> 
>>>> It does not appear to have any effect as if you run a Javascript in a 
>>>> Browser having applied lock screen, the Browser widget seems unaffected.
>>>> 
>>>> Thanks
>>>> 
>>>> Terry
>>>> 
>>>>> On 22 Jan 2021, at 16:39, Dan Friedman via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Same here.   Anytime I want to lock the screen, I do this:
>>>>> 
>>>>> on lockTheScreen
>>>>> if not the lockScreen then
>>>>> lock screen
>>>>> end if
>>>>> end lockTheScreen
>>>>> 
>>>>> When needed, I use this:
>>>>> 
>>>>> on unLockTheScreen
>>>>> repeat until not lockScreen
>>>>> unlock screen
>>>>> end repeat
>>>>> end unLockTheScreen
>>>>> 
>>>>> 
>>>>> That's my 2 cents.
>>>>> 
>>>>> -Dan
>>>>> 
>>>>> 
>>>>> On 1/22/21, 7:38 AM, "use-livecode on behalf of Paul Dupuis via 
>>>>> use-livecode" >>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> 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 

Re: lock screen

2021-01-22 Thread Brian Milby via use-livecode
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


Re: I Want to Print Out the Entire "mobile (ad,Control,Set,Get,Do"

2021-01-21 Thread Brian Milby via use-livecode
I think you will need to print the dictionary entries for mobileControlSet and 
mobileControlGet and mobileControlDo.


Sent from my iPhone

> On Jan 21, 2021, at 9:31 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> It seems to be NOT in the guide. At least printable
> ___
> use-livecode mailing list
> use-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 find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Brian Milby via use-livecode
Just to clarify my suggestion, it isn’t the return value that you would use 
(other than to check for success), but the third variable in the call that has 
the position that you would be looking for.

When you say that you are prettifying... are you doing something to adjust each 
tab in the line?  If so, split may be useful to chunk the data into an array.

And yes, there are many ways to do just about anything.  Glad you found 
something that works for your situation.

Sent from my iPhone

> On Jan 21, 2021, at 9:38 AM, Keith Clarke via use-livecode 
>  wrote:
> 
> Thanks Brian. I looked at matchChunk in the dictionary & it seems to return 
> a boolean, rather than the offset. 
> 
> Thanks all - I’ve stopped trying to find the syntax for ‘find any char but 
> this’ in offset and instead, taken Dick’s advice to iterate through the chars 
> and count the loops until char <> tab. :)
> Best,
> Keith 
> 
>> On 21 Jan 2021, at 14:03, Brian Milby via use-livecode 
>>  wrote:
>> 
>> You could also use matchChunk with a regular expression that excludes the 
>> tab character.
>> 
>> Sent from my iPhone
>> 
>>>> On Jan 21, 2021, at 7:14 AM, Keith Clarke via use-livecode 
>>>>  wrote:
>>> 
>>> Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the 
>>> message box - that certainly proves the syntax was wrong! :-)
>>> Best,
>>> Keith
>>> 
>>>>> On 21 Jan 2021, at 10:49, Dick Kriesel via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode 
>>>>>>  wrote:
>>>>> 
>>>>> I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ 
>>>>> in this instance.
>>>> 
>>>> expression "not(tab)" evaluates to true, which doesn’t serve your purpose
>>>> 
>>>> — Dick
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Brian Milby via use-livecode
You could also use matchChunk with a regular expression that excludes the tab 
character.

Sent from my iPhone

> On Jan 21, 2021, at 7:14 AM, Keith Clarke via use-livecode 
>  wrote:
> 
> Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the message 
> box - that certainly proves the syntax was wrong! :-)
> Best,
> Keith
> 
>>> On 21 Jan 2021, at 10:49, Dick Kriesel via use-livecode 
>>>  wrote:
>>> 
>>> 
>>> 
 On Jan 21, 2021, at 2:34 AM, Keith Clarke via use-livecode 
  wrote:
>>> 
>>> I was just keen to understand why offset wasn’t happy with the ‘not(tab)’ 
>>> in this instance.
>> 
>> expression "not(tab)" evaluates to true, which doesn’t serve your purpose
>> 
>> — Dick
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: mobileControlCreate (set, do, etc)

2021-01-16 Thread Brian Milby via use-livecode
Another idea is to place a graphic where you want the object to be in the IDE 
so that you can “see” it and then use the rect of the grc to set the rect of 
the mobile control.

I will echo building a smaller test stack.  My mobileDemo stack doesn’t take 
anywhere near that long to build.

Sent from my iPhone

> On Jan 16, 2021, at 8:12 AM, Mark Smith via use-livecode 
>  wrote:
> 
> Hi Sannyasin, 
> 
> Two suggestions. Could you build a small test stack to test your idea and 
> refine it? Not sure of your hardware, but that might be faster to load than a 
> larger, more complicated application.  Also, the simulator might be another 
> possible option to speed things up while testing?
> 
> Cheers,
> Mark
> 
> 
>> On Jan 16, 2021, at 3:56 AM, Sannyasin Brahmanathaswami via use-livecode 
>>  wrote:
>> 
>> How in this done on desktop? It takes 15 minutes to build a standalone on 
>> iOS. Do we have make adjustments the mobile controls. AND then do another 
>> standalone.
>> 
>> This would intro a Big factor in time development.
>> 
>> 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

___
use-livecode mailing list
use-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: POST does not work under lock messages

2021-01-08 Thread Brian Milby via use-livecode
The docs don’t list all messages but do say that navigation and object creation 
messages are not sent.  It gives a couple examples of each.  This is in 
addition to get/set prop.

Sent from my iPhone

> On Jan 8, 2021, at 6:33 AM, Neville Smythe via use-livecode 
>  wrote:
> 
> It took me a while to figure this one out. I have a number of scripts which 
> POST to LiveCode Server .lc scripts. All were working fine except one which 
> always returned the output from whatever POST had last been executed. 
> Evidently the previous form request was being resubmitted. Turns out I had a 
> lock messages command before calling POST. 
> 
> Seems to me that shouldna oughta happen —either it’s a bug, or it should be 
> documented 
> 
> (I think there is a documented warning about DataGrids needing Lock messages 
> off? And wasn’t there a discussion a while back about Lock messages needing 
> levels? The current documentation for Lock messages says it blocks “setProp 
> triggers, getProp and certain other messages” where “certain”  is left 
> undefined.)
> 
> Neville
> ___
> use-livecode mailing list
> use-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: move cursor to the end of a line in a field

2020-12-23 Thread Brian Milby via use-livecode
To improve on my initial suggestion...

select after char -1 of field 1

Sent from my iPhone

> On Dec 23, 2020, at 3:22 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Douglas,
> 
> you can use
> 
> select after line x of fld y 
> 
> for this. 
> For example to place the cursor after line 3 of fld "text" you would write
> 
> select after line 3 of fld "text"
> 
> 
> Regards,
> 
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 23.12.2020 um 20:57 schrieb Douglas A. Ruisaard via use-livecode 
>> :
>> 
>> I need to position the cursor at the end of the contents of a single line
>> field.  This can be "manually" done by pressing the "END" key while the
>> cursor is in that field.  I want to do that positioning programmatically...
>> but ...
>> 
>> I've searched all of the "...KeyDown" message options (e.g. commandKeyDown,
>> controlKeyDown, optionKeyDown) and the other "key" message options (e.g.
>> functionKey) and cannot find one which will tell me what the "END" key is...
>> a Windows resource tells me it is "35" 
>> 
>> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
>> value to the active field?  Or, ideally, can someone tell me how to
>> "emulate" the "END" key and position the cursor at the end of the contents
>> of a single line field?
>> 
>> Likely simple but I just can't work it out.  Thanks in advance! 
>> 
>> Douglas Ruisaard
>> 
>>   Trilogy Software
>> (250) 573-3935
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: move cursor to the end of a line in a field

2020-12-23 Thread Brian Milby via use-livecode
select char (the number of chars in field 1)+1 to -1 of field 1

Sent from my iPhone

> On Dec 23, 2020, at 2:58 PM, Douglas A. Ruisaard via use-livecode 
>  wrote:
> 
> I need to position the cursor at the end of the contents of a single line
> field.  This can be "manually" done by pressing the "END" key while the
> cursor is in that field.  I want to do that positioning programmatically...
> but ...
> 
> I've searched all of the "...KeyDown" message options (e.g. commandKeyDown,
> controlKeyDown, optionKeyDown) and the other "key" message options (e.g.
> functionKey) and cannot find one which will tell me what the "END" key is...
> a Windows resource tells me it is "35" 
> 
> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
> value to the active field?  Or, ideally, can someone tell me how to
> "emulate" the "END" key and position the cursor at the end of the contents
> of a single line field?
> 
> Likely simple but I just can't work it out.  Thanks in advance! 
> 
> Douglas Ruisaard
> 
>Trilogy Software
>  (250) 573-3935
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: export snapshot woverwrites variable?

2020-12-10 Thread Brian Milby via use-livecode
What about using (tObject)?  Since tObject is a container itself, the export 
put the data in the container directly instead of the referenced container?

Sent from my iPhone

> On Dec 10, 2020, at 8:56 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> just found a very strange thing...
> I have this script:
> ...
> put dasObjekt() into tObject
> ## returns in this special case -> image "Bild_1"
> 
> flip tObject horizontal
> # Overwrite image data
> export snapshot from rect(the rect of tObject) of tObject to tObject as PNG
> 
> ## But now, LC gives an error indication that tObject now contains the DATA 
> of the new PNG
> ## Hint: åPNG...
> ## And yes, the palette in the debugger shows the complete PNG binary data 
> instead of -> image "Bild_1"
> ## as the content of tObject
> 
> ## Doing this again fixes the inconvenience and I can continue:
> put dasObjekt() into tObject
> ...
> 
> Funky, funky!?
> 
> 
> 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: Anyone using Lottie animations?

2020-12-09 Thread Brian Milby via use-livecode
Looks like Skia has support for rendering the format.  That could provide a 
path for implementation inside of LC, but someone that knows a bit more about 
it would need to take a look to confirm.

Sent from my iPhone

> On Dec 9, 2020, at 7:57 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> I came across these recently, apparently JSON-based and cross-platform 
> including mobiles. Could be useful, but I wonder how hard it would be to use 
> them for an LC iOS app - the examples I’ve seen to things with Xcode and 
> Swift which are out of my star.
> 
> Does anyone know?
> 
> https://lottiefiles.com/what-is-lottie 
> 
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Double Clicking on a Field

2020-12-04 Thread Brian Milby via use-livecode
Why do you need to use double tap?  The code should distinguish between a 
scroll and a tap and react appropriately.  The mobile scroller code in common 
use should facilitate this.  If a double tap is really needed, then it would 
probably need to be included in that same behavior script.

The big thing that you will need to do is create another handler to take the 
action.  Using mouseUp will probably be harder than needed (would need to use a 
flag of some sort to know when to ignore it).  Jacque’s method is a 
doScrollerTap handler that the scroller code calls.  DelayTouches will need to 
be false since you will be handling this yourself (and only works on iOS 
anyway).

Sent from my iPhone

> On Dec 4, 2020, at 9:15 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> I want a user to scroll the fields. If a user sends mouseup, simply scrolls 
> the field. It does not react.  It is locked.
> 
> But if the user double clicks on field, it reacts.
> 
> Basically it goes to another cards, taking with it a single Title in the 
> list, on a double click of the field
> 
> If I try
> 
> If double-click then
>   # code
> End if
> 
> It does not work…
> 
> 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: Trying to use the Segmented Control

2020-11-28 Thread Brian Milby via use-livecode
The widget isn’t impacted by lock messages.  I have used it in the past to 
switch cards and just checked for the current card to avoid the loop.  That 
doesn’t sound like it would work here.  You could use a script local flag 
though.  Set sNoAction to true before changing the hilight; in your 
hiliteChanged handler exit if sNoAction is true (but probably reset the flag 
before exiting).

Sent from my iPhone

> On Nov 28, 2020, at 6:14 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Put an lock/unlock messages around your code to keep from getting a message 
> when you are doing those type of changes.
> 
> 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 prothero--- via use-livecode
> Sent: Saturday, November 28, 2020 5:32 PM
> To: JJS via use-livecode
> Cc: proth...@earthlearningsolutions.org
> Subject: Trying to use the Segmented Control
> 
> Folks:
> I’m trying to use the segmented control and a navigation button on a card. 
> Its purpose is to go to various location in my app. The only message it seems 
> to respond to is hiliteChanged. But when I then try to set the hilites to 
> empty (so no segments are hilited), it triggers another hiliteChanged 
> message. This makes it a real pain to use for what I want. 
> 
> I see there have been numerous discussions about this control. It’s been a 
> time-waster for me.
> 
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://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

___
use-livecode mailing list
use-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: scrollbars of treeview widget

2020-11-26 Thread Brian Milby via use-livecode
Very easy to implement.  I would suggest a setting for the width.  I think the 
intent was to mimic the look of the mobile scroller which isn’t normally 
grabbed.

Sent from my iPhone

> On Nov 26, 2020, at 9:18 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> FYI:
> I just created an enhancement request to make the scrollbars
> of the treeview widget a TAD wider, feel free to add a comment.
> 
> 
> 
> 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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Brian Milby via use-livecode
What is the workaround that you ended up using?  I looked at the code once but 
it quickly went over my head.  I couldn’t see where the fonts were pulled in, 
at least not where it could be cleanly intercepted.

Sent from my iPhone

> On Oct 28, 2020, at 11:57 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> There may be many useful requests in the bug DB worth considering to improve 
> the performance, robustness, and feature set of LC Server.
> 
> But Heriberto's up for an adventure, one enhancement that would lower RAM use 
> and speed things up a bit is this one:
> 
> https://quality.livecode.com/show_bug.cgi?id=14115
> 
> Heriberto, if that's interesting to you let me know. I have a workaround in 
> place now, and I'll bet there's a way to move that inside the engine for a 
> solution that's much simpler than when we discussed it here on this list 
> earlier this year.
> 
> -- 
> 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


Re: How to divide card with/in 3 vertical lines?

2020-10-28 Thread Brian Milby via use-livecode
Need to either use 1. or for exact (in this case) (cardWidth/4)*3

Sent from my iPhone

> On Oct 28, 2020, at 4:16 PM, William de Smet via use-livecode 
>  wrote:
> 
> Hi Scott,
> 
> Line 3 should be at loc 768,384 but is now at loc 770,384 (stack 1024x768).
> This is because 'cardWidth/1.33' is not precise enough?
> 
> Greetings,
> 
> William
> 
> 
> 
> 
> Op wo 28 okt. 2020 om 20:54 schreef scott--- via use-livecode <
> use-livecode@lists.runrev.com>:
> 
>> When you say "almost perfect but not quite” what exactly are you meaning?
>> 
>> —Scott
>> 
>>> On Oct 28, 2020, at 11:04 AM, William de Smet via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi there,
>>> 
>>> I need 3 vertical lines in my iOS app with equal distance and from top to
>>> bottom.
>>> So I use the script below. It is almost perfect but not quite.
>>> Is there a better way to do this?
>>> --
>>> *s*et the loc of grc "line1" to cardWidth/4, cardHeight/2
>>> set the loc of grc "line2" to cardWidth/2, cardHeight/2
>>> set the loc of grc "line3" to cardWidth/1.33, cardHeight/2
>>> 
>>> set the height of grc "line1" to cardHeight
>>> set the height of grc "line2" to cardHeight
>>> set the height of grc "line3" to cardHeight
>>> --
>>> 
>>> greetings,
>>> 
>>> William
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-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: VPN and tsNet

2020-10-27 Thread Brian Milby via use-livecode
Additional details:
Win 10 OS / LC 9.6.1 Business
Pulse Secure VPN

If I do a tracert to the host name on the old VPN or no VPN then it reports 2 
hops.  While on the new VPN, the first 4 hops are internal IPs and then nothing 
else.  Just using the IP that should be the VPN interface doesn’t seem to work, 
so I will need to do some more digging.

Since I still have access to the old VPN for another week I can try on it as 
well (using the VPN instead of direct).

Thanks for the hints so far.

Sent from my iPhone

> On Oct 27, 2020, at 6:04 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2020-10-27 01:05, Brian Milby via use-livecode wrote:
>> I have a fairly simple stack that I use to get FedEx tracking data
>> using tsNetPostSync.  It has worked fine until a new VPN connection
>> was added.  The only change that I know is that it no longer allows a
>> split tunnel so everything must go through the VPN.  Assuming that is
>> the issue, how do I configure tsNet to use the VPN instead of trying
>> to connect directly?  (I’m pretty sure that proxy is not enabled yet,
>> but that is probably coming too).  I did try to set the
>> defaultNetworkInterface but it did not seem to have any impact.  For
>> now I am just disconnecting the VPN to pull the data.
> 
> I *think* the 'interface' setting is what you want:
> 
> “interface”: (Introduced in tsNet version 1.4.0) Specify the interface, IP 
> address or host name to be used for the outgoing connection.
> 
> This should be set to the local ip address of the interface (i.e. VPN) you 
> want the socket connection to come from on the local machine.
> 
> Warmest Regards,
> 
> Mark.
> 
> P.S. Hopefully Charles can correct this if I'm wrong!
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


VPN and tsNet

2020-10-26 Thread Brian Milby via use-livecode
I have a fairly simple stack that I use to get FedEx tracking data using 
tsNetPostSync.  It has worked fine until a new VPN connection was added.  The 
only change that I know is that it no longer allows a split tunnel so 
everything must go through the VPN.  Assuming that is the issue, how do I 
configure tsNet to use the VPN instead of trying to connect directly?  (I’m 
pretty sure that proxy is not enabled yet, but that is probably coming too).  I 
did try to set the defaultNetworkInterface but it did not seem to have any 
impact.  For now I am just disconnecting the VPN to pull the data.

Thanks for any help/pointers,
Brian

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


Re: The iOS "Files" folder

2020-10-15 Thread Brian Milby via use-livecode
Using iCloud shouldn’t require internet access for the app as it is designed to 
work offline and sync when the network is available.  My comment was aimed at 
the need to have data retained separately from the app.

Sent from my iPhone

> On Oct 15, 2020, at 3:51 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Believe it or not, there is a class of apps that doesn’t need to use the 
> internet. I’m thinking for example of apps meant to be used on a device such 
> as a phone while it’s in motion or on a journey. Internet access isn’t 
> guaranteed in many parts of the world. Although smart phones do have to make 
> contact with the internet for many tasks, that imperative shouldn’t force one 
> to include internet access in an app that has no other need for it. It’s that 
> notion that made me want to break out of the sandbox locally, to allow local 
> apps access to local data.
> 
> Just my two overpriced eurocents.
> 
> Graham
> [sorry if I sent this twice, but the first try seems to have got lost]
> 
>> On 14 Oct 2020, at 16:24, Brian Milby via use-livecode 
>>  wrote:
>> 
>> Apple has already provided a way forward for this.  Their current best 
>> practice is for apps to store files in their Documents folder in iCloud.  
>> This provides seamless access between multiple devices and data security 
>> since it is not tied to the app remaining installed.
>> 
>> I briefly looked at the dev docs on this and it does take some work to 
>> integrate.  The most complicated piece will be detecting and resolving 
>> conflicts.  I think it would be a good feature request just not sure how to 
>> do the conflict resolution piece.  The mechanics of putting and getting a 
>> file are not that bad.
>> 
>> Sent from my iPhone
>> 
>>>> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode 
>>>>  wrote:
>>> 
>>> One my iPad I have everything turned on for iCloud and I am
>>> sure everything is backed up with my backup file.  I do not
>>> see all of my individual files when I access icloud except for
>>> ones I added through a different means than the application.
>>> 
>>> The issue of apps becoming outdated and any files being
>>> locked in with the app is serious to me.  Not a big issue to
>>> solve if Apple wants to.
>>> 
>>> JB
>>> 
>>>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode 
>>>>  wrote:
>>>> 
>>>> I’ll have to take issue with that one. If your device is set to sync to 
>>>> the cloud, your notes will be preserver. There’s no unlikely about it. The 
>>>> only way they would not sync is if you had sync turned off for notes. In 
>>>> that case it is not only likely but certain you will lose any new data 
>>>> since sync was disabled.
>>>> 
>>>> If it did not work this way, iCould would die a quick and horrible death.
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>> On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>> Most likely it will not be saved to the
>>>> icloud independently so the files you have for that app even
>>>> though they exist with the app on your icloud backup will be
>>>> deleted with the app.
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-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: The iOS "Files" folder

2020-10-14 Thread Brian Milby via use-livecode
Apple has already provided a way forward for this.  Their current best practice 
is for apps to store files in their Documents folder in iCloud.  This provides 
seamless access between multiple devices and data security since it is not tied 
to the app remaining installed.

I briefly looked at the dev docs on this and it does take some work to 
integrate.  The most complicated piece will be detecting and resolving 
conflicts.  I think it would be a good feature request just not sure how to do 
the conflict resolution piece.  The mechanics of putting and getting a file are 
not that bad.

Sent from my iPhone

> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode 
>  wrote:
> 
> One my iPad I have everything turned on for iCloud and I am
> sure everything is backed up with my backup file.  I do not
> see all of my individual files when I access icloud except for
> ones I added through a different means than the application.
> 
> The issue of apps becoming outdated and any files being
> locked in with the app is serious to me.  Not a big issue to
> solve if Apple wants to.
> 
> JB
> 
>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I’ll have to take issue with that one. If your device is set to sync to the 
>> cloud, your notes will be preserver. There’s no unlikely about it. The only 
>> way they would not sync is if you had sync turned off for notes. In that 
>> case it is not only likely but certain you will lose any new data since sync 
>> was disabled.
>> 
>> If it did not work this way, iCould would die a quick and horrible death.
>> 
>> Bob S
>> 
>> 
>> On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Most likely it will not be saved to the
>> icloud independently so the files you have for that app even
>> though they exist with the app on your icloud backup will be
>> deleted with the app.
>> 
>> ___
>> use-livecode mailing list
>> use-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: Android Status Bar

2020-10-12 Thread Brian Milby via use-livecode
Hmmm...

SivaSiva shows/hides the status bar.  Checking the launcher app settings, it 
does have the status bar set to hidden.  So based on that, just use the hidden 
option and show the status bar as required while inside the app.

Sent from my iPad

> On Oct 12, 2020, at 9:19 PM, scott--- via use-livecode 
>  wrote:
> 
> Thanks Jacque. Then that IS pretty confusing since the Standalone 
> Application Settings have a “Status Bar” setting and it appears to control 
> the bar at the top of the screen which is what I would expect to match up 
> with the Status Bar on iOS. I guess that will require a feature request… and 
> maybe a documentation adjustment.
> --
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   https://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth1-360-734-4701
> --
> 
>> On Oct 12, 2020, at 4:20 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> I think "status bar" may be a misnomer and it's referring to the three (or 
>> two on Android 10) buttons that are always available at the bottom of the 
>> screen. Those are the Back, Home, and (sometimes) the Recents buttons. 
>> Virtually all Android devices use these "soft buttons" now.
>> 
>> I could be wrong but I've never seen those buttons at the top of the screen 
>> in the status bar area.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>>> On October 12, 2020 3:11:18 PM scott--- via use-livecode 
>>>  wrote:
>>> 
>>> I seem able to hide or show the Android status bar using the radio button 
>>> in the Standalone Application Settings. I don’t seem able to to this on the 
>>> fly using  mobileHideStatusBar  or  mobileShowStatusBar once the app is 
>>> running.
>>> 
>>> Dictionary:
>>>  "mobileHideStatusBar does not have any effect
>>>   on any Android devices with "hardware buttons”
>>>   embedded in the status bar.
>>> 
>>> I don’t think what I’m testing has these buttons in the status bar, though 
>>> I’m new to android, so I could be confused.  Even so, the fact that I can 
>>> hide or show the Android status bar from the Standalone Application 
>>> Settings seems to indicate that it should be possible…
>>> 
>>> I didn’t see anything in bugzilla. Has anyone else run into this?
>>> --
>>> Scott Morrow
>>> 
>>> Elementary Software
>>> (Now with 20% less chalk dust!)
>>> web   https://elementarysoftware.com/
>>> email sc...@elementarysoftware.com
>>> booth1-360-734-4701
>>> --
> 
> ___
> use-livecode mailing list
> use-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: Slightly OT: downloading Xcode

2020-10-03 Thread Brian Milby via use-livecode
One of these download managers may be helpful:

https://www.macheat.com/the-5-best-download-managers-for-mac/

Sent from my iPhone

> On Oct 3, 2020, at 9:11 AM, Richmond via use-livecode 
>  wrote:
> 
> Well, your "just a typo" meant I downloaded 12.2 beta 2. So, now you'll just 
> have to wait while I download 11.5.
> 
> Obviously you entirely missed the point of my previous message.
> 
> In about 1994 I downloaded a file that took up 3 MB on a computer in the SIUC 
> EFL computer lab, and, obviously, could
> not fit it on a floppy disk to transfer to my LC 475 at home. So I used 
> Stuffit to compress it and chop it up into
> several .sit files and then copy those onto about 5 floppy disks . . . I 
> learnt my lesson: so, just as soon as xCode 11.5 (don't you dare say that was 
> another typo) has downloaded I will try to chop it up (and it is 7.5 GB) into 
> about 30 zip files at 256 MB,
> and work out how to make them accessible to you.
> 
> Richmond.
> 
>> On 3.10.20 14:58, Graham Samuel via use-livecode wrote:
>> Sorry if I said Xcode 15 - just a typo, it’s actually 11.5. But the point 
>> remains the same. As I have said before, it seems that Apple are offering 
>> files as big as the Library of Babel for no logical reason. Stephen’s idea 
>> that they expect you to have a fibre connection is probably true, but odd 
>> considering that there are so many places in the world not yet offering high 
>> speed internet.
>> 
>> I didn’t bother to explain that in my tiny French village, the new 
>> state-sponsored optical fibre goes straight past my house, but sadly on the 
>> wrong side of the road! I have contracted with the necessary ISP, different 
>> from the one I’m using now, but after an abortive visit by a very nice 
>> technician who announced that she couldn’t solve the problem herself, they 
>> have outsourced the link from one side of the street to the other to an 
>> external contractor, with the result that the original August installation 
>> date has been pushed out to November! I have even tried to organise a bit of 
>> private work to get the cable across but the ISP will not play ball.
>> 
>> In practical terms, I will either hang over my Mac for a few more hours or 
>> take up the sensible suggestion of getting someone else with true broadband 
>> to do the download for me. The point of my email though was to ask if there 
>> is a way of downloading a huge file by any other method than simply 
>> swallowing the whole elephant in one go - looks like there isn’t.
>> 
>> Thanks all
>> 
>> Graham
>> 
 On 3 Oct 2020, at 13:17, Richmond via use-livecode 
  wrote:
>>> 
>>> Cripes!
>>> 
>>> xCode 12.2. beta 2 takes up 10.5 GB of space . . . wonder what the bloat 
>>> is: Tim Cook's unwashed laundry?
>>> 
>>> On 3.10.20 11:11, Graham Samuel via use-livecode wrote:
 This is a question for people having to use XCode to generate iOS apps. I 
 find from responses on this list that I now need Xcode 15 to have a chance 
 of generating for iOS 14. I would ask Apple this quesiton, but I doubt if 
 I would get a meaningful answer:
 
 I'm working deep in the French countryside with an ADSL connection - 
 although I have enough bandwidth to stream TV programs, really long files 
 are hard to download. Downloading Xcode - which is reported to be an 
 8.12GB file - at a speed of between 300 and 750 KB/sec is a nightmare. If 
 the download speed drops below some unspecified limit, the download stops 
 and has to be resumed in Safari, but that's not the worst of it. If I 
 leave the download overnight, having got say 4 out of 8 Gb loaded, when 
 look at the download folder in the morning, it only contains 14 bytes, 
 necessitating a complete reload! There isn't even anything in the Trash. 
 What's that about, and is there any way I can simply accumulate the 
 download bit by bit until it's all finished?
 
 If anyone has any hints, I’d be grateful. Otherwise it means spending some 
 hours keep the download pot boiling and wrecking the rest of my day.
 
 Thanks
 
 Graham
 ___
 use-livecode mailing list
 use-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: Has anyone published an iPhone app that works on iOS 14?

2020-09-28 Thread Brian Milby via use-livecode
There are a few apps that I’ve worked on in the store that still work in iOS 
14.  Siva Siva is one that you can install and test.

Sent from my iPhone

> On Sep 28, 2020, at 4:45 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Sorry if this has been asked before, but a quick search of the list didn’t 
> reveal anything, and I have only been semi-lurking lately.
> 
> The subject says it all. At this point I don’t know if I can create an app in 
> LC that runs reliably with iOS 14. I know there have been high volume 
> grumbles from some non-LC developers that they weren’t ready when Apple 
> started the rollout of 14 earlier than expected, but I don’t know the 
> substance of the complaints.
> 
> Anyone just sailing along with no problems? I ask because I’m about to revive 
> an earlier app project and don’t want to crash and burn the moment I restart.
> 
> Graham
> ___
> use-livecode mailing list
> use-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 Brian Milby via use-livecode
The long ID of the image will be different for each card, so this loop won’t 
work as expected.

Also, do you really need to go to the card?  You probably could build the 
object reference to include the card.  So you would use:

image “slideImage” of cd x
fld “mainText” of cd x

Sent from my iPhone

> On Sep 28, 2020, at 8:43 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> I use the long name of the image
> 
> local sStoryImage
> put the long id of img "slideImage" into sStoryImage
> 
> still:
> 
> # for development
> local tPath
> 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
> 
> # I get a full line 
> 
> stack “makeStoryFromDisk”: execution error at line 68 (Chunk: error in 
> object expression), char 1
> 
> It is exactly the same as in input for behavior_story except that
> do not work a repeat loop?
> 
> 
>  Tore Nilsen wrote:
> 
>You do not refer to any object type when you try to set the fileName of 
> what should possibly be an image. 
> 
>Try this:
>Set the fileName of image sStoryImage to tPath
> 
>Best regards 
>Tore Nilsen
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
If it is placed in a library that is distributed with the IDE, then you 
wouldn’t need to worry about the LCB side of it.

If it is easy enough to translate a path in the compile code, LCB wouldn’t be 
needed at all.  I just didn’t spend enough time to figure it out.

Sent from my iPhone

> On Sep 23, 2020, at 8:18 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Brian,
> 
>> Am 23.09.2020 um 14:12 schrieb Brian Milby via use-livecode 
>> :
>> 
>> It doesn’t require an actual file, just an XML document.  
> 
> yes, I understood that already. 8-)
> 
>> I posted LCB code to convert the SVG path to what is needed for the compile. 
>>  It will require an engine change or LCB to get the path translated to 
>> remove top/left extra space.
>> I think the best way would be to update one of the LCB libraries to include 
>> my handler and the add a handler to the drawing library that uses it to do 
>> the compile.
>> Now that I’m writing/thinking, it might could be done inside the LCB code 
>> with a call to the compile script.
> 
> Thank you, but LCB is still a complete mistery to me and that ain't gonna 
> change in the near future...
> 
>> Sent from my iPhone
>>> ...
>>> FYI:
>>> I just created an enhancement request to make drawingSVGCompile also work
>>> internally with a widget: 
>>> <https://quality.livecode.com/show_bug.cgi?id=22915>
>>> 
>>>> Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode 
>>>> :
>>>> Hi Brian,
>>>>>> Am 22.09.2020 um 05:38 schrieb Brian Milby via use-livecode 
>>>>>> :
>>>>> Here's a link to the post in the archives:
>>>>> http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html
> 
> 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: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
It doesn’t require an actual file, just an XML document.  I posted LCB code to 
convert the SVG path to what is needed for the compile.  It will require an 
engine change or LCB to get the path translated to remove top/left extra space.

I think the best way would be to update one of the LCB libraries to include my 
handler and the add a handler to the drawing library that uses it to do the 
compile.

Now that I’m writing/thinking, it might could be done inside the LCB code with 
a call to the compile script.

Sent from my iPhone

> On Sep 23, 2020, at 3:19 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> FYI:
> I just created an enhancement request to make drawingSVGCompile also work
> internally with a widget: <https://quality.livecode.com/show_bug.cgi?id=22915>
> 
>> Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode 
>> :
>> Hi Brian,
>>>> Am 22.09.2020 um 05:38 schrieb Brian Milby via use-livecode 
>>>> :
>>> 
>>> Here's a link to the post in the archives:
>>> http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html
>>> 
>>> I could get close, but still needed to work out a way to translate the path
>>> to improve upon what was already discussed.  (I can get the actual bounding
>>> box, but it doesn't really help with eliminating the need to use the cropIt
>>> handler.)
>> ...
> 
> 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: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
Here's a link to the post in the archives:
http://lists.runrev.com/pipermail/use-livecode/2018-September/250326.html

I could get close, but still needed to work out a way to translate the path
to improve upon what was already discussed.  (I can get the actual bounding
box, but it doesn't really help with eliminating the need to use the cropIt
handler.)

On Mon, Sep 21, 2020 at 10:18 PM Brian Milby  wrote:

> You do not need a file, but you do need additional code.  I found a
> handler from a Sep 2018 thread that wraps a path to form the input needed
> for the compile.  LC Mark mentioned an internal call that could enhance the
> process but I didn’t see any code that leveraged it.  Let me take a crack
> at it and see what I come up with.
>
> Sent from my iPhone
>
> > On Sep 21, 2020, at 5:08 PM, Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi Brian
> >
> >> Am 21.09.2020 um 23:03 schrieb Brian Milby via use-livecode <
> use-livecode@lists.runrev.com>:
> >>
> >> This may be what you're looking for:
> >>
> >> put drawingSvgCompile(tFileText) into tDrawing
> >> set the text of image "svgImage" to tDrawing
> >> http://forums.livecode.com/viewtopic.php?f=10=30441#p163024
> >> The stack in the forum post will let you see the difference in how a
> >> particular svg file is rendered in the browser widget, as a SVG path
> >> (widget), and as a SVG Compiled Drawing (image).  There is some
> additional
> >> code available that will translate the path (effectively trim extra
> space
> >> around the image) that I have not incorporated.
> >
> > thank you!
> >
> > But I thought we could do this from a SVG widget without the need of a
> .svg FILE.
> > Was I dreaming?
> >
> > 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: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
You do not need a file, but you do need additional code.  I found a handler 
from a Sep 2018 thread that wraps a path to form the input needed for the 
compile.  LC Mark mentioned an internal call that could enhance the process but 
I didn’t see any code that leveraged it.  Let me take a crack at it and see 
what I come up with.

Sent from my iPhone

> On Sep 21, 2020, at 5:08 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Brian
> 
>> Am 21.09.2020 um 23:03 schrieb Brian Milby via use-livecode 
>> :
>> 
>> This may be what you're looking for:
>> 
>> put drawingSvgCompile(tFileText) into tDrawing
>> set the text of image "svgImage" to tDrawing
>> http://forums.livecode.com/viewtopic.php?f=10=30441#p163024
>> The stack in the forum post will let you see the difference in how a
>> particular svg file is rendered in the browser widget, as a SVG path
>> (widget), and as a SVG Compiled Drawing (image).  There is some additional
>> code available that will translate the path (effectively trim extra space
>> around the image) that I have not incorporated.
> 
> thank you!
> 
> But I thought we could do this from a SVG widget without the need of a .svg 
> FILE.
> Was I dreaming?
> 
> 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: Create image from SVG widget

2020-09-21 Thread Brian Milby via use-livecode
This may be what you're looking for:

put drawingSvgCompile(tFileText) into tDrawing
set the text of image "svgImage" to tDrawing

http://forums.livecode.com/viewtopic.php?f=10=30441#p163024

The stack in the forum post will let you see the difference in how a
particular svg file is rendered in the browser widget, as a SVG path
(widget), and as a SVG Compiled Drawing (image).  There is some additional
code available that will translate the path (effectively trim extra space
around the image) that I have not incorporated.


On Mon, Sep 21, 2020 at 4:41 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mark,
>
> > Am 21.09.2020 um 22:31 schrieb Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com>:
> > On 9/21/20 12:57 PM, Klaus major-k via use-livecode wrote:
> >> Hi friends,
> >> I need a little hint, I forgot what command creates an image
> >> from an SVG widget. 8-)
> >> ...
> >> set the text of img 1 to ???(???)
> >> ...
> >> Thanks for any hint!
> >
> > Dunno.
>
> very helpful, thank you. :-D
>
> > I export a snapshot from the widget.
> >
> > --
> > Mark Wieder
> > ahsoftw...@gmail.com
>
> 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: How Do You Get Filename / Image

2020-09-06 Thread Brian Milby via use-livecode
Looks like you need to specify a full path for the source and destination.

on mouseUp
   local tImageName, tDestinationPath
   set the itemdelimiter to "/"
   put (item -1 of the filename of img 1 ) into tImageName
   put item 1 to -2 of the filename of this stack & "/" into
tDestinationPath
   put URL("binfile:" & the filename of img 1  ) into URL("binfile:" &
tDestinationPath & tImageName)
end mouseUp


On Sun, Sep 6, 2020 at 9:59 AM Sannyasin Brahmanathaswami via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Maybe  it is aphasia...
>
> How do we get file from one location to another location
>
> on mouseUp
>  local tRelativeURL
>  -- repeat with x = 1 to (the number of cards of stack
> “SlideShowSetUp”)
>  --go card x
> set the itemdelimiter to “/”
>  put (the item -2 to -1 of the filename of img “slideimage” ) into
> tRelativeURL
> # this works is: there is a path
> # 1-ellora/dsc1234.jpg
>
> # this does not work:
>  put URL(“binfile:” & tRelativeURL ) into
> URL(“binfile:_ForWebSite/” & tRelativeURL)
>
> put the filename of img “slideimage” into
> URL(“binfile:_ForWebSite/” & tRelativeURL)
>
>  -- end repeat
> end mouseUp
>
> ??
>
> Brahmanathaswami
>
>
> ___
> use-livecode mailing list
> use-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: Looping though a numerically indexed array

2020-09-02 Thread Brian Milby via use-livecode
As long as the array is indexed starting at 1 with no gaps it should work by 
looping for each element.  I just did a quick test to confirm.  I built a 100 
element array and it looped in order.  I deleted 2 keys and then it didn’t.  I 
then added those 2 missing keys back and it worked again.

Sent from my iPhone

> On Sep 2, 2020, at 10:55 AM, David Bovill via use-livecode 
>  wrote:
> 
> I’m pretty sure there must be a way to efficiently loop through numerically 
> indexed arrays
> 
> Repeat for each key and repeat for each element does not seem to sort the 
> keys in numeric order,. Of course I can get the keys and sort them before 
> repeating - but is there a more efficient way?
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-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: oAuth2 seems to log in successfully but the oAuth2 dialog/browser does not disappear, have to click cancel

2020-08-28 Thread Brian Milby via use-livecode
Looking at the RFC8252 Section 7.3, it is proper for the loopback network 
interface to use HTTP.  Is it expecting PKCE (rfc7636)?

Sent from my iPhone

> On Aug 28, 2020, at 9:37 AM, Brian Milby  wrote:
> 
> The way the library works is that it sets up a listener on the IP/port.  It 
> does not have any way to handle an encrypted (https) response/connection 
> currently (and I’m not sure how that would even be implemented).
> 
> The code that handles the response is what closes the browser window that was 
> created.  If it is not getting closed, then the response isn’t coming through.
> 
> Sent from my iPhone
> 
>> On Aug 28, 2020, at 12:31 AM, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Hi 
>> 
>> In my project to make a library for connecting to an LMS I am trying to use 
>> oAuth2 to authorize with a Brightspace LMS  instance from a Mac Desktop App. 
>>   The oAuth2 dialog/browser appears I enter the credentials and then the 
>> login appears to succeed i.e. the LMS's home page opens in the 
>> dialog/browser.  However the dialog does not  close so I have to click the 
>> ‘Cancel’ button.  So the result returned by the oAuth2 command is “cancel’ 
>> and there is nothing in the ‘it’ variable.
>> 
>> My redirect URI is https://127.0.0.1:54256 .  The 
>> LMS service requires https.  LiveCode’s oAuth only allows http for the 
>> redirect URI.  Could that be the issue?
>> 
>> My guess is that once a response is received at the redirect URI then 
>> LiveCode’s oAuth2 dialog would close. 
>> Then the value of the token would be in the ‘it’ variable.
>> Is that the case?
>> 
>> The other issue may be that I don’t have the correct token URL parameter for 
>> the oAuth2 command.  I am still checking into that.
>> 
>> Any suggestions on how to get this working?
>> 
>> Martin Koob
>> 
>> VideoLinkwell, a service of
>> Koob SourceText Solutions Inc.
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: oAuth2 seems to log in successfully but the oAuth2 dialog/browser does not disappear, have to click cancel

2020-08-28 Thread Brian Milby via use-livecode
The way the library works is that it sets up a listener on the IP/port.  It 
does not have any way to handle an encrypted (https) response/connection 
currently (and I’m not sure how that would even be implemented).

The code that handles the response is what closes the browser window that was 
created.  If it is not getting closed, then the response isn’t coming through.

Sent from my iPhone

> On Aug 28, 2020, at 12:31 AM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi 
> 
> In my project to make a library for connecting to an LMS I am trying to use 
> oAuth2 to authorize with a Brightspace LMS  instance from a Mac Desktop App.  
>  The oAuth2 dialog/browser appears I enter the credentials and then the login 
> appears to succeed i.e. the LMS's home page opens in the dialog/browser.  
> However the dialog does not  close so I have to click the ‘Cancel’ button.  
> So the result returned by the oAuth2 command is “cancel’ and there is nothing 
> in the ‘it’ variable.
> 
> My redirect URI is https://127.0.0.1:54256 .  The 
> LMS service requires https.  LiveCode’s oAuth only allows http for the 
> redirect URI.  Could that be the issue?
> 
> My guess is that once a response is received at the redirect URI then 
> LiveCode’s oAuth2 dialog would close. 
> Then the value of the token would be in the ‘it’ variable.
> Is that the case?
> 
> The other issue may be that I don’t have the correct token URL parameter for 
> the oAuth2 command.  I am still checking into that.
> 
> Any suggestions on how to get this working?
> 
> Martin Koob
> 
> VideoLinkwell, a service of
> Koob SourceText Solutions Inc.
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Basic question about behaviors

2020-08-24 Thread Brian Milby via use-livecode
Wouldn’t it just be “me”?  And “this me” should be the behavior object.

Sent from my iPhone

> On Aug 24, 2020, at 11:19 PM, prothero--- via use-livecode 
>  wrote:
> 
> I have assigned a behavior to a button. The behavior button/source is on a 
> different stack. It works fine. But a click on a movie player, on the same 
> card, triggers the mouseUp handler in the behavior, which I don’t want to 
> happen. It seems odd that this would happen, but I need to fix it.
> 
> My solution is to test whether the target is the button, or something else. I 
> solved it by trapping the mouseUp message in a script on the player. However, 
> I was trying to figure out how to get the behavior to give me the 
> source/origin of the mouseUp message. I can get the name of the card using 
> “the owner” but can’t seem to find the right syntax to get the name of the 
> button that the behavior is attached to.
> 
> This is probably trivial, but I’d appreciate any help.
> 
> Thanks,
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://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


Re: Layers in PBrowser

2020-08-14 Thread Brian Milby via use-livecode

Sean

I really didn’t mean to imply the issue didn’t exist and was truly attempting 
to reproduce the environment as closely as possible to see the issue.  I went 
as far as choosing the same object types and structure for the card as in the 
video including visibility.

Is this a stack that originated in an earlier binary format?  If so, then that 
first bug report contains a key piece of information that I didn’t have before.

If I can get a stack that demonstrates the issue, I would like to poke around 
and see if anything jumps out.  If it is engine level, it is probably a bit out 
of my lane (although I have contributed a few lines of C++).  If it is IDE I 
may have a better chance.

Thanks,
Brian

Sent from my iPhone

> On Aug 14, 2020, at 3:36 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Sean Cole wrote:
> 
>> Richard
>> Watch my videos I posted using Dropbox. It’s madness. And it’s been 
>> CONFIRMED and NOT FIXED for a very long time
> 
> There was more than one video, and several others also reported being unable 
> to reproduce the issue, so my question for Tom was seeking clarity on which 
> recipe I should be following.
> 
> With your guidance here, I've now simplified my effort to try to understand 
> the issue that prompted this thread by skipping your other posts, and have 
> reviewed only the first video.
> 
> If I get time to set up a sample stack, or if you have one to share, I'm 
> happy to try it here to see if I can help steward that toward a fix.
> 
> 
>> https://quality.livecode.com/show_bug.cgi?id=18818
> 
> This seems directly related to the core issue of this thread, and I have 
> subscribed myself to that report. Thanks for providing the link.
> 
> 
>> https://quality.livecode.com/show_bug.cgi?id=19455
> 
> Per Mark Waddingham's comment #2 there, this one is an engine issue, and may 
> have backward compatibility issues if changed.
> 
> Mark provides there guidance on using the relayerGroupedControls property to 
> do such scripting much more easily, as well as using the relayer command for 
> even greater ease.
> 
> It may be part of what brings about the core issue of this thread, but I'm 
> unable to determine of that's the case from the information in the report.
> 
> 
>> Probably FIXED but still marked as CONFIRMED
>> https://quality.livecode.com/show_bug.cgi?id=21460
> 
> While status hasn't been changed since flagged as "Confirmed", another user 
> reports being unable to reproduce it in recent versions.
> 
> Is this one still affecting your work?
> 
> 
>> https://quality.livecode.com/show_bug.cgi?id=22698
> 
> This one has a pull request submitted in May, and as far as I can tell would 
> seem fixed now.  If it's still affecting your work please note that in the 
> report, and if not please add a note there suggesting the status be changed 
> to "Resolved".
> 
> They're usually pretty good about closing bug reports related to the work 
> they're doing, but there's a lot in the DB and understandably the miss a 
> status update now and then.
> 
> 
> >  Frikin people who say ‘I can’t reproduce’ when it is clearly
> > demonstrated in a frikin video EXACTLY what is happening! Does my nut
> > in!!
> 
> Please understand that most folks here are earnestly trying to help.  I know 
> people like Brian and Jacque personally, and I feel very confident in saying 
> they only bring their best intentions to this list.
> 
> When Brian says he was unable to reproduce an issue, he isn't saying the 
> issue doesn't exist; like me, he's looking for details which might help it 
> become reproducible on his own machine so he can help further the process 
> toward a fix.
> 
> When Jacque suggests trying the App Browser as an alternative, she isn't 
> trying to undermine your desire to use the Project Browser, she's just 
> hearing very clearly that you have an immediate need based on a pressing 
> deadline, and offering a simple solution to get you through that task so your 
> project can meet with success within the time allowed.
> 
> 
> > 2c: I wasn’t after more workarounds. I want to highlight how crap
> > like this NEVER gets fixed or dealt with and continues being poop.
> > Someone (Mark, Ali, Sam, Ian, Kevin, Heather, anyone) needs to start
> > fixing shite like this that has been around the last 6 years!
> 
> Workarounds are for us; fixes are for us and the company.
> 
> We benefit with either; all we want is to finish our task and move on to the 
> next.
> 
> The company benefits most from true fixes, improving the out-of-the-box 
> experience to increase conversions while decreasing attrition.
> 
> Their priorities are theirs; mine are mine.  When I finish meeting my own 
> business' revenue and growth goals, I'll be happy to pass along to them what 
> I learned if they ask.  In the meantime, they have no shortage of guidance to 
> choose from, and much of it is mutually exclusive, so I'll leave their 
> business in their hands while I attend to my own.
> 
> 

Re: ProtonMail vs Apple

2020-08-14 Thread Brian Milby via use-livecode
“I'm just a citizen, like billions of others, looking at the 
ever-more-accelerated concentration of wealth, power, and control into the 
hands of just five people, and wondering if this is really in everyone's best 
interests...“

Probably not.  But anything considered must be done very carefully due to the 
law of unintended circumstances.  Some remedies could be worse for the consumer 
in the long run.

Sent from my iPhone

___
use-livecode mailing list
use-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: ProtonMail vs Apple

2020-08-14 Thread Brian Milby via use-livecode
 "Microsoft can do what it likes with THEIR *platform*! if YOU
   _choose_ not to agree with their policies for use on THEIR
   platform, YOU can _choose_ to go elsewhere."

Absolutely... on THEIR *XBox* platform.

Microsoft leveraged anti-competitive practices to squeeze out competition on 
the *PC* platform with MS DOS.  Therefore Microsoft gained a monopoly on the 
*PC* platform by unfair business practices.  Very different situation.  Had 
Microsoft started with the full stack like Apple did, the answer would have 
been different (and history too - I doubt they would have been as successful).

Sent from my iPhone
___
use-livecode mailing list
use-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: Layers in PBrowser

2020-08-12 Thread Brian Milby via use-livecode
The reason I asked about version and OS is because I watched the video and 
attempted to replicate the behavior that was shown.  I could not do so.  I’ve 
now also tried on my Mac (9.6.0) and am unable to have it do what your video 
shows.

I was always able to drag the control out of the enclosing group to be the 
first item in the enclosing parent group.  This is the same action I saw was 
not working in the video.

If you drag a control below an expanded group, it goes in the group.  If you 
drag a control below a collapsed group, it snaps back on Mac most of the time 
(looks to depend on the state of relayergroupedcontrols).

The issue that you are confronting (in your discussion, not the video) is that 
the layer is an ordinal and does not convey any information about group 
membership alone.  The way things are handled make sense when you consider that 
implementation detail.  If an object is at layer 8 but outside the group above 
(5-7) and you set the layer to 8 with relayergroupedcontrols true then it will 
move to be inside the above group.  If you want to move the object at layer 9 
up to 8 and stay outside of the above group, you have to actually move the 
layer 8 control down instead.

Sent from my iPhone

>>> On Aug 12, 2020, at 8:03 PM, Sean Cole (Pi) via use-livecode 
>>>  wrote:
>> On Wed, 12 Aug 2020 at 22:16, J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> That's just how it works.
> 
> 
> 1. Except it doesn't work - even with refresh :
> https://www.dropbox.com/s/cfv95iuatd4d4y5/AppOverFail2.mov?dl=0
> 2. How it works is wrong! Because it is DUMB and NOT how ALL other
> software deals with layers. Bar none. Including LC's close competitors. It
> should work EXACTLY like a file system or any other folder system. I've
> coded this stuff for my own projects so why the heck is it so hard for
> those writing the engine? I don't do C and that's where the layering system
> is going wrong.
> 3. Assuming it did 'work', if the last item is a group with ctrls and I
> drag below or used the next layer number below it will ALWAYS put it INTO
> the group.
> 
> It's wrong and it's just wasting my time, again, that I don't have with a
> tv broadcast deadline of Friday.
> 
> You've obviously got so used to HAVING to work around these things you
> forget how they SHOULD work. Not just in my opinion but by general
> expectation from the norm outside of LC.
> 
> What are LC doing with our subscription and donation money? Looking at the
> pull requests on github, not much! I fear the very worst!
> ___
> use-livecode mailing list
> use-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: Layers in PBrowser

2020-08-12 Thread Brian Milby via use-livecode
Which version of LC?  I just did a brief test and it worked mostly as expected 
on 9.6/Win10.  Only thing that I couldn’t do was move a button between 2 groups 
(it would drop into one).  I had to move it above the group and then move the 
group.

Sent from my iPhone

> On Aug 12, 2020, at 2:45 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Thanks,
> 
> But why does Project Browser STILL NOT WORK?
> 
> NO MORE WORKAROUNDS! THIS IS CRAP!@
> 
> Sean Cole
> *Pi Digital *
> 
>> On Wed, 12 Aug 2020 at 18:45, matthias rebbe via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Sean,
>> 
>> my answer will not solve your problems with the Project Browser...
>> but did you already try Geoff Canyons Navigator
>> 
>> https://gcanyon.wixsite.com/navigator <
>> https://bowtie.mailbutler.io/tracking/hit/5524ddd4-763e-47f2-b835-0050b8a7fe6f/693e8792-fedc-482a-9940-e98f47b6ee1a
>>> 
>> https://www.dropbox.com/s/kz3zqi4botzglgq/navigator.zip?dl=1 <
>> https://bowtie.mailbutler.io/tracking/hit/5524ddd4-763e-47f2-b835-0050b8a7fe6f/9596c7b6-a84d-40ae-96c9-b3578d222b9f
>>> 
>> 
>> Navigator allows also to "relayer" objects by dragging and there it even
>> works.
>> 
>> HTH
>> 
>> Regards,
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 12.08.2020 um 19:42 schrieb Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> And when you are in a group editing mode, the layers in the Project
>> Browser
>>> are messed up beyond use. HOW?? Why has this STILL not been fixed since
>>> v6 I'm just tired of asking. I'm stressed! Up against a deadline
>>> (Again). No budget to pay the ridiculous fees LC ask. And absolutely no
>> way
>>> out... again! It blows my mind how I keep putting myself in this
>> situation
>>> for LC to KEEP letting me down because of stupid dumb ass issues that
>> don't
>>> get fixed!
>>> 
>>> Frustrated.
>>> 
>>> Sean
>>> 
>>> On Wed, 12 Aug 2020 at 18:29, Sean Cole (Pi) 
>> wrote:
>>> 
 Hi all,
 
 Why is this still an issue? I find it so hard putting layers in the
>> right
 order. It just gets me down when I have fast turnaround jobs that are
>> held
 up because of STUPID frikin issues like this. Over and over again
 
 https://www.dropbox.com/s/qakyg8bu8bdamhn/LayerControl.mov?dl=0
 
 LC would be brilliant if it wasn't so crap all the time.
 
 Sean Cole
 
 *Pi Digital Productions Ltd*
 
>>> ___
>>> use-livecode mailing list
>>> use-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


  1   2   3   4   5   6   7   8   9   >