Re: Find Replace in Script Editor with cr

2021-04-08 Thread Richard Gaskin via use-livecode
#cheese If a post is offensive, delete it. If a poster is frequently offensive, add a filter to have it delete automatically. May we please discuss LiveCode? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web __

Re: Intermittent typing delay in script editor.

2021-04-08 Thread Richard Gaskin via use-livecode
Based on the sum of anecdotal evidence, it would appear contributory factors may be primarily outdated/suboptimal Win timer APIs, coupled with overzealous file I/O from frequent DB (Dict?) accesses, perhaps others. The workaround would be time spent focusing on just those specifics. The soluti

Re: On the dangers of automated refactoring

2021-04-13 Thread Richard Gaskin via use-livecode
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

Re: Positioning object in a loclocked group

2021-04-15 Thread Richard Gaskin via use-livecode
Klaus Major wrote: I have a group set to 600*600 pixel and loclocked. Inside of the group there are two invisible objects, a button and a graphic. Now if I: ... create btn "b1" in grp "THE group" ## and set the loc of btn "b1" of grp "THE group" to whateverX,wahteverY ... where whateverX and Y

Re: Snapshot image density

2021-04-16 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > Is it right that import snapshot doesn’t offer image density options > as export snapshot does? Is the metadata["density"] settable? I haven't used it so I can't say, but given how snapshotting works I'd be surprised if it lets us control the pixel density of LC's imag

Re: Snapshot image density

2021-04-17 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > On 16 Apr 2021, at 4:17 pm, Richard Gaskin wrote: >> >> Is the metadata["density"] settable? >> >> I haven't used it so I can't say, but given how snapshotting works >> I'd be surprised if it lets us control the pixel density of LC's >> imaging buffer. My hunch is that it

What exactly does "put" do on Server?

2021-04-20 Thread Richard Gaskin via use-livecode
Normally, HTTP is used for request-reply patterns, where the server receives the request, does some processing to it, and then sends back the reply. In a faceless environment like Server, "put" goes to stdout, yes? So when we say "put tData", then the contents of tData are handed back to Apa

Re: What exactly does "put" do on Server?

2021-04-20 Thread Richard Gaskin via use-livecode
Apache buffers the writes. -- Richard Gaskin Fourth World Systems Tom Glod wrote: Following, I've wondered this, but never had enough motivation to test it. On Tue, Apr 20, 2021 at 4:00 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: Normally, HTTP is us

Re: Complete Crash or Engine Hang: which is better?

2021-04-29 Thread Richard Gaskin via use-livecode
Mark Smith wrote: > here’s an odd pasting issue I ran into the other day. To cut to the > chase, basically I can make a field become unmodifiable with respect > to TEXT parameters (excluding align) by pasting anything from Apples > TextEdit tool into the field. By what means were you attempting

Re: Complete Crash or Engine Hang: which is better?

2021-04-29 Thread Richard Gaskin via use-livecode
Tom Glod wrote: > when the clibpboardData["html"] is set ...and then you paste into > VSCode... the spaces are unrecognized characters. All spaces, or just multiple spaces being rendered as a single space? If the latter, that would seem a design choice by the host app for that data format type

Re: Complete Crash or Engine Hang: which is better?

2021-04-29 Thread Richard Gaskin via use-livecode
Mark Smith wrote: > Thanks Richard, that probably explains it. There are style runs in > the TextEdit text (and not, say, in Atom or some other editor). It > was just odd to me because I think (quite simplistically) of text > being text and not expecting them to have style runs, but of course > t

Re: Complete Crash or Engine Hang: which is better?

2021-05-03 Thread Richard Gaskin via use-livecode
Mark Smith wrote: > Frightening and wonderful at the same time. When I did these exercises > and then copy pasted a styledText string from LC into TextEdit, it was > interesting to see what they agreed on, and what they didn't. For > example, when colouring “numbers” both fields ignored numbers f

Re: Problems with Multiple Monitors

