Re: Stylistic question.

2022-06-19 Thread Alex Tweedly via use-livecode
On 20/06/2022 00:19, Bob Sneidar via use-livecode wrote: Well code shared commonly between multiple objects should generally be in an object shared by those objects. That can be the card, stack, behavior or front/back script. The script of a group as well. Absolutely. And the converse - code

Re: Stylistic question.

2022-06-19 Thread Bob Sneidar via use-livecode
Well code shared commonly between multiple objects should generally be in an object shared by those objects. That can be the card, stack, behavior or front/back script. The script of a group as well. For example I have a behavior for all my datagrids. Each datagrid has a property called gridco

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,

Stylistic question.

2022-06-19 Thread Alex Tweedly via use-livecode
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   

Re: [ANN] Universal Button 1.2.0

2022-06-19 Thread William Prothero via use-livecode
This looks really useful. Thanks! Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jun 19, 2022, at 7:54 AM, Ralf Bitter via use-livecode > wrote: > > Thank you, Mike. > > >> On 19.06.22 15:17, Mike Kerner via use-livecode wrote

Re: [ANN] Universal Button 1.2.0

2022-06-19 Thread Ralf Bitter via use-livecode
Thank you, Mike. On 19.06.22 15:17, Mike Kerner via use-livecode wrote: I, for one, appreciate these sorts of messages. On Fri, Jun 17, 2022 at 8:43 AM Ralf Bitter via use-livecode < use-livecode@lists.runrev.com> wrote: At the risk of getting on your nerves, but there is another new versio

Re: [ANN] Universal Button 1.2.0

2022-06-19 Thread Mike Kerner via use-livecode
I, for one, appreciate these sorts of messages. On Fri, Jun 17, 2022 at 8:43 AM Ralf Bitter via use-livecode < use-livecode@lists.runrev.com> wrote: > > At the risk of getting on your nerves, but there is another > new version of the "universal button" widget. > > Added text alignment controls an

Re: folders() does not return aliases to folders?

2022-06-19 Thread Chris Heidecker via use-livecode
A workaround to get the alias folders into the folderlist. Maybe there is a more elegant approach? function theFolders targetFolder put the defaultFolder into oldDef set the defaultFolder to targetFolder put the folders into folderList put the files into fileList repeat for each lin

folders() does not return aliases to folders?

2022-06-19 Thread Chris Heidecker via use-livecode
Hi, Aliases to foiders are missing in "the folders" function In the Dictionary for folders: Aliases (on OS X systems), symbolic links (on Linux systems) and shortcuts (on Windows systems) are included in the list only if they refer to a folder. Is it a bug or could it be my mistake? This is on