2021-05-04 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > With multiple monitor, zero vertical is the top of the top most > monitor - regardless of whether it is the primary monitor or not. If the screenRect is no longer based on the main monitor, what is the screenloc? In a multi-monitor setup, with metrics like that how can o

Re: Problems with Multiple Monitors

2021-05-05 Thread Richard Gaskin via use-livecode
d? -- Richard Gaskin Fourth World Systems Paul Dupuis wrote: On 5/4/2021 8:20 PM, Richard Gaskin via use-livecode wrote: Paul Dupuis wrote: With multiple monitor, zero vertical is the top of the top most monitor - regardless of whether it is the primary monitor or not. If the screenRe

Re: Stacks not removed from memory?

2021-05-14 Thread Richard Gaskin via use-livecode
Devin Asay wrote: > I have seen what you’re describing on all of the recent releases—9.5 - > 9.6.x; i.e., a stack with destroyStack set to true, then closed, is > not always removed from memory. Sometimes this has caused an infinite > loop with the Save - Purge - Cancel dialog. I would report it,

Re: Stacks not removed from memory?

2021-05-14 Thread Richard Gaskin via use-livecode
Thanks, Marty. I used to use stacks for preferences, but I found arrays to be simpler in addition to being slightly faster. But it seems the core of your issue isn't so much about LC's cache management as with object referencing with "this" - do I understand the issue correctly? -- Richar

Re: Stacks not removed from memory?

2021-05-14 Thread Richard Gaskin via use-livecode
Thanks. So many things can legitimately change the value of "this" I generally prefer more explicit references. Maybe with this apparent bug there's one more reason I'm grateful to have adopted this habit. -- Richard Gaskin Fourth World Systems When you close a stack that has its destr

Re: workaround for cut-off text in native scroller?

2021-06-01 Thread Richard Gaskin via use-livecode
Alternatively, you could handle your layout the way most apps on your phone do, with responsive design. 1. Add this to your stack script: on ResizeCommon x,y -- Header: set the rect of grc ID 1003 to 0,0,x,92 set the rect of fld ID 1005 to 0,19,x,90 -- -- Footer: set the rect

Re: workaround for cut-off text in native scroller?

2021-06-01 Thread Richard Gaskin via use-livecode
Klaus wrote: >> This quickie responsive setup took me about 5 minutes, less time >> than spent working around the bug, and now with a UI that works >> on all device types and screen ratios, with fixed predictable control >> sizes, and no cropping, padding, or distortion. > > yes, thank you, but p

Re: workaround for cut-off text in native scroller?

2021-06-01 Thread Richard Gaskin via use-livecode
Klaus wrote: > Am 01.06.2021 um 22:49 schrieb Richard Gaskin: >> No worries. All GUI OSes have had resizable windows since 1984. >> If you've ever scripted for them on the desktop you already have >> 90% of the habits needed to do the same on mobile. > > I never needed to do so in the last 21 yea

Re: workaround for cut-off text in native scroller?

2021-06-01 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > Richard wrote: >> Alternatively, you could handle your layout >> the way most apps on your phone do, with >> responsive design. > > That would manage the overall layout but wouldn't fix the error in > the native scroller. Seems I'd misunderstood the two bug reports and Br

Re: AW: List fields question...

2021-08-10 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > Using the message watcher is practically useless unless I took the > time to filter out all the existing messages I am not looking for. How about in addition to filtering by message name you could also filter by any part of the long name of the object containing the call

Alternative to Nabble for RSS for this list

2021-09-12 Thread Richard Gaskin via use-livecode
The old Nabble RSS feed for this died some time ago. So far the only alternative I've found is the RSS from mail-archive.com, which is darn near useless because it contains no body info from a post, not even the first sentence or two, just the title and the sender. Is there another RSS feed fo

Re: OT: Priorities (was: Re: Stack with the same name loop)

2021-10-07 Thread Richard Gaskin via use-livecode
Heather politely called cheese on this topic some time ago. May we please respect the wishes of the list owner? -- Richard Gaskin Fourth World Systems Bob Sneidar wrote: +1. Gave me the heebie jeebies when they announced the Open Source model. I survived the age of freeware. There were

Re: Stack with the same name loop

2021-10-07 Thread Richard Gaskin via use-livecode
Standalone building needs to be a separate process. In the olden days, standalones were build by merging the stack file on disk with the engine, with no changes or additions to objects inside the stack. When new features were introduced which requiring adding library button inside a newly-c

Re: Stack with the same name loop

2021-10-07 Thread Richard Gaskin via use-livecode
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 1

Re: Stack with the same name loop

2021-10-07 Thread Richard Gaskin via use-livecode
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 av

Re: OT: Priorities (was: Re: Stack with the same name loop)

2021-10-07 Thread Richard Gaskin via use-livecode
Curry: > Richard: >> Heather politely called cheese on this topic some time ago. >> May we please respect the wishes of the list owner? > > I propose reducing the attempts to silence one another? > > That cheese remark doesn't sound like a very accurate portrayal; > that license change topic

Re: OT: Priorities (was: Re: Stack with the same name loop)

2021-10-07 Thread Richard Gaskin via use-livecode
Curry Kenworthy wrote: > (I never have, and never will, > quote the entire post. Misguided trend.) I edit down to the relevant portions, so people have the opportunity to know what I'm replying to. -- Richard Gaskin Fourth World Systems ___ use-l

Re: Keep stack proportions when resizing

2021-10-08 Thread Richard Gaskin via use-livecode
I had a similar request from a client a few years ago. We couldn't find any apps from the 21st century that do that, so instead we opted for what we see in apps from Apple and many others: We leave the user in control of their desired window size, and adjust our media in the content region pr

Re: Message Tracer

2021-10-29 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > Has anyone written something that will trace the flow of a command > or procedure and create some kind of rudimentary flow diagram? It > can be text based something like: > >stack "Main Form" >Openstack >setSubscriptions >

Re: Control of Text Fields.

2021-11-04 Thread Richard Gaskin via use-livecode
Possibly memory corruption, but unlikely. More likely a plugin or IDE element with test code hanging around. If only there was a way to trace message handlers so you could see where the culprit lies... http://lists.runrev.com/pipermail/use-livecode/2021-October/266125.html :) -- Richard Ga

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

2021-12-12 Thread Richard Gaskin via use-livecode
Stam Kapetanakis wrote: > i presume the pdf widget in pro is the opensource xpdfReader but > don’t know for sure. If it is that would be problematic, as the open source edition of xpdfReader is licensed under GPL, and LC no longer has an edition compatible with GPL. -- Richard Gaskin Fourt

Re: Ghost in the Machine?

2021-12-12 Thread Richard Gaskin via use-livecode
Peter Reid wrote: > We want a way to upload a group of new members by 'driving' the input > fields, i.e. our app would click into each field, checkbox, radiobox > and 'type' in the details. If the goal is to submit new member info you can do that with a single POST command. Examine the source

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

2021-12-13 Thread Richard Gaskin via use-livecode
Richmond wrote: > On 12.12.21 21:33, Richard Gaskin wrote: >> Stam Kapetanakis wrote: >> > i presume the pdf widget in pro is the opensource xpdfReader but >> > don’t know for sure. >> >> If it is that would be problematic, as the open source edition of >> xpdfReader is licensed under GPL, and LC

Re: Creating a simple menu

2022-01-08 Thread Richard Gaskin via use-livecode
David Squance wrote: > I want to create a mock-up of a web site... How will this LC stack be used in the web dev process? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web _

Re: scripted Show tooltip not a thing?

2022-01-14 Thread Richard Gaskin via use-livecode
Tooltips can be a solution, but the mechanism has some limitations in this context. First, tooltips are a sort of hidden feature, where the user discovers them only after moving the mouse over the object. Prior to that moment they're invisible, offering no guidance at all. And in this case,

Re: Reviving CD-ROM material [was: Re: Livecode and interactive video]

2022-01-23 Thread Richard Gaskin via use-livecode
Thank you for the mention, Jeff. Without your adding that here I would have missed Richmond's reference; he's among a small number of members I generally don't read anymore (so much to learn, so little signal in a noisy world...) FWIW I agree with what you wrote, and felt it was important enou

Re: Loading a LONG list with images

2022-02-21 Thread Richard Gaskin via use-livecode
How many images? I once made a solution for 3,000 images, but it may not scale well above 8,000 or so depending on memory and connection speed. -- Richard Gaskin Fourth World Systems Dan Friedman wrote: > Does anyone have any answers to the issue of loading a long list with > images so

Re: [ANN] Release 10.0.0 DP-2

2022-02-21 Thread Richard Gaskin via use-livecode
Pi Digital wrote: > It’s so frustrating because I just spent the last week making my own > widget to make bar and pi charts. LOL! Now it feels like a futile > gesture with something far superior ‘just around the corner’. Your > teams have done a really good job of making them. > > I’ll get back t

Re: Loading a LONG list with images

2022-02-23 Thread Richard Gaskin via use-livecode
You seem to have good progress toward a workable solution already, but FWIW here's how I handled a similar case: I was building a bespoke authoring system which included an image library. There were some 2600 images in the collection when we started, and at the rate of new additions we didn't

Re: Speed up a slow loop

2022-03-02 Thread Richard Gaskin via use-livecode
Jacque wrote: > so I'm not really looping through the keys, just looking for > a matching one. The loop is for each user word I need to find. > If there's no key, then the word isn't legal. What is the ratio of keys whose values are "true" and those which are "false"? And what is the ratio of

Re: revOpenDatabase over SSH tunnel?

2022-03-14 Thread Richard Gaskin via use-livecode
matthias wrote: > As more and more servers do not allow remote MySQL access due to > security restrictions... It's almost like experienced hosting vendors and even the MySQL team itself are trying to tell us something... How does most of the world outside of the LC community handle remote DB

Re: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac

2022-03-18 Thread Richard Gaskin via use-livecode
Thank you for submitting that report, Matthias. Those of us who do consulting understand that there's been a huge transition over the last several years away from custom development of complete systems to integrating between existing systems. On macOS, AppleScript plays a key role in integr

Re: Text overwriting itself in non wrapping field

2022-03-18 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > Fixed line height didn’t fix the problem but thanks for the > suggestion. > > However, looking more closely there are 3 visible characters where cr > should be. They are â9u except 9u is constant and the first > character is almost always there, but varies wildly. Of

Re: Widget properties

2022-04-06 Thread Richard Gaskin via use-livecode
Monte Goulding wrote: > ...there has never been any intention of supporting the properties > for widgets as far as I’m aware... If the company wants widgets to be seen as first-class citizens, a little more conformity with existing object syntax would go a long way to making that happen. It'

Re: Widget properties

2022-04-06 Thread Richard Gaskin via use-livecode
Monte Goulding wrote: > It seems a stretch to imply the lack of support for a property that > has little to no use case outside the IDE means the company doesn’t > take widgets seriously but I’m not going to argue with you about that. A reasonable choice, given that "seriously" is a colloquialis

Re: Widget properties

2022-04-06 Thread Richard Gaskin via use-livecode
Mark Wieder wrote: > On 4/6/22 16:39, Richard Gaskin via use-livecode wrote: > >> > ...there has never been any intention of supporting the properties >> > for widgets as far as I’m aware... >> >> If the company wants widgets to be seen as first-class citize

Re: Widget properties

2022-04-06 Thread Richard Gaskin via use-livecode
Thank you for your reply, Monte. Comments inline: Monte Goulding wrote: >> On 7 Apr 2022, at 11:25 am, Richard Gaskin wrote: >> Can you help me understand how it's better than "the properties", >> and why this superior method isn't used for engine controls? > > Because the array created by export

Re: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-16 Thread Richard Gaskin via use-livecode
David Glasgow wrote: > I have a card (A) with two fields in separate groups. Field 1 > contains many many thousands of lines of text which are filtered > for keywords and the results displayed in field 2 (which can also > be many thousands of lines). The user can navigate to a separate > card (

Re: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-17 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > On 16 Apr 2022, at 8:20 pm, Richard Gaskin wrote: >> >> How many is "many many thousands of lines"? 10k? 100k? More? > > Typically 30,000 to 800,000. What is the user asked to do with 800,000 lines of data? That is, does this need to be displayed? >> Is the data dis

Re: Using LiveCode with Mac Photos App

2022-04-18 Thread Richard Gaskin via use-livecode
David Epstein wrote: > Is there any way from within Photos to gain access to the file > locations for convenient use by LiveCode? Apple's Photos app stores all the metadata in an SQLite file, no? If so, you may be able to poke around in the DB file directly. If Apple prevents that, you may be

Re: Pixel 5

2022-04-20 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > I am on my second droid phone, and I agree, I probably could never > go back - but, for corporate app deployment and deployment, ios is > happier place. What have I been missing? Last time I did native mobile Apple was still making devs jump through hoops just to install a

You're invited: LC DevCon After-Party

2022-04-27 Thread Richard Gaskin via use-livecode
The LC DevCon is so much fun it seems fitting to add one more session off-schedule and completely informal: a Zoom after-party. Come and hang out anytime today (Weed, 27 April) from 6:00 PM EDT until 6:40 PM EDT. That gives us an hour after the close of the last session to take a moment

Re: devcon 2022 recap

2022-04-28 Thread Richard Gaskin via use-livecode
To clarify: "low code" is just a modern term for what LC's been providing the whole time. "no code" is what Appli does, an adjacent but very different market for those whose needs can be satisfied without the nuance scripting provides. -- Richard Gaskin Fourth World Systems Mark Wieder

Re: devcon 2022 recap

2022-04-28 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > * This wasn't discussed, but there is supposed to be some > fixing coming in dp's of 10 for behaviors, especially > nested behaviors I missed a bug report: what are the issues with nested behaviors? > * Still nothing on dealing with the way groups are handled. What aspect

Re: devcon 2022 recap

2022-04-28 Thread Richard Gaskin via use-livecode
. -- Richard Gaskin Fourth World Systems Mark Wieder ahsoftware at sonic.net Thu Apr 28 16:08:44 EDT 2022 Previous message (by thread): devcon 2022 recap Next message (by thread): devcon 2022 recap Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] On 4/28/22 12:

Re: Native Android input field

2022-04-28 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > In the after-party that Richard set up on the last day of the > conference, the question came up whether the native Android > field widget would scroll. The answer is, yes it does. > > There is one little glitch. If the widget is editable, and your > finger lifts inside th

Re: devcon 2022 recap

2022-04-30 Thread Richard Gaskin via use-livecode
Mark Talluto wrote: > I am happy to say that Richard Gaskin is our first 3rd party provider. > He wants to make connections for many things external. Databases is > top on the list the last time we spoke. I’ll ping him to chime in with > more details. Thank you, Mark. The current vision for th

Re: Re Pulldownmenu button bug on Windows

2022-05-07 Thread Richard Gaskin via use-livecode
It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. Background: -- MetaCard (the engine

Re: Re Pulldownmenu button bug on Windows

2022-05-09 Thread Richard Gaskin via use-livecode
Neville Smythe wrote: > My use-case was as follows. I have a pulldownmenu, not an application- > wide menu, which applied to only certain selected items in a field. > On mouseEnter, the selection changed colour, as a visual cue to the > user that these menu items could be applied to the selection

Re: Decrypting (and encrypting) Large files

2022-05-10 Thread Richard Gaskin via use-livecode
Mark Clark wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? ... > I’m thinking about using LC for decrypting zip compressed log files > that can be multiple gigabytes in size. I’d like to use just LC vs. > resorting to shell if possible. What is behind the

Re: Re Pulldownmenu button bug on Windows

2022-05-10 Thread Richard Gaskin via use-livecode
e order of messages is, and whether or not it could be compensated for by send in time? Sent from my iPhone On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to

Re: Re Pulldownmenu button bug on Windows

2022-05-11 Thread Richard Gaskin via use-livecode
Neville Smythe wrote: > Thanks again Richard > > In my case I don’t actually need a workaround. Once I had corrected > my own error, the only effect of the inconsistent event order is that > on Windows and Linux the colour coding of the selection turns off a > fraction of a second earlier than on

Re: Sqlite and Monterey on M1

2022-05-12 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > I don't think the latest Apple operating systems allow the writing > to the App Support folder, even if you have explicit write > permissions. Where are we supposed to write application support files if not to Application Support? First they demanded control of the file f

Re: Re Pulldownmenu button bug on Windows

2022-05-12 Thread Richard Gaskin via use-livecode
Klaus wrote: > Am 11.05.2022 um 20:27 schrieb Richard Gaskin wrote: >> ... make sure the buttons you're using in the menu stack have >> their autoArm set to true, ... > > Hint: > that property "autoarm" did not make it into the inspector somehow, > so you need to do this by script! It's far from

Re: Divide Large Data Blob?

2022-05-16 Thread Richard Gaskin via use-livecode
Rick Harrison wrote: I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I

Re: Divide Large Data Blob?

2022-05-16 Thread Richard Gaskin via use-livecode
n and thinking about the starting points. It still presents a looping problem for me that I’m trying to avoid. If other methods aren’t more efficient I will play with it more. Thanks, Rick On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: The offset function has an optional third

Re: Movie text tracks

2022-05-18 Thread Richard Gaskin via use-livecode
Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how

Re: Movie text tracks

2022-05-18 Thread Richard Gaskin via use-livecode
Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how

Re: MrSign'n'Notarize

2022-06-03 Thread Richard Gaskin via use-livecode
Mark Smith wrote: > Hey Matthias, I just wanted to drop you a quick note to thank you for > the amazing utility you put together to sign and staple macOS apps. I > tried it for the first time the other day and it was a real joy to use > — very well organised. Thanks for that. Definitely a life-sa

Property Sheet for LC (was Re: Right click in field for menu)

2022-06-03 Thread Richard Gaskin via use-livecode
Inspectors are great in consumer tools because they provide a convenient way for less technical types to access the relatively small number of properties needed for the narrow range of tasks most consumer apps provide. Property Sheets are the go-to for most professional development tools becau

Re: Property Sheet for LC (was Re: Right click in field for menu)

2022-06-04 Thread Richard Gaskin via use-livecode
Kind of you to say, Roger. Thank you. Roger Guay wrote: > This is very cool, Richard! I truly appreciate all you do for us. > Richard wrote: >> So I made a Property Sheet for LC some time ago, accessible right >> from your IDE: in the Development menu see Plugins -> GoLiveNet, >> and you'll fi

Re: Property Sheet for LC (was Re: Right click in field for menu)

2022-06-04 Thread Richard Gaskin via use-livecode
Douglas A. Ruisaard wrote: > Richard Gaskin wrote: >> So I made a Property Sheet for LC some time ago, accessible right >> from your IDE: in the Development menu see Plugins -> GoLiveNet, >> and you'll find "4W Props" in the Stacks section. > > Looks like a very nice utility ... *BUT*, I get an e

Re: Property Sheet for LC (was Re: Right click in field for menu)

2022-06-05 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > I'll add my thanks for such a useful tool. Thank you for the kind words. > I don't know if it's an anomaly or another failing in widget support > :-) > > The NavBar widget has a number of properties (itemNames, itemStyle, > hilitedItem, itemArray, ..) which are visible in

Re: Property Sheet for LC (was Re: Right click in field for menu)

2022-06-05 Thread Richard Gaskin via use-livecode
-3935 -Original Message- From: use-livecode On Behalf Of Richard Gaskin via use-livecode Douglas A. Ruisaard wrote: > Richard Gaskin wrote: >> So I made a Property Sheet for LC some time ago, accessible right >> from your IDE: in the Development menu see Plugins ->

Calling all Grognards

2022-06-05 Thread Richard Gaskin via use-livecode
One of the unexpected personal upsides to the pandemic has been a discovery of tabletop games, at last recognizing them as forms of systems design. Of the many types of board games I've developed a particular interest in hex-and-counter wargaming. While mostly used to model historical battle

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > Quite a lot of stats and maths packages offer a feature whereby the N, > the Mean and the SD are variables specified by the user, and N random > numbers are then generated with the required mean and SD. I remember > the venerable and excellent Hypercard HyperStat >

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Richard Gaskin via use-livecode
Rick Harrison wrote: > Try rolling 2 six-sided dice. 7 is the number that appears the > most so it’s at the middle of the curve, while 2 and 12 are at > the ends of the distribution. Roll the dice multiple times to > generate a distribution. > > Now simulate rolling the dice with random numbers

Re: arrayencode

2022-06-21 Thread Richard Gaskin via use-livecode
l oTom Glod wrote: > I am wondering if anyone here knows the encoding algorithm > that arrayencode() uses? Yes. > Is it one that can be implemented in another language or is > it proprietary? It should be technically possible to implement any algo in any sufficiently-complete language. Whe

Re: arrayencode

2022-06-21 Thread Richard Gaskin via use-livecode
Martin Koob wrote: > What is LSON? A web search doesn’t turn up anything. A shot > in the dark here but Is it something internal to LiveCode i.e. > Livecode Script Object Notation that is the basis for LiveCode > arrays? Sorry, Martin. I need to get out more. I've been using LSON ("LiveCode

Re: arrayencode

2022-06-22 Thread Richard Gaskin via use-livecode
Martin Koob wrote: > Hi Richard > > Thanks for the explanation. I think it is a helpful term or > distinction to have. I think it would be good to actually have > that term with a formal definition published by LiveCode or > the community with references to BSON so it will show up in > web sea

Re: arrayencode

2022-06-22 Thread Richard Gaskin via use-livecode
Tom Glod wrote: > Hello Richard, thanks for the detailed answer. > There are 2 reasons why I am considering this. > > 1. I can skip the encoding and decoding from and to json. > 2. it supports binary, and does not require base encoding and its > 33% inflation. > > For interoperability for the use

Re: arrayencode

2022-06-22 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > Richard I think I hear you say that JSON is an alternative to > arrayEncode? I'm apparently writing so badly maybe I should skip the shorthand "LSON" and just write the full form: "output from LC's built-in arrayEncode". I'd adopted "LSON" to help position its role as the

Re: arrayencode

2022-06-22 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > On 22/06/2022 17:02, Richard Gaskin via use-livecode wrote: >> [ ... about using JSON ... ] >> But if you don't need interoperability, you wouldn't need to write a >> parser, since LC includes a good one built into the engine. >>

Re: arrayencode

2022-06-22 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > Nevertheless, my central point remains (afact) valid - the support > for JSON in Livecode seems incomplete, and in particular it seems > flaky/missing on LCServer. Making externals easily findable by the LC Server engine should be a quick fix for them, no? -- Richard Ga

How to color a "cell"?

2022-06-22 Thread Richard Gaskin via use-livecode
I need to set the backgroundColor of a complete "cell", where "cell" is defined as the portion of a row in a table field between tabs when the vGrid is set. I had hoped the paragraph-level formatting options introduced in v5.x would help, but alas as far as I can tell I can only set the backgro

Re: How to color a "cell"?

2022-06-23 Thread Richard Gaskin via use-livecode
Craig wrote: > Richard wrote: >> I had hoped the paragraph-level formatting options introduced in >> v5.x would help, but alas as far as I can tell I can only set the >> backgroundColor of a run of text, not the full cell. > > I think this was discussed on the forum a while back. I do not believe

Re: How to color a "cell"?

2022-06-23 Thread Richard Gaskin via use-livecode
Thanks Mark - works. I could have sworn I'd tried "line" earlier when attempting to set the backgroundColor, and when it failed was when I switched to trying "paragraph". But it works now so I don't mind being mistaken. Oddly, "paragraph" appears to be synonymous with "line" for the borderWid

Re: Stylistic question.

2022-06-23 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > Breakpoints work fine in the IDE. But script only stacks do not > retain them when remote debugging Breakpoints are a runtime-settable property, so those who enjoy C-flavored workflows with lots of tiny text files could save their breakpoints out to text files and have

Re: On API keys...

2022-06-27 Thread Richard Gaskin via use-livecode
Heather Laine wrote: > Tom Glod wrote: >> This is a great best-practice explanation. Perhaps someone can turn >> it into a blog post and put it on the site. > > Yes indeed. See Blog. https://livecode.com/best-practice-for-api-keys-and-security/ Tip: Dropping in-bound links to relevant content

Tree Widget: hilitedValue?

2022-07-08 Thread Richard Gaskin via use-livecode
I see the Tree widget supports a hilitedElement property, which is useful for managing the selection in the UI. Is there a one-liner for obtaining not the element path but the value? It wouldn't kill me to extract the arrayData and turn a hilitedElement path like: level1,level2,level3, ..

Re: Tree Widget: hilitedValue?

2022-07-10 Thread Richard Gaskin via use-livecode
Brian Milby wrote: > You could also turn the path into an array (but lose the error > checking above): > > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue Thanks, Brian. I keep forgetting we can use an array as an element specifier. Has that be

Re: Dispatch

2022-08-03 Thread Richard Gaskin via use-livecode
Sean Cole write: > I was particularly asking if there was any 'advantage/disadvantage' > in using > > dispatch myHandler with myVar > > over just using > > myHandler In coding as in life, when in doubt leave it out. If something isn't needed it's usually simplest to not go out of your way t

Re: Is there a way to create a generic setprop handler?

2022-08-03 Thread Richard Gaskin via use-livecode
David Epstein wrote: > Control “A” has many custom properties that are set by a variety > of other controls. If Control “A” has a "setProp property1” > handler, it can react when property1 gets set. But is there a > way to give Control “A” a general handler that will be triggered > whenever any

Re: issue related to Print.PrintSupport.Source.dll

2022-08-18 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > The suggested fix in the bug report has worked for us: > > https://quality.livecode.com/show_bug.cgi?id=23659 > > Basically, delete the driver that comes with Windows and get the > driver from Epson. Most of the problems seem to be with Epson > printers but if your custom

Comparison chart for DataGrid, PolyList, PolyGrid, list fields....

2022-08-18 Thread Richard Gaskin via use-livecode
If a newcomer needs to display a list, how can they know what to use? Currently we have: - list field - Table field - DataGrid - PolyGrid - PolyList - others? Is there a chart listing the features of each that I can point new users to when this question comes up? -- Richard Gaskin Fourth

Re: Livecode performance problem

2022-08-21 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > For strange legacy application reasons, when lines get added to the > set of fields (a frequency action by users - sometimes adding hundreds > of lines a day), the data has to be repackaged into this tab delimited > structure in a single variable to run some procedures on. >

Re: BN Guides

2022-08-29 Thread Richard Gaskin via use-livecode
Geoff Canyon wrote: > Okay, so it looks like BN Guides works by assigning behaviors to > controls and temporarily adding controls to your stack as you drag > things. I think this is meant to be transient as you drag controls. Instinctively I'd be inclined to try a frontscript before something as

Re: Why is Livecode not on this list?

2022-08-29 Thread Richard Gaskin via use-livecode
Gregg wrote: > https://spectrum.ieee.org/top-programming-languages-2022 Demand. Their methodology note explains it's based on job listings. When was the last time you saw a job posting for LC skills? It's also a short list (50?). This one ranks by usage, listing the hundred most popular, wh

<    1   2   3   4   5   6   7   8   9   10   >