From bobsneidar at iotecdigital.com Mon Aug 1 11:20:49 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 15:20:49 +0000 Subject: wait 0 with messages In-Reply-To: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> Message-ID: <56AA8EF8-C926-4A17-AEC3-16EA9D85350D@iotecdigital.com> This is correct. Bob S > On Jul 31, 2022, at 12:14 , J. Landman Gay via use-livecode wrote: > > On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: >> I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running the script in the first button will prevent mouseUp events in button 2 from being processed. > > I think it must do something, "wait 0" is a workaround for bug 22453 (and 18924 which is now marked as a duplicate.) I had to use the workaround and it works. > > So my take is that any wait allows LC to do housekeeping, and "with messages" also allows app-generated messages. I'd like to get a confirmation from the team though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 1 15:43:25 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 1 Aug 2022 15:43:25 -0400 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> Message-ID: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement > is executed) will not be processed (yet). > > Is this correct? > First, than you to those that have responded. The reason I got curious about 'wait 0 with messages' (or even just 'wait 0') is because of an epiphany I had just last week regarding a bug a customer reported in our software. The customer experienced and execution error and our software presents a custom dialog that allows them to email out support account some information, including the 'executionContexts' so we have some code debugging information. The problem as a 'can't find object' error. In reviewing the code, I could see no way that the error should have occurred. The code was using the ChartMaker library to create a graph. It all looked good per documentation and we could not reproduce the error in house. I then noticed a 'wait 0 with messages' prior to the line the error occurred on and noticed that the line that had the error used object references relative to the current stack (which the defaultStack was explicitly set to much prior). My epiphany was realizing - for the first time, despite LiveCodeing since HyperCard and having a Masters in Computer Science and my entire career being in the IT/software development space for over 40 years - that when the 'wait 0 with messages' is executed, if there was a pending USER click on another window, the defaultStack could change and then the relative object references would not be able to find their target objects. Perhaps I should have realized that a 'wait 0 with messages' COULD result in the defaultStack changing much sooner OR perhaps I should always fully qualify all object references (which I have been doing for quite a few years, but this was old code), but it is a 'gotcha' of using wait with messages I had never thought of. The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? From bobsneidar at iotecdigital.com Mon Aug 1 16:08:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 20:08:30 +0000 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: <2DBED7E7-0692-4E1C-88FA-7A8396BE4017@iotecdigital.com> It's my understanding that wait allows idle messages from the engine to be sent. When that happens, any send in time messages are processed. Wait with messages allows any other messages including engine messages to be processed. For instance, I have a FindBar object that uses wait 1 second with messages in a keyDown handler so that as the user continues to type the keystrokes can be processed. If the user pauses for 1 or more seconds, the code that performs the find is triggered, and then I exit to top to prevent any more unnecessary processing (otherwise the loop would keep going until all the keystrokes were processed). Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: > > Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? From bobsneidar at iotecdigital.com Mon Aug 1 16:16:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 20:16:24 +0000 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path. For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of of me' into a variable initially, then use the variable as a reference. Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: > > The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. From paul at researchware.com Mon Aug 1 16:25:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 1 Aug 2022 16:25:08 -0400 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: Yea, a number of years ago, I went to always fully qualifying object references through all the techniques you mentioned, but we've just not had a chance to scrub the entire code base (100,000 lines+) and so this one got missed until now. We're now going through the entire code base to catch any last cases where object references could be in error due to any wait with messages statements (combined with user actions). On 8/1/2022 4:16 PM, Bob Sneidar via use-livecode wrote: > As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path. > > For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of of me' into a variable initially, then use the variable as a reference. > > Bob S > > >> On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: >> >> The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Aug 3 09:10:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 3 Aug 2022 15:10:55 +0200 Subject: Is Livecode (the company) closed for holiday? Message-ID: Hi, does anyone know if Livecode Ltd. is closed for holiday or so? I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. Regards, Matthias From sean at pidigital.co.uk Wed Aug 3 09:36:19 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 14:36:19 +0100 Subject: Dispatch Message-ID: Hi all, I've been thinking about the command 'dispatch'. Is there any advantage/disadvantage in using it over just calling your handler? Thanks Sean From craig at starfirelighting.com Wed Aug 3 10:30:21 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 3 Aug 2022 10:30:21 -0400 Subject: Dispatch In-Reply-To: References: Message-ID: Hi. “Send” and “Dispatch” do much the same thing, but they do differ in how they interact with the message patch. They also each include their own personal gadgetry that comes in handy in different scenarios. Read about both in the dictionary, and do some experimentation with both. Craig > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode wrote: > > Hi all, > I've been thinking about the command 'dispatch'. Is there any > advantage/disadvantage in using it over just calling your handler? > Thanks > Sean > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 11:23:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:23:20 +0000 Subject: Dispatch In-Reply-To: References: Message-ID: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Send allows you to send in time. However the command or function must exist or you will throw an error. Dispatch cannot use send in time, but if a handler does not exist in the message path of the object you dispatch to, no error will be thrown. This can come in handy. Let's say you have assigned a behavior in all your fields, but in a few of your fields you have a special handler called Cleanup. You can then, 'dispatch "cleanup" to me' in any handler in the behavior. The fields that have the cleanup handler will get the message. The ones that don't will not throw an error. Bob S > On Aug 3, 2022, at 07:30 , Craig Newman via use-livecode wrote: > >> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode wrote: >> >> Hi all, >> I've been thinking about the command 'dispatch'. Is there any >> advantage/disadvantage in using it over just calling your handler? >> Thanks >> Sean From sean at pidigital.co.uk Wed Aug 3 11:27:04 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 16:27:04 +0100 Subject: Dispatch In-Reply-To: References: Message-ID: Thanks Craig, I was particularly asking if there was any 'advantage/disadvantage' in using dispatch myHandler with myVar over just using myHandler The dictionary defines its advantages for use with behaviours and that it returns in the 'it' variable if the message was handled or not - useful even when not used with behaviours in some cases I could imagine. However, I wondered if anyone else had already done the experimentation as to the dis/advantages of the above. Just making use of the community :) Sean On Wed, 3 Aug 2022 at 15:30, Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > “Send” and “Dispatch” do much the same thing, but they do differ in how > they interact with the message patch. They also each include their own > personal gadgetry that comes in handy in different scenarios. Read about > both in the dictionary, and do some experimentation with both. > > Craig > > > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > I've been thinking about the command 'dispatch'. Is there any > > advantage/disadvantage in using it over just calling your handler? > > Thanks > > Sean > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Aug 3 11:27:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:27:33 +0000 Subject: Dispatch In-Reply-To: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> References: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Message-ID: <28DF53EE-8854-4CD2-AE17-95D821551FE0@iotecdigital.com> That should read, "Dispatch cannot use 'in time'" > On Aug 3, 2022, at 08:23 , Bob Sneidar via use-livecode wrote: > > Dispatch cannot use send in time From heather at livecode.com Wed Aug 3 11:31:10 2022 From: heather at livecode.com (Heather Laine) Date: Wed, 3 Aug 2022 16:31:10 +0100 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: Message-ID: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. :) Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: > > Hi, > > does anyone know if Livecode Ltd. is closed for holiday or so? > > I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Wed Aug 3 11:33:32 2022 From: heather at livecode.com (Heather Laine) Date: Wed, 3 Aug 2022 16:33:32 +0100 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Aug 2022, at 16:31, Heather Laine via use-livecode wrote: > > We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. > > :) > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> does anyone know if Livecode Ltd. is closed for holiday or so? >> >> I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. >> >> Regards, >> >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 3 11:38:15 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 16:38:15 +0100 Subject: Dispatch In-Reply-To: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> References: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Message-ID: Awesome Bob, Thanks for the info. That is really helpful. I often use 'try' to catch incidents where things trip over, but this might just be more useful and perform slightly better going forward. Are there any other tips for its use? Sean On Wed, 3 Aug 2022 at 16:23, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Send allows you to send in time. However the command or function must > exist or you will throw an error. Dispatch cannot use send in time, but if > a handler does not exist in the message path of the object you dispatch to, > no error will be thrown. > > This can come in handy. Let's say you have assigned a behavior in all your > fields, but in a few of your fields you have a special handler called > Cleanup. You can then, 'dispatch "cleanup" to me' in any handler in the > behavior. The fields that have the cleanup handler will get the message. > The ones that don't will not throw an error. > > Bob S > > > > On Aug 3, 2022, at 07:30 , Craig Newman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi all, > >> I've been thinking about the command 'dispatch'. Is there any > >> advantage/disadvantage in using it over just calling your handler? > >> Thanks > >> Sean > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Wed Aug 3 11:42:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 3 Aug 2022 17:42:02 +0200 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: <3D0E41E9-5E79-42E3-8036-792FFB1186F7@m-r-d.de> Hello Heather, thanks for your reply. That explains it. All the best for you family issues. Regards, Matthias > Am 03.08.2022 um 17:33 schrieb Heather Laine via use-livecode : > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 3 Aug 2022, at 16:31, Heather Laine via use-livecode wrote: >> >> We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. >> >> :) >> >> Best Regards, >> >> Heather >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.com >> >> >> >>> On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: >>> >>> Hi, >>> >>> does anyone know if Livecode Ltd. is closed for holiday or so? >>> >>> I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. >>> >>> Regards, >>> >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 11:43:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:43:28 +0000 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: All my prayers. Bob S > On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode wrote: > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine From ahsoftware at sonic.net Wed Aug 3 11:53:06 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Aug 2022 08:53:06 -0700 Subject: Dispatch In-Reply-To: References: Message-ID: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> On 8/3/22 06:36, Sean Cole via use-livecode wrote: > Hi all, > I've been thinking about the command 'dispatch'. Is there any > advantage/disadvantage in using it over just calling your handler? If you can invoke a command/function directly then for the most part there's no real advantage in using dispatch. I never use send anymore unless I need send a message in time. I do use dispatch extensively, mostly for two reasons. One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. The second case where I use dispatch is as a form of publish/subscribe: dispatching a command without a receiver object sends the command along the message path where it can be handled/passed by any object along the way. Or not. Mostly in this paradigm I don't need or want to check the return value because it's irrelevant to the sender whether or not the message was handled. The dispatch command can also be useful for feature management. Dispatch a command down the message path, and if the given feature is enabled then the command will be handled. If not then there's no downside to calling the feature because it won't cause a runtime error. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 3 12:14:49 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 3 Aug 2022 12:14:49 -0400 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: <005201d8a754$2b458f20$81d0ad60$@net> +1 Ralph DiMola IT Director Evergreen Information Services -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, August 03, 2022 11:43 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Is Livecode (the company) closed for holiday? All my prayers. Bob S > On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode wrote: > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 12:14:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 16:14:47 +0000 Subject: Dispatch In-Reply-To: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> Message-ID: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> One correction. If a value is returned by the handler that was called, the result will be that value. Bob S > On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode wrote: > > One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. From ahsoftware at sonic.net Wed Aug 3 12:25:44 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Aug 2022 09:25:44 -0700 Subject: Dispatch In-Reply-To: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> Message-ID: <20a53b53-5a34-a550-ef1d-d5b216c7404f@sonic.net> On 8/3/22 09:14, Bob Sneidar wrote: > One correction. If a value is returned by the handler that was called, the result will be that value. Yeah - good catch. I meant to say the "it" value is three-state, not the "result". dispatch someMessage if it is not "unhandled" then... or if it is "passed" then... or if it is "handled" then... and note that you can dispatch functions as well a commands, and the return value of the function will be in the result if "it" is not "unhandled". -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 3 12:56:28 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 3 Aug 2022 12:56:28 -0400 Subject: Dispatch / Send / Wait with/without Messages In-Reply-To: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> Message-ID: <005601d8a759$fc36d710$f4a48530$@net> I'm having the same epiphany as Paul did below. The cornucopia of flexibility(and gotchas) that LC's message path model provides using: 1) Standard issue calling of commands and functions. 2) Engine messages 3) Send (optionally in time) 4) Dispatch 5) Wait in time with/without messages 6) exit to top And any others that I left out or don't know about can do things that I never could have imagined when I first found LC. Although I use all the above there's probably combinations I can't wrap my head around without more info. This would be a great as a dedicated chapter in a book and/or a Dr Mark W symposium followed by Q&A at the next RR Live. There seems to be a lot of app power/error prevention in the message path gold. For a newbie the LCs message path gold would be very attractive if it was only well documented and advertised. My 2 cents... Now back to changing some "wait with messages" to plain old waits to prevent users from clicking and getting my code into trouble now-and-again. Thanks to all on the list for this info!!! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, August 03, 2022 12:15 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Dispatch One correction. If a value is returned by the handler that was called, the result will be that value. Bob S > On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode wrote: > > One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement > is executed) will not be processed (yet). > > Is this correct? > First, than you to those that have responded. The reason I got curious about 'wait 0 with messages' (or even just 'wait 0') is because of an epiphany I had just last week regarding a bug a customer reported in our software. The customer experienced and execution error and our software presents a custom dialog that allows them to email out support account some information, including the 'executionContexts' so we have some code debugging information. The problem as a 'can't find object' error. In reviewing the code, I could see no way that the error should have occurred. The code was using the ChartMaker library to create a graph. It all looked good per documentation and we could not reproduce the error in house. I then noticed a 'wait 0 with messages' prior to the line the error occurred on and noticed that the line that had the error used object references relative to the current stack (which the defaultStack was explicitly set to much prior). My epiphany was realizing - for the first time, despite LiveCodeing since HyperCard and having a Masters in Computer Science and my entire career being in the IT/software development space for over 40 years - that when the 'wait 0 with messages' is executed, if there was a pending USER click on another window, the defaultStack could change and then the relative object references would not be able to find their target objects. Perhaps I should have realized that a 'wait 0 with messages' COULD result in the defaultStack changing much sooner OR perhaps I should always fully qualify all object references (which I have been doing for quite a few years, but this was old code), but it is a 'gotcha' of using wait with messages I had never thought of. The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dfe4 at cornell.edu Wed Aug 3 14:13:27 2022 From: dfe4 at cornell.edu (David Epstein) Date: Wed, 3 Aug 2022 14:13:27 -0400 Subject: Is there a way to create a generic setprop handler? References: <4E830440-7E96-4968-966D-D678573A4622@comcast.net> Message-ID: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> 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 of its custom properties is set? David Epstein From bobsneidar at iotecdigital.com Wed Aug 3 14:36:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 18:36:51 +0000 Subject: Is there a way to create a generic setprop handler? In-Reply-To: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> References: <4E830440-7E96-4968-966D-D678573A4622@comcast.net> <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> Message-ID: If I understand you then no. The only thing I would suggest is to use dispatch to trigger the "general handler" in all of your virtual properties (custom property is not the right phrase when referring to getProp/setProp). Bob S > On Aug 3, 2022, at 11:13 , David Epstein via use-livecode 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 of its custom properties is set? > > David Epstein From ambassador at fourthworld.com Wed Aug 3 14:49:47 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Aug 2022 11:49:47 -0700 Subject: Dispatch In-Reply-To: References: Message-ID: <486e9c51-d82b-c069-44b9-ad1f0fd61a08@fourthworld.com> 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 to add it. The message path is fine. It works reliably, and with as much efficiency as the team can throw at it. In most cases it's not only the easiest thing to type and the most efficient to execute, its simplicity and predictability also aid debugging and maintenance. For those times when you need an exception to the message path, LC provides many. Send, do, call, dispatch, etc. - each has their own unique set of tradeoffs that make it a good fit for the specific circumstance where the native message path isn't what you need. But those are for exceptional circumstances. The native message path is the norm of this language. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 3 15:28:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Aug 2022 12:28:10 -0700 Subject: Is there a way to create a generic setprop handler? In-Reply-To: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> References: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> Message-ID: <7293bb11-f5fa-4849-929f-cafca6063330@fourthworld.com> 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 of its custom properties is set? I don't know of a way to trap getProp and setProp generically, and that may not be bad since it would affect the performance of all custom property access, whether it's the subset of properties you're interested in or not. An alternative could be to put the properties you want custom handling for into a custom property set of their own, e.g.: getPRop uPropSet[pKey] put the params end uPropSet on mouseUp get the uPropSet["key1"] of me end mouseUp ...puts this in the Message Box: uPropSet "key1" This will allow open-ended trapping of property keys, but limited in scope to the set you need that for. A word of caution with dependency on getProp and setProp: Those messages are subject to suspension during lockMessages, which may be exactly what you want, or may have unintended side effects that can be maddening to track down if you don't keep that in mind. Using getProp and setProp requires review of your code base, including any third-party libraries, which may lock messages so you can evaluate the implications for your circumstance. If you need consistently reliable ways to trigger custom evaluation consider accessor handlers instead. LockMessages only prevents system messages; calling a custom handler is not affected by lockMessages. Examples: -- Using an object as the value container: on SetMyProp pKey, pVal set the uPropSet[pKey] of to pVal end SetMyProp function GetMyProp pKey return the uPropSet[pKey] of end GetMyProp -- Using an array variable as the value container: on SetMyProp pKey, pVal put pVal into sPropVarA[pKey] end SetMyProp function GetMyProp pKey return sPropVarA[pKey] end GetMyProp -- Usage for either storage method: on mouseUp SetMyProp "key1", "val1" end mouseUp on mouseUp put GetMyProp("key1") into fld 1 end mouseUp Fun: If you abstract data access using normal custom handlers, you have one-stop-shopping to change the storage mechanism. If you don't need persistence across sessions a variable may do, and if you need persistence you can store in an object whose stackfile gets saved, or encode the array variable and save that to disk, or use a local database, or even use any form of remote storage across the internet if you like -- all by updating just two handlers. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dfe4 at cornell.edu Wed Aug 3 18:08:48 2022 From: dfe4 at cornell.edu (David Epstein) Date: Wed, 3 Aug 2022 18:08:48 -0400 Subject: Chart widget question Message-ID: Using LC 10 dp2, I am trying to script the creation of a chart widget. My command “create widget myName as chart in group myMain” creates only a small gray box. The LC command “New Widget/Chart” creates a line chart, ready to be modified. What is the LC command doing that I am not? Or: how do I find the script that LC runs when the “New Widget/Chart” command is chosen? David Epstein From matthias_livecode_150811 at m-r-d.de Wed Aug 3 18:58:32 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 4 Aug 2022 00:58:32 +0200 Subject: Chart widget question In-Reply-To: References: Message-ID: <38E3ED19-48AF-42D4-AEAA-7EC32216087A@m-r-d.de> I have here only DP4 to test. Don't you have to use com.livecode.widget.chart as widgetkind? With create widget "myChart" as "com.livecode.widget.chart" set the width of last widget to 250 set the height of last widget to 250 i was able to create a chart. Regards, Matthias > Am 04.08.2022 um 00:08 schrieb David Epstein via use-livecode : > > Using LC 10 dp2, I am trying to script the creation of a chart widget. > > My command “create widget myName as chart in group myMain” creates only a small gray box. > > The LC command “New Widget/Chart” creates a line chart, ready to be modified. What is the LC command doing that I am not? > > Or: how do I find the script that LC runs when the “New Widget/Chart” command is chosen? > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 5 12:32:42 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 5 Aug 2022 12:32:42 -0400 Subject: megabundle thoughts Message-ID: i have not seen much discussion of the megabundle, especially about the widgets, etc. i'm not sure if it's worth the $. thoughts? -- 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." From paul at researchware.com Fri Aug 5 12:51:04 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 5 Aug 2022 12:51:04 -0400 Subject: megabundle thoughts In-Reply-To: References: Message-ID: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote: > i have not seen much discussion of the megabundle, especially about the > widgets, etc. > i'm not sure if it's worth the $. > thoughts? > I think the widgets are great additions to Livecode. That said, I have not purchased the MegaBundle. My Livecode commercial/business/whatever license is paid out to something like 2023 or 2024 due to past fund raising where the mothership offered license extensions as part of the packages in those efforts. I am licensed for all platforms, with the professional extensions, so I don't need any more platforms and I really don't need my license extended or any store credits. If there had been a bundle offering that was JUST the extra widgets and stuff without an LC license stuff bundled in, I would have bought one. I don't like to get too far ahead of LC licensing. After all I could get hit by the proverbial bus tomorrow and having 2 years or prepaid LC licensing would go to waste (for me at least). So, I think it is worth the $ if you need additional platforms and/or your license extended (if it is about to expire in, say, another 15 months or less). It may not be worth the $ if you are all set for the next couple of years on LC licensing itself. From alex at tweedly.net Fri Aug 5 13:34:53 2022 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 5 Aug 2022 18:34:53 +0100 Subject: megabundle thoughts In-Reply-To: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> Message-ID: <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> I kind of agree with Paul (though I ame to the opposite conclusion). Once I discounted the items I'd already paid for (conferences, courses, books, etc.) and the multi-year future licensing already paid, the value of the megabundle shrank from "amazing" to "pretty good". I decided to go ahead anyway (so I now have a $300 or $399 voucher that I may never get to use). But about the widgets .... I am very impressed by the PolyList widget; it lets you make sophisticated looking lists, including multi-column ones, very easy; I always disliked the fact that DataGrid couldn't do multi-column. I do think it needs, and will get, improvements (for example, I'd like to see a graphic UI to specify dataLayout - the current way seems kind of late-80's-ish :-) Polygrid looks like it could be useful in the right place - haven't used it yet. Responsive layout - seems like a great addition - I look forward to trying it out, but haven't got there yet. Haven't yet investigated the others. I think they could all do with better documentation and examples, so I'm really waiting for a tutorial or blog from Steven before I dive into each :-) Oh - and last thought - they could *really* do with a better release / version system, but that should resolve itself over time. Alex. On 05/08/2022 17:51, Paul Dupuis via use-livecode wrote: > On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote: >> i have not seen much discussion of the megabundle, especially about the >> widgets, etc. >> i'm not sure if it's worth the $. >> thoughts? >> > > I think the widgets are great additions to Livecode. That said, I have > not purchased the MegaBundle. My Livecode commercial/business/whatever > license is paid out to something like 2023 or 2024 due to past fund > raising where the mothership offered license extensions as part of the > packages in those efforts. I am licensed for all platforms, with the > professional extensions, so I don't need any more platforms and I > really don't need my license extended or any store credits. If there > had been a bundle offering that was JUST the extra widgets and stuff > without an LC license stuff bundled in, I would have bought one. > > I don't like to get too far ahead of LC licensing. After all I could > get hit by the proverbial bus tomorrow and having 2 years or prepaid > LC licensing would go to waste (for me at least). > > So, I think it is worth the $ if you need additional platforms and/or > your license extended (if it is about to expire in, say, another 15 > months or less). It may not be worth the $ if you are all set for the > next couple of years on LC licensing itself. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 5 13:46:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 05 Aug 2022 12:46:55 -0500 Subject: megabundle thoughts In-Reply-To: <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> Message-ID: <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I'm with Paul. I don't need additional licensing but if the widgets go on sale separately later then I'm in. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode wrote: > I kind of agree with Paul (though I ame to the opposite conclusion). From matthias_livecode_150811 at m-r-d.de Fri Aug 5 15:19:10 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 5 Aug 2022 21:19:10 +0200 Subject: megabundle thoughts In-Reply-To: <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I own a Lifetime commercial (Indy) license for all current and future platforms and a current subscription to upgrade my license to the Pro features with Email support. There are 2 items in the bundle i was interested in: the Email parser library and also the PolyGrid widget. The other stuff like the ebooks, conference videos and others i already own or i could upgrade much cheaper (Curry's libraries) through the LC shop. And without the voucher, which has the same value as the Megabundle costs, i would not have purchased the bundle. But i have also a subscription for the script compiler, so i decided to purchase the bundle and use the voucher for the next payments for the Script compiler subscription. So in my case i did not loose money, but got some really usefull widgets and libraries on top. I did not pay much attention for the other widgets and libraries, but must confess that the PolyList (formerl DataView) and also the ResponsiveLayout library are really great enhancements. So in case you have a current subscription in your LC account and you do not plan to cancel that subscription in near future, the MegaBundle is a bargain. You pay your subscription costs in advance and get some really great enhancements for LC. Matthias > Am 05.08.2022 um 19:46 schrieb J. Landman Gay via use-livecode : > > I'm with Paul. I don't need additional licensing but if the widgets go on sale separately later then I'm in. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode wrote: > >> I kind of agree with Paul (though I ame to the opposite conclusion). > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Sat Aug 6 07:44:31 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 13:44:31 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Hi all, So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. For this, if I understand correctly, some javascript needs to be used. I’ve tried to piece together how to do that from these sources: https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/ and Ali Lloyd’s cool WordLC app: https://alilloyd.livecodehosting.com/wordlc/wordlc.html where he uses window.addEventListener(”resize” […] etc in the html file to catch browser window resizing for the stack to react on. However, as I can’t see his LC script side of it, I fail to figure out the proper adaptation to my needs: I want my stack to get, from javascript, the impulse that the browser window has changed its width/height and what the new width/height is, in order to trigger a normal resizeStack handler to deal with that. Ideally, the javascript part of this should be included by LC in the standalone build, and I hope that’s what they plan at least when LC10 stable ships (seems logical), but in the meantime - can someone please help get the code right? /Andreas From harrison at all-auctions.com Sat Aug 6 10:30:25 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Sat, 6 Aug 2022 10:30:25 -0400 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Message-ID: <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> Hi Andreas, I have found the following website to be very helpful with a lot of my javascript projects. Do you know about these guys? https://www.w3schools.com/js/default.asp I hope that helps you. Cheers, Rick > On Aug 6, 2022, at 7:44 AM, Andreas Bergendal via use-livecode wrote: > > Hi all, > > So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. > > For this, if I understand correctly, some javascript needs to be used. I’ve tried to piece together how to do that from these sources: > https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/ > > and Ali Lloyd’s cool WordLC app: > https://alilloyd.livecodehosting.com/wordlc/wordlc.html > > where he uses window.addEventListener(”resize” […] etc in the html file to catch browser window resizing for the stack to react on. However, as I can’t see his LC script side of it, I fail to figure out the proper adaptation to my needs: > > I want my stack to get, from javascript, the impulse that the browser window has changed its width/height and what the new width/height is, in order to trigger a normal resizeStack handler to deal with that. > > Ideally, the javascript part of this should be included by LC in the standalone build, and I hope that’s what they plan at least when LC10 stable ships (seems logical), but in the meantime - can someone please help get the code right? > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sat Aug 6 12:28:01 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Aug 2022 09:28:01 -0700 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> Message-ID: On 8/6/22 07:30, harrison--- via use-livecode wrote: > I have found the following website to be very helpful with a lot of my javascript projects. > > Do you know about these guys? > > https://www.w3schools.com/js/default.asp And also the amazing GitHub Copilot: https://docs.github.com/en/copilot -- Mark Wieder ahsoftware at gmail.com From andreas.bergendal at gmail.com Sat Aug 6 13:14:12 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 19:14:12 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> Thanks guys, those are indeed great resources for many cases. What I’m after here however, are specific solutions to the javascript/livecode ’pairing’ of code to manage browser window/stack resizing. To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot of people here, since having your stack react to browser window resizing should be quite crucial in many cases of LC web deployment. That’s why I’m also confident that the mothership will build this into future releases of LC10. But as an early adopter, I can’t wait… ;-) From ahsoftware at sonic.net Sat Aug 6 13:28:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Aug 2022 10:28:33 -0700 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Message-ID: On 8/6/22 04:44, Andreas Bergendal via use-livecode wrote: > and Ali Lloyds cool WordLC app: > https://alilloyd.livecodehosting.com/wordlc/wordlc.html Unfortunately that throws a divide-by-zero error at line 461 in computeGridFieldWidth when I try to resize the window. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Sat Aug 6 13:45:42 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 6 Aug 2022 18:45:42 +0100 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> References: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> Message-ID: <83d19caf-bf24-37ef-2038-9628e1ed4c60@tweedly.net> You are correct Andreas - all this basic javascript interaction *really* should be in the default built already. A sample stack for building a web app was discussed in a session in the LC Global conference, by Steven Crichton and Michael McReary. It has all kinds of javascript magic, and the corresponding LC pairing. AFAIK, that stack hasn't been made public, so it wouldn't be up to me to show large sections - but I'm sure it's ok to give a couple of snippets ..... In the stack script of the app (includes some stuff with 'spinner - probably not generally needed) : > on openStack >    if the platform is "web" then >       do "document.querySelector('#canvas').removeAttribute('width');" > as "javascript" >       do > "document.querySelector('#canvas').removeAttribute('height');" as > "javascript" >       do "document.querySelector('#canvas').style.width = '100%';" as > "javascript" >       do > "document.querySelector('#emscripten_main').removeAttribute('width');" > as "javascript" >       do > "document.querySelector('#emscripten_main').removeAttribute('height');" > as "javascript" >       do "document.querySelector('#emscripten_main').style.width = > '100%';" as "javascript" >       do "var element = > document.getElementById('spinner');element.parentNode.removeChild(element);" > as "javascript" >       do "var element = > document.getElementById('status');element.parentNode.removeChild(element);" > as "javascript" >       do > "document.querySelector('#donestatus').removeAttribute('style');" as > "javascript" >       do "document.querySelector('#by').removeAttribute('style');" as > "javascript" > >       send "doBrowserResize" to me in 0 millisecs >    end if > end openStack > > on browserResized pInnerHeight >    set the height of this stack to pInnerHeight >    do > "document.querySelector('#emscripten_main').removeAttribute('width');" > as "javascript" >    do "document.querySelector('#emscripten_main').style.width = > '100%';" as "javascript" > end browserResized > > on doBrowserResize >    set the cJavascriptHandlers of this stack to "browserResized" & > return & "scrollEvent" >    set the visible of this stack to true >    do "getInnerHeight();" as "javascript" >    browserResized the result > end doBrowserResize > > on scrollEvent pHScroll, pVScroll >    send "scrollEvent" && pHScroll & comma & pVScroll to this card in 0 > seconds > end scrollEvent > and in the standalone.html : Hmmm - I don't understand it well enough to clip out the needed parts - so I've included the whole thing below  :-(   Again, it includes stuff with spinner, and stripe - which probably should be removed in the general case. Hopefully, LC will get their act together and provide a default build where basic functionality works. Good luck, Alex.                    LiveCode Conference - Meeting Space                    
    
Loading...
    
              
    
            
                              On 06/08/2022 18:14, Andreas Bergendal via use-livecode wrote: > Thanks guys, those are indeed great resources for many cases. > > What Im after here however, are specific solutions to the javascript/livecode pairing of code to manage browser window/stack resizing. > To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot of people here, since having your stack react to browser window resizing should be quite crucial in many cases of LC web deployment. > > Thats why Im also confident that the mothership will build this into future releases of LC10. But as an early adopter, I cant wait ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Sat Aug 6 15:46:21 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 21:46:21 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <8A4FE0CA-7B70-47EE-AEE8-9D9DB3D92EA1@gmail.com> Wow, thanks Alex! That’s brilliant and exactly what I need! I must have missed (or forgotten) that session at the conference - I’ll try to find it among the recordings to see if it helps explaining the various bits a little. In any case I’ll experiment with the code and see what I can get to work. Cheers, Andreas From selander at tkf.att.ne.jp Sun Aug 7 03:29:27 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 7 Aug 2022 16:29:27 +0900 Subject: Auto populate an HTML form with LC server Message-ID: Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? Any help appreciated. Tim Selander Tokyo, Japan From index at kenjikojima.com Sun Aug 7 07:17:35 2022 From: index at kenjikojima.com (Kenji Kojima) Date: Sun, 7 Aug 2022 07:17:35 -0400 Subject: Auto populate an HTML form with LC server In-Reply-To: References: Message-ID: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> Tim, See this https://www.webdesign-fan.com/ajaxzip3 and http://www.webdesign-fan-guide.com/ajaxzip3/ I believe you can use these on the LC server. Best, -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ > On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode wrote: > > Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. > > I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? > > Any help appreciated. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Sun Aug 7 08:57:45 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 7 Aug 2022 21:57:45 +0900 Subject: Auto populate an HTML form with LC server In-Reply-To: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> References: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> Message-ID: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> 一発でした! 小島様、ありがとうごあいました。助かりました! お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。 ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。 では、これからもよろしくお願いいたします。 セランダー・ティム Thank you so much!! Tim On 2022.08.07 20:17, Kenji Kojima wrote: > Tim, > > See this > https://www.webdesign-fan.com/ajaxzip3 > and > http://www.webdesign-fan-guide.com/ajaxzip3/ > > I believe you can use these on the LC server. > > Best, > -- > Kenji Kojima / 小島健治 > http://www.kenjikojima.com/ > > > >> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode >> > > wrote: >> >> Many web forms in Japan automatically fill in prefecture, town, >> ward and block when you just put in the zip code. I would like >> to do that on my web site, and know the api I would use. >> >> I assume these sites are using javascript, but can LC server >> pick up user input before the submit button is clicked? >> >> Any help appreciated. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sun Aug 7 18:15:00 2022 From: tom at makeshyft.com (Tom Glod) Date: Sun, 7 Aug 2022 18:15:00 -0400 Subject: megabundle thoughts In-Reply-To: References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Greetings Everyone! I might be pretty biased (cuz the bundle contains my AppStarterStack), And I understand that people have different goals with their software development. But all i know is there is ALOT of value in the bundle. So much so, I don't even necessarily agree with the price points, for the amount of value thats in it. (When you take just the vouchers into consideration) Just my 5 cents. On Fri, Aug 5, 2022 at 3:20 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > I own a Lifetime commercial (Indy) license for all current and future > platforms and a current subscription to upgrade my license to the Pro > features with Email support. > > There are 2 items in the bundle i was interested in: the Email parser > library and also the PolyGrid widget. The other stuff like the ebooks, > conference videos and others i already own or i could upgrade much cheaper > (Curry's libraries) through the LC shop. > > And without the voucher, which has the same value as the Megabundle > costs, i would not have purchased the bundle. > > But i have also a subscription for the script compiler, so i decided to > purchase the bundle and use the voucher for the next payments for the > Script compiler subscription. > > So in my case i did not loose money, but got some really usefull widgets > and libraries on top. I did not pay much attention for the other widgets > and libraries, but must confess that the PolyList (formerl DataView) and > also the ResponsiveLayout library are really great enhancements. > > So in case you have a current subscription in your LC account and you do > not plan to cancel that subscription in near future, the MegaBundle is a > bargain. You pay your subscription costs in advance and get some really > great enhancements for LC. > > > Matthias > > > > > Am 05.08.2022 um 19:46 schrieb J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com>: > > > > I'm with Paul. I don't need additional licensing but if the widgets go > on sale separately later then I'm in. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> I kind of agree with Paul (though I ame to the opposite conclusion). > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hakan at exformedia.se Mon Aug 8 00:32:05 2022 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Mon, 8 Aug 2022 06:32:05 +0200 Subject: Auto populate an HTML form with LC server In-Reply-To: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> References: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> Message-ID: <198891BF-DC51-4969-8D6E-569E74EFDAF7@exformedia.se> I don’t understand Japanese but to clarify the process. The server side can’t do anything unless you call it in some way. So every time you see something happening in the browser before you submit it is JavaScript running. The libraries mentioned are Ajax libraries (as far as I understand) and should be injected to the web page. With JavaScript you can listen to events in a similar way as in Livecode. And when your event of choice happens your JavaScript calls a server API that can then return an answer (which often is some json) that the JavaScript interprets and injects into the fields. So, Livecode server (or any other server) can’t pick up anything before you submit, but with JavaScript you can make the call! > 7 aug. 2022 kl. 14:59 skrev Tim Selander via use-livecode : > > 一発でした! > 小島様、ありがとうごあいました。助かりました! > お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。 > > ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。 > > では、これからもよろしくお願いいたします。 > > セランダー・ティム > > Thank you so much!! > > Tim > > > >> On 2022.08.07 20:17, Kenji Kojima wrote: >> Tim, >> See this >> https://www.webdesign-fan.com/ajaxzip3 >> and >> http://www.webdesign-fan-guide.com/ajaxzip3/ >> I believe you can use these on the LC server. >> Best, >> -- >> Kenji Kojima / 小島健治 >> http://www.kenjikojima.com/ >>>> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode > wrote: >>> >>> Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. >>> >>> I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? >>> >>> Any help appreciated. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 8 12:26:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 8 Aug 2022 12:26:30 -0400 Subject: Datagrid internal error Message-ID: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumns when the error occurs, does ANYONE have any idea what tColumns might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From paul at researchware.com Mon Aug 8 12:39:02 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 8 Aug 2022 12:39:02 -0400 Subject: Datagrid internal error In-Reply-To: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> Message-ID: <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > A customer encountered the following execution error (below) in our > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > the scrips for the Datagrid itself, rather than our code. At the end, > it is one of our handler, "populateMe", where line 139 is where the > error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > tColumnNames > For example, some information from the customer suggest they are working with a VERY large dataset, so the length of the list in TColumnNames could be quit long - perhaps hundreds of lines. Is there a practical limit on the number of columns a Datagrid can be set to? From rdimola at evergreeninfo.net Mon Aug 8 13:38:50 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 8 Aug 2022 13:38:50 -0400 Subject: Datagrid internal error In-Reply-To: <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> Message-ID: <005401d8ab4d$bbd48c10$337da430$@net> Paul, The max height of a field is 32,767 pixels. This can be hard to quantify especially on mobile with the cornucopia of screen resolutions. I would imagine that this limit also applies to groups as well. I got bit on this when the app worked in the IDE but failed on some devices. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Paul Dupuis via use-livecode Sent: Monday, August 08, 2022 12:39 PM To: use-livecode at lists.runrev.com Cc: Paul Dupuis Subject: Re: Datagrid internal error On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > A customer encountered the following execution error (below) in our > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > the scrips for the Datagrid itself, rather than our code. At the end, > it is one of our handler, "populateMe", where line 139 is where the > error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > tColumnNames > For example, some information from the customer suggest they are working with a VERY large dataset, so the length of the list in TColumnNames could be quit long - perhaps hundreds of lines. Is there a practical limit on the number of columns a Datagrid can be set to? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 8 17:59:13 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 21:59:13 +0000 Subject: Code Signing Certificates: Where to put? Message-ID: I went through the process of creating the 2 certs needed to sign, notarize and staple an app bundle. I imported the certs into my Keychain in System (login didn't seem like the place to put it) and now MrSign'n'Notarize Helper V3 is generating an error which seems to indicate it cannot find the certificate. Codesigning app... executing: codesign --deep --force --verify --verbose --sign "Robert Sneidar (9PV38Bl27Y)" --options runtime --entitlements /private/var/folders/dy/zctnynys6mg69880fpzrmsy00000gr/T/TemporaryItems/entitlements.plist "/Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app" /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: replacing existing signature Warning: unable to build chain to self-signed root for signer "Developer ID Application: " /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: errSecInternalComponent In subcomponent: /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app/Contents/MacOS/revsecurity.dylib process aborted Is this an issue caused by where I put the certificates? Bob S From bobsneidar at iotecdigital.com Mon Aug 8 19:53:04 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 23:53:04 +0000 Subject: Datagrid internal error In-Reply-To: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> Message-ID: <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> I believe dgProp ["columns"] is a comma delimited list. Bob S > On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: > > A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames From bobsneidar at iotecdigital.com Mon Aug 8 19:56:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 23:56:32 +0000 Subject: Datagrid internal error In-Reply-To: <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> Message-ID: Nope I take that back it's lines. I remember now wondering why that was. Bob S > On Aug 8, 2022, at 16:53 , Bob Sneidar wrote: > > I believe dgProp ["columns"] is a comma delimited list. > > Bob S > > >> On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: >> >> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. >> Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames > From paulmcclernan at gmail.com Mon Aug 8 20:50:31 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Mon, 8 Aug 2022 20:50:31 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> Message-ID: I would say go ahead and jump in yourself, I’d be willing to help if I can (I’m rather busy myself), if you post questions in the LCB forum section, if you get stuck. I’m sure Trevor has left a nice starting base (I’ve looked at all of his LCB work). You could likely get the lib binary for macOS using “HomeBrew”. On Thu, Jul 28, 2022 at 1:44 PM harrison--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > You should have led with that information. > > Keys here: Not time sensitive. Pay competitive rates: What is your > rate? Be upfront with that if you can. > > Thanks for clearing things up a bit. > > Cheers, > > Rick > > > > On Jul 28, 2022, at 12:23 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've hired and managed independent software developers for various > businesses for nearly 40 years. I am well aware of the market. > > > > We pay competitive contract rates. My estimate of time is probably about > right for someone who has set up at least 1 or 2 cross-platform LCB DLL > wrappers based on decades of estimating IT projects, but it was more meant > to suggest the work is something in the scope of many hours to days vs. > weeks or months. > > > > As for job size, if you are a contract developer who has a queue of > large jobs providing regular income, good for you. My experience is that > many contract developers value non-time sensitive small jobs they can fit > in and around larger projects to fill in the inevitable gaps between larger > projects that can come up. > > > > If no one is available or interested, as I said, it is not time > sensitive, so we can either wait or tackle it ourselves as time permits. > > > > Paul Dupuis > > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Aug 9 08:09:00 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 9 Aug 2022 08:09:00 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> Message-ID: <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> comma delimited or cr delimited, without looking it up, I am sure it is in the right format since it work 99.99% of the time. The names that would be in the column list all go through a name check function. That function prevents names that are all spaces, longer than 255 characters, or are a handful of "reserved words" and checks that each name does not contain the following characters     if (it < 32)  then return false -- all control characters (0x0000 to 0x0031)     if (it = 34)  then return false -- "                quote (0x0034) -- LC string encapsulator     if (it = 40)  then return false -- (     left parenthesis (0x0040) -- used in filter and theory criteria     if (it = 41)  then return false -- )    right parenthesis (0x0041) -- used in filter and theory criteria     if (it = 44)  then return false -- ,                comma (0x0044) -- LC item delimiter     if (it = 60)  then return false -- <       less than sign (0x0060) -- htmlText tag delimiter     if (it = 62)  then return false -- >    greater than sign (0x0062) -- htmlText tag delimiter     if (it = 91)  then return false -- [  left square bracket (0x0091) -- LC merge delimiter     if (it = 92)  then return false -- \            backslash (0x0092) -- regex string escape character     if (it = 93)  then return false -- ] right square bracket (0x0093) -- LC merge delimiter     if (it = 124) then return false -- |         vertical bar (0x0124) -- used in code     if (it = 127) then return false -- DEL             delete (0x0127) So, comma's are excluded, as are [ and ], and control characters, etc.. However all Unicode characters, codepoints 128 and up are allowed. Testing shows you can have a Datagrid where you can set the columns to empty, so that is not the cause of the error. I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? I don't really want to have to carve out time to build test stacks to try names with every possible characters or ever increasing numbers of column names until the error occurs or those possibilities are ruled out. I was hoping there might be someone on the list who was familiar enough with the internals of the Datagrid to have some idea what might have caused the error. Unfortunately, the customer's data is confidential, so they do not want to provide the data to us to use for testing. And the customer is either not technically savvy or does not have time (they have said they are under a deadline) to help much in troubleshooting. They can get the analysis this Datagrid provides by exporting some data to Excel and doing the analysis in Excel, so the error is not a show-stopper for them as well. Definitely not as convenient as the report in our app, but a viable work-around. See my original post for the executionContexts and the specific error. On 8/8/2022 7:56 PM, Bob Sneidar via use-livecode wrote: > Nope I take that back it's lines. I remember now wondering why that was. > > Bob S > > >> On Aug 8, 2022, at 16:53 , Bob Sneidar wrote: >> >> I believe dgProp ["columns"] is a comma delimited list. >> >> Bob S >> >> >>> On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: >>> >>> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. >>> Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Aug 9 10:44:22 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 9 Aug 2022 16:44:22 +0200 Subject: Code Signing Certificates: Where to put? In-Reply-To: References: Message-ID: <9C1D9CBF-1D59-4DB6-BF82-8A299B7B8354@m-r-d.de> My certificates are stored under Login in my Keychain. I created them using Xcode (Preferences/Account) and Xcode installed them directly in Login. So give it a try and move (if this is possible) the certs to Login or just delete the 2 and reinstall them. If you still run into a problem then could you try to create a simple standalone without any external/extension and see if it is possible to sign and notarize that? Matthias > Am 08.08.2022 um 23:59 schrieb Bob Sneidar via use-livecode : > > I went through the process of creating the 2 certs needed to sign, notarize and staple an app bundle. I imported the certs into my Keychain in System (login didn't seem like the place to put it) and now MrSign'n'Notarize Helper V3 is generating an error which seems to indicate it cannot find the certificate. > Codesigning app... > > executing: codesign --deep --force --verify --verbose --sign "Robert Sneidar (9PV38Bl27Y)" --options runtime --entitlements /private/var/folders/dy/zctnynys6mg69880fpzrmsy00000gr/T/TemporaryItems/entitlements.plist "/Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app" > /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: replacing existing signature > Warning: unable to build chain to self-signed root for signer "Developer ID Application: " > /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: errSecInternalComponent > In subcomponent: /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app/Contents/MacOS/revsecurity.dylib > process aborted > > Is this an issue caused by where I put the certificates? > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 9 11:09:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 9 Aug 2022 15:09:55 +0000 Subject: Datagrid internal error In-Reply-To: <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. Bob S > On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: > > I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? From paul at researchware.com Tue Aug 9 13:15:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 9 Aug 2022 13:15:31 -0400 Subject: Summer Bundle table/grid widgets.... Message-ID: I am in need of a control to display a table of numbers. The top ROW are column labels (text, sometimes up to 255 characters). The left COLUMN is row labels (text, sometime up to 255 characters). I'd like a widget that: 1) Can display this with the top row (or headers) fixed so they remain visible when the data is scrolled 2) Can display this with the left column fixed to they remain visible when the data is scrolled 3) Provides built in abilities to sort the numbers in all the data of the grid/table, by any column, ascending or descending as the user desires. I have already built this with a grouped field (for the fixed left column) and Datagrid (for the remained of the table). Do any of the new widgets in the Summer Bundle do this inherently without me having to make a custom object (as I had to do with the field + Datagrid)? From dan at clearvisiontech.com Tue Aug 9 13:33:42 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 9 Aug 2022 17:33:42 +0000 Subject: Android API Level 31 Message-ID: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> I am trying to upload an AAB to Google Play Condole and I am getting this error: "Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 31." I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio and restarted LC and rebuilt the app. Still getting the error from Google Play. Anyone have any ideas as to the LC/Studio settings needed to get Google to accept the app? Thank you in advance! Dan From merakosp at gmail.com Tue Aug 9 14:45:14 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 9 Aug 2022 21:45:14 +0300 Subject: Android API Level 31 In-Reply-To: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> References: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> Message-ID: Hello Dan, This is a new requirement of the Google Play Store, i.e. new apps should target Android API 31. We are preparing a build of LC 9.6.9 RC-1 that among other bugfixes includes support for API31 too, it is currently in testing and should be good for release very soon. If you are urgently affected please contact support and we can offer an interim (test) build to try. Kind regards, Panos -- On Tue, 9 Aug 2022 at 20:34, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am trying to upload an AAB to Google Play Condole and I am getting this > error: > > "Your app currently targets API level 30 and must target at least API > level 31 to ensure it is built on the latest APIs optimized for security > and performance. Change your app's target API level to at least 31." > > I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio > and restarted LC and rebuilt the app. Still getting the error from Google > Play. Anyone have any ideas as to the LC/Studio settings needed to get > Google to accept the app? > > Thank you in advance! > Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Tue Aug 9 15:12:14 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 9 Aug 2022 19:12:14 +0000 Subject: Android API Level 31 In-Reply-To: References: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> Message-ID: <77239A29-9319-4F46-BE0E-F0A53094F42B@clearvisiontech.com> Panos, THANK YOU for the quick reply and the information! If we're talking days or early next week, I can probably wait. Anything later than that and I'll need something to give my client. Thank you! Dan On 8/9/22, 11:47 AM, "use-livecode on behalf of panagiotis m via use-livecode" wrote: Hello Dan, This is a new requirement of the Google Play Store, i.e. new apps should target Android API 31. We are preparing a build of LC 9.6.9 RC-1 that among other bugfixes includes support for API31 too, it is currently in testing and should be good for release very soon. If you are urgently affected please contact support and we can offer an interim (test) build to try. Kind regards, Panos -- On Tue, 9 Aug 2022 at 20:34, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am trying to upload an AAB to Google Play Condole and I am getting this > error: > > "Your app currently targets API level 30 and must target at least API > level 31 to ensure it is built on the latest APIs optimized for security > and performance. Change your app's target API level to at least 31." > > I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio > and restarted LC and rebuilt the app. Still getting the error from Google > Play. Anyone have any ideas as to the LC/Studio settings needed to get > Google to accept the app? > > Thank you in advance! > Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Wed Aug 10 09:51:27 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 10 Aug 2022 09:51:27 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: This seems like a fragment of a longer thread, but the “dgText” and the “dgData” are the two methods I use to extract, process and reload the content of a data grid. Craig > On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: > > I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. > > Bob S > > >> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >> >> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 10 10:59:35 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 16:59:35 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" Message-ID: Hi all, the subject says it all... How can we get the the visible rect of a stack running on mobile with fullscreenmode "showall"? Know what I mean? Thank you for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Aug 10 11:11:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 15:11:00 +0000 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> I was referring to dgNumberOfRecords • get the dgNumberOfRecords • set the dgNumberOfRecords of group "DataGrid" to 20 • Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows: command GetDataForLine pLine, @pDataA end GetDataForLine You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. Bob S > On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode wrote: > > This seems like a fragment of a longer thread, but the “dgText” and the “dgData” are the two methods I use to extract, process and reload the content of a data grid. > > Craig > >> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: >> >> I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. >> >> Bob S >> >> >>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >>> >>> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 10 11:35:22 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 10 Aug 2022 11:35:22 -0400 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: Check out this repository: https://github.com/bwmilby/mobileDemo It has logging that shows various rects when changing modes. I can look later to try to give a more concise answer. Thanks, Brian Sent from my iPhone > On Aug 10, 2022, at 11:00 AM, Klaus major-k via use-livecode wrote: > > Hi all, > > the subject says it all... > > How can we get the the visible rect of a stack running > on mobile with fullscreenmode "showall"? > Know what I mean? > > Thank you for any hint! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 10 11:44:03 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 17:44:03 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> Hi Brian, > Am 10.08.2022 um 17:35 schrieb Brian Milby via use-livecode : > > Check out this repository: > https://github.com/bwmilby/mobileDemo > > It has logging that shows various rects when changing modes. I can look later to try to give a more concise answer. ah, yes, "the effectiver working screenrect"! 8-) Will take a deeper look at your stack later, thanks! > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Aug 10 12:04:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 16:04:22 +0000 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> References: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> Message-ID: <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> Wait, there is a more effectiver working screenrect than the effective one?? ;-P Bob S > On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: > > ah, yes, "the effectiver working screenrect"! 8-) From klaus at major-k.de Wed Aug 10 12:07:44 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:07:44 +0200 Subject: iPhone simulators Message-ID: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Hi all, we can open several different iPhone and iPad simulators on the Mac via Xcode. However in the "Test Target" menu of LC we only see one generic "iPhone Simulator 15.2" resp. "iPad Simulator 15.2". Is there a way to select one of the open simulators directly? Know what I mean? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Wed Aug 10 12:08:32 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:08:32 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> References: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> Message-ID: Hi Bob, > Am 10.08.2022 um 18:04 schrieb Bob Sneidar via use-livecode : > > Wait, there is a more effectiver working screenrect than the effective one?? ;-P yes, but it is R-rated! 8-) > Bob S > >> On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: >> ah, yes, "the effectiver working screenrect"! 8-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From panos.merakos at livecode.com Wed Aug 10 12:11:01 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 10 Aug 2022 19:11:01 +0300 Subject: [ANN] Release 9.6.9 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.9 RC-1. LiveCode 9.6.9 RC-1 comes with more than 30 bugfixes, including support for Android API 31, which is now a requirement for submitting new apps to the Google Play Store. You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/android-api-31-support/ Note: This maintenance pre-release will break from convention slightly in that there will definitely be an RC-2 with further bug fixes. This RC-1 release is being made due to the change in API level requirement for the Play Store recently made by Google. You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From merakosp at gmail.com Wed Aug 10 12:28:22 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 10 Aug 2022 19:28:22 +0300 Subject: iPhone simulators In-Reply-To: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: Hello Klaus, The suggested approach is to make sure the desired simulator device is already up and running. And then, in the Test Target menu, choose "iPhone Simulator 15.2" or ""iPad Simulator 15.2", and click Test. PS: To change a device, click on the Simulator app menu Hardware -> Device -> iPhone X.Y etc Note this might be slightly different depending on the version of your Simulator app, which depends on the Xcode version, which depends on your MacOS version :) Cheers, Panos On Wed, 10 Aug 2022 at 19:08, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > we can open several different iPhone and iPad simulators on the Mac via > Xcode. > > However in the "Test Target" menu of LC we only see one generic "iPhone > Simulator 15.2" > resp. "iPad Simulator 15.2". > > Is there a way to select one of the open simulators directly? > Know what I mean? Thanks in advance! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Aug 10 12:38:36 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:38:36 +0200 Subject: iPhone simulators In-Reply-To: References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: Hi Panos, > Am 10.08.2022 um 18:28 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > The suggested approach is to make sure the desired simulator device is > already up and running. And then, in the Test Target menu, choose "iPhone > Simulator 15.2" or ""iPad Simulator 15.2", and click Test. > > PS: To change a device, click on the Simulator app menu Hardware -> Device > -> iPhone X.Y etc yes, I know this, that was not my question. Supposed I opened two iPhone simulators (macOS 12.5, Xcode 13.2.1) in the simulator app, in the LC menu there is only ONE entry named "iPhone Simulator 15.2". My question is if we can test the app in one of the two simulators directly? Means can we specifically address one of the open simulators? Does not seem possible in the moment... Looks like only the first opened simulator is being addressed by LC. > Note this might be slightly different depending on the version of your > Simulator app, which depends on the Xcode version, which depends on your > MacOS version :) Go figure!? 8-) > Cheers, > Panos > > On Wed, 10 Aug 2022 at 19:08, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> we can open several different iPhone and iPad simulators on the Mac via >> Xcode. >> >> However in the "Test Target" menu of LC we only see one generic "iPhone >> Simulator 15.2" resp. "iPad Simulator 15.2". >> >> Is there a way to select one of the open simulators directly? >> Know what I mean? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Wed Aug 10 13:23:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Aug 2022 12:23:57 -0500 Subject: iPhone simulators In-Reply-To: References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 10, 2022 11:39:54 AM Klaus major-k via use-livecode > > Does not seem possible in the moment... > Looks like only the first opened simulator is being addressed by LC. From klaus at major-k.de Wed Aug 10 13:30:55 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 19:30:55 +0200 Subject: iPhone simulators In-Reply-To: <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> Hi Jaques, > Am 10.08.2022 um 19:23 schrieb J. Landman Gay via use-livecode : > > If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. yep, came to the same conclusion. A good candidate for an "enhancement request". :-) > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 10, 2022 11:39:54 AM Klaus major-k via use-livecode >> >> Does not seem possible in the moment... >> Looks like only the first opened simulator is being addressed by LC. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Wed Aug 10 13:56:20 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 10 Aug 2022 13:56:20 -0400 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: <102727ED-63C1-4F6D-B0DC-3C0B008E6A2E@milby7.com> The handler you probably need to look at is in card 1002 (index) called setBackground (line 104). The effective working screenrect is going to report device pixels. To actually know the relative rect from the card’s perspective you have to translate to the card coordinates. I may not have used the most efficient method, but you should be able to follow it. Thanks, Brian Sent from my iPhone > On Aug 10, 2022, at 12:08 PM, Klaus major-k via use-livecode wrote: > > Hi Bob, > >> Am 10.08.2022 um 18:04 schrieb Bob Sneidar via use-livecode : >> >> Wait, there is a more effectiver working screenrect than the effective one?? ;-P > > yes, but it is R-rated! 8-) > >> Bob S >> >>>> On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: >>> ah, yes, "the effectiver working screenrect"! 8-) > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 10 16:14:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Aug 2022 15:14:44 -0500 Subject: Windows standalone settings Message-ID: Does anyone still build for Windows x86 or is x86-64 sufficient now? Also, what UAC execution level do you set? Default, highest avialable, etc.? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Aug 10 16:23:45 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 16:23:45 -0400 Subject: Windows standalone settings In-Reply-To: References: Message-ID: <5849fd1e-665f-5089-118c-1cd11079909c@researchware.com> On 8/10/2022 4:14 PM, J. Landman Gay via use-livecode wrote: > Does anyone still build for Windows x86 or is x86-64 sufficient now? > > Also, what UAC execution level do you set? Default, highest avialable, > etc.? > I still build for 32 bit windows as it still works and is the lowest common denominator - it works on all windows systems. I leave the UAC at Default for our apps but Admin for our Installer (built in Livecode like our apps) From paul at researchware.com Wed Aug 10 16:27:26 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 16:27:26 -0400 Subject: Datagrid internal error In-Reply-To: <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> Message-ID: <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> I'm sorry, I don;t see what setting the dgData or dgText or dgNuberofRecords has to do with my original post - I get an internal Datagird script error when setting the names of the columns (see original post) On 8/10/2022 11:11 AM, Bob Sneidar via use-livecode wrote: > I was referring to dgNumberOfRecords > > get the dgNumberOfRecords > set the dgNumberOfRecords of group "DataGrid" to 20 > Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. > After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows: > > command GetDataForLine pLine, @pDataA > > end GetDataForLine > > You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. > > Bob S > > >> On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode wrote: >> >> This seems like a fragment of a longer thread, but the dgText and the dgData are the two methods I use to extract, process and reload the content of a data grid. >> >> Craig >> >>> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: >>> >>> I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. >>> >>> Bob S >>> >>> >>>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >>>> >>>> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at canelasoftware.com Wed Aug 10 16:41:48 2022 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 10 Aug 2022 13:41:48 -0700 Subject: [ANN] Release 9.6.9 RC-1 In-Reply-To: References: Message-ID: > On Aug 10, 2022, at 9:11 AM, panagiotis merakos via use-livecode wrote: > > Dear list members, > > We are pleased to announce the release of LiveCode 9.6.9 RC-1. > > LiveCode 9.6.9 RC-1 comes with more than 30 bugfixes, including support for > Android API 31, which is now a requirement for submitting new apps to the > Google Play Store. > > You can find more details on the bug fixes and improvements of this new > release here: > > https://livecode.com/android-api-31-support/ > > Note: This maintenance pre-release will break from convention slightly in > that there will definitely be an RC-2 with further bug fixes. This RC-1 > release is being made due to the change in API level requirement for the > Play Store recently made by Google. > > You can find the release in your LiveCode account area or get it via the > automatic updater. > > Enjoy! > > Kind regards > The LiveCode Team Thank you for this update. Best regards, Mark Talluto appli.io livecloud.io nursenotes.net canelasoftware.com From bobsneidar at iotecdigital.com Wed Aug 10 16:57:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 20:57:18 +0000 Subject: Datagrid internal error In-Reply-To: <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> Message-ID: Well the question came up if there was some limit on the number of records, and controlling the population of the datagrid would solve that. As far as the number of columns, I suspect there may be a limit on the number of *displayed* columns, and probably an issue with what characters are allowed for column names. Those things I am unsure of. Is it necessary to display *all* the data in the array, or can you use the datagrid as a sort of index to an array that is in memory, only populating the columns you need? The datagrid library is not protected, so if your app in the IDE throws an error and drops you into the datagrid library script in the debugger (mine does), then you can poke around in the debugger to see where things are going awry. Bob S > On Aug 10, 2022, at 13:27 , Paul Dupuis via use-livecode wrote: > > I'm sorry, I don;t see what setting the dgData or dgText or dgNuberofRecords has to do with my original post - I get an internal Datagird script error when setting the names of the columns (see original post) From craig at starfirelighting.com Wed Aug 10 16:57:23 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 10 Aug 2022 16:57:23 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: Paul. All I saw was this: "I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. Which is why I mentioned that the bulk of the thread must not have come to me. Craig From bobsneidar at iotecdigital.com Wed Aug 10 16:58:53 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 20:58:53 +0000 Subject: Windows standalone settings In-Reply-To: References: Message-ID: I do only because I have a special case where I grabbled a 32 bit windows PC to serve mySQL and Spiceworks, and to host my SQL Socket Agent. Bob S > On Aug 10, 2022, at 13:14 , J. Landman Gay via use-livecode wrote: > > Does anyone still build for Windows x86 or is x86-64 sufficient now? > > Also, what UAC execution level do you set? Default, highest avialable, etc.? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Wed Aug 10 17:02:43 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 10 Aug 2022 16:02:43 -0500 Subject: Datagrid internal error In-Reply-To: <005401d8ab4d$bbd48c10$337da430$@net> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: 32,767 is the max for width as well. If there are enough columns it is possible that the DataGrid is rendering a group that exceeds this limit and hence the error. The DataGrid works around the limit when rendering rows, but not when rendering columns. I suppose a quick test would be to create a DataGrid with 330 columns that are at least 100 pixels wide and see if you get the same error. -- Trevor DeVore ScreenSteps On Mon, Aug 8, 2022 at 12:36 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Paul, > > The max height of a field is 32,767 pixels. This can be hard to quantify > especially on mobile with the cornucopia of screen resolutions. I would > imagine that this limit also applies to groups as well. I got bit on this > when the app worked in the IDE but failed on some devices. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of Paul Dupuis via use-livecode > Sent: Monday, August 08, 2022 12:39 PM > To: use-livecode at lists.runrev.com > Cc: Paul Dupuis > Subject: Re: Datagrid internal error > > On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > > A customer encountered the following execution error (below) in our > > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > > the scrips for the Datagrid itself, rather than our code. At the end, > > it is one of our handler, "populateMe", where line 139 is where the > > error starts. > > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > > tColumnNames > > > > For example, some information from the customer suggest they are working > with a VERY large dataset, so the length of the list in TColumnNames could > be quit long - perhaps hundreds of lines. Is there a practical limit on the > number of columns a Datagrid can be set to? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Wed Aug 10 17:14:44 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 17:14:44 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> Message-ID: <33771d06-f7ea-8b67-f7e0-22a841b52c70@researchware.com> I do appreciate the responses. My question was not about the number of records, but about the number of COLUMNS and whether there is any practical or known limit. When my code is setting the column names, that list comes from customer entered data. I know that each name is less than 255 characters and restricts entry of certain characters (previously listed) such as comma, [ ], etc. How many names is unknown. In this specific case of the error I reported, the customer is not in a position to be able to help much (if at all). Since it is customer data dependent, we are not able to reproduce the error in the IDE. SO my very specific questions was: Has any one seen an error like the one I reported (copied again below) OR know of any issues/limits when setting the dgProp["columns"] property of a Datagrid? A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scripts for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumnNames when the error occurs, does ANYONE have any idea what tColumnNames might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From paul at researchware.com Wed Aug 10 17:15:25 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 17:15:25 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: <21ce9be5-0360-1ca5-5135-efc26d37016c@researchware.com> On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote: > 32,767 is the max for width as well. If there are enough columns it is > possible that the DataGrid is rendering a group that exceeds this limit and > hence the error. The DataGrid works around the limit when rendering rows, > but not when rendering columns. > > I suppose a quick test would be to create a DataGrid with 330 columns that > are at least 100 pixels wide and see if you get the same error. > Thank you! From sean at pidigital.co.uk Wed Aug 10 23:45:22 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 11 Aug 2022 04:45:22 +0100 Subject: Email via IMAP with HTML body from a template Message-ID: Hi all, I'm struggling with this still. It's been years (since before Dec 2020) and I just can't get my head around it. I have a template created in Dreamweaver that is a simple bit of HTML body with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). There is also a pdf that needs to be attached. How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via tsNetSmtpSync? There are zero tutorials and the dictionary is devoid of any useful information on how to use it. Google turned up nothing. In my previous request back in 2020, Monte, the author of the MIME library, had only referred me on to the RSC docs for MIME which is like looking for a straw in a needle stack. When I asked at one of the 'Firesides' I was told just to use a template and send it. But to send it, it needs to be encoded and that's the bit that is undocumented anywhere. Any help appreciated. From tom at makeshyft.com Thu Aug 11 00:38:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 00:38:10 -0400 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Sean, Try this .. edit the script of stack "com.livecode.library.mime" there seems to be some documentation there that may help. I also found this https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument Is that your comment? :) Hope that helps a bit. On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > I'm struggling with this still. It's been years (since before Dec 2020) and > I just can't get my head around it. > > I have a template created in Dreamweaver that is a simple bit of HTML body > with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). > There is also a pdf that needs to be attached. > > How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via > tsNetSmtpSync? > > There are zero tutorials and the dictionary is devoid of any useful > information on how to use it. Google turned up nothing. In my previous > request back in 2020, Monte, the author of the MIME library, had only > referred me on to the RSC docs for MIME which is like looking for a straw > in a needle stack. When I asked at one of the 'Firesides' I was told just > to use a template and send it. But to send it, it needs to be encoded and > that's the bit that is undocumented anywhere. > > Any help appreciated. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Thu Aug 11 01:11:38 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 11 Aug 2022 06:11:38 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Hi Tom, The doc in the script is the same that comes up in the dictionary. No help when it comes to actually following a series of instructions that are needed to send an HTML email via tsNetSmtpSync. Basically, it only tells you the syntax, but with no help on even a few of the necessary parameters you would need to use to make proper use of it. It's like being handed the space shuttle and told "there you are, work it out for yourself"! That is my comment on Fandom. The same I asked of Monte. Neither he nor anyone else wants to answer those questions it would seem. pContentA: How do we pre-encode parts including headers? pMultipartType: What MultiPart types are there? pParamA: What kind of parameters does ParamA take? The formatting we get from converting a field to mime (MimeEncodeFieldAsMimeMultipartDocument - a ridiculously long command name btw) is horrendous. It's practically unusable, hence why I NEED to find a way to send HTML by email on behalf of our clients. On Thu, 11 Aug 2022 at 05:38, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Sean, > > Try this .. > > edit the script of stack "com.livecode.library.mime" > > there seems to be some documentation there that may help. > > I also found this > > https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument > > Is that your comment? :) > > Hope that helps a bit. > > > > On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi all, > > > > I'm struggling with this still. It's been years (since before Dec 2020) > and > > I just can't get my head around it. > > > > I have a template created in Dreamweaver that is a simple bit of HTML > body > > with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). > > There is also a pdf that needs to be attached. > > > > How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send > via > > tsNetSmtpSync? > > > > There are zero tutorials and the dictionary is devoid of any useful > > information on how to use it. Google turned up nothing. In my previous > > request back in 2020, Monte, the author of the MIME library, had only > > referred me on to the RSC docs for MIME which is like looking for a straw > > in a needle stack. When I asked at one of the 'Firesides' I was told just > > to use a template and send it. But to send it, it needs to be encoded and > > that's the bit that is undocumented anywhere. > > > > Any help appreciated. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at techstrategies.com.au Thu Aug 11 01:45:09 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 15:45:09 +1000 Subject: Email via IMAP with HTML body from a template Message-ID: Hi Sean, There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode Does that help at all, Regards, Charles > On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: > > Sean, > > Try this .. > > edit the script of stack "com.livecode.library.mime" > > there seems to be some documentation there that may help. > > I also found this > > https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument > > Is that your comment? :) > > Hope that helps a bit. > > > >> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> Hi all, >> I'm struggling with this still. It's been years (since before Dec 2020) and >> I just can't get my head around it. >> I have a template created in Dreamweaver that is a simple bit of HTML body >> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >> There is also a pdf that needs to be attached. >> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >> tsNetSmtpSync? >> There are zero tutorials and the dictionary is devoid of any useful >> information on how to use it. Google turned up nothing. In my previous >> request back in 2020, Monte, the author of the MIME library, had only >> referred me on to the RSC docs for MIME which is like looking for a straw >> in a needle stack. When I asked at one of the 'Firesides' I was told just >> to use a template and send it. But to send it, it needs to be encoded and >> that's the bit that is undocumented anywhere. >> Any help appreciated. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Aug 11 02:10:08 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 07:10:08 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Hi Charles I know how to add an attachment because there are tutorials on this. That is already being implemented. My question is on how to add in proper html body for the content. Does your stack show how to do that? Sean > On 11 Aug 2022, at 06:45, Charles Warwick via use-livecode wrote: > > Hi Sean, > > There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: > > https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode > > Does that help at all, > > Regards, > > Charles From charles at techstrategies.com.au Thu Aug 11 02:16:03 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 16:16:03 +1000 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: <0C99BEF1-2C2C-4583-8E74-B6AFA0803E6E@techstrategies.com.au> Hi Sean, After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody With something like this: put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain put “” into tBodyPlain put tHeadersPlain & crlf & crlf & \ mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML put “” into tBodyHTML put tHeadersHTML & crlf & crlf & \ mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) Hope that helps, Regards, Charles > On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: > > Hi Sean, > > There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: > > https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode > > Does that help at all, > > Regards, > > Charles > >> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >> >> Sean, >> >> Try this .. >> >> edit the script of stack "com.livecode.library.mime" >> >> there seems to be some documentation there that may help. >> >> I also found this >> >> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >> >> Is that your comment? :) >> >> Hope that helps a bit. >> >> >> >>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> Hi all, >>> I'm struggling with this still. It's been years (since before Dec 2020) and >>> I just can't get my head around it. >>> I have a template created in Dreamweaver that is a simple bit of HTML body >>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>> There is also a pdf that needs to be attached. >>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>> tsNetSmtpSync? >>> There are zero tutorials and the dictionary is devoid of any useful >>> information on how to use it. Google turned up nothing. In my previous >>> request back in 2020, Monte, the author of the MIME library, had only >>> referred me on to the RSC docs for MIME which is like looking for a straw >>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>> to use a template and send it. But to send it, it needs to be encoded and >>> that's the bit that is undocumented anywhere. >>> Any help appreciated. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Thu Aug 11 02:23:44 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 16:23:44 +1000 Subject: Email via IMAP with HTML body from a template Message-ID: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Sorry, the last line of the replacement code should have been: put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody (It was missing the "into tBody" at the end of the line) > On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: > > Hi Sean, > > After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. > > If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: > > put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody > > With something like this: > > put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain > put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain > put “” into tBodyPlain > put tHeadersPlain & crlf & crlf & \ > mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] > > put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML > put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML > put “” into tBodyHTML > put tHeadersHTML & crlf & crlf & \ > mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) > > Hope that helps, > > Regards, > > Charles > >> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >> Hi Sean, >> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >> Does that help at all, >> Regards, >> Charles >>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>> Sean, >>> Try this .. >>> edit the script of stack "com.livecode.library.mime" >>> there seems to be some documentation there that may help. >>> I also found this >>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>> Is that your comment? :) >>> Hope that helps a bit. >>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> Hi all, >>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>> I just can't get my head around it. >>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>> There is also a pdf that needs to be attached. >>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>> tsNetSmtpSync? >>>> There are zero tutorials and the dictionary is devoid of any useful >>>> information on how to use it. Google turned up nothing. In my previous >>>> request back in 2020, Monte, the author of the MIME library, had only >>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>> to use a template and send it. But to send it, it needs to be encoded and >>>> that's the bit that is undocumented anywhere. >>>> Any help appreciated. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 06:08:28 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:08:28 +0200 Subject: iPhone simulators In-Reply-To: <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> Message-ID: <53B76442-2D0D-4D2E-B1CC-6F251935A242@major-k.de> Hi all, > Am 10.08.2022 um 19:30 schrieb Klaus major-k via use-livecode : > > Hi Jaques, > >> Am 10.08.2022 um 19:23 schrieb J. Landman Gay via use-livecode : >> If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. > yep, came to the same conclusion. A good candidate for an "enhancement request". :-) and done: Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 06:30:11 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:30:11 +0200 Subject: Fail to test new stack on Android device Message-ID: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Hi all, I just tested an older stack on my Android device, everything is fine. Then I created a new stack for a little stack and always get this error when selecting "Test" in the LC dev menu. Only script in that stack: ------------------------ on preopenstack set the fullscreenmode of this stack to "showall" end preopenstack ## And a button: on mouseUp ## Need to know if that is returning anything or giving an error or whatever... answer iphonesafeareainsets() end mouseUp ------------------------ If I switch back to the other stack, I can upload and test, but not with this new stack!? Any hints? Thanks! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 06:39:18 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:39:18 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Message-ID: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> > Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : > > Hi all, > > I just tested an older stack on my Android device, everything is fine. > Then I created a new stack for a little stack and always get this error > when selecting "Test" in the LC dev menu. > > > Only script in that stack: > ------------------------ > on preopenstack > set the fullscreenmode of this stack to "showall" > end preopenstack > > ## And a button: > on mouseUp > ## Need to know if that is returning anything or giving an error or whatever... > answer iphonesafeareainsets() > end mouseUp > ------------------------ > If I switch back to the other stack, I can upload and test, but not with this new stack!? > > Any hints? Thanks! of course everyting is set up correctly in the "Stanalone Application Settings"! -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Thu Aug 11 07:30:45 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Aug 2022 07:30:45 -0400 Subject: Fail to test new stack on Android device In-Reply-To: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> References: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> Message-ID: <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> Change the app name or version string info. You have an app with the same name and an earlier version already on the device. Sent from my iPhone > On Aug 11, 2022, at 6:39 AM, Klaus major-k via use-livecode wrote: > >  > >> Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : >> >> Hi all, >> >> I just tested an older stack on my Android device, everything is fine. >> Then I created a new stack for a little stack and always get this error >> when selecting "Test" in the LC dev menu. >> >> >> Only script in that stack: >> ------------------------ >> on preopenstack >> set the fullscreenmode of this stack to "showall" >> end preopenstack >> >> ## And a button: >> on mouseUp >> ## Need to know if that is returning anything or giving an error or whatever... >> answer iphonesafeareainsets() >> end mouseUp >> ------------------------ >> If I switch back to the other stack, I can upload and test, but not with this new stack!? >> >> Any hints? Thanks! > > of course everyting is set up correctly in the "Stanalone Application Settings"! > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 08:14:56 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:14:56 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> References: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> Message-ID: <7B6A1003-2782-41CA-B459-8522FCC32F92@major-k.de> Hi Brian, > Am 11.08.2022 um 13:30 schrieb Brian Milby via use-livecode : > > Change the app name or version string info. You have an app with the same name and an earlier version already on the device. thanks, will try that! > Sent from my iPhone > >> On Aug 11, 2022, at 6:39 AM, Klaus major-k via use-livecode wrote: >> Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : >>> >>> Hi all, >>> >>> I just tested an older stack on my Android device, everything is fine. >>> Then I created a new stack for a little stack and always get this error >>> when selecting "Test" in the LC dev menu. >>> >>> ... Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 08:44:31 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:44:31 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: Hi all, > Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode : > > Hi friends, > > quick question, cannot test it myself in the moment. > > Will -> iPhoneSafeAreaInsets() > a. work or > b. throw an error when being used on Android? > > If a. I presume it will return "the screenrect" without any "notches". > Does it? > > If b. then I will to check "if the platform = "iphone"..." > > Thanks for any quick answer! FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. Will file an enhancement request that is will return at least the screenrect on Android, so there is no need for a PLATFORM check. We already need too much of them. 8-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 08:48:34 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:48:34 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <990DA21D-3D55-4BF4-9D9E-3059695FBBC6@major-k.de> Hi all, > Am 11.08.2022 um 14:44 schrieb Klaus major-k via use-livecode : > Hi all, >> Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode : >> Hi friends, >> quick question, cannot test it myself in the moment. >> Will -> iPhoneSafeAreaInsets() >> a. work or >> b. throw an error when being used on Android? >> If a. I presume it will return "the screenrect" without any "notches". >> Does it? >> If b. then I will to check "if the platform = "iphone"..." >> Thanks for any quick answer! > FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. > Will file an enhancement request that is will return at least the screenrect on Android, > so there is no need for a PLATFORM check. and done: Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Thu Aug 11 11:16:58 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 11:16:58 -0400 Subject: Livecode SQLite Message-ID: Hi Folks, I have a question about Livecode's SQLite implementation. Looking at the official SQLite specs there seem to be json related functions. https://www.sqlite.org/json1.html but none of them seem to work using Livecode's driver. I was under the impression we had a full implementation I was interested in implementing a relatively new feature where you can index and query json documents and read the keys directly. https://dgl.cx/2020/06/sqlite-json-support I guess, if this is true, is there any documentation about which features of sqlite are implemented and which are not? TIA, -- Tom Glod From bobsneidar at iotecdigital.com Thu Aug 11 11:27:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 15:27:21 +0000 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? I see that your goal is to try and avoid platform checks, but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. Just my ignorant 2¢ Bob S > On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode wrote: > > iPhoneSafeAreaInsets() returns EMPTY on Android From bobsneidar at iotecdigital.com Thu Aug 11 11:32:10 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 15:32:10 +0000 Subject: Email via IMAP with HTML body from a template In-Reply-To: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> References: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Message-ID: I have to say, I've learned more about programming just from being a member of this list, than any book on the suject. Admittedly, I've read very few, as is manifestly evident when going back and re-reading my code. :-) Bob S > On Aug 10, 2022, at 23:23 , Charles Warwick via use-livecode wrote: > > Sorry, the last line of the replacement code should have been: > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody > > (It was missing the "into tBody" at the end of the line) > >> On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: >> >> Hi Sean, >> >> After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. >> >> If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: >> >> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody >> >> With something like this: >> >> put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain >> put “” into tBodyPlain >> put tHeadersPlain & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] >> >> put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML >> put “” into tBodyHTML >> put tHeadersHTML & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] >> >> put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) >> >> Hope that helps, >> >> Regards, >> >> Charles >> >>> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >>> Hi Sean, >>> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >>> Does that help at all, >>> Regards, >>> Charles >>>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>>> Sean, >>>> Try this .. >>>> edit the script of stack "com.livecode.library.mime" >>>> there seems to be some documentation there that may help. >>>> I also found this >>>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>>> Is that your comment? :) >>>> Hope that helps a bit. >>>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi all, >>>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>>> I just can't get my head around it. >>>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>>> There is also a pdf that needs to be attached. >>>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>>> tsNetSmtpSync? >>>>> There are zero tutorials and the dictionary is devoid of any useful >>>>> information on how to use it. Google turned up nothing. In my previous >>>>> request back in 2020, Monte, the author of the MIME library, had only >>>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>>> to use a template and send it. But to send it, it needs to be encoded and >>>>> that's the bit that is undocumented anywhere. >>>>> Any help appreciated. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 11:35:45 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 17:35:45 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> References: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> Message-ID: <4D3B1C7A-D04A-4B0D-A6A1-BD071899EBA8@major-k.de> Hi Bob, > Am 11.08.2022 um 17:27 schrieb Bob Sneidar via use-livecode : > > It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? Sure, but that is not the problem. > I see that your goal is to try and avoid platform checks, Yep, that is the goal, lazy moi! :-) > but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. Yes, and I still naively think that the IDE should just ignore these, so "if the platform = "mobile..." would not be neccessary anymore. 8-) > I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. > Just my ignorant 2¢ > > Bob S > > iPhoneSafeAreaInsets() returns EMPTY on Android Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From sean at pidigital.co.uk Thu Aug 11 11:36:56 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 16:36:56 +0100 Subject: Livecode SQLite In-Reply-To: References: Message-ID: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> How was you accessing the database? Is it locally based? The ones I access are stored on a web host server with a cPanel. I have my own php I POST my sql request to and receive JSON back. I then use JSONtoArray or, recommended, JsonImport encapsulated in a ‘try’ structure to convert the data. To tell the database to respond with json is not done at the LC end but must either be set up in the DB itself or, as in my case, whatever is the medium for the data, PHP for me. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 11 Aug 2022, at 16:16, Tom Glod via use-livecode wrote: > > Hi Folks, > > I have a question about Livecode's SQLite implementation. > > Looking at the official SQLite specs there seem to be json related > functions. > > https://www.sqlite.org/json1.html > > but none of them seem to work using Livecode's driver. > I was under the impression we had a full implementation > > I was interested in implementing a relatively new feature where you can > index and query json documents and read the keys directly. > > https://dgl.cx/2020/06/sqlite-json-support > > I guess, if this is true, is there any documentation about which features > of sqlite are implemented and which are not? > > TIA, > -- > Tom Glod > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Aug 11 11:38:36 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 16:38:36 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> References: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Message-ID: <26CAE311-2EED-4580-9E55-F42F491E51AE@pidigital.co.uk> Thanks Charles I think that’s going to work. I’m going to do some testing and let you know how I get on. Sean > On 11 Aug 2022, at 07:23, Charles Warwick via use-livecode wrote: > > Sorry, the last line of the replacement code should have been: > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody > > (It was missing the "into tBody" at the end of the line) > >> On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: >> >> Hi Sean, >> >> After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. >> >> If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: >> >> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody >> >> With something like this: >> >> put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain >> put “” into tBodyPlain >> put tHeadersPlain & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] >> >> put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML >> put “” into tBodyHTML >> put tHeadersHTML & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] >> >> put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) >> >> Hope that helps, >> >> Regards, >> >> Charles >> >>>> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >>> Hi Sean, >>> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >>> Does that help at all, >>> Regards, >>> Charles >>>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>>> Sean, >>>> Try this .. >>>> edit the script of stack "com.livecode.library.mime" >>>> there seems to be some documentation there that may help. >>>> I also found this >>>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>>> Is that your comment? :) >>>> Hope that helps a bit. >>>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi all, >>>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>>> I just can't get my head around it. >>>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>>> There is also a pdf that needs to be attached. >>>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>>> tsNetSmtpSync? >>>>> There are zero tutorials and the dictionary is devoid of any useful >>>>> information on how to use it. Google turned up nothing. In my previous >>>>> request back in 2020, Monte, the author of the MIME library, had only >>>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>>> to use a template and send it. But to send it, it needs to be encoded and >>>>> that's the bit that is undocumented anywhere. >>>>> Any help appreciated. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 11 11:57:05 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 11 Aug 2022 11:57:05 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: <5bbd8550-1ec3-9706-d6a8-38c7e0baf060@researchware.com> On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote: > 32,767 is the max for width as well. If there are enough columns it is > possible that the DataGrid is rendering a group that exceeds this limit and > hence the error. The DataGrid works around the limit when rendering rows, > but not when rendering columns. > > I suppose a quick test would be to create a DataGrid with 330 columns that > are at least 100 pixels wide and see if you get the same error. > So I created 2 test stacks with a Datagrid and a button to set the number of columns and populate a row of data. One stack I did in Livecode 4.6.4 (the oldest I have) and one I built in Livecode 9.6.8 to see if there were differences in the handling of the error condition between versions of the Datagrid object. [Note: Some of the Datagrids in our app are from LC 4.6.4 and we've never removed them and replaced them with newer versions and I don't believe Livecode does anything to automatically update the Datagrid objects in an old stack when opened in a new version of Livecode] Under LC464, trying to create a number of columns with default widths that would exceed the 32,767 pixel width limit of the group object (using 330 columns with a default width of 100px or 33,000 pixels) produces: 1) A blank header (no columns) 2) Visible column for data, where only the visible columns of the first row (8 columns) are populated with data and when you scroll to the right, all remaining column of the 1st row of data are empty. The grid is scrollable horizontally to what looks to be around 320-330 columns. Using 320 columns, works as expected. 325 works; 327 works. 328 only produces 327 columns in the header with 327 values for data in the first row. 329 produces a header with 329 columns and no data is rendered in the 1st row. Under LC968, the LC968 test version of this with 330 columns produces: 1) Columns headers 1 to 8 (the header that are the visible width of the Datagrid) 2) No data is rendered and the grid is not scrollable. Using 320 columns, works as expected. 325 works. 327 works. 328 produces 327 columns in the header and no data in the first row. 329 is the same as 330 (only 8 visible column headers and no data and no scrolling). So, the results are subtly different from Datagrids from LC4.6.4 and Datagrids from LC9.6.8, but both fail to do what a user would expect without any visible errors. However, having the number of columns exceed the width of a Livecode group object in pixels does not seem to be the source of the error I am trying to track down which was: Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumnNames when the error occurs AND (for reasons) I can not get the data from the customer, does ANYONE have any idea what tColumnNames might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From jacque at hyperactivesw.com Thu Aug 11 12:22:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 11:22:53 -0500 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> References: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> Message-ID: <1828db73f48.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Actually some Android phones have notches to imitate iPhones when Apple first introduced that. It wasn't very popular and most Android phones now use punch holes, but those also take up a bit of space, though not much. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 11, 2022 10:29:29 AM Bob Sneidar via use-livecode wrote: > It seems to me, someone who has done zero mobile development, that this > function has no meaning on an android, and should therefore return empty to > avoid unanticipated runtime errors. > > There should be however a function to get the screen rects of an android. > Does the effective working screenrect do it for you? > > I see that your goal is to try and avoid platform checks, but iOS and > Android seem to be such diverse OS platforms that checks are unavoidable. > There are a TON of commands and functions beginning with iPhone. I stopped > counting at 30 and I wasn't half way through. If all of these functions are > to equivalent values for the Android OS, we'd be waiting 5 years for the > enhancements. > > Just my ignorant 2 > > Bob S > > >> On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode >> wrote: >> >> iPhoneSafeAreaInsets() returns EMPTY on Android > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 11 12:23:48 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 11 Aug 2022 12:23:48 -0400 Subject: Datagrid and new Summer Bundle table/grid widgets Message-ID: <0e08a5fa-d55b-15cd-d576-9654ddc9119c@researchware.com> To anyone with the Summer Bundle: The Datagrid object has a practical limit on the number of columns that I just reported as https://quality.livecode.com/show_bug.cgi?id=23875 (about 327 columns at a default column width of 100px due to the Group objects 32767px width limit) Do any of the table/grid widgets in the Summer Bundle allow going beyond this limit? Could someone with a Summer Bundle please test the table/grid widgets. I have included the script I populate the column names and a first row of data in a Datagrid with below. I'd just like to know whether any of the new table widgets can exceed thsi Datagrid limit. Thank you to anyone who can spare the time to test in advance. on mouseUp pMouseButton   local tColumnNames, tArray   ask "Number of columns?"   if it is empty then exit mouseUp   --   repeat with i=1 to it     set cursor to busy     put "Column"&&i into tColumnName     put tColumnName into line i of tColumnNames     put i into tArray[1][tColumnName]   end repeat   --   set cursor to watch   set the dgData of group "Table" to tArray -- replace this line and the nest with code for the new widget   set the dgProp["columns"] of group "Table" to tColumnNames   beep 3 end mouseUp From jacque at hyperactivesw.com Thu Aug 11 12:42:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 11:42:44 -0500 Subject: Fail to test new stack on Android device In-Reply-To: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Message-ID: <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Brian was right, but it's the build number that matters rather than the version number. You can either increase it, or delete the existing app on the phone before installing the other one. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 11, 2022 5:31:36 AM Klaus major-k via use-livecode wrote: > Hi all, > > I just tested an older stack on my Android device, everything is fine. > Then I created a new stack for a little stack and always get this error > when selecting "Test" in the LC dev menu. > > > Only script in that stack: > ------------------------ > on preopenstack > set the fullscreenmode of this stack to "showall" > end preopenstack > > ## And a button: > on mouseUp > ## Need to know if that is returning anything or giving an error or whatever... > answer iphonesafeareainsets() > end mouseUp > ------------------------ > If I switch back to the other stack, I can upload and test, but not with > this new stack!? > > Any hints? Thanks! > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 12:45:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 18:45:14 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <6B884484-6AF5-4185-B0EB-7B4F2EB388F2@major-k.de> Hi Jaques and Brian, > Am 11.08.2022 um 18:42 schrieb J. Landman Gay via use-livecode : > > Brian was right, but it's the build number that matters rather than the version number. You can either increase it, or delete the existing app on the phone before installing the other one. yep, that worked! Always forget about this when I just want to do a quick test. 8-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 11, 2022 5:31:36 AM Klaus major-k via use-livecode wrote: > >> Hi all, >> >> I just tested an older stack on my Android device, everything is fine. >> Then I created a new stack for a little stack and always get this error >> when selecting "Test" in the LC dev menu. >> >> >> Only script in that stack: >> ------------------------ >> on preopenstack >> set the fullscreenmode of this stack to "showall" >> end preopenstack >> >> ## And a button: >> on mouseUp >> ## Need to know if that is returning anything or giving an error or whatever... >> answer iphonesafeareainsets() >> end mouseUp >> ------------------------ >> If I switch back to the other stack, I can upload and test, but not with this new stack!? >> >> Any hints? Thanks! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Thu Aug 11 14:13:54 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 13:13:54 -0500 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote: > FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll probably need to use the working screenrect on Android. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Thu Aug 11 14:17:26 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 20:17:26 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> References: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> Message-ID: <7217078D-859C-443D-AF90-1D189299CD37@major-k.de> Hi Jaques, > Am 11.08.2022 um 20:13 schrieb J. Landman Gay via use-livecode : > > On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote: >> FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. > > It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll probably need to use the working screenrect on Android. yes, I just wanted to see if it will throw an error on Android. It doesn't. :-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Thu Aug 11 17:30:43 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 17:30:43 -0400 Subject: Livecode SQLite In-Reply-To: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> References: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> Message-ID: Hi Sean, The SQLite db i want to read json fields from is local. I know there are lots of workarounds. But in link I provided, the premise was using sqlite function to index and read a jason document's field. like so: sqlite> insert into t values(json('{"d":"42"}')); sqlite> select * from t WHERE d = 42; {"d":"42"}|42 Thanks Sean, I'm happy you found the help you needed with your email problem. On Thu, Aug 11, 2022 at 11:37 AM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > How was you accessing the database? Is it locally based? > > The ones I access are stored on a web host server with a cPanel. I have my > own php I POST my sql request to and receive JSON back. I then use > JSONtoArray or, recommended, JsonImport encapsulated in a ‘try’ structure > to convert the data. > > To tell the database to respond with json is not done at the LC end but > must either be set up in the DB itself or, as in my case, whatever is the > medium for the data, PHP for me. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 11 Aug 2022, at 16:16, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Folks, > > > > I have a question about Livecode's SQLite implementation. > > > > Looking at the official SQLite specs there seem to be json related > > functions. > > > > https://www.sqlite.org/json1.html > > > > but none of them seem to work using Livecode's driver. > > I was under the impression we had a full implementation > > > > I was interested in implementing a relatively new feature where you can > > index and query json documents and read the keys directly. > > > > https://dgl.cx/2020/06/sqlite-json-support > > > > I guess, if this is true, is there any documentation about which features > > of sqlite are implemented and which are not? > > > > TIA, > > -- > > Tom Glod > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Thu Aug 11 19:27:52 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 11 Aug 2022 23:27:52 +0000 Subject: mobileControl placeholderText? Message-ID: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> Is there a method to add placeholderText to a native mobile control field? So, if the fields' text is empty, it will show a string in gray. Like a Password field that when empty displays "Enter password here". Dan From bobsneidar at iotecdigital.com Thu Aug 11 19:42:02 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 23:42:02 +0000 Subject: mobileControl placeholderText? In-Reply-To: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> References: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> Message-ID: I see a similar thing when I have a pulldown menu without a label. It will display the menu button name by default. What I will do then is set the label to some prompt or else a space. It's pretty annoying to have to do that though. Bob S > On Aug 11, 2022, at 16:27 , Dan Friedman via use-livecode wrote: > > Is there a method to add placeholderText to a native mobile control field? So, if the fields' text is empty, it will show a string in gray. Like a Password field that when empty displays "Enter password here". > > Dan From phil at pdslabs.net Thu Aug 11 21:35:18 2022 From: phil at pdslabs.net (Phil Davis) Date: Thu, 11 Aug 2022 18:35:18 -0700 Subject: Images and arrays... In-Reply-To: References: Message-ID: Hi Paul, sorry I'm so late to the party. I think the best you can do is to capture & then reuse all the properties of the target image. I created a stack and imported an image. Then I ran this button script to make an exact replica of image 1. It worked: on mouseUp     put the properties of img 1 into tPropsA -- could be saved for later use     lock screen     create image     set the properties of img 2 to tPropsA     set the left of img 2 to the right of img 1 + 30     unlock screen end mouseUp Hope this helps - Phil Davis On 7/5/22 2:20 PM, Paul Dupuis via use-livecode wrote: > I am drawing a blank: > > If I have the following code: > >                   export snapshot from rect tRect of player > "mediaConvert" of stack "libHrAPI" to tImage as PNG >                   put tImage into pRefArray[tRef] > > The actual image (not a reference, such as a long ID) is placed in the > tRefArray[tRef] array element > > However, if I have a variable tImageID that contains a reference to an > image such as > > image id 10328 of card id 10001 of stack "X" > > How do I get that actual Image stored in the array? > > put tImageID into pRefArray[tRef] -- results in the array element > storing the long ID > > put (tImageID) into pRefArray[tRef] -- also results in the array > element storing the long ID. I thought the () might for the long ID to > be evaluated to an actual image > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From mark at livecode.com Fri Aug 12 00:56:51 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 12 Aug 2022 05:56:51 +0100 Subject: Livecode SQLite In-Reply-To: References: Message-ID: On 2022-08-11 16:16, Tom Glod via use-livecode wrote: > I was interested in implementing a relatively new feature where you can > index and query json documents and read the keys directly. > > https://dgl.cx/2020/06/sqlite-json-support > > I guess, if this is true, is there any documentation about which > features > of sqlite are implemented and which are not? The version of SQLite is currently 3.34 built with FTS3, FTS3_PARANTHESIS, FTS4, FTS5, RTREE and JSON1 options. So the JSON features (at least as far as those included in 3.34) should be included - perhaps the queries you are trying rely on features (perhaps not JSON related) included in more recent versions? If you file a bug report with what examples of what isn't working, then we'll look into updating to the latest version of the library. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From selander at tkf.att.ne.jp Fri Aug 12 07:27:46 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 12 Aug 2022 20:27:46 +0900 Subject: Server globals Message-ID: As always, appreciate everyone's help. Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? Thanks. Tim Selander Tokyo, Japan From matthias_livecode_150811 at m-r-d.de Fri Aug 12 08:26:45 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 12 Aug 2022 14:26:45 +0200 Subject: Server globals In-Reply-To: References: Message-ID: Hi Tim, does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. Regards, Matthias > Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : > > As always, appreciate everyone's help. > > Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. > > All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? > > Thanks. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Fri Aug 12 09:18:26 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 12 Aug 2022 22:18:26 +0900 Subject: Server globals In-Reply-To: References: Message-ID: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... Anyway, thanks for the info; no global variables, but file saves look like they'll work! Tim On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > Hi Tim, > > does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? > > I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. > > > If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. > > Regards, > Matthias > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >> >> As always, appreciate everyone's help. >> >> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >> >> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Fri Aug 12 09:39:07 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 12 Aug 2022 15:39:07 +0200 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <20CD4267-A735-4430-B50D-2BA3729F25FC@m-r-d.de> Hi Tim, the maximum size of a cookie is 4096 bytes. I am using Sitelok from Vibralogix on one site for a membership list. I've integrated it in a site i created with Rapidweaver. I am also using Livecode Server scripts on that site for several tasks including form processing. The good thing is that i can add my Livecode Server scripts to my Rapidweaver pages, either the whole script or only an include statement that includes the script. I just need to tell Rapidweaver to store that page with file extension .lc instead of .html. I also had a look at Reviginiter. Looks so powerful, but i have not enough time in a row to get used with it. So i have to stay with my Rapidweaver/Livecode server script solutions. Regards, Matthias > Am 12.08.2022 um 15:18 schrieb Tim Selander via use-livecode : > > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. > > It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... > > Anyway, thanks for the info; no global variables, but file saves look like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? >> I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. >> If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. >> Regards, >> Matthias >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.clavel at gmail.com Fri Aug 12 12:39:04 2022 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Fri, 12 Aug 2022 18:39:04 +0200 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: Hi Tim, You can also use localStorage for user specific data at the browser level : In your .lc script on the server : to store and retrieve data Regards, JC Le ven. 12 août 2022 à 15:19, Tim Selander via use-livecode < use-livecode at lists.runrev.com> a écrit : > Hi Matthias, > > It is user specific, but I just tried the saving to a text file > on the server -- very fast. Got the user IP from $_Server, and > used that in the filename for easy later retrieval. How much data > can a cookie hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up > with some kind of pagination system. I'm probably trying to > re-invent the wheel -- badly. > > It's a simple membership list, with a few hundred records. Only > want to show 30 on the page at a time. I wonder if anyone has a > LC sample for doing that. I tried Ralph Bitter's Revigniter but > just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the > CURSOR feature. But know nothing about avoiding injection > attacks, so may fall back to using a .csv for the datafile. I've > done that for all my other projects.... > > Anyway, thanks for the info; no global variables, but file saves > look like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > > Hi Tim, > > > > does the variable have a user specific value or a value, that changes > from time to time, but is the same for all users? > > > > I've done something some time ago and used a text file on the server > which stored that value. In my case the value was not user specific so it > was an easy task. > > > > > > If the variable is user specific, why don't you use a cookies for that? > That will grant that the value is available at all pages in the same > domain. > > > > Regards, > > Matthias > > > > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> As always, appreciate everyone's help. > >> > >> Have made several little projects using LC Server on the on-rev.com > host. For the first time, I would like a global variable -- that is a > variable that would retain it's value even if the page is re-loaded. Or if > a user goes to another .lc page/file in the domain. > >> > >> All my playing around, and Googling around, has been for nought. Is > there a way to hang on to a bit of data was you move around pages in the > same domain? > >> > >> Thanks. > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From rdimola at evergreeninfo.net Fri Aug 12 13:18:43 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 12 Aug 2022 13:18:43 -0400 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <004b01d8ae6f$95f146d0$c1d3d470$@net> Using the IP can fail if more than one user is on the same IP via a router using NAT. The Browser local storage is a better solution. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tim Selander via use-livecode Sent: Friday, August 12, 2022 9:18 AM To: use-livecode at lists.runrev.com Cc: Tim Selander Subject: Re: Server globals Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... Anyway, thanks for the info; no global variables, but file saves look like they'll work! Tim On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > Hi Tim, > > does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? > > I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. > > > If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. > > Regards, > Matthias > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >> >> As always, appreciate everyone's help. >> >> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >> >> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Fri Aug 12 19:04:18 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 13 Aug 2022 08:04:18 +0900 Subject: Server globals In-Reply-To: <004b01d8ae6f$95f146d0$c1d3d470$@net> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <004b01d8ae6f$95f146d0$c1d3d470$@net> Message-ID: <3bf1f6bf-60ad-d2ae-1fe1-a216875a8d6d@tkf.att.ne.jp> Ah! Big problem I hadn't thought of -- thank you!! I'll try the local storage script Jacques offered. Many thanks. Tim On 2022.08.13 2:18, Ralph DiMola via use-livecode wrote: > Using the IP can fail if more than one user is on the same IP via a router > using NAT. The Browser local storage is a better solution. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Tim Selander via use-livecode > Sent: Friday, August 12, 2022 9:18 AM > To: use-livecode at lists.runrev.com > Cc: Tim Selander > Subject: Re: Server globals > > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the > server -- very fast. Got the user IP from $_Server, and used that in the > filename for easy later retrieval. How much data can a cookie hold? Guess > I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with some > kind of pagination system. I'm probably trying to re-invent the wheel -- > badly. > > It's a simple membership list, with a few hundred records. Only want to show > 30 on the page at a time. I wonder if anyone has a LC sample for doing that. > I tried Ralph Bitter's Revigniter but just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR > feature. But know nothing about avoiding injection attacks, so may fall back > to using a .csv for the datafile. I've done that for all my other > projects.... > > Anyway, thanks for the info; no global variables, but file saves look like > they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> >> does the variable have a user specific value or a value, that changes from > time to time, but is the same for all users? >> >> I've done something some time ago and used a text file on the server which > stored that value. In my case the value was not user specific so it was an > easy task. >> >> >> If the variable is user specific, why don't you use a cookies for that? > That will grant that the value is available at all pages in the same > domain. >> >> Regards, >> Matthias >> >> >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode > : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com host. > For the first time, I would like a global variable -- that is a variable > that would retain it's value even if the page is re-loaded. Or if a user > goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is there > a way to hang on to a bit of data was you move around pages in the same > domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Fri Aug 12 19:36:34 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 13 Aug 2022 00:36:34 +0100 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> Hi Tim, I think there are many easy ways to do this - and many not-so-easy ones too. IMO, easiest for something simple like this is to just use the url. See tweedly.net/page_by_url.txt for the code, or try it out at tweedly.net/page_by_url.lc (or try tweedly.net/page_by_url.lc?row=14 ) You can do something very similar using a cookie, with the 'row' value stored in the cookie each time (remember to "put cookie ..." before *any* other output.) Or by using the cookie to hold the name of a file in which you store this kind of info. This is necessary if you need to store a lot of data - if there is not already a cookie, create a filename using something like uuid(), and store the file name in it - then retrieve the cookie, and read or write the file. Alex. On 12/08/2022 14:18, Tim Selander via use-livecode wrote: > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the > server -- very fast. Got the user IP from $_Server, and used that in > the filename for easy later retrieval. How much data can a cookie > hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with > some kind of pagination system. I'm probably trying to re-invent the > wheel -- badly. > > It's a simple membership list, with a few hundred records. Only want > to show 30 on the page at a time. I wonder if anyone has a LC sample > for doing that. I tried Ralph Bitter's Revigniter but just can't wrap > my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR > feature. But know nothing about avoiding injection attacks, so may > fall back to using  a .csv for the datafile. I've done that for all my > other projects.... > > Anyway, thanks for the info; no global variables, but file saves look > like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> >> does the variable have a user specific value or a value, that changes >> from time to time, but is the same for all users? >> >> I've done something some time ago and used a text file on the server >> which stored that value. In my case the value was not user specific >> so it was an easy task. >> >> >> If the variable is user specific, why don't you use a  cookies for >> that? That will grant that the value is available  at all pages in >> the same domain. >> >> Regards, >> Matthias >> >> >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode >>> : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com >>> host. For the first time, I would like a global variable -- that is >>> a variable that would retain it's value even if the page is >>> re-loaded. Or if a user goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is >>> there a way to hang on to a bit of data was you move around pages in >>> the same domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Aug 12 19:37:36 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Aug 2022 23:37:36 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? Message-ID: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Hi all. Very odd, I thought this worked. I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? MacOS 10.15.7 LC 9.6.9 rc1 Bob S From selander at tkf.att.ne.jp Sat Aug 13 08:52:58 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 13 Aug 2022 21:52:58 +0900 Subject: Server globals In-Reply-To: <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> Message-ID: <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> Alex, Went to your page, and wow, that is exactly what I was trying to do. I'm still trying to figure out exactly how you do it, but I'm headed in the right direction. Thanks! Tim On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: > Hi Tim, > > I think there are many easy ways to do this - and many > not-so-easy ones too. > > IMO, easiest for something simple like this is to just use the url. > > See tweedly.net/page_by_url.txt for the code, or try it out at > tweedly.net/page_by_url.lc > > (or try tweedly.net/page_by_url.lc?row=14 ) > > You can do something very similar using a cookie, with the 'row' > value stored in the cookie each time (remember to "put cookie > ..." before *any* other output.) > > Or by using the cookie to hold the name of a file in which you > store this kind of info. This is necessary if you need to store a > lot of data - if there is not already a cookie, create a filename > using something like uuid(), and store the file name in it - then > retrieve the cookie, and read or write the file. > > Alex. > > On 12/08/2022 14:18, Tim Selander via use-livecode wrote: >> Hi Matthias, >> >> It is user specific, but I just tried the saving to a text file >> on the server -- very fast. Got the user IP from $_Server, and >> used that in the filename for easy later retrieval. How much >> data can a cookie hold? Guess I'll test that. >> >> One of the reasons I'm fussing with this is I'm trying to come >> up with some kind of pagination system. I'm probably trying to >> re-invent the wheel -- badly. >> >> It's a simple membership list, with a few hundred records. Only >> want to show 30 on the page at a time. I wonder if anyone has a >> LC sample for doing that. I tried Ralph Bitter's Revigniter but >> just can't wrap my head around it. >> >> Using MySQL for testing, so could try to figure out using the >> CURSOR feature. But know nothing about avoiding injection >> attacks, so may fall back to using  a .csv for the datafile. >> I've done that for all my other projects.... >> >> Anyway, thanks for the info; no global variables, but file >> saves look like they'll work! >> >> Tim >> >> On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >>> Hi Tim, >>> >>> does the variable have a user specific value or a value, that >>> changes from time to time, but is the same for all users? >>> >>> I've done something some time ago and used a text file on the >>> server which stored that value. In my case the value was not >>> user specific so it was an easy task. >>> >>> >>> If the variable is user specific, why don't you use a  cookies >>> for that? That will grant that the value is available  at all >>> pages in the same domain. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode >>>> : >>>> >>>> As always, appreciate everyone's help. >>>> >>>> Have made several little projects using LC Server on the >>>> on-rev.com host. For the first time, I would like a global >>>> variable -- that is a variable that would retain it's value >>>> even if the page is re-loaded. Or if a user goes to another >>>> .lc page/file in the domain. >>>> >>>> All my playing around, and Googling around, has been for >>>> nought. Is there a way to hang on to a bit of data was you >>>> move around pages in the same domain? >>>> >>>> Thanks. >>>> >>>> Tim Selander >>>> Tokyo, Japan >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sat Aug 13 14:49:26 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 13 Aug 2022 14:49:26 -0400 Subject: Server globals In-Reply-To: <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> Message-ID: With LC thinking that they want to emphasize web apps, more, the complications with server probably also need some effort. On Sat, Aug 13, 2022 at 8:54 AM Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Alex, > > Went to your page, and wow, that is exactly what I was trying to > do. I'm still trying to figure out exactly how you do it, but I'm > headed in the right direction. > > Thanks! > > Tim > > On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: > > Hi Tim, > > > > I think there are many easy ways to do this - and many > > not-so-easy ones too. > > > > IMO, easiest for something simple like this is to just use the url. > > > > See tweedly.net/page_by_url.txt for the code, or try it out at > > tweedly.net/page_by_url.lc > > > > (or try tweedly.net/page_by_url.lc?row=14 ) > > > > You can do something very similar using a cookie, with the 'row' > > value stored in the cookie each time (remember to "put cookie > > ..." before *any* other output.) > > > > Or by using the cookie to hold the name of a file in which you > > store this kind of info. This is necessary if you need to store a > > lot of data - if there is not already a cookie, create a filename > > using something like uuid(), and store the file name in it - then > > retrieve the cookie, and read or write the file. > > > > Alex. > > > > On 12/08/2022 14:18, Tim Selander via use-livecode wrote: > >> Hi Matthias, > >> > >> It is user specific, but I just tried the saving to a text file > >> on the server -- very fast. Got the user IP from $_Server, and > >> used that in the filename for easy later retrieval. How much > >> data can a cookie hold? Guess I'll test that. > >> > >> One of the reasons I'm fussing with this is I'm trying to come > >> up with some kind of pagination system. I'm probably trying to > >> re-invent the wheel -- badly. > >> > >> It's a simple membership list, with a few hundred records. Only > >> want to show 30 on the page at a time. I wonder if anyone has a > >> LC sample for doing that. I tried Ralph Bitter's Revigniter but > >> just can't wrap my head around it. > >> > >> Using MySQL for testing, so could try to figure out using the > >> CURSOR feature. But know nothing about avoiding injection > >> attacks, so may fall back to using a .csv for the datafile. > >> I've done that for all my other projects.... > >> > >> Anyway, thanks for the info; no global variables, but file > >> saves look like they'll work! > >> > >> Tim > >> > >> On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > >>> Hi Tim, > >>> > >>> does the variable have a user specific value or a value, that > >>> changes from time to time, but is the same for all users? > >>> > >>> I've done something some time ago and used a text file on the > >>> server which stored that value. In my case the value was not > >>> user specific so it was an easy task. > >>> > >>> > >>> If the variable is user specific, why don't you use a cookies > >>> for that? That will grant that the value is available at all > >>> pages in the same domain. > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode > >>>> : > >>>> > >>>> As always, appreciate everyone's help. > >>>> > >>>> Have made several little projects using LC Server on the > >>>> on-rev.com host. For the first time, I would like a global > >>>> variable -- that is a variable that would retain it's value > >>>> even if the page is re-loaded. Or if a user goes to another > >>>> .lc page/file in the domain. > >>>> > >>>> All my playing around, and Googling around, has been for > >>>> nought. Is there a way to hang on to a bit of data was you > >>>> move around pages in the same domain? > >>>> > >>>> Thanks. > >>>> > >>>> Tim Selander > >>>> Tokyo, Japan > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at 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." From andreas.bergendal at gmail.com Sat Aug 13 15:24:59 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 13 Aug 2022 21:24:59 +0200 Subject: A web app launcher with responsive design Message-ID: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Friends, I have done wonderful things with LC10 web deployment! I’m excited to share with you the fruits of this week's extensive research and testing! TL;DR: Try this: https://wheninspace.com/portal/ Long version: I wanted to do two things: 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) I have accomplished both! You can see and test the result here: https://wheninspace.com/portal/ Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) /Andreas From colinholgate at gmail.com Sat Aug 13 16:59:05 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 13 Aug 2022 14:59:05 -0600 Subject: Running installer on Windows 10 Message-ID: <35C01E39-3C91-43E9-A3F8-ACDDCCDF7FD9@gmail.com> I am testing a stack on some different systems, and on Mac M1, Mac Intel, Intel i7 PC with Windows 10, and an Intel Celeron N5095 with Windows 11, no problems. On an Intel Celeron N3450, Windows 10, nothing happens when opening the LiveCode 9.6.8 x86-64 installer, or if I open a standalone app that I made. When using run as admin, the initial “are you sure” screen appears, but then after that nothing happens. What could be different between a Celeron N5095 and a Celeron N3450, that would account for why LiveCode applications don’t open? I see from this post: https://forums.unrealengine.com/t/epic-games-launcher-does-not-open/420387 that some software might not like an Intel HD Graphics 500, but would that be a reason for the installer to fail silently? I worked around the issue for now by saving the stack as v7. The 7.1.3 installer works ok. From tom at makeshyft.com Sat Aug 13 17:23:48 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Aug 2022 17:23:48 -0400 Subject: Livecode SQLite In-Reply-To: References: Message-ID: Hey Mark, I'm using very simple examples to run it, so I don't think its my query, but you are eight I shouldreport this. This would be really great to have. Esp since almost everything is json these days. I will report it in the next few days. Thanks, On Fri, Aug 12, 2022 at 12:57 AM Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2022-08-11 16:16, Tom Glod via use-livecode wrote: > > I was interested in implementing a relatively new feature where you can > > index and query json documents and read the keys directly. > > > > https://dgl.cx/2020/06/sqlite-json-support > > > > I guess, if this is true, is there any documentation about which > > features > > of sqlite are implemented and which are not? > > The version of SQLite is currently 3.34 built with FTS3, > FTS3_PARANTHESIS, FTS4, FTS5, RTREE and JSON1 options. > > So the JSON features (at least as far as those included in 3.34) should > be included - perhaps the queries you are trying rely on features > (perhaps not JSON related) included in more recent versions? > > If you file a bug report with what examples of what isn't working, then > we'll look into updating to the latest version of the library. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From marksmithhfx at gmail.com Sat Aug 13 17:39:57 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 13 Aug 2022 22:39:57 +0100 Subject: A web app launcher with responsive design In-Reply-To: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: Congratulations Andreas and thanks for sharing. I haven’t done any work with the new LC HTML5 engine but I was really impressed with the speed of loading it on my new M1 Pro — about 3-4 seconds on first download and then a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the first download but again very quick (a second or two) on subsequent loads. It looks like you’ve got a lot of the tech working with objects and screens and the adaptive resizing. When I do get around to getting into this (and it looks very enticing) I’ll know where to go for help :) Mark > On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode wrote: > > Friends, I have done wonderful things with LC10 web deployment! > > I’m excited to share with you the fruits of this week's extensive research and testing! > > TL;DR: > Try this: https://wheninspace.com/portal/ > > Long version: > > I wanted to do two things: > > 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. > > 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) > > I have accomplished both! > You can see and test the result here: > https://wheninspace.com/portal/ > > Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). > > The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. > > When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. > > As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! > > I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Aug 13 20:06:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Aug 2022 20:06:10 -0400 Subject: A web app launcher with responsive design In-Reply-To: References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: Hey Andreas, thanks for sharing, cool example of responsive design. I thought the HTML5/javascript export was dead, and WASM would be used instead. It could be my own confusion about terminology being used. Can someone clarify this for me? Thanks, Tom On Sat, Aug 13, 2022 at 5:41 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Congratulations Andreas and thanks for sharing. I haven’t done any work > with the new LC HTML5 engine but I was really impressed with the speed of > loading it on my new M1 Pro — about 3-4 seconds on first download and then > a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the > first download but again very quick (a second or two) on subsequent loads. > It looks like you’ve got a lot of the tech working with objects and screens > and the adaptive resizing. When I do get around to getting into this (and > it looks very enticing) I’ll know where to go for help :) > > Mark > > > > On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Friends, I have done wonderful things with LC10 web deployment! > > > > I’m excited to share with you the fruits of this week's extensive > research and testing! > > > > TL;DR: > > Try this: https://wheninspace.com/portal/ < > https://wheninspace.com/portal/> > > > > Long version: > > > > I wanted to do two things: > > > > 1) Like we often do with desktop standalones: Create a minimal > launcher/splash stack as standalone, which only does one thing - open an > external stack that does everything else. This way I can then update > individual stacks, without having to build a new standalone each time. > > > > 2) Get the resizing of the browser window to trigger the resize of the > stacks and all the responsive design therein, and make it look good on both > desktop and mobile. (Refining the example from the mothership, ”Meeting > space”.) > > > > I have accomplished both! > > You can see and test the result here: > > https://wheninspace.com/portal/ > > > > Please try it both in desktop browsers (resizing the browser to various > sizes) and mobile browsers (both portrait and landscape orientation). > > > > The standalone consists of a minimal launch stack that just acts as > event listening agent (even after closing itself) and opens the Portal > stack which is an external LC stack. The Portal stack then has buttons for > opening additional external LC stacks. > > > > When the launcher stack receives a resize signal from the browser (from > the JavaScript in the html file), it dispatches ”resizeEvent” with the > width/height values to the topStack, which can subsequently rearrange its > stack rect and content accordingly. > > > > As a bonus, I also demonstrate the possibility to show several stacks in > the same browser window! > > > > I find the LC web deployment option a true game-changer! A new world is > opening! Let’s build it! :) > > > > /Andreas > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Sat Aug 13 20:16:23 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 14 Aug 2022 01:16:23 +0100 Subject: A web app launcher with responsive design In-Reply-To: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: > Friends, I have done wonderful things with LC10 web deployment! > > Im excited to share with you the fruits of this week's extensive research and testing! > Wow. Thanks Andreas. Resize, etc. work well for me on Safari, but fail badly on Chrome browser (details not included) - all build-for-web attempts fail on this version of Chrome.  (which it says is up-to-date). However, the way I read your email ( "...excited to share with you the fruits of this week's..."), I think ui intend to make this code available for the rest of us to use. But, I cant see a link, or a way to get access to the source. Please tell me I'm not over-interpreting your words. Please say that you have, or will, publish the text of the stacks involved. Many thanks again, Alex. From marksmithhfx at gmail.com Sun Aug 14 00:13:30 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 14 Aug 2022 05:13:30 +0100 Subject: A web app launcher with responsive design In-Reply-To: References: Message-ID: <546FC399-35F0-4C51-9F3D-9637E9AB10D8@gmail.com> Hi Tom, Andreas didn’t mention what the platform was in his message so I just googled “LC web deployment” and it turned up this… https://lessons.livecode.com/m/4071/l/800867-how-do-i-put-my-first-app-on-the-web However, since you mentioned WASM I looked it up and you are correct, LC 10 (which Andreas was using) is using Web Assembly not HTML5. Sent from my iPhone > On Aug 14, 2022, at 1:07 AM, Tom Glod via use-livecode wrote: > > Hey Andreas, thanks for sharing, cool example of responsive design. > > I thought the HTML5/javascript export was dead, and WASM would be used > instead. > It could be my own confusion about terminology being used. > Can someone clarify this for me? > > Thanks, > > Tom > > >> On Sat, Aug 13, 2022 at 5:41 PM Mark Smith via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Congratulations Andreas and thanks for sharing. I haven’t done any work >> with the new LC HTML5 engine but I was really impressed with the speed of >> loading it on my new M1 Pro — about 3-4 seconds on first download and then >> a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the >> first download but again very quick (a second or two) on subsequent loads. >> It looks like you’ve got a lot of the tech working with objects and screens >> and the adaptive resizing. When I do get around to getting into this (and >> it looks very enticing) I’ll know where to go for help :) >> >> Mark >> >> >>> On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Friends, I have done wonderful things with LC10 web deployment! >>> >>> I’m excited to share with you the fruits of this week's extensive >> research and testing! >>> >>> TL;DR: >>> Try this: https://wheninspace.com/portal/ < >> https://wheninspace.com/portal/> >>> >>> Long version: >>> >>> I wanted to do two things: >>> >>> 1) Like we often do with desktop standalones: Create a minimal >> launcher/splash stack as standalone, which only does one thing - open an >> external stack that does everything else. This way I can then update >> individual stacks, without having to build a new standalone each time. >>> >>> 2) Get the resizing of the browser window to trigger the resize of the >> stacks and all the responsive design therein, and make it look good on both >> desktop and mobile. (Refining the example from the mothership, ”Meeting >> space”.) >>> >>> I have accomplished both! >>> You can see and test the result here: >>> https://wheninspace.com/portal/ >>> >>> Please try it both in desktop browsers (resizing the browser to various >> sizes) and mobile browsers (both portrait and landscape orientation). >>> >>> The standalone consists of a minimal launch stack that just acts as >> event listening agent (even after closing itself) and opens the Portal >> stack which is an external LC stack. The Portal stack then has buttons for >> opening additional external LC stacks. >>> >>> When the launcher stack receives a resize signal from the browser (from >> the JavaScript in the html file), it dispatches ”resizeEvent” with the >> width/height values to the topStack, which can subsequently rearrange its >> stack rect and content accordingly. >>> >>> As a bonus, I also demonstrate the possibility to show several stacks in >> the same browser window! >>> >>> I find the LC web deployment option a true game-changer! A new world is >> opening! Let’s build it! :) >>> >>> /Andreas >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sun Aug 14 00:50:56 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 13 Aug 2022 21:50:56 -0700 Subject: A web app launcher with responsive design In-Reply-To: <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> Message-ID: <928b85a7-db56-32ae-b896-28428631cfcf@sonic.net> On 8/13/22 17:16, Alex Tweedly via use-livecode wrote: > > On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: >> Friends, I have done wonderful things with LC10 web deployment! >> >> Im excited to share with you the fruits of this week's extensive >> research and testing! >> > Wow. Thanks Andreas. > > Resize, etc. work well for me on Safari, but fail badly on Chrome > browser (details not included) - all build-for-web attempts fail on this > version of Chrome.  (which it says is up-to-date). OTOH, it's working fine for me on Chrome. Go figger. -- Mark Wieder ahsoftware at gmail.com From andreas.bergendal at gmail.com Sun Aug 14 06:47:16 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sun, 14 Aug 2022 12:47:16 +0200 Subject: A web app launcher with responsive design In-Reply-To: References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: <6F651EAA-8405-47B3-B8CA-868758401EFE@gmail.com> Hi all, Thanks for your feedback on this first test version. It is made with LC 10 dp 4 which indeed uses the wasm tech and not the old html5 tech. And don’t worry - I wouldn’t have half the knowledge I have in LC coding if it weren’t for the generous sharing on this list and in the forum. Being able to make a small contribution to this knowledge bank is my pleasure. Here’s a link to a zip file with all the stacks used in the example, plus the index.html file (with I use to replace the standalone.html file produced by the standalone maker): https://wheninspace.com/portal/LC_wasm_example_package.zip Note that the links used in the scripts to open stacks all point to my server/domain (obviously) , so if you want to experiment with your copy you’ll need to have a server to put them on and change the links accordingly. It will not work by using the Test deployment (at least not out-of-the-box). I do all testing live on the server. Note the order in which the stacks fire up: LCweblauncher.livecode (which becomes standalone.zip when built) -> uses WISwebLauncherLib.livecodescript -> opens WISwebPortal.livecode -> opens the other stacks. I’m sure there's room for vast improvement to all this, and I believe there will also be more support for natively handling some things in coming LC10 versions. But the future looks promising! :) /Andreas > 13 aug. 2022 kl. 23:39 skrev Mark Smith : > > Congratulations Andreas and thanks for sharing. I haven’t done any work with the new LC HTML5 engine but I was really impressed with the speed of loading it on my new M1 Pro — about 3-4 seconds on first download and then a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the first download but again very quick (a second or two) on subsequent loads. It looks like you’ve got a lot of the tech working with objects and screens and the adaptive resizing. When I do get around to getting into this (and it looks very enticing) I’ll know where to go for help :) > > Mark > > >> On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode wrote: >> >> Friends, I have done wonderful things with LC10 web deployment! >> >> I’m excited to share with you the fruits of this week's extensive research and testing! >> >> TL;DR: >> Try this: https://wheninspace.com/portal/ >> >> Long version: >> >> I wanted to do two things: >> >> 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. >> >> 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) >> >> I have accomplished both! >> You can see and test the result here: >> https://wheninspace.com/portal/ >> >> Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). >> >> The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. >> >> When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. >> >> As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! >> >> I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) >> >> /Andreas From jiml at netrin.com Sun Aug 14 16:02:47 2022 From: jiml at netrin.com (Jim Lambert) Date: Sun, 14 Aug 2022 13:02:47 -0700 Subject: A web app launcher with responsive design In-Reply-To: References: Message-ID: <7A474F6E-24C3-45FC-8CBB-020C6DB25DCF@netrin.com> Andreas, Very nice! Thanks, Jim Lambert From selander at tkf.att.ne.jp Mon Aug 15 08:58:25 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 15 Aug 2022 21:58:25 +0900 Subject: More Server Silliness Message-ID: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> With Alex and everyone's help, I got the global vs cookies, etc., sorted out and am happily paginating away with my little membership web site. With Kenji's help, I got automatic address fill-in from Japanese zip codes. However, I was looking at LiveCode's server samples (serversamples.livecode.com/index.lc) and thought, gee, the Ajax filtering looks pretty neat. So I set off to make that work, and failed. I'd give up on it, but after wasting THIS much time on it, I gotta bring it to you all for a little input and hopefully another bail-out. Just for testing, I made two new files. The first with the code LC provides at https://serversamples.livecode.com/display-file.lc?filename=ajax-simple.lc and the second from step 3 of the ajax sample page, https://serversamples.livecode.com/ajax.lc. Changed only the bits needed to pull data from my database. File one, ajax-simple.lc, lists my data and an input box just like the sample page. But it sends no info via GET to the second file, filter.lc. If I manually put the GET info in the URL,(filter.lc?search_term=John, I get the filtered data I expect, but in the filter.lc window -- the data is not returned to File 1, ajax-simple.lc. Has anyone using LC Server gotten that ajax sample to work?? Many thanks, Tim Selander From heather at livecode.com Mon Aug 15 09:55:24 2022 From: heather at livecode.com (Heather Laine) Date: Mon, 15 Aug 2022 14:55:24 +0100 Subject: [blog] Power Tools Message-ID: Dear List Folks, Just dropping a note to draw your attention to a fine blog post by Mr Mark Wieder: https://livecode.com/power-tools/ Enjoy! Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From selander at tkf.att.ne.jp Mon Aug 15 11:10:36 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 16 Aug 2022 00:10:36 +0900 Subject: More Server Silliness -- Nevermind In-Reply-To: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> References: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> Message-ID: <4eb3b4c4-5a5d-0fb8-e00b-d5787cf861fb@tkf.att.ne.jp> Using Firefox developer tools, found out jquery was not loading property. Hangs head in shame at rookie mistake... Still not working properly, but continue to poke at it. Tim Selander On 2022.08.15 21:58, Tim Selander via use-livecode wrote: > With Alex and everyone's help, I got the global vs cookies, etc., > sorted out and am happily paginating away with my little > membership web site. > > With Kenji's help, I got automatic address fill-in from Japanese > zip codes. > > However, I was looking at LiveCode's server samples > (serversamples.livecode.com/index.lc) and thought, gee, the Ajax > filtering looks pretty neat. > > So I set off to make that work, and failed. I'd give up on it, > but after wasting THIS much time on it, I gotta bring it to you > all for a little input and hopefully another bail-out. > > Just for testing, I made two new files. The first with the code > LC provides at > https://serversamples.livecode.com/display-file.lc?filename=ajax-simple.lc > and the second from step 3 of the ajax sample page, > https://serversamples.livecode.com/ajax.lc. > > Changed only the bits needed to pull data from my database. File > one, ajax-simple.lc, lists my data and an input box just like the > sample page. But it sends no info via GET to the second file, > filter.lc. If I manually put the GET info in the > URL,(filter.lc?search_term=John, I get the filtered data I > expect, but in the filter.lc window -- the data is not returned > to File 1, ajax-simple.lc. > > Has anyone using LC Server gotten that ajax sample to work?? > > Many thanks, > > Tim Selander > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From craig at starfirelighting.com Mon Aug 15 14:00:37 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 15 Aug 2022 14:00:37 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Message-ID: <24EBA058-E6F8-417B-8B94-AEFCCDE3E717@starfirelighting.com> Hi. I am missing something. Make a popup menu button. Ina mouseUp handler in another button: on mouseUp click at the loc of btn 1 end mouseUp Once the menu is open, the up and down arrow keys navigate among the menuItems. Craig > On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: > > Hi all. Very odd, I thought this worked. > > I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? > > MacOS 10.15.7 LC 9.6.9 rc1 > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Mon Aug 15 14:03:00 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 15 Aug 2022 14:03:00 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Message-ID: <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. Craig > On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: > > Hi all. Very odd, I thought this worked. > > I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? > > MacOS 10.15.7 LC 9.6.9 rc1 > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 14:29:20 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 14:29:20 -0400 Subject: Polygrid sorting Message-ID: So, I bought the Summer Bundle. Yes, it is a good deal. In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. From paul at researchware.com Mon Aug 15 15:34:39 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 15:34:39 -0400 Subject: Polygrid sorting (problems) In-Reply-To: References: Message-ID: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimited, WITHOUT the column headers, but ONLY the visible rows. So, what to use for sorting all the data in a PolyGrid by a particular column? The tsvData of widget X (and csvData, and Text) doesn't seem to work. The all seems to only get the visible data (rows). Only the pgData of widget return the whole dataset of the PolyGrid. Is this the way these properties are supposed to work? If that is how text, csvData, and tsvData are supposed to work (returning only the visible rows), then the sort example in the PolyGrid documentation require updating otherwise these properties require updating! On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application > uses a Datagrid to display customer research data. The columns headers > are text and the left most column ROWs are test and all other cells > are numbers. Some customers can have quite large data sets and I have > been running into the number of columns (ad a default width of 100px > per column) exceeding a GROUPs 32,767px width maximum (about 327-328 > columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this > limit. I have a "test" stack (for Datagrid testing) I converted to the > Polygrid and can easily generate 1000 columns x 1000 rows of data and > it works. > > So I guess the answer to bug > https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, > user column resizing (built into the Polygrid - Yea!) and column > sorting (NOT built into the Polygrid - Boo!). So, does anyone have > some column sort code for the Polygrid they have written that they > might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left > column (or the left N columns) to be locked/frozen, so they remain > visible when the Polygrid is scrolled horizontally. See > https://quality.livecode.com/show_bug.cgi?id=23880. If you might > benefit from this enhancement, please follow the bug or add a comment > to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Mon Aug 15 16:01:34 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 15 Aug 2022 21:01:34 +0100 Subject: Polygrid sorting In-Reply-To: References: Message-ID: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Hi Paul, I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. Cheers, Mark > On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: > > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. > > So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:10:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:10:49 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. Now I have to go try it on macOS? On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > >> On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: >> >> So, I bought the Summer Bundle. Yes, it is a good deal. >> >> In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. >> >> I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. >> >> So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >> >> On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? >> >> Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:12:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:12:51 -0400 Subject: Polygrid sorting In-Reply-To: References: Message-ID: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> So I see that the Summer Bundle of widgets in the store has a note that says "Latest update 1.0.19: 11 August 2022" However, the Download button says "Version 1.0.0". Does anyone know how to update the widget set to 1.0.19 or how to update a single widget? On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application > uses a Datagrid to display customer research data. The columns headers > are text and the left most column ROWs are test and all other cells > are numbers. Some customers can have quite large data sets and I have > been running into the number of columns (ad a default width of 100px > per column) exceeding a GROUPs 32,767px width maximum (about 327-328 > columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this > limit. I have a "test" stack (for Datagrid testing) I converted to the > Polygrid and can easily generate 1000 columns x 1000 rows of data and > it works. > > So I guess the answer to bug > https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, > user column resizing (built into the Polygrid - Yea!) and column > sorting (NOT built into the Polygrid - Boo!). So, does anyone have > some column sort code for the Polygrid they have written that they > might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left > column (or the left N columns) to be locked/frozen, so they remain > visible when the Polygrid is scrolled horizontally. See > https://quality.livecode.com/show_bug.cgi?id=23880. If you might > benefit from this enhancement, please follow the bug or add a comment > to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:33:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:33:31 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: <9f310ee2-3a16-de25-c4e5-7c108440a38d@researchware.com> I just tested on macOS Mojave (10.14) on an Intel MacBook Pro and the PolyGrid and my sample stack work as expected. Tried 10, 100, and 500 columns/rows. Now I have to find the MacBook Air with Monterey and see... 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > From paul at researchware.com Mon Aug 15 16:49:47 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:49:47 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: FYI, I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > From ahsoftware at sonic.net Mon Aug 15 16:55:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 13:55:33 -0700 Subject: Polygrid sorting In-Reply-To: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> References: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> Message-ID: On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: > So I see that the Summer Bundle of widgets in the store has a note that > says "Latest update 1.0.19: 11 August 2022" > > However, the Download button says "Version 1.0.0". Does anyone know how > to update the widget set to 1.0.19 or how to update a single widget? Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 version is always the most recent. From a July 27 comment from Steven Crighton on https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572 For the moment you have to update the new widgets manually. To do this, first log in to your LiveCode account. In the left hand navigation make your way to Products > thirdparty. Scroll down this list to find LiveCode Enhancements and download that bundle. Inside the bundle folder there is a widgetpackinstaller.livecode file If you want to update everything in your bundle in one go I recommend using that. Simply open that stack and click the install button. Note DataView will now be PolyList after you have updated. I updated once and looks like I'll have to again. -- -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 15 17:02:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 17:02:30 -0400 Subject: Polygrid sorting In-Reply-To: References: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> Message-ID: On 8/15/2022 4:55 PM, Mark Wieder via use-livecode wrote: > On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: >> So I see that the Summer Bundle of widgets in the store has a note >> that says "Latest update 1.0.19: 11 August 2022" >> >> However, the Download button says "Version 1.0.0". Does anyone know >> how to update the widget set to 1.0.19 or how to update a single widget? > > Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 > version is always the most recent. > > From a July 27 comment from Steven Crighton on > https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572 > > For the moment you have to update the new widgets manually. To do > this, first log in to your LiveCode account. In the left hand > navigation make your way to Products > thirdparty. Scroll down this > list to find LiveCode Enhancements and download that bundle. Inside > the bundle folder there is a widgetpackinstaller.livecode file If > you want to update everything in your bundle in one go I recommend > using that. Simply open that stack and click the install button. Note > DataView will now be PolyList after you have updated. > > I updated once and looks like I'll have to again. > Thank you Mark! (and Steven) From bobsneidar at iotecdigital.com Mon Aug 15 18:03:57 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 22:03:57 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> Message-ID: <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. Bob S > On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: > > Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. > > Craig > >> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. Very odd, I thought this worked. >> >> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >> >> MacOS 10.15.7 LC 9.6.9 rc1 >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 15 18:16:45 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 22:16:45 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> Message-ID: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. Bob S > On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: > > Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. > > When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. > > Bob S > > >> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >> >> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >> >> Craig >> >>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>> >>> Hi all. Very odd, I thought this worked. >>> >>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>> >>> MacOS 10.15.7 LC 9.6.9 rc1 >>> >>> Bob S >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Aug 15 19:22:15 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Aug 2022 00:22:15 +0100 Subject: Polygrid sorting (problems) In-Reply-To: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> Message-ID: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: > So there is an example of sorting in the PolyGrid documentation under > the entry for the MESSAGE "headerClick" and under the entry to the > PROPERTY "text" (and in 'the text of me') > > The example code only sort the visible rows as "the text of widget X" > returns the data of PolyGrid X as tab delimited, WITHOUT the column > headers, but ONLY the visible rows. > I'm using (I think) the latest version (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. Both "the text and "the pgtext" return the entire grid (without headers). I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. And come to think of it - why did they need to invent a new property name "pgText" ?  It seems to be a synonym for "the text", so would it not have been better to just use that ?  Full consistency with many other controls, no added "mental clutter", and "the text" colours nicely in the script editor, so more obvious if you mistype it. Alex. From alex at tweedly.net Mon Aug 15 19:25:03 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Aug 2022 00:25:03 +0100 Subject: Sorting [was: Polygrid sorting] Message-ID: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. I'd like to be able to say  - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. Would that be a reasonable enhancement request ? Would "natural" be a reasonable suggested name ? Alex. From bobsneidar at iotecdigital.com Mon Aug 15 19:30:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 23:30:09 +0000 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: <5130FDB3-F9D2-4CCB-B890-ECCD45745967@iotecdigital.com> I think they are trying to be consistent with datagrid terminology, perhaps thinking that a tabular data object has become a new class of objects. Bob S > On Aug 15, 2022, at 16:22 , Alex Tweedly via use-livecode wrote: > > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimited, WITHOUT the column headers, but ONLY the visible rows. >> > I'm using (I think) the latest version (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. > > Both "the text and "the pgtext" return the entire grid (without headers). > > I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. > > And come to think of it - why did they need to invent a new property name "pgText" ? It seems to be a synonym for "the text", so would it not have been better to just use that ? Full consistency with many other controls, no added "mental clutter", and "the text" colours nicely in the script editor, so more obvious if you mistype it. > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 15 19:35:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 23:35:28 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> Message-ID: Datagrids have this feature, so yes, I would expect there to be some way to specify what kind of sort you want to do. But it would have to be on a per column basis. But if you are sorting the text yourself, you can use the syntax: sort lines of tText by item n of each. I don't think any assumptions should be made by the engine as to what kind of data each column contains. I worked with an accounting system many years ago which had numeric invoice numbers, or so it seemed. Once you created a credit memo, it prepended R to the invoice number. Bob S > On Aug 15, 2022, at 16:25 , Alex Tweedly via use-livecode wrote: > > So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. > > I'd like to be able to say > > - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. > > Would that be a reasonable enhancement request ? > > Would "natural" be a reasonable suggested name ? > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Aug 15 19:43:12 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 16:43:12 -0700 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: > I haven't tried csvdata or tsvdata (they're not listed in the > dictionary, so I'd tend to avoid them if possible. I do see tsvData in the dictionary, but I'm getting weird errors thrown from the widget when I try to use it. May still be experimental. There aren't any examples and the source isn't available. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 15 19:46:38 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:46:38 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> Message-ID: <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Perhaps some expansion of the column "pgContentTypeofColumn" property? The current possible values are: text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement Allowing the addition of 'numeric' and 'datetime' would at least allow a mapping to sorts although sort support 'international' (perhaps should be the default for a polygrid column of type "text" and "binary". I am also not sure how svg-iconname, imagedata, imagefile, and color should sort. Perhaps svg-iconname should sort as "text". Bolean can sort as "text" since ascending puts "false" first and descending puts "true" first. On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote: > So it occurred to me, while playing with sorting by columns, that it > might be nice to have an additional "sortType" available. > > I'd like to be able to say > >  - if all the 'things' being sorted on are numbers, then sort numeric, > otherwise sort alphabetical. > > Would that be a reasonable enhancement request ? > > Would "natural" be a reasonable suggested name ? > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 19:51:33 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:51:33 -0400 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under >> the entry for the MESSAGE "headerClick" and under the entry to the >> PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" >> returns the data of PolyGrid X as tab delimited, WITHOUT the column >> headers, but ONLY the visible rows. >> > I'm using (I think) the latest version > (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. > Okay, a widget ignorant question: How do you tell what version of a widget you have installed? (i.e where/how do you see com.livecode.widget.polygrid.1.1.1) From paul at researchware.com Mon Aug 15 19:59:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:59:01 -0400 Subject: Polygrid sorting (problems) In-Reply-To: <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> Message-ID: <0fe233f8-3a70-3be7-9e10-691b65e8e305@researchware.com> On 8/15/2022 7:51 PM, Paul Dupuis via use-livecode wrote: > On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: >> >> On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >>> So there is an example of sorting in the PolyGrid documentation >>> under the entry for the MESSAGE "headerClick" and under the entry to >>> the PROPERTY "text" (and in 'the text of me') >>> >>> The example code only sort the visible rows as "the text of widget >>> X" returns the data of PolyGrid X as tab delimited, WITHOUT the >>> column headers, but ONLY the visible rows. >>> >> I'm using (I think) the latest version >> (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at >> all. >> > > Okay, a widget ignorant question: How do you tell what version of a > widget you have installed? (i.e where/how do you see > com.livecode.widget.polygrid.1.1.1) Never mind. It is in the file name, com.livecode.widget.polygrid.1.1.1.lce Also, FYI, regarding you note that: Both "the text and "the pgtext" return the entire grid (without headers). I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. Under the dictionary entry for "polygrid", I see the csvData and tsvData properties listed. The "text" property and the pgData property, but NO entry for pgText. It would appear, if the .lce file name is correct, that I am at the same version, 1.1.1. I am on Windows 10, under LC 9.6.8 From ahsoftware at sonic.net Mon Aug 15 20:12:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 17:12:37 -0700 Subject: Polygrid sorting (problems) In-Reply-To: References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: On 8/15/22 16:43, Mark Wieder via use-livecode wrote: > On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: > >> I haven't tried csvdata or tsvdata (they're not listed in the >> dictionary, so I'd tend to avoid them if possible. > > I do see tsvData in the dictionary, but I'm getting weird errors thrown > from the widget when I try to use it. May still be experimental. There > aren't any examples and the source isn't available. Correcting myself, I do see examples in the enhancements folder, they just aren't installed. There's also a Plugins/Templates/Default folder for various things, but I'm not sure what I'm supposed to do with those, if anything. If I use just the examples in the folder then the I can manipulate the tsvData and it works. But if I try to generate my own I end up throwing weird errors. -- Mark Wieder ahsoftware at gmail.com From marksmithhfx at gmail.com Tue Aug 16 04:33:49 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 16 Aug 2022 09:33:49 +0100 Subject: Polygrid sorting In-Reply-To: References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: Hi Paul, My bad. I don’t have the polygrid widget installed. I bought the summer bundle but haven’t had time to install or play with it. I will try this afternoon and send feedback later. Mark > On 15 Aug 2022, at 9:49 pm, Paul Dupuis via use-livecode wrote: > > FYI, > > I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. > > > On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: >> Hi Paul, >> >> I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. >> >> I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. >> >> Cheers, >> Mark >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Aug 16 07:33:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 16 Aug 2022 13:33:20 +0200 Subject: Separate app for iPad and iPhone? Message-ID: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Hi all, after wondering why on earth my former Android stack did not scale to fit an iPad screen, I finally found that there is a separate menu item for "iPad" in the "Standalone Application Setting". 8-) In (a LOT) earlier versions there was one entry for iPhone AND iPad. Does that mean that we need to build two separate app for iPad and iPhone and publish both to the app store nowadays? Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Tue Aug 16 08:11:07 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 16 Aug 2022 15:11:07 +0300 Subject: Separate app for iPad and iPhone? In-Reply-To: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> References: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Message-ID: Hello Klaus, There is also an option for both ("iPod, iPhone and iPad") Cheers, Panos -- On Tue, 16 Aug 2022 at 14:34, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > after wondering why on earth my former Android stack did not scale > to fit an iPad screen, I finally found that there is a separate menu item > for "iPad" in the "Standalone Application Setting". 8-) > In (a LOT) earlier versions there was one entry for iPhone AND iPad. > > Does that mean that we need to build two separate app for iPad and iPhone > and publish both to the app store nowadays? > > Thanks for any hint! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Tue Aug 16 08:17:57 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 16 Aug 2022 14:17:57 +0200 Subject: Separate app for iPad and iPhone? In-Reply-To: References: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Message-ID: Hi Panos, > Am 16.08.2022 um 14:11 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > There is also an option for both ("iPod, iPhone and iPad") oh, yeah, sorry, it is very hot over here in germany... 8-) > Cheers, > Panos > -- > > On Tue, 16 Aug 2022 at 14:34, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> after wondering why on earth my former Android stack did not scale >> to fit an iPad screen, I finally found that there is a separate menu item >> for "iPad" in the "Standalone Application Setting". 8-) >> In (a LOT) earlier versions there was one entry for iPhone AND iPad. >> >> Does that mean that we need to build two separate app for iPad and iPhone >> and publish both to the app store nowadays? Best Klaus > -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From craig at starfirelighting.com Tue Aug 16 08:55:13 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 16 Aug 2022 08:55:13 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> Message-ID: <6E29CF66-888B-45D5-82CA-25F7B5F1B71D@starfirelighting.com> Yes, the combo box does not return the “selected” menuItem. Likely something to do with its compound nature. > On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode wrote: > > I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. > > Bob S > > >> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: >> >> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. >> >> When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. >> >> Bob S >> >> >>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >>> >>> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >>> >>> Craig >>> >>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> Hi all. Very odd, I thought this worked. >>>> >>>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>>> >>>> MacOS 10.15.7 LC 9.6.9 rc1 >>>> >>>> Bob S >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Tue Aug 16 08:55:48 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 16 Aug 2022 08:55:48 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> Message-ID: <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Bob. You can always roll your own, Craig > On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode wrote: > > I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. > > Bob S > > >> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: >> >> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. >> >> When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. >> >> Bob S >> >> >>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >>> >>> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >>> >>> Craig >>> >>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> Hi all. Very odd, I thought this worked. >>>> >>>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>>> >>>> MacOS 10.15.7 LC 9.6.9 rc1 >>>> >>>> Bob S >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Tue Aug 16 09:18:30 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 16 Aug 2022 14:18:30 +0100 Subject: Polygrid sorting In-Reply-To: <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> Message-ID: <32D3639F-A2C6-42F2-A9FE-00E6D60E628A@gmail.com> I downloaded and installed the widget, it works (very well) now :) > On 15 Aug 2022, at 9:10 pm, Paul Dupuis via use-livecode wrote: > > Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. > > Now I have to go try it on macOS? > > > > On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: >> Hi Paul, >> >> I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. >> >> I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. >> >> Cheers, >> Mark >> >>> On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: >>> >>> So, I bought the Summer Bundle. Yes, it is a good deal. >>> >>> In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. >>> >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. >>> >>> So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >>> >>> On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? >>> >>> Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 16 11:08:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Aug 2022 15:08:15 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Message-ID: Thanks Craig for confirming, I will put in an enhancement request FWIW. Bob S > On Aug 16, 2022, at 05:55 , Craig Newman via use-livecode wrote: > > Bob. > > You can always roll your own, > > Craig From bobsneidar at iotecdigital.com Tue Aug 16 11:19:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Aug 2022 15:19:55 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Message-ID: <96DA5143-E316-4D46-B0E1-B2F47CA12432@iotecdigital.com> Bug 23884 Bob S On Aug 16, 2022, at 08:08 , Bob Sneidar > wrote: Thanks Craig for confirming, I will put in an enhancement request FWIW. Bob S On Aug 16, 2022, at 05:55 , Craig Newman via use-livecode > wrote: Bob. You can always roll your own, Craig From paul at researchware.com Wed Aug 17 13:38:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 13:38:50 -0400 Subject: the effective width of a stack? Message-ID: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> I can across some old code where I an referring to if (the effective width of stack X > someValue) then This code produces no errors and works. However, I was just trying to look up 'effective width' to see exactly what it was doing in the Livecode 9.6.8 Dictionary and struck out! Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not listed as an inherited property that 'effective' can be used with. Under 'width' it is not listed. If I look at the entry to the 'stack' object, I find 'width' but that just takes me to the entry for 'width' Am I imagining something, OR is there such a thing as 'effective width' and if so, where the heck is it documented? PS. I thought the width of a stack (or window) vs the effective width was teh difference between the inner dimensions of the stack (the card size) and the size  of the stack with borders and titlebar (outer dimensions). I forget which is which and, again, can not find it documented! Also, I thought that contrary to the Dictionary entry to the 'effective' keyword, you could SET the 'effective width' of a stack/window to change the size of the outer dimensions(?) I'd appreciate any pointers to where effective width or effective height of a stack is documented. From bobsneidar at iotecdigital.com Wed Aug 17 13:45:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 17 Aug 2022 17:45:24 +0000 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: The effective keyword can be used with the following inherited properties : • backgroundColor property • backgroundPattern property • backgroundPixel property • bottomColor property • bottomPattern property • bottomPixel property • focusColor property • focusPattern property • focusPixel property • foregroundColor property • foregroundPattern property • foregroundPixel property • hiliteColor property • hilitePattern property • hilitePixel property • topColor property • topPattern property • topPixel property • shadowColor property • shadowPattern property • shadowPixel property • textFont property • textHeight property • textSize property • textStyle property • filename of stack property • rectangle property • layerMode property I don't see "width" there. You have to use rect then do the math. Bob S > On Aug 17, 2022, at 10:38 , Paul Dupuis via use-livecode wrote: > > I can across some old code where I an referring to > > if (the effective width of stack X > someValue) then > > This code produces no errors and works. However, I was just trying to look up 'effective width' to see exactly what it was doing in the Livecode 9.6.8 Dictionary and struck out! From ahsoftware at sonic.net Wed Aug 17 13:58:58 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 17 Aug 2022 10:58:58 -0700 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> On 8/17/22 10:38, Paul Dupuis via use-livecode wrote: > I'd appreciate any pointers to where effective width or effective height > of a stack is documented. You can't use "effective" with custom properties either. https://quality.livecode.com/show_bug.cgi?id=23557 You *can* set the effective rect of a stack, although you may not get the result you expect. https://quality.livecode.com/show_bug.cgi?id=16305 -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Aug 17 14:09:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 17 Aug 2022 18:09:21 +0000 Subject: the effective width of a stack? In-Reply-To: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> Message-ID: I think this is why some time ago when I was trying to save and restore the position of windows I ran into the creeping window issue where the top of the window kept creepign up each time I opened it. Bob S > On Aug 17, 2022, at 10:58 , Mark Wieder via use-livecode wrote: > > You *can* set the effective rect of a stack, although you may not get the result you expect. > https://quality.livecode.com/show_bug.cgi?id=16305 > > -- > Mark Wieder > ahsoftware at gmail.com From dougr at telus.net Wed Aug 17 14:45:36 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Wed, 17 Aug 2022 11:45:36 -0700 Subject: issue related to Print.PrintSupport.Source.dll Message-ID: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> There was a flurry of discussions on the LC forum https://forums.livecode.com/viewtopic.php?f=9 &t=36870&start=45) in April to July regarding errors occurring involving Print.PrintSupport.Source.dll. I will post on the forum as well but was wondering if anyone (including the Mothership) has had similar problems and if solution(s) have been found. The forum discussions seems to have ended with "some" possible solutions but, in my reading, nothing definitive. Like the discussions on the forum *some* of my clients are experiencing this error but MANY are not. weird. Douglas Ruisaard From paul at researchware.com Wed Aug 17 15:46:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 15:46:08 -0400 Subject: the effective width of a stack? In-Reply-To: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> Message-ID: On 8/17/2022 1:58 PM, Mark Wieder via use-livecode wrote: > On 8/17/22 10:38, Paul Dupuis via use-livecode wrote: > >> I'd appreciate any pointers to where effective width or effective >> height of a stack is documented. > > You can't use "effective" with custom properties either. > https://quality.livecode.com/show_bug.cgi?id=23557 > > You *can* set the effective rect of a stack, although you may not get > the result you expect. > https://quality.livecode.com/show_bug.cgi?id=16305 > I now remember bug 16305. Mark entered it based on a list discussion where I reported it. Hence my comments on it. I now use Panos's workaround (in fact my code base is riddled with "work-arounds"), but there seem to be a (limited) consensus that on Windows 10, the effective rect should only factor in VISIBLE border elements, not INVISIBLE ones. I still wish they would fix it. That all said, where is effective width/heigh/rect of a stack/window documented in the Dictionary? The 'effective rect' and other 'effective' dimension properties of a stack/window are important for multiple window positioning, resizing, alignment, and more and should be in teh Dictionary. ALSO, as the 1 exception to the "you can not SET 'effective' things rule, that should definitely be documented. I'll file a documentation bug report, but I don't want to file one just to find out I looked under the 'wrong' place. Paul Dupuis Researchware From paul at researchware.com Wed Aug 17 15:51:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 15:51:51 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> Message-ID: <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> BTW the problem of: the text of widget X the csvData of widget X the tsvData of widget X AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) the pgText of widget X ALL not returning the full data for a PolyGrid widget is a confirmed bug: See https://quality.livecode.com/show_bug.cgi?id=23886 On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: > So there is an example of sorting in the PolyGrid documentation under > the entry for the MESSAGE "headerClick" and under the entry to the > PROPERTY "text" (and in 'the text of me') > > The example code only sort the visible rows as "the text of widget X" > returns the data of PolyGrid X as tab delimited, WITHOUT the column > headers, but ONLY the visible rows. > > So, what to use for sorting all the data in a PolyGrid by a particular > column? > > The tsvData of widget X (and csvData, and Text) doesn't seem to work. > The all seems to only get the visible data (rows). Only the pgData of > widget return the whole dataset of the PolyGrid. Is this the way these > properties are supposed to work? > > If that is how text, csvData, and tsvData are supposed to work > (returning only the visible rows), then the sort example in the > PolyGrid documentation require updating otherwise these properties > require updating! > > > > On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >> So, I bought the Summer Bundle. Yes, it is a good deal. >> >> In my case it was primarily for the Polygrid widget. Our application >> uses a Datagrid to display customer research data. The columns >> headers are text and the left most column ROWs are test and all other >> cells are numbers. Some customers can have quite large data sets and >> I have been running into the number of columns (ad a default width of >> 100px per column) exceeding a GROUPs 32,767px width maximum (about >> 327-328 columns). At this point the Datagrid just fails - no data is >> displayed. >> >> I can now attest that a Polygrid (under LC 9.6.8) does not have this >> limit. I have a "test" stack (for Datagrid testing) I converted to >> the Polygrid and can easily generate 1000 columns x 1000 rows of data >> and it works. >> >> So I guess the answer to bug >> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >> >> On that note, the Datagrid has 2 features I use in this specific >> case, user column resizing (built into the Polygrid - Yea!) and >> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >> have some column sort code for the Polygrid they have written that >> they might be willing to share? >> >> Also, I have filled a Polygrid enhancement request to allow the left >> column (or the left N columns) to be locked/frozen, so they remain >> visible when the Polygrid is scrolled horizontally. See >> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >> benefit from this enhancement, please follow the bug or add a comment >> to that effect. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Aug 17 17:52:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 17:52:08 -0400 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: On 8/17/2022 1:38 PM, Paul Dupuis via use-livecode wrote: > I can across some old code where I an referring to > > if (the effective width of stack X > someValue) then > > This code produces no errors and works. However, I was just trying to > look up 'effective width' to see exactly what it was doing in the > Livecode 9.6.8 Dictionary and struck out! > > Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not > listed as an inherited property that 'effective' can be used with. > Under 'width' it is not listed. If I look at the entry to the 'stack' > object, I find 'width' but that just takes me to the entry for 'width' > > Am I imagining something, OR is there such a thing as 'effective > width' and if so, where the heck is it documented? > > PS. I thought the width of a stack (or window) vs the effective width > was teh difference between the inner dimensions of the stack (the card > size) and the size  of the stack with borders and titlebar (outer > dimensions). I forget which is which and, again, can not find it > documented! Also, I thought that contrary to the Dictionary entry to > the 'effective' keyword, you could SET the 'effective width' of a > stack/window to change the size of the outer dimensions(?) > > I'd appreciate any pointers to where effective width or effective > height of a stack is documented. So testing shows that (in LC 9.6.8 at any rate) the following STACK properties can use the effective keyword: height width rect (or rectangle) left right top bottom topLeft topRight bottomLeft bottomRight and, indeed, the different between the property and the effective property is the property (inside dimensions) and effective property (outside dimensions) The "effective" keyword is ONLY documented with the rect/rectangle property in the Dictionary and not for any other dimensional properties, even though they work as expected (well except for Window 10: https://quality.livecode.com/show_bug.cgi?id=16305) It also appears (from testing) that you can set the effective rect (as documented in the rect Dictionary entry) and set the effective width or the effective height (not documented in the Dictionary). I have not yet tried setting the "effective" form of the remaining dimensional properties (top, left, topLeft, etc.) From jacque at hyperactivesw.com Wed Aug 17 18:02:38 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 17 Aug 2022 17:02:38 -0500 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> Message-ID: 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 customers have a different printer, try that OEM driver. We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. On 8/17/22 1:45 PM, Douglas A. Ruisaard via use-livecode wrote: > There was a flurry of discussions on the LC forum > https://forums.livecode.com/viewtopic.php?f=9 > > &t=36870&start=45) in April to July regarding errors occurring involving > Print.PrintSupport.Source.dll. > > > > I will post on the forum as well but was wondering if anyone (including the > Mothership) has had similar problems and if solution(s) have been found. > The forum discussions seems to have ended with "some" possible solutions > but, in my reading, nothing definitive. Like the discussions on the forum > *some* of my clients are experiencing this error but MANY are not. weird. > > > > Douglas Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Wed Aug 17 19:27:46 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 17 Aug 2022 16:27:46 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> Message-ID: <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > We had one instance where the user didn't have a printer at all, but > just deleting the Epson driver fixed it. \_()_/ -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Wed Aug 17 21:02:37 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 17 Aug 2022 21:02:37 -0400 Subject: i wonder what other widgets i'm missing Message-ID: I bought the megabundle and installed the widgets. Then I started checking out the signature widget, and discover that some of you have been using it for four years. I didn't even know it existed before today, and I have a Business license (I also had not been aware of the polylist/polygrids before the megabundle) So now I'm wondering a) what other widgets i'm missing b) since the widget store is kind of sparse, if there are other places to look for LC toys, especially widgets? -- 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." From MikeKerner at roadrunner.com Thu Aug 18 10:42:48 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 10:42:48 -0400 Subject: polylist toys Message-ID: fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" example that I can trigger an error just by opening it and tapping "populate" can anyone else confirm? -- 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." From bobsneidar at iotecdigital.com Thu Aug 18 11:28:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Aug 2022 15:28:20 +0000 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> Message-ID: <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> Not unheard of. Some years back we discovered that if the HP Universal Print Driver had been installed, Toshiba drivers would not work at all. We had to uninstall the HP Universal Driver and replace it with the model-specific driver. Bob S > On Aug 17, 2022, at 16:27 , Mark Wieder via use-livecode wrote: > > On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > >> We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. > > ¯\_(ツ)_/¯ > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Aug 18 11:48:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 08:48:02 -0700 Subject: polylist toys In-Reply-To: References: Message-ID: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> On 8/18/22 07:42, Mike Kerner via use-livecode wrote: > fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" > example that I can trigger an error just by opening it and tapping > "populate" > can anyone else confirm? > Yep. The polylist continually throws ridiculous errors at me. (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). And that's at line 2791 (unable to get image geometry) but the source is locked so there's nothing more to do. Also, the versioning thing is out of hand. I just downloaded version 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was a fix in the new version. So I now have v1.0.21 of the enhancements packaged in a 1.0.0 zip file, and I see that half a dozen extensions have been updated since the last time I downloaded 1.0.0. And there was no notification that anything had been updated/fixed/whatever. If it hadn't been for the comment Panos put into bugzilla how is anyone supposed to know that things have been updated? -- Mark Wieder ahsoftware at gmail.com From steven.crighton at livecode.com Thu Aug 18 12:34:08 2022 From: steven.crighton at livecode.com (Steven Crighton) Date: Thu, 18 Aug 2022 17:34:08 +0100 Subject: polylist toys Message-ID: Hi Mike, I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. Can you let me know what the error was? I would say just to double check that are you are using the most recent version. I understand that we need to make some improvements regarding the notification of updates on these new widgets and we will do that. In the meantime we have implemented a last updated date in the my account area, so it’s well worth checking in on that from time to time to see if there is a new update available. Thanks Steven From ahsoftware at sonic.net Thu Aug 18 12:55:55 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 09:55:55 -0700 Subject: polylist toys In-Reply-To: References: Message-ID: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> On 8/18/22 09:34, Steven Crighton via use-livecode wrote: > Hi Mike, > > I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. > > Can you let me know what the error was? > See my previous email. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Aug 18 13:27:22 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:27:22 -0400 Subject: polylist toys In-Reply-To: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> References: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> Message-ID: Steven, I also emailed Panos: I think it would be good to have a few of the LCG22/23 sessions cover some of the widgets. The documentation is kind-of thin, and I'm already stacking questions like: * polygrid/list vs. datagrid * much of the discussion is regarding web deployment, but at least for me, mobile is the important platform, so there should be more discussion about that * is there widget source somewhere, or are we going to have to rfq LC if we would like to request some enhancements? example: for the power button, maybe instead of a border at the edge, i'd like to be able to inset it. On Thu, Aug 18, 2022 at 12:57 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/18/22 09:34, Steven Crighton via use-livecode wrote: > > Hi Mike, > > > > I just tested the lazy load example and hit populate and clicked around > etc and could not trigger an error. > > > > Can you let me know what the error was? > > > > See my previous email. > > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From brian at milby7.com Thu Aug 18 13:34:19 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 18 Aug 2022 13:34:19 -0400 Subject: polylist toys In-Reply-To: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: I just rename the zip file when I download it :) But yes, only way to know currently is to log in and check the version/date. Sent from my iPhone > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode wrote: > > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: >> fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" >> example that I can trigger an error just by opening it and tapping >> "populate" >> can anyone else confirm? > > Yep. The polylist continually throws ridiculous errors at me. > (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). And that's at line 2791 (unable to get image geometry) but the source is locked so there's nothing more to do. > > Also, the versioning thing is out of hand. I just downloaded version 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was a fix in the new version. So I now have v1.0.21 of the enhancements packaged in a 1.0.0 zip file, and I see that half a dozen extensions have been updated since the last time I downloaded 1.0.0. And there was no notification that anything had been updated/fixed/whatever. If it hadn't been for the comment Panos put into bugzilla how is anyone supposed to know that things have been updated? > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 18 13:36:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:36:06 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: I am not aware of a place to check the version/date. I received a link for the download, and I don't see the download as a separate item in my account On Thu, Aug 18, 2022 at 1:35 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I just rename the zip file when I download it :) > > But yes, only way to know currently is to log in and check the > version/date. > > Sent from my iPhone > > > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: > >> fiddling with polylist examples, and i noticed in the > "lazyLoadOnlineImage" > >> example that I can trigger an error just by opening it and tapping > >> "populate" > >> can anyone else confirm? > > > > Yep. The polylist continually throws ridiculous errors at me. > > > (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). > And that's at line 2791 (unable to get image geometry) but the source is > locked so there's nothing more to do. > > > > Also, the versioning thing is out of hand. I just downloaded version > 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was > a fix in the new version. So I now have v1.0.21 of the enhancements > packaged in a 1.0.0 zip file, and I see that half a dozen extensions have > been updated since the last time I downloaded 1.0.0. And there was no > notification that anything had been updated/fixed/whatever. If it hadn't > been for the comment Panos put into bugzilla how is anyone supposed to know > that things have been updated? > > > > -- > > Mark Wieder > > ahsoftware at gmail.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 18 13:40:18 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:40:18 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: after hitting the link, again, I got 1_0_21 The error is the same: executing at 1:39:25 PM LCB Error Unable to get image geometry. Object PolyList LCB File E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb LCB Line 2791 On Thu, Aug 18, 2022 at 1:36 PM Mike Kerner wrote: > I am not aware of a place to check the version/date. I received a link for > the download, and I don't see the download as a separate item in my account > > On Thu, Aug 18, 2022 at 1:35 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I just rename the zip file when I download it :) >> >> But yes, only way to know currently is to log in and check the >> version/date. >> >> Sent from my iPhone >> >> > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: >> >> fiddling with polylist examples, and i noticed in the >> "lazyLoadOnlineImage" >> >> example that I can trigger an error just by opening it and tapping >> >> "populate" >> >> can anyone else confirm? >> > >> > Yep. The polylist continually throws ridiculous errors at me. >> > >> (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). >> And that's at line 2791 (unable to get image geometry) but the source is >> locked so there's nothing more to do. >> > >> > Also, the versioning thing is out of hand. I just downloaded version >> 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was >> a fix in the new version. So I now have v1.0.21 of the enhancements >> packaged in a 1.0.0 zip file, and I see that half a dozen extensions have >> been updated since the last time I downloaded 1.0.0. And there was no >> notification that anything had been updated/fixed/whatever. If it hadn't >> been for the comment Panos put into bugzilla how is anyone supposed to know >> that things have been updated? >> > >> > -- >> > Mark Wieder >> > ahsoftware at gmail.com >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at 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." > -- 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." From ahsoftware at sonic.net Thu Aug 18 13:51:18 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 10:51:18 -0700 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: <3a207b28-ab58-b090-1564-7b3c29bc1ccc@sonic.net> On 8/18/22 10:36, Mike Kerner via use-livecode wrote: > I am not aware of a place to check the version/date. I received a link for > the download, and I don't see the download as a separate item in my account It's hidden under "Third Party". Scroll down and there's something like "livecode enhancements". Then you download it, unzip it into a folder, launch the IDE, and open the widgetpackinstaller stack and click Install. Ignore (Purge) the errors about multiple stacks with the same name. When it's done a button (!) appears that says "Complete". Clicking it doesn't do anything useful. I don't know what happens if an error occurs. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Aug 18 13:53:05 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 10:53:05 -0700 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: On 8/18/22 10:40, Mike Kerner via use-livecode wrote: > after hitting the link, again, I got 1_0_21 > The error is the same: > > executing at 1:39:25 PM > > LCB Error Unable to get image geometry. > > Object PolyList > > LCB File > E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb > > LCB Line 2791 Yep. That's what I get as well. Not sure why there's a pointer to someone's Windows system. I'm guessing that gets bound in when the lcb file is generated by the build process. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Aug 18 14:02:47 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 14:02:47 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: oh, that's right, it's in "third party". i just hit the download link in the megabundle email, again. 21 is the latest, according to the site, which is what i just tried, a little bit ago. On Thu, Aug 18, 2022 at 1:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/18/22 10:40, Mike Kerner via use-livecode wrote: > > after hitting the link, again, I got 1_0_21 > > The error is the same: > > > > executing at 1:39:25 PM > > > > LCB Error Unable to get image geometry. > > > > Object PolyList > > > > LCB File > > > E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb > > > > LCB Line 2791 > > Yep. That's what I get as well. Not sure why there's a pointer to > someone's Windows system. I'm guessing that gets bound in when the lcb > file is generated by the build process. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From dougr at telus.net Thu Aug 18 14:18:25 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Thu, 18 Aug 2022 11:18:25 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> Message-ID: <02a101d8b32e$e8478b60$b8d6a220$@telus.net> I VERY much appreciate the feedback … it helps not to feel isolated with a virtually unsolvable issue which affects one’s credibility with clients. It is somewhat strange that this does seem to implicate LC to some degree, though. A version of my code which (probably) used whatever LC version was fairly current in 2013 (I should, but don’t, keep track of what version of LC I use for various releases of my applications) DOES NOT exhibit this issue on the very same installations which are experiencing the error. I would have used LC v 9.1 to produce the standalone which is *VERY* occasionally exhibiting this issue. So … apparently … sometime along the way, LC changes seem to have “promoted” the potential for this error. I’ve told the customers that I cannot possible fix something which I cannot reproduce. I’ve also insinuated that even if LC *does* discover and fix the underlying issue, that I *WILL NOT* re-issue a new version with the VAST majority of 5,000+ installations NOT experiencing a problem … citing the amount of regression testing which would be mandated as a part of such a revision. Again, thanks for the responses… this group is ALWAYS awesome in its support and knowledge! Douglas Ruisaard Trilogy Software (250) 573-3935 -----Original Message----- From: use-livecode On Behalf Of Bob Sneidar via use-livecode Sent: Thursday, August 18, 2022 8:28 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: issue related to Print.PrintSupport.Source.dll Not unheard of. Some years back we discovered that if the HP Universal Print Driver had been installed, Toshiba drivers would not work at all. We had to uninstall the HP Universal Driver and replace it with the model-specific driver. Bob S > On Aug 17, 2022, at 16:27 , Mark Wieder via use-livecode wrote: > > On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > >> We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. > > ¯\_(ツ)_/¯ > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bduck at mac.com Thu Aug 18 14:27:25 2022 From: bduck at mac.com (Brian K. Duck) Date: Thu, 18 Aug 2022 14:27:25 -0400 Subject: Fall 2022 xAPI Cohort Starts in Two Weeks! Message-ID: Join us for the LIVE kickoff web session on September 1st Starting on September 1st, every Thursday for 12 weeks, xAPI Cohort live web sessions will take place from 2:00 - 3:00 pm Eastern (US) Time. We will be sharing the link to the Virtual Classroom in an upcoming email so keep an eye on your inbox! Our first session will introduce xAPI and the xAPI Cohort. We'll talk about the projects you can take on, how to join a team, and what makes a project group successful. Please don’t feel overwhelmed if you’re not quite ready to brainstorm projects yet. To join, or Explore the xAPI Cohort website. https://xapicohort.com/ In past cohorts, we had a team work with LiveCode to build a sample stack for sending xAPI requests to a server. In there any interest in helping to update the project for LiveCode 10? Brian Duck From andreas.bergendal at gmail.com Thu Aug 18 14:49:57 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Thu, 18 Aug 2022 20:49:57 +0200 Subject: A web app launcher with responsive design Message-ID: <09E684DF-5A79-4BA4-BDD7-FF931C24A7F2@gmail.com> I have now redesigned the portal page and made it much more responsive and also with clearer sections for the example stacks: https://wheninspace.com/portal/ (You may need to clear the browser cache, or open the link in a private browser window if it looks the same as before.) I've also updated the download package and put a link to it from the portal stack. From matthias_livecode_150811 at m-r-d.de Thu Aug 18 15:04:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 18 Aug 2022 21:04:55 +0200 Subject: i wonder what other widgets i'm missing In-Reply-To: References: Message-ID: Normally the release notes of every Livecode version contains also information about newly added widgets. Regarding the PolyGrid and PolyList widgets. They were first released with the Megabundle. They were not available before. The original developer posted a year or so ago in the Livecode FB group about Polygrid and posted also a link to an sample stack with preview version of the PolyGrid widget. The release of the widget was promised for weeks later, but that never did happen. On Mac you can find all in Livecode included widgets in the application bundle under /contents/Tools/Extensions Sometimes widgets from Livecode community members are offered in the LC forums. A nice one btw is the gauge widget from Bernd Niggemann https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge Regards, Matthias > Am 18.08.2022 um 03:02 schrieb Mike Kerner via use-livecode : > > I bought the megabundle and installed the widgets. > Then I started checking out the signature widget, and discover that some of > you have been using it for four years. I didn't even know it existed before > today, and I have a Business license (I also had not been aware of the > polylist/polygrids before the megabundle) > So now I'm wondering > a) what other widgets i'm missing > b) since the widget store is kind of sparse, if there are other places to > look for LC toys, especially widgets? > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Aug 18 15:13:36 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 18 Aug 2022 14:13:36 -0500 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <02a101d8b32e$e8478b60$b8d6a220$@telus.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> <02a101d8b32e$e8478b60$b8d6a220$@telus.net> Message-ID: <74e73415-4abe-46fc-19d2-ea7dd72da873@hyperactivesw.com> On 8/18/22 1:18 PM, Douglas A. Ruisaard via use-livecode wrote: > I VERY much appreciate the feedback … it helps not to feel isolated with a virtually unsolvable issue which affects one’s credibility with clients. There is more info in the bug report: For us the problem did not show up until users installed Windows 11, and the drivers that ship with that conflict with LC, while the OEM driver does not. If Win 10 users are having the same issue, it may be that they got an update which updated the older drivers. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Aug 18 15:52:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 18 Aug 2022 14:52:57 -0500 Subject: A few issues with web apps Message-ID: I have just created my first web deployment and I'm *very* impressed. I didn't need to change any of the original scripts, the only changes were for visual elements that were different when run in a browser. Aside from appearance, the scripts ran flawlessly. On desktop it's great in all three browsers I tested on. But I ran into issues when running in mobile browsers on Android. Does anyone know how to fix these things: 1. Editable fields fail with both SwiftKey and GBoard keyboards, though they fail in different ways. The cursor is misaligned on GBoard, I can't type spaces in SwiftKey, and it is impossible to drag-select text in either one. Do I need an Android native field? Right now I'm just using LC fields. 2. The slider widget does not allow dragging the round indicator button. I can tap the bar to get an approximate setting but fine tuning with the slider button is impossible. Rather than slide, the whole web canvas moves instead. 3. I have some scrolling fields and the default Motif scrollbar looks awful. How do I implement a native browser scroller? Should I use the scripts I use for mobile devices? What's the best way to implement scrolling fields? All in all, everything else works, which is really quite incredible. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Thu Aug 18 16:02:43 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 16:02:43 -0400 Subject: i wonder what other widgets i'm missing In-Reply-To: References: Message-ID: what is curious is the signature widget, at least according to one of the threads i was reading, was out in since 2019, but it never showed up in the list of widgets in my tools palette. reading the thread, it seemed that some people had access to it, then. On Thu, Aug 18, 2022 at 3:06 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Normally the release notes of every Livecode version contains also > information about newly added widgets. > > Regarding the PolyGrid and PolyList widgets. They were first released with > the Megabundle. They were not available before. > The original developer posted a year or so ago in the Livecode FB group > about Polygrid and posted also a link to an sample stack with preview > version of the PolyGrid widget. > The release of the widget was promised for weeks later, but that never > did happen. > > On Mac you can find all in Livecode included widgets in the application > bundle under /contents/Tools/Extensions > Sometimes widgets from Livecode community members are offered in the LC > forums. A nice one btw is the gauge widget from Bernd Niggemann > https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge < > https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge> > > Regards, > Matthias > > > > > Am 18.08.2022 um 03:02 schrieb Mike Kerner via use-livecode < > use-livecode at lists.runrev.com>: > > > > I bought the megabundle and installed the widgets. > > Then I started checking out the signature widget, and discover that some > of > > you have been using it for four years. I didn't even know it existed > before > > today, and I have a Business license (I also had not been aware of the > > polylist/polygrids before the megabundle) > > So now I'm wondering > > a) what other widgets i'm missing > > b) since the widget store is kind of sparse, if there are other places to > > look for LC toys, especially widgets? > > > > -- > > 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 at 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 at 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." From steven.crighton at livecode.com Thu Aug 18 16:19:42 2022 From: steven.crighton at livecode.com (Steven Crighton) Date: Thu, 18 Aug 2022 21:19:42 +0100 Subject: polylist toys In-Reply-To: References: Message-ID: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> Hi Mike I see the issue now. If you were to load this in the latest LiveCode 10 DP you would not get that error (this is why I was not seeing it earlier). LiveCode 10 has an LCB feature that is required for this specific error not to occur. That LCB feature is not present in any LC9 version Steven From MikeKerner at roadrunner.com Thu Aug 18 16:29:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 16:29:06 -0400 Subject: polylist toys In-Reply-To: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> References: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> Message-ID: confirmed. 10 fixes it. On Thu, Aug 18, 2022 at 4:20 PM Steven Crighton via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike > > I see the issue now. If you were to load this in the latest LiveCode 10 DP > you would not get that error (this is why I was not seeing it earlier). > > LiveCode 10 has an LCB feature that is required for this specific error > not to occur. That LCB feature is not present in any LC9 version > > Steven > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From zryip.theslug at gmail.com Thu Aug 18 18:02:51 2022 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 19 Aug 2022 00:02:51 +0200 Subject: [ANN] 1-D Barcode generator Widget 1.0 is looking for Testers Message-ID: Dear LiveCode Users: It has been a long time since I've come with something really new. So, I'm pleased to announce our first widget generating one-dimensional barcodes. Here is the list of the barcodes styles supported: - Code39 - Code128A, Code128B, Code128C - EAN8, EAN13 - UPC-A, UPC-E - ITF As usual to ensure the best quality possible before a final release, we need some help for testing this widget outside of our development environment. Ideally we will be happy to send a beta version to users interested to help. If you have some interest in this new widget and would like to help, feel free to drop me a note. Some more informations about this barcode generator widget are available here: https://www.aslugontheroad.com/41-barcode-generator-widget-1-0-0-ready-for-a-beta-test Best Regards, -- Zryip TheSlug http://www.aslugontheroad.com From alex at tweedly.net Thu Aug 18 18:13:13 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 18 Aug 2022 23:13:13 +0100 Subject: polylist toys In-Reply-To: References: Message-ID: On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > Hi Mike, > > I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. As already confirmed, that problem is fixed in 10. However, the lazy load example still contains bugs due to race conditions, some of which I described in some forum post somewhere (Boy do I hate the forums! Surely there's some way to check what posts I have done myself). Thinking about it more, there are other race conditions which are perhaps more obscure, but more serious. I know it's only an example, and maybe can't be expected to be bulletproof, but as an example of how to do Lazy Loading it is (IMHO) really too naive and simplistic. People expect to take those examples and just use them. The obvious race conditions are: 1. if multiple entries reference the same image, then there is a chance the earlier ones never get properly updated (sURLToIndex[pURL] will have been overwritten by the next call to onlineImage before the image value gets set). 2. if the user (or anything else) resets the dataContent of the widget while there are outstanding "load URL"s, then when the downloadComplete is triggered, it will set the image value for some random new item to the image of the earlier one. 3. And if the one which was wrongly set in case 2 above also happens to be a URL that occurs multiple time (i.e. case 1 above), then that wrongly set image will remain "forever". Alex. From ambassador at fourthworld.com Thu Aug 18 18:25:47 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 18 Aug 2022 15:25:47 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: References: Message-ID: 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 customers have a different printer, try > that OEM driver. The Read Me that came with MetaCard included: "MetaCard is very good at exposing bugs in drivers." It used to annoy me that Raney would ask me to make sure I was using the latest driver available from the manufacturer of whatever device I was having trouble with (displays, printers, etc.). I'd say, "But it doesn't happen with any other software!" And he'd say, "Please check the driver version, and if a newer one doesn't fix it let me know." In nearly every such case since I had that exchange with him in 1999, he was right. Always check driver versions. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu Aug 18 18:29:23 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 18 Aug 2022 15:29:23 -0700 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: References: Message-ID: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> 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 World Systems From skiplondon at gmail.com Thu Aug 18 18:38:39 2022 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 18 Aug 2022 18:38:39 -0400 Subject: Livecode / Github Message-ID: Greetings! Been a while since I have been on this list. Working on a new project and wondering if the backing up of Livecode files to Github was ever implemented and created. I know there was talk of it at one time. I apologize if it has been in place for a while and I am just out of the loop. Actually, I HOPE that is the case! Regards, SKIP From mkoob at rogers.com Thu Aug 18 18:49:32 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 18 Aug 2022 18:49:32 -0400 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> References: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> Message-ID: <2070B206-989F-4155-9A92-1A0688B0C9EA@rogers.com> Hi Richard As far as others here are three I know of. There is the Tree View widget in LiveCode that gives you a hierarchical list. There is an explanation of that widget here: https://livecode.fandom.com/wiki/Tree_view_widget There is a third party product DataTree. https://www.nativesoft.net/products/datatree/ Levure has its own version of the DataGrid, the DataView https://github.com/trevordevore/levurehelper-dataview https://github.com/trevordevore/dataview_demo Martin > On Aug 18, 2022, at 6:29 PM, Richard Gaskin via use-livecode wrote: > > > 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 World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 18 18:50:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 18:50:22 -0400 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> References: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> Message-ID: <0176da5b-374a-78c4-c671-59865221f578@researchware.com> On 8/18/2022 6:29 PM, Richard Gaskin via use-livecode wrote: > > 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? > No list, but I did discover one reason for choosing PolyGrid over DataGrid recently. Large number of columns (such as user generated research data). The DataGrid is a group and so is limited to a total width of all columns of 32767px, or about 327 columns at the default of 100px per column. Exceed this and the data stops displaying. I have tested PolyGrid with 1000 columns without issue. The Datagrid column limit can also be an issue if you are close to the limit and the user resizes 1 or more columns to exceed the total pixel limit (assuming you have column resizing turned on, which it is by default) From mkoob at rogers.com Thu Aug 18 19:03:38 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 18 Aug 2022 19:03:38 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> Hi SKIP Welcome back to the list! There is Levure which I knew of as a third party application framework created by Trevor DeVore but I just did a search for it and I see it now on the LiveCode website described as an App Collaboration Framework. https://livecode.com/products/livecode-platform/levure/ So it must have at some point migrated to the mother ship. I haven’t used it but I have considered migrating my application to it. It works with version control systems as long as you follow its recommendations about how to organize your code into behaviours that are stored in script only stacks which are just text files that a version control system can read (These are somewhat new so depending on when you last used LiveCode they may be new to you.) This was an enhancement that has enabled the use of version control for scripts in a project. It is the binary stacks that versions control systems can’t track so in Levure those are just used for user interface. Hope this helps. Martin > On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode wrote: > > Greetings! > > Been a while since I have been on this list. Working on a new project and > wondering if the backing up of Livecode files to Github was ever > implemented and created. I know there was talk of it at one time. > > I apologize if it has been in place for a while and I am just out of the > loop. Actually, I HOPE that is the case! > > Regards, > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 18 19:20:02 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 19:20:02 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> Message-ID: <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> All, Bug 23886 has been fixed with the latest release of the Summer Bundle widget sets. Download from the store. On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: > BTW the problem of: > the text of widget X > the csvData of widget X > the tsvData of widget X > AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) > the pgText of widget X > ALL not returning the full data for a PolyGrid widget is a confirmed bug: > > See https://quality.livecode.com/show_bug.cgi?id=23886 > > > > On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under >> the entry for the MESSAGE "headerClick" and under the entry to the >> PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" >> returns the data of PolyGrid X as tab delimited, WITHOUT the column >> headers, but ONLY the visible rows. >> >> So, what to use for sorting all the data in a PolyGrid by a >> particular column? >> >> The tsvData of widget X (and csvData, and Text) doesn't seem to work. >> The all seems to only get the visible data (rows). Only the pgData of >> widget return the whole dataset of the PolyGrid. Is this the way >> these properties are supposed to work? >> >> If that is how text, csvData, and tsvData are supposed to work >> (returning only the visible rows), then the sort example in the >> PolyGrid documentation require updating otherwise these properties >> require updating! >> >> >> >> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >>> So, I bought the Summer Bundle. Yes, it is a good deal. >>> >>> In my case it was primarily for the Polygrid widget. Our application >>> uses a Datagrid to display customer research data. The columns >>> headers are text and the left most column ROWs are test and all >>> other cells are numbers. Some customers can have quite large data >>> sets and I have been running into the number of columns (ad a >>> default width of 100px per column) exceeding a GROUPs 32,767px width >>> maximum (about 327-328 columns). At this point the Datagrid just >>> fails - no data is displayed. >>> >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this >>> limit. I have a "test" stack (for Datagrid testing) I converted to >>> the Polygrid and can easily generate 1000 columns x 1000 rows of >>> data and it works. >>> >>> So I guess the answer to bug >>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the >>> PolyGrid" >>> >>> On that note, the Datagrid has 2 features I use in this specific >>> case, user column resizing (built into the Polygrid - Yea!) and >>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >>> have some column sort code for the Polygrid they have written that >>> they might be willing to share? >>> >>> Also, I have filled a Polygrid enhancement request to allow the left >>> column (or the left N columns) to be locked/frozen, so they remain >>> visible when the Polygrid is scrolled horizontally. See >>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >>> benefit from this enhancement, please follow the bug or add a >>> comment to that effect. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Thu Aug 18 19:32:56 2022 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 19 Aug 2022 00:32:56 +0100 Subject: Polylist widget Lazy Loading images example. [was Re: polylist toys] In-Reply-To: References: Message-ID: <56c60308-313d-4518-049a-707e448299b0@tweedly.net> On 18/08/2022 23:13, Alex Tweedly via use-livecode wrote: > > However, the lazy load example still contains bugs due to race conditions Solution: replace the card script with the following .... should fix all the race conditions I can see. > local sURLToIndex > > on onlineImage pIndex, pURL >    put  pIndex &CR after sURLToIndex[pURL] >    load URL pURL  with message "downloadComplete" > end onlineImage > > on downloadComplete pURL, pSatus >   local tURL >   repeat for each line L in sURLToIndex[pURL] >      set the itemPointer of widget "PolyList" to L >      set the subItemPointer of widget "PolyList" to "url" >      put the subitemContent of widget "PolyList" into tURL >      if tURL = pURL then -- still the right URL >         set the subItemPointer of widget "PolyList" to "image" >         set the subitemContent of widget "PolyList" to URL pURL >      end if >   end repeat >   put empty into sURLToIndex[pURL] > end downloadComplete And in the real world, add in cache aging, limit on number of entries, limit on total cache size in bytes, ... Alex. > > 1. if multiple entries reference the same image, then there is a > chance the earlier ones never get properly updated (sURLToIndex[pURL] > will have been overwritten by the next call to onlineImage before the > image value gets set). > > 2. if the user (or anything else) resets the dataContent of the widget > while there are outstanding "load URL"s, then when the > downloadComplete is triggered, it will set the image value for some > random new item to the image of the earlier one. > > 3. And if the one which was wrongly set in case 2 above also happens > to be a URL that occurs multiple time (i.e. case 1 above), then that > wrongly set image will remain "forever". > > From MikeKerner at roadrunner.com Thu Aug 18 20:31:49 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 20:31:49 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> Message-ID: which version is that? 21? On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > All, > > Bug 23886 has been fixed with the latest release of the Summer Bundle > widget sets. Download from the store. > > On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: > > BTW the problem of: > > the text of widget X > > the csvData of widget X > > the tsvData of widget X > > AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) > > the pgText of widget X > > ALL not returning the full data for a PolyGrid widget is a confirmed bug: > > > > See https://quality.livecode.com/show_bug.cgi?id=23886 > > > > > > > > On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: > >> So there is an example of sorting in the PolyGrid documentation under > >> the entry for the MESSAGE "headerClick" and under the entry to the > >> PROPERTY "text" (and in 'the text of me') > >> > >> The example code only sort the visible rows as "the text of widget X" > >> returns the data of PolyGrid X as tab delimited, WITHOUT the column > >> headers, but ONLY the visible rows. > >> > >> So, what to use for sorting all the data in a PolyGrid by a > >> particular column? > >> > >> The tsvData of widget X (and csvData, and Text) doesn't seem to work. > >> The all seems to only get the visible data (rows). Only the pgData of > >> widget return the whole dataset of the PolyGrid. Is this the way > >> these properties are supposed to work? > >> > >> If that is how text, csvData, and tsvData are supposed to work > >> (returning only the visible rows), then the sort example in the > >> PolyGrid documentation require updating otherwise these properties > >> require updating! > >> > >> > >> > >> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > >>> So, I bought the Summer Bundle. Yes, it is a good deal. > >>> > >>> In my case it was primarily for the Polygrid widget. Our application > >>> uses a Datagrid to display customer research data. The columns > >>> headers are text and the left most column ROWs are test and all > >>> other cells are numbers. Some customers can have quite large data > >>> sets and I have been running into the number of columns (ad a > >>> default width of 100px per column) exceeding a GROUPs 32,767px width > >>> maximum (about 327-328 columns). At this point the Datagrid just > >>> fails - no data is displayed. > >>> > >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this > >>> limit. I have a "test" stack (for Datagrid testing) I converted to > >>> the Polygrid and can easily generate 1000 columns x 1000 rows of > >>> data and it works. > >>> > >>> So I guess the answer to bug > >>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the > >>> PolyGrid" > >>> > >>> On that note, the Datagrid has 2 features I use in this specific > >>> case, user column resizing (built into the Polygrid - Yea!) and > >>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone > >>> have some column sort code for the Polygrid they have written that > >>> they might be willing to share? > >>> > >>> Also, I have filled a Polygrid enhancement request to allow the left > >>> column (or the left N columns) to be locked/frozen, so they remain > >>> visible when the Polygrid is scrolled horizontally. See > >>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might > >>> benefit from this enhancement, please follow the bug or add a > >>> comment to that effect. > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 18 20:39:31 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 20:39:31 -0400 Subject: Livecode / Github In-Reply-To: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> References: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> Message-ID: Hey Skip, long time... I don't know if you were around when script-only-stack behaviors came into being, but you can now rip all of the code out of your stacks and happily use vc/git. The stacks themselves are still binary (although several of us have been messing with dumping that paradigm completely, it's less practical than I would have hoped, as of today). Navigator will export every script in a project into behavior stacks, and Monte wrote a stack called "Scriptifier", if memory serves. It's embedded in the LC bundle, and it does the same thing, namely extracting all the scripts out of a project and putting them into .livecodescript text files. Levure is great. I have used it with every project I've worked on for several years, BUT you don't have to use it to go this route. On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi SKIP > > Welcome back to the list! > > There is Levure which I knew of as a third party application framework > created by Trevor DeVore but I just did a search for it and I see it now on > the LiveCode website described as an App Collaboration Framework. > https://livecode.com/products/livecode-platform/levure/ < > https://livecode.com/products/livecode-platform/levure/> So it must have > at some point migrated to the mother ship. > > I haven’t used it but I have considered migrating my application to it. > It works with version control systems as long as you follow its > recommendations about how to organize your code into behaviours that are > stored in script only stacks which are just text files that a version > control system can read (These are somewhat new so depending on when you > last used LiveCode they may be new to you.) This was an enhancement that > has enabled the use of version control for scripts in a project. It is the > binary stacks that versions control systems can’t track so in Levure those > are just used for user interface. > > Hope this helps. > > Martin > > > > On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Greetings! > > > > Been a while since I have been on this list. Working on a new project > and > > wondering if the backing up of Livecode files to Github was ever > > implemented and created. I know there was talk of it at one time. > > > > I apologize if it has been in place for a while and I am just out of the > > loop. Actually, I HOPE that is the case! > > > > Regards, > > > > SKIP > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From paul at researchware.com Thu Aug 18 20:53:12 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 20:53:12 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> Message-ID: <651a0a20-7bdf-46b0-771d-a45a24687835@researchware.com> Yes, Livecode enhancements bundle 1_0_21 (with PolyGrid 1.1.3) On 8/18/2022 8:31 PM, Mike Kerner via use-livecode wrote: > which version is that? 21? > > On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> All, >> >> Bug 23886 has been fixed with the latest release of the Summer Bundle >> widget sets. Download from the store. >> >> On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: >>> BTW the problem of: >>> the text of widget X >>> the csvData of widget X >>> the tsvData of widget X >>> AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) >>> the pgText of widget X >>> ALL not returning the full data for a PolyGrid widget is a confirmed bug: >>> >>> See https://quality.livecode.com/show_bug.cgi?id=23886 >>> >>> >>> >>> On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: >>>> So there is an example of sorting in the PolyGrid documentation under >>>> the entry for the MESSAGE "headerClick" and under the entry to the >>>> PROPERTY "text" (and in 'the text of me') >>>> >>>> The example code only sort the visible rows as "the text of widget X" >>>> returns the data of PolyGrid X as tab delimited, WITHOUT the column >>>> headers, but ONLY the visible rows. >>>> >>>> So, what to use for sorting all the data in a PolyGrid by a >>>> particular column? >>>> >>>> The tsvData of widget X (and csvData, and Text) doesn't seem to work. >>>> The all seems to only get the visible data (rows). Only the pgData of >>>> widget return the whole dataset of the PolyGrid. Is this the way >>>> these properties are supposed to work? >>>> >>>> If that is how text, csvData, and tsvData are supposed to work >>>> (returning only the visible rows), then the sort example in the >>>> PolyGrid documentation require updating otherwise these properties >>>> require updating! >>>> >>>> >>>> >>>> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >>>>> So, I bought the Summer Bundle. Yes, it is a good deal. >>>>> >>>>> In my case it was primarily for the Polygrid widget. Our application >>>>> uses a Datagrid to display customer research data. The columns >>>>> headers are text and the left most column ROWs are test and all >>>>> other cells are numbers. Some customers can have quite large data >>>>> sets and I have been running into the number of columns (ad a >>>>> default width of 100px per column) exceeding a GROUPs 32,767px width >>>>> maximum (about 327-328 columns). At this point the Datagrid just >>>>> fails - no data is displayed. >>>>> >>>>> I can now attest that a Polygrid (under LC 9.6.8) does not have this >>>>> limit. I have a "test" stack (for Datagrid testing) I converted to >>>>> the Polygrid and can easily generate 1000 columns x 1000 rows of >>>>> data and it works. >>>>> >>>>> So I guess the answer to bug >>>>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the >>>>> PolyGrid" >>>>> >>>>> On that note, the Datagrid has 2 features I use in this specific >>>>> case, user column resizing (built into the Polygrid - Yea!) and >>>>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >>>>> have some column sort code for the Polygrid they have written that >>>>> they might be willing to share? >>>>> >>>>> Also, I have filled a Polygrid enhancement request to allow the left >>>>> column (or the left N columns) to be locked/frozen, so they remain >>>>> visible when the Polygrid is scrolled horizontally. See >>>>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >>>>> benefit from this enhancement, please follow the bug or add a >>>>> comment to that effect. >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From sean at pidigital.co.uk Fri Aug 19 01:04:55 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 19 Aug 2022 06:04:55 +0100 Subject: Livecode / Github In-Reply-To: References: Message-ID: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> I tried scriptifier and it broke stuff so just be careful with it and check its output. Sean > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode wrote: > > Hey Skip, long time... > I don't know if you were around when script-only-stack behaviors came into > being, but you can now rip all of the code out of your stacks and happily > use vc/git. The stacks themselves are still binary (although several of us > have been messing with dumping that paradigm completely, it's less > practical than I would have hoped, as of today). > Navigator will export every script in a project into behavior stacks, and > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded > in the LC bundle, and it does the same thing, namely extracting all the > scripts out of a project and putting them into .livecodescript text files. > Levure is great. I have used it with every project I've worked on for > several years, BUT you don't have to use it to go this route. > >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi SKIP >> >> Welcome back to the list! >> >> There is Levure which I knew of as a third party application framework >> created by Trevor DeVore but I just did a search for it and I see it now on >> the LiveCode website described as an App Collaboration Framework. >> https://livecode.com/products/livecode-platform/levure/ < >> https://livecode.com/products/livecode-platform/levure/> So it must have >> at some point migrated to the mother ship. >> >> I haven’t used it but I have considered migrating my application to it. >> It works with version control systems as long as you follow its >> recommendations about how to organize your code into behaviours that are >> stored in script only stacks which are just text files that a version >> control system can read (These are somewhat new so depending on when you >> last used LiveCode they may be new to you.) This was an enhancement that >> has enabled the use of version control for scripts in a project. It is the >> binary stacks that versions control systems can’t track so in Levure those >> are just used for user interface. >> >> Hope this helps. >> >> Martin >> >> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Greetings! >>> >>> Been a while since I have been on this list. Working on a new project >> and >>> wondering if the backing up of Livecode files to Github was ever >>> implemented and created. I know there was talk of it at one time. >>> >>> I apologize if it has been in place for a while and I am just out of the >>> loop. Actually, I HOPE that is the case! >>> >>> Regards, >>> >>> SKIP >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Fri Aug 19 03:39:27 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 09:39:27 +0200 Subject: A few issues with web apps Message-ID: <52A0C209-091B-48AE-969B-50D59E8A2D9A@gmail.com> Hi Jacque, 1. I can’t test on Android, but I doubt an Android native field would solve the problem here, as the platform is Web, thus not really natively Android. The LC web engine doesn’t seem to know where it is running, apart from "in a browser”… But do try putting an Android native field in your test stack and see what happens. I’ll test an iOS field and see what I get. 2. I confirm the slider widget/object looks and functions horribly on iOS and macOS too. See next point. 3. Motif makes most standard LC objects look horrible, but the mothership has promised to get rid of that in future releases (please hurry! :). As to getting scrollers to work, some js seems necessary - see the excellent work by Kangaroo in the forum: https://forums.livecode.com/viewtopic.php?f=120&t=36957 Hopefully that solution can be applied to sliders too. Again, I doubt the native mobile scroller would work, because platform = web. Actually, my next step is anyway to test scroller stuff in my portal - I’ll make sure to try not just fields but also the slider. I’ll be back! :) /Andreas From andreas.bergendal at gmail.com Fri Aug 19 08:52:24 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 14:52:24 +0200 Subject: A few issues with web apps Message-ID: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> Bah, I can only get Kangaroo’s scroller trigger to work if deployed in a separate standalone. No matter how I try to integrate the code in my portal, it just doesn’t trigger. In any case, the code that works in desktop web browsers doesn't work in mobile browsers, so there is still a problem to solve there. Hoping for the mothership to fix (in-field wheel/touch) scrolling natively in coming dp’s… I mean, clicking/touching the actual scrollbar of a field always works, but in a desktop browser you want the mouse wheel scroll to work in fields (Kangaroo’s script does that, sometimes...), and on mobile touching/dragging over a field should scroll it (still unsolved). From merakosp at gmail.com Fri Aug 19 08:55:03 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 15:55:03 +0300 Subject: polylist toys In-Reply-To: References: Message-ID: Hello, Thank you all for the useful comments. I *think* the LCB feature in LC 10 Steven mentioned is the "is valid" operator, that returns a boolean value indicating whether or not the image data is valid. Also, note that in the upcoming releases of LC 10 we will add syntax for checking if a file/directory exists, so we could check not only image validity but also image existence in the first place. BTW, we have found a workaround for allowing this stack (lazy image example) to work in LC 9 as well. The updated bundle will probably appear in your account area in the next couple of days. Kind regards, Panos -- On Fri, 19 Aug 2022 at 01:13, Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > > On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > > Hi Mike, > > > > I just tested the lazy load example and hit populate and clicked around > etc and could not trigger an error. > > As already confirmed, that problem is fixed in 10. > > However, the lazy load example still contains bugs due to race > conditions, some of which I described in some forum post somewhere (Boy > do I hate the forums! Surely there's some way to check what posts I have > done myself). > > Thinking about it more, there are other race conditions which are > perhaps more obscure, but more serious. I know it's only an example, and > maybe can't be expected to be bulletproof, but as an example of how to > do Lazy Loading it is (IMHO) really too naive and simplistic. People > expect to take those examples and just use them. > > The obvious race conditions are: > > 1. if multiple entries reference the same image, then there is a chance > the earlier ones never get properly updated (sURLToIndex[pURL] will have > been overwritten by the next call to onlineImage before the image value > gets set). > > 2. if the user (or anything else) resets the dataContent of the widget > while there are outstanding "load URL"s, then when the downloadComplete > is triggered, it will set the image value for some random new item to > the image of the earlier one. > > 3. And if the one which was wrongly set in case 2 above also happens to > be a URL that occurs multiple time (i.e. case 1 above), then that > wrongly set image will remain "forever". > > Alex. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri Aug 19 08:58:19 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 15:58:19 +0300 Subject: A few issues with web apps In-Reply-To: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> References: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> Message-ID: Hello Andreas, To use Kangaroo's sample stack as is ( https://forums.livecode.com/viewtopic.php?f=120&t=36957) you have to tweak the custom standalone.html that is included in the Copy Files section and replace "" at line 213 with the correct version of LC 10 you're using, I guess in this case "" Cheers, Panos -- On Fri, 19 Aug 2022 at 15:53, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Bah, I can only get Kangaroo’s scroller trigger to work if deployed in a > separate standalone. No matter how I try to integrate the code in my > portal, it just doesn’t trigger. > > In any case, the code that works in desktop web browsers doesn't work in > mobile browsers, so there is still a problem to solve there. Hoping for the > mothership to fix (in-field wheel/touch) scrolling natively in coming dp’s… > > I mean, clicking/touching the actual scrollbar of a field always works, > but in a desktop browser you want the mouse wheel scroll to work in fields > (Kangaroo’s script does that, sometimes...), and on mobile > touching/dragging over a field should scroll it (still unsolved). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andreas.bergendal at gmail.com Fri Aug 19 09:21:15 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 15:21:15 +0200 Subject: A few issues with web apps Message-ID: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Thanks for the hint, Panos - that is useful to mention for those who want to try it. However, that is not my problem - I’ve already done that! Kangaroo’s stack works as advertised, as is (with dp-4 mod): https://wheninspace.com/test/WebScrollField.html But when I try to use the code, either like in the original, where it is inserted by an LC script in preOpenStack, or by extracting the actual js and putting it into the html file beforehand, it just doesn’t trigger. I get no error message, js or LC, it just does nothing. Actually, it was the same with the ”Meeting space” demo, which has a slightly different scroll wheel script. At first, I took both the resize js and the scroll js from there, but only the resize part works for me. It’s strange since my portal solution apparently catches resize events and passes them on to topStack, but fails to catch/pass scroll events… /Andreas From MikeKerner at roadrunner.com Fri Aug 19 10:41:36 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 19 Aug 2022 10:41:36 -0400 Subject: polylist toys In-Reply-To: References: Message-ID: while we're on the topic, i was just having a conversation off-list and it reminded me: we really should do another lcb class. i looked at lcb a couple of times, messed with it, and then said "meh", and moved on. On Fri, Aug 19, 2022 at 8:56 AM panagiotis m via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > Thank you all for the useful comments. > > I *think* the LCB feature in LC 10 Steven mentioned is the "is > valid" operator, that returns a boolean value indicating whether or not the > image data is valid. > Also, note that in the upcoming releases of LC 10 we will add syntax for > checking if a file/directory exists, so we could check not only image > validity but also image existence in the first place. > > BTW, we have found a workaround for allowing this stack (lazy image > example) to work in LC 9 as well. The updated bundle will probably appear > in your account area in the next couple of days. > > Kind regards, > Panos > -- > > On Fri, 19 Aug 2022 at 01:13, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > > > Hi Mike, > > > > > > I just tested the lazy load example and hit populate and clicked around > > etc and could not trigger an error. > > > > As already confirmed, that problem is fixed in 10. > > > > However, the lazy load example still contains bugs due to race > > conditions, some of which I described in some forum post somewhere (Boy > > do I hate the forums! Surely there's some way to check what posts I have > > done myself). > > > > Thinking about it more, there are other race conditions which are > > perhaps more obscure, but more serious. I know it's only an example, and > > maybe can't be expected to be bulletproof, but as an example of how to > > do Lazy Loading it is (IMHO) really too naive and simplistic. People > > expect to take those examples and just use them. > > > > The obvious race conditions are: > > > > 1. if multiple entries reference the same image, then there is a chance > > the earlier ones never get properly updated (sURLToIndex[pURL] will have > > been overwritten by the next call to onlineImage before the image value > > gets set). > > > > 2. if the user (or anything else) resets the dataContent of the widget > > while there are outstanding "load URL"s, then when the downloadComplete > > is triggered, it will set the image value for some random new item to > > the image of the earlier one. > > > > 3. And if the one which was wrongly set in case 2 above also happens to > > be a URL that occurs multiple time (i.e. case 1 above), then that > > wrongly set image will remain "forever". > > > > Alex. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From merakosp at gmail.com Fri Aug 19 11:00:41 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 18:00:41 +0300 Subject: A few issues with web apps In-Reply-To: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> References: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Message-ID: Hello all, BTW, I just wrote a lesson on how to scroll a LC text field on Web using : https://lessons.livecode.com/m/2592/l/1595736-scrolling-a-livecode-text-field-on-web-using-javascript Cheers, Panos -- On Fri, 19 Aug 2022 at 16:22, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for the hint, Panos - that is useful to mention for those who want > to try it. > However, that is not my problem - I’ve already done that! > > Kangaroo’s stack works as advertised, as is (with dp-4 mod): > https://wheninspace.com/test/WebScrollField.html < > https://wheninspace.com/test/WebScrollField.html> > > But when I try to use the code, either like in the original, where it is > inserted by an LC script in preOpenStack, or by extracting the actual js > and putting it into the html file beforehand, it just doesn’t trigger. I > get no error message, js or LC, it just does nothing. > > Actually, it was the same with the ”Meeting space” demo, which has a > slightly different scroll wheel script. At first, I took both the resize js > and the scroll js from there, but only the resize part works for me. It’s > strange since my portal solution apparently catches resize events and > passes them on to topStack, but fails to catch/pass scroll events… > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Aug 19 11:16:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 19 Aug 2022 10:16:55 -0500 Subject: A few issues with web apps In-Reply-To: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> References: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Message-ID: <182b6adba58.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I just tried the kangaroo example on your web site using my Android tablet. It behaves just like my slider widget. I can tap in the scrollbar to get the field scroll to jump but the indicator can't be moved. When I try, the whole canvas moves instead. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 19, 2022 8:23:25 AM Andreas Bergendal via use-livecode wrote: > Thanks for the hint, Panos - that is useful to mention for those who want > to try it. > However, that is not my problem - Ive already done that! > > Kangaroos stack works as advertised, as is (with dp-4 mod): > https://wheninspace.com/test/WebScrollField.html > > > But when I try to use the code, either like in the original, where it is > inserted by an LC script in preOpenStack, or by extracting the actual js > and putting it into the html file beforehand, it just doesnt trigger. I > get no error message, js or LC, it just does nothing. > > Actually, it was the same with the Meeting space demo, which has a > slightly different scroll wheel script. At first, I took both the resize js > and the scroll js from there, but only the resize part works for me. Its > strange since my portal solution apparently catches resize events and > passes them on to topStack, but fails to catch/pass scroll events > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Aug 19 13:16:37 2022 From: alex at tweedly.net (Tweedly) Date: Fri, 19 Aug 2022 18:16:37 +0100 Subject: A few issues with web apps In-Reply-To: References: Message-ID: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> > On 19 Aug 2022, at 16:01, panagiotis m via use-livecode wrote: > > Hello all, > > BTW, I just wrote a lesson on how to scroll a LC text field on Web using > : >> Thank you. But at the risk of sounding ungrateful - please don’t. Please just make basic functionality like resizing, scrolling, etc. Work properly and nicely out of the box. Alex. From paul at researchware.com Fri Aug 19 17:09:39 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 17:09:39 -0400 Subject: Livecode performance problem Message-ID: I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) I need to combine the data - frequently - into a form that look like: For the number of lines in the set of fields. Currently I do this as follows: put empty into vCombined put fld A into v1 put fld B into v2 put fld C into v3 put fld D into v4 repeat with i=1 to the number of lines in v1   put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined end repeat I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) Thank you for any pointers in advance, Paul Dupuis Researchware From bobsneidar at iotecdigital.com Fri Aug 19 18:07:52 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Aug 2022 22:07:52 +0000 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Off the top of my head: split v1 by tab split v2 by tab split v3 by tab split v4 by tab put the keys of v1 into tKeyList sort tKeyList ascending numeric repeat for each line tKey in tKeyList put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & v4 [tKey] & cr after tCombined end repeat Not sure if this will be faster, but every time you refer to a line of a string the engine has to parse out where that line is from the beginning. Parsing times will increase exponentially (is that the right term?) the more lines you are parsing in both the source strings AND the destination string. But arrays are indexed memory locations so the engine knows exactly where every bit of text is. And putting something after a string does not have to parse to find the end, the engine knows where that is in memory. It might be even faster though if you build an array as output and then use the combine command to convert it all at once to a string. I am assuming of course that splitting does not put lines of text in random order in the array. Arrays can be dicey that way. Bob S > On Aug 19, 2022, at 14:09 , Paul Dupuis via use-livecode wrote: > > I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > > > For the number of lines in the set of fields. Currently I do this as follows: > > put empty into vCombined > put fld A into v1 > put fld B into v2 > put fld C into v3 > put fld D into v4 > repeat with i=1 to the number of lines in v1 > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined > end repeat > > I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop > > My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? > > This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) > > Thank you for any pointers in advance, > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 19 18:13:04 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 19 Aug 2022 18:13:04 -0400 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <2C1E62C0-0048-4841-AC72-6BFAC56C9A35@milby7.com> First optimization would be to put … & cr after vCombined and then delete the trailing from when done. Sent from my iPhone > On Aug 19, 2022, at 5:11 PM, Paul Dupuis via use-livecode wrote: > > I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > > > For the number of lines in the set of fields. Currently I do this as follows: > > put empty into vCombined > put fld A into v1 > put fld B into v2 > put fld C into v3 > put fld D into v4 > repeat with i=1 to the number of lines in v1 > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined > end repeat > > I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop > > My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? > > This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) > > Thank you for any pointers in advance, > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 19 18:25:48 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 19 Aug 2022 18:25:48 -0400 Subject: Livecode performance problem In-Reply-To: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: Based on what Bob said, here is my version of that handler: on mouseUp local tA, tB, tC, tD, tAll, tStart, tEnd put fld "A" into tA put fld "B" into tB put fld "C" into tC put fld "D" into tD -- put the milliseconds into tStart split tA by cr split tB by cr split tC by cr split tD by cr repeat with i=1 to the number of lines of the keys of tA put i & tab & tA[i] & tab & tB[i] & tab & tC[i] & tab & tD[i] & cr after tAll end repeat delete the last char of tAll put the milliseconds into tEnd put (tEnd - tStart) & cr & tAll into fld "result" end mouseUp I used very short lines, but this way was 3/4ms; my initial method was 6/7ms; your original method was 15/16ms. On Fri, Aug 19, 2022 at 6:09 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Off the top of my head: > > split v1 by tab > split v2 by tab > split v3 by tab > split v4 by tab > > put the keys of v1 into tKeyList > sort tKeyList ascending numeric > > repeat for each line tKey in tKeyList > put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & > v4 [tKey] & cr after tCombined > end repeat > > Not sure if this will be faster, but every time you refer to a line of a > string the engine has to parse out where that line is from the beginning. > Parsing times will increase exponentially (is that the right term?) the > more lines you are parsing in both the source strings AND the destination > string. > > But arrays are indexed memory locations so the engine knows exactly where > every bit of text is. And putting something after a string does not have to > parse to find the end, the engine knows where that is in memory. It might > be even faster though if you build an array as output and then use the > combine command to convert it all at once to a string. > > I am assuming of course that splitting does not put lines of text in > random order in the array. Arrays can be dicey that way. > > Bob S > > > > > On Aug 19, 2022, at 14:09 , Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have a set of fields, call them A, B, C, and D. Each has the same > number of lines. Each field has different text (per line) > > > > I need to combine the data - frequently - into a form that look like: > > > > C> > > > > For the number of lines in the set of fields. Currently I do this as > follows: > > > > put empty into vCombined > > put fld A into v1 > > put fld B into v2 > > put fld C into v3 > > put fld D into v4 > > repeat with i=1 to the number of lines in v1 > > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& > line i of v4 into line i of vCombined > > end repeat > > > > I put the field contents into variable before the loop to combine them > as my understanding is variable access is faster than field access in a loop > > > > My question to the Hivemind is: Is there a noticeably faster way to > covert these field to the tab delimited structure as show above than the > code above? > > > > This current takes about 20 seconds for 2000 lines or about a second per > 100 lines (very roughly, I was not using a timer in my code, just my > wristwatch seconds in the IDE debugger between breakpoints) > > > > Thank you for any pointers in advance, > > > > Paul Dupuis > > Researchware > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Fri Aug 19 18:32:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 15:32:37 -0700 Subject: Livecode performance problem In-Reply-To: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: On 8/19/22 15:07, Bob Sneidar via use-livecode wrote: > Off the top of my head: > > split v1 by tab > split v2 by tab > split v3 by tab > split v4 by tab > > put the keys of v1 into tKeyList > sort tKeyList ascending numeric > > repeat for each line tKey in tKeyList > put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & v4 [tKey] & cr after tCombined > end repeat > > Not sure if this will be faster, but every time you refer to a line of a string the engine has to parse out where that line is from the beginning. It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with original code: 320 ms array version: 21 ms put empty into vCombined put fld "A" into v1 put fld "B" into v2 put fld "C" into v3 put fld "D" into v4 split v1 by cr split v2 by cr split v3 by cr split v4 by cr put 1 into i repeat for each element tLine in v1 put i&tab&v1[i]&tab&v2[i]&tab&v3[i]&tab&v4[i]&tab&cr after vCombined add 1 to i end repeat -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Aug 19 19:03:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Aug 2022 23:03:22 +0000 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. That is my understanding at least. Bob S On Aug 19, 2022, at 15:32 , Mark Wieder via use-livecode > wrote: It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with From alex at tweedly.net Fri Aug 19 19:31:00 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:31:00 +0100 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: On 19/08/2022 23:32, Mark Wieder via use-livecode wrote: > > It is indeed faster. Here's what I came up with. I'm not sure why 2000 > lines of text in four fields should take that long, I came up with > > original code: 320 ms > array version: 21 ms > >    put empty into vCombined >    put fld "A" into v1 >    put fld "B" into v2 >    put fld "C" into v3 >    put fld "D" into v4 >    split v1 by cr >    split v2 by cr >    split v3 by cr >    split v4 by cr >    put 1 into i >    repeat for each element tLine in v1 >       put i&tab&v1[i]&tab&v2[i]&tab&v3[i]&tab&v4[i]&tab&cr after > vCombined >       add 1 to i >    end repeat which is already quick enough that any further improvement is mainly academic. But for the record: "repeat for each line " is very efficient for a single variable, o you can avoid one of the four 'split's, and use the line variable to count your loop. >    --   split v1 by cr >    split v2 by cr >    split v3 by cr >    split v4 by cr >    put 1 into i >    repeat for each line tLine in v1 >       put i&tab& tLine &tab& v2[i] &tab& v3[i] &tab& v4[i] & cr after > vCombined >       add 1 to i >    end repeat > to trim about another 15% off the time (for my sample data, 24ms down to 20ms.) (and if you know that one of the four fields typically contains much more text (i.e. longer lines) than the others, you would choose it to not be split). Alex. From ahsoftware at sonic.net Fri Aug 19 19:40:56 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 16:40:56 -0700 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: > to trim about another 15% off the time (for my sample data, 24ms down to > 20ms.) Nice. Note, of course, that we're all going on the assumption that all four fields contain the same number of lines. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Aug 19 19:42:31 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 16:42:31 -0700 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <0e4818fe-4eb3-7d92-b786-aaf55324d931@sonic.net> On 8/19/22 16:03, Bob Sneidar via use-livecode wrote: > It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. My tests were based on 2174 lines of text in each field. Got nowhere near 20 seconds. Or even one. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Fri Aug 19 19:46:54 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:46:54 +0100 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <03b5bb40-b79a-87d2-3eeb-590fd13d5b63@tweedly.net> On 20/08/2022 00:03, Bob Sneidar via use-livecode wrote: > It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. Yes, for all the input strings. For the output string, it's just a "put ... after ...", so there is no need to count or scan the output string; LC already keeps (effectively) a pointer to the end of a string, and optimizes the straightforward extension at the end of a string. Alex. From paul at researchware.com Fri Aug 19 19:50:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 19:50:50 -0400 Subject: Livecode performance problem In-Reply-To: <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> Message-ID: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote: > On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: > >> to trim about another 15% off the time (for my sample data, 24ms down >> to 20ms.) > > Nice. > Note, of course, that we're all going on the assumption that all four > fields contain the same number of lines. > > Thank you all for the example of improving performance over my clunky code. Yes, all the fields contain the same number of lines. 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. So a user driven action of: 1) Add a line (or a few) to the fields 2) repackage data and run a few procedures 3) User repeats starting at step 1 Can become very slow as the number of lines in the fields gets large - as you all have noted! Thank you all again! From alex at tweedly.net Fri Aug 19 19:53:34 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:53:34 +0100 Subject: The use-livecode list. Message-ID: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> I've had a pretty shitty day. A variety of things have happened, or not happened, that made it not one of the good days. So I was not happy, and rather grumpy. (My apologies to Panos for being ungracious in an earlier post - it was meant to be a plea for completeness of the product in preference to more work-arounds - but it came across wrongly. Sorry, Panos). And then, the use-list comes up with a nice, tight, well-defined problem to tackle - and now I can end my day on a puzzle-solving high note, rather than dragging myself off to bed on a downbeat. Thanks again, use-list !! Alex. From paul at researchware.com Fri Aug 19 20:14:19 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 20:14:19 -0400 Subject: The use-livecode list. In-Reply-To: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> References: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> Message-ID: <0b143678-234d-5a3e-ef2b-1940327537f5@researchware.com> No, THANK YOU! On 8/19/2022 7:53 PM, Alex Tweedly via use-livecode wrote: > I've had a pretty shitty day. A variety of things have happened, or > not happened, that made it not one of the good days. > > So I was not happy, and rather grumpy. (My apologies to Panos for > being ungracious in an earlier post - it was meant to be a plea for > completeness of the product in preference to more work-arounds - but > it came across wrongly. Sorry, Panos). > > And then, the use-list comes up with a nice, tight, well-defined > problem to tackle - and now I can end my day on a puzzle-solving high > note, rather than dragging myself off to bed on a downbeat. > > Thanks again, use-list !! > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 19 20:43:17 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 19 Aug 2022 19:43:17 -0500 Subject: The use-livecode list. In-Reply-To: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> References: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> Message-ID: <182b8b44088.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> We did it just for you because we've all been there. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 19, 2022 6:54:47 PM Alex Tweedly via use-livecode wrote: > I've had a pretty shitty day. A variety of things have happened, or not > happened, that made it not one of the good days. > > So I was not happy, and rather grumpy. (My apologies to Panos for being > ungracious in an earlier post - it was meant to be a plea for > completeness of the product in preference to more work-arounds - but it > came across wrongly. Sorry, Panos). > > And then, the use-list comes up with a nice, tight, well-defined problem > to tackle - and now I can end my day on a puzzle-solving high note, > rather than dragging myself off to bed on a downbeat. > > Thanks again, use-list !! > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at livecode.com Sat Aug 20 04:22:35 2022 From: kevin at livecode.com (Kevin Miller) Date: Sat, 20 Aug 2022 09:22:35 +0100 Subject: A few issues with web apps In-Reply-To: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> References: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> Message-ID: Don't worry the goal is for zero workarounds by the time we're ready to ship GM. These things are just there to keep you going in the mean time. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself On 19/08/2022, 18:16, "use-livecode on behalf of Tweedly via use-livecode" wrote: > On 19 Aug 2022, at 16:01, panagiotis m via use-livecode wrote: > > Hello all, > > BTW, I just wrote a lesson on how to scroll a LC text field on Web using > : >> Thank you. But at the risk of sounding ungrateful - please don’t. Please just make basic functionality like resizing, scrolling, etc. Work properly and nicely out of the box. Alex. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dfe4 at cornell.edu Sat Aug 20 13:45:38 2022 From: dfe4 at cornell.edu (David Epstein) Date: Sat, 20 Aug 2022 13:45:38 -0400 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> I didn’t text the speed, but why not put fld A into x[1] put fld B into x[2] put fld C into x[3] put fld D into x[4] combine x by column return x > > I have a set of fields, call them A, B, C, and D. Each has the same > number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > C> From alex at tweedly.net Sat Aug 20 17:59:47 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 22:59:47 +0100 Subject: Livecode performance problem In-Reply-To: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> References: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> Message-ID: <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> I can't answer for anyone else, but for me - because I never thought about it :-) Combine by column - never used it before, so never thought of it. It's significantly faster, roughly 40% improvement over the previous best. Note, the spec requires that each line begins with the line number, so you need to add something like: >    local tmp >    repeat with i = 1 to the number of lines in g1 >       put i &CR after tmp >    end repeat >    put tmp into x[1] > >    put g1 into x[2] >    put g2 into x[3] >    put g3 into x[4] >    put g4 into x[5] and finish off with    combine x by column    put cr after x to fully match the earlier results. Alex. On 20/08/2022 18:45, David Epstein via use-livecode wrote: > I didnt text the speed, but why not > > put fld A into x[1] > put fld B into x[2] > put fld C into x[3] > put fld D into x[4] > combine x by column > return x > >> I have a set of fields, call them A, B, C, and D. Each has the same >> number of lines. Each field has different text (per line) >> >> I need to combine the data - frequently - into a form that look like: >> >> > C> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Aug 20 18:54:30 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 20 Aug 2022 17:54:30 -0500 Subject: A few issues with web apps In-Reply-To: References: Message-ID: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> On 8/18/22 2:52 PM, I wrote: > All in all, everything else works, which is really quite incredible. When I accidentally started replying to Andreas privately instead of to the list (I should pay more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for being so polite about it. So here you go: On desktop browsers, everything works great. On mobile it works pretty well except for text entry and a minor display issue. On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses don't always insert entries. I didn't test on iOS. I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. It tracks the mouse movement and scrolls the field accordingly. That works on desktop but doesn't work on mobile. This matches the behavior of anything draggable: the slider widget button, the buttons in the Population example that use "grab", and the LC field scroller thumb. On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" substack should be bold but displays as plain. On the other hand, the substack does display correctly layered over the mainstack. I had wondered if it would work, and it does. I know this will all get fixed so I'm not worried. This is just an example of where we're at right now for anyone curious. Overall, web deployment is very impressive. I was surprised at how good it is even in an unfinished state. BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened without error. Kudos to Mark Waddingham's attention to backward compatibility. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Aug 20 21:14:46 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 20 Aug 2022 21:14:46 -0400 Subject: Livecode performance problem In-Reply-To: <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> References: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> Message-ID: <5a8ff08e-86c7-2c36-c70e-706e31680360@researchware.com> Thank you! The prior solutions have dramatically reduced the time - the WHOLE analytics process in its entirety because of the slowness of my old code was taking HOURS (like 6-10) - and is now down to 30-35 minutes with the prior solutions. I can't wait to tr the combine by columns method to see how much more (40%! WOW!) it reduced the overall process time further! On 8/20/2022 5:59 PM, Alex Tweedly via use-livecode wrote: > I can't answer for anyone else, but for me - because I never thought > about it :-) > > Combine by column - never used it before, so never thought of it. > > It's significantly faster, roughly 40% improvement over the previous > best. > > Note, the spec requires that each line begins with the line number, so > you need to add something like: > >>    local tmp >>    repeat with i = 1 to the number of lines in g1 >>       put i &CR after tmp >>    end repeat >>    put tmp into x[1] >> >>    put g1 into x[2] >>    put g2 into x[3] >>    put g3 into x[4] >>    put g4 into x[5] > and finish off with > >    combine x by column >    put cr after x > > to fully match the earlier results. > > Alex. > > On 20/08/2022 18:45, David Epstein via use-livecode wrote: >> I didnt text the speed, but why not >> >> put fld A into x[1] >> put fld B into x[2] >> put fld C into x[3] >> put fld D into x[4] >> combine x by column >> return x >> >>> I have a set of fields, call them A, B, C, and D. Each has the same >>> number of lines. Each field has different text (per line) >>> >>> I need to combine the data - frequently - into a form that look like: >>> >>> >> C> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Aug 20 21:43:04 2022 From: dochawk at gmail.com (doc hawk) Date: Sat, 20 Aug 2022 18:43:04 -0700 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <8C1C8F20-658A-4D49-A456-1623F36FBF30@gmail.com> Short version: inserting between is a much slower process than after, as the entire field/string/whatever from the post of insertion has to be moved or otherwise handled. From MikeKerner at roadrunner.com Sun Aug 21 08:45:12 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 08:45:12 -0400 Subject: addIcon issue Message-ID: I have an svg widget that draws correctly, so I'm trying to add it to the library, but addIcon does not seem to be working. After calling addIcon, I try to search for the icon, but it does not appear in the icon picker, and adding it by name does not work, either. Here's the line: get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0 l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18 a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) -- 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." From MikeKerner at roadrunner.com Sun Aug 21 09:26:04 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 09:26:04 -0400 Subject: powerbutton (megabundle) is FUN Message-ID: I bought the megabundle, unsure what to expect from the stuff that comes with it. polylist/polygrid look like they are going to be great. as a tmControls nerd, i'm spoiled for gret-looking buttons with more options to customize them and get them to do all sorts of marvelous things. i think i'm about to switch to powerbutton. these have all the customization options and a few more to boot and they respond faster, because they are widgets instead of groups. this is an underrated widget. -- 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." From prothero at earthlearningsolutions.org Sun Aug 21 11:08:15 2022 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sun, 21 Aug 2022 08:08:15 -0700 Subject: A few issues with web apps In-Reply-To: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> References: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> Message-ID: <973017A5-22AD-4D45-8D46-25983EF0C9DD@earthlearningsolutions.org> Jacqueline, Thanks for the great status report on Livecode web deployment. From my perspective, it's finally starting to look promising. The first thing I noticed was the speed of bringing up the first page. I'm looking forward to working with the web deployment when it gets far enough in its development. Best, Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Aug 20, 2022, at 3:56 PM, J. Landman Gay via use-livecode wrote: > > On 8/18/22 2:52 PM, I wrote: >> All in all, everything else works, which is really quite incredible. > > When I accidentally started replying to Andreas privately instead of to the list (I should pay more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for being so polite about it. > > So here you go: > > > > On desktop browsers, everything works great. On mobile it works pretty well except for text entry and a minor display issue. > > On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses don't always insert entries. I didn't test on iOS. > > I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. It tracks the mouse movement and scrolls the field accordingly. That works on desktop but doesn't work on mobile. This matches the behavior of anything draggable: the slider widget button, the buttons in the Population example that use "grab", and the LC field scroller thumb. > > On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" substack should be bold but displays as plain. On the other hand, the substack does display correctly layered over the mainstack. I had wondered if it would work, and it does. > > I know this will all get fixed so I'm not worried. This is just an example of where we're at right now for anyone curious. Overall, web deployment is very impressive. I was surprised at how good it is even in an unfinished state. > > BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened without error. Kudos to Mark Waddingham's attention to backward compatibility. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Aug 21 13:20:27 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 21 Aug 2022 12:20:27 -0500 Subject: addIcon issue In-Reply-To: References: Message-ID: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't think you can add to the default icon family. The docs say that if you haven't specified a family then the icon goes into one named "custom". So see what you get when you run iconFamilies() and if "custom" is in there then set the family using setCurrentIconFamily("custom"). If you prefer, you can create your own family with its own name with addIconFamily. In any case you have to set the current family before you can use its icons. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode wrote: > I have an svg widget that draws correctly, so I'm trying to add it to the > library, but addIcon does not seem to be working. > After calling addIcon, I try to search for the icon, but it does not appear > in the icon picker, and adding it by name does not work, either. > Here's the line: > get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0 > l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18 > a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0 > 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Aug 21 13:56:38 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 13:56:38 -0400 Subject: addIcon issue In-Reply-To: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: reading through the library, it appears that you are correct - you cannot add to the default family. changing the family using setCurrentIconFamily("custom") does cause the picker to show those icons. if i want to select one for assignment to a widget, is that the only way to do it? entering custom/test does not seem to work. instead i have to set the family and then choose the icon On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't think you can add to the default icon family. The docs say that if > you haven't specified a family then the icon goes into one named "custom". > So see what you get when you run iconFamilies() and if "custom" is in > there > then set the family using setCurrentIconFamily("custom"). > > If you prefer, you can create your own family with its own name with > addIconFamily. In any case you have to set the current family before you > can use its icons. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode > wrote: > > > I have an svg widget that draws correctly, so I'm trying to add it to the > > library, but addIcon does not seem to be working. > > After calling addIcon, I try to search for the icon, but it does not > appear > > in the icon picker, and adding it by name does not work, either. > > Here's the line: > > get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 > 1.41,0 > > l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h > 18 > > a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A > 5,5 0 > > 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > > > > > > -- > > 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 at 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 at 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." From brian at milby7.com Sun Aug 21 14:41:36 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 21 Aug 2022 14:41:36 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon families. You should be able to set the icon using just the short name. The icon svg library will check the current library first and then cycle through all loaded families looking for a match. If there is a collision then you don’t know which one will get used (probably the current family and then the rest in order of creation). Here is a version with a large number of icons included: https://milby.us/lc/SvgIconTool.zip I worked on the family code and doubt much has changed since the source was closed. Version number matches GitHub in the rc1 of 9.6.9 currently. Thanks, Brian Sent from my iPhone > On Aug 21, 2022, at 1:58 PM, Mike Kerner via use-livecode wrote: > > reading through the library, it appears that you are correct - you cannot > add to the default family. > changing the family using setCurrentIconFamily("custom") does cause the > picker to show those icons. if i want to select one for assignment to a > widget, is that the only way to do it? entering custom/test does not seem > to work. instead i have to set the family and then choose the icon > >> On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I don't think you can add to the default icon family. The docs say that if >> you haven't specified a family then the icon goes into one named "custom". >> So see what you get when you run iconFamilies() and if "custom" is in >> there >> then set the family using setCurrentIconFamily("custom"). >> >> If you prefer, you can create your own family with its own name with >> addIconFamily. In any case you have to set the current family before you >> can use its icons. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode >> wrote: >> >>> I have an svg widget that draws correctly, so I'm trying to add it to the >>> library, but addIcon does not seem to be working. >>> After calling addIcon, I try to search for the icon, but it does not >> appear >>> in the icon picker, and adding it by name does not work, either. >>> Here's the line: >>> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 >> 1.41,0 >>> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h >> 18 >>> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A >> 5,5 0 >>> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) >>> >>> >>> -- >>> 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sun Aug 21 14:58:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 21 Aug 2022 20:58:16 +0200 Subject: Livecode Builder -how t write to a file? Message-ID: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Hi. From time to time and when time allows i am trying to get used to with Livecode Builder. For debugging i would like my lcb script to write some debug code to a file, but i really do not see how this can be done. I found the experimental com.livecode.file module and the operator 'the filecontents of file...', but unfortunately no script example. Does anyone know, if and how i can write some data to an external file on hard disk in LCB? Regards, Matthias From MikeKerner at roadrunner.com Sun Aug 21 16:30:09 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 16:30:09 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: thanks, brian, i'll have a look. i was reading through the library and the filter code. ralph proposed adding a family menu (or a means for either specifying the family or showing all families) to the filter. i think that would be a good idea. On Sun, Aug 21, 2022 at 2:42 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon > families. You should be able to set the icon using just the short name. > The icon svg library will check the current library first and then cycle > through all loaded families looking for a match. If there is a collision > then you don’t know which one will get used (probably the current family > and then the rest in order of creation). > > Here is a version with a large number of icons included: > https://milby.us/lc/SvgIconTool.zip > > I worked on the family code and doubt much has changed since the source > was closed. Version number matches GitHub in the rc1 of 9.6.9 currently. > > Thanks, > Brian > > Sent from my iPhone > > > On Aug 21, 2022, at 1:58 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > reading through the library, it appears that you are correct - you > cannot > > add to the default family. > > changing the family using setCurrentIconFamily("custom") does cause the > > picker to show those icons. if i want to select one for assignment to a > > widget, is that the only way to do it? entering custom/test does not seem > > to work. instead i have to set the family and then choose the icon > > > >> On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> I don't think you can add to the default icon family. The docs say that > if > >> you haven't specified a family then the icon goes into one named > "custom". > >> So see what you get when you run iconFamilies() and if "custom" is in > >> there > >> then set the family using setCurrentIconFamily("custom"). > >> > >> If you prefer, you can create your own family with its own name with > >> addIconFamily. In any case you have to set the current family before you > >> can use its icons. > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode > >> wrote: > >> > >>> I have an svg widget that draws correctly, so I'm trying to add it to > the > >>> library, but addIcon does not seem to be working. > >>> After calling addIcon, I try to search for the icon, but it does not > >> appear > >>> in the icon picker, and adding it by name does not work, either. > >>> Here's the line: > >>> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 > >> 1.41,0 > >>> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 > h > >> 18 > >>> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A > >> 5,5 0 > >>> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > >>> > >>> > >>> -- > >>> 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 at 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 at 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 at 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 at 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." From marksmithhfx at gmail.com Sun Aug 21 17:36:28 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 21 Aug 2022 22:36:28 +0100 Subject: Livecode performance problem In-Reply-To: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> Message-ID: Wow, what a great example. I decided to work through the various suggestions just so I could get a better grip on some of LC’s more sophisticated data handling commands. My original run using Paul’s example was 8 seconds (2000 lines per field, 1100 chars per line) Applying Brian’s simple suggestions of using “after” instead of “into” cut that in half (4 seconds) Splitting the lines and using an array drove the time down to 23 milliseconds. Amazing! Between those 2 that's 8000 msec -> 23 msec or about 350 times faster. I will definitely pay more attention to “split” in future. Great discussion. Mark > On 20 Aug 2022, at 12:50 am, Paul Dupuis via use-livecode wrote: > > On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote: >> On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: >> >>> to trim about another 15% off the time (for my sample data, 24ms down to 20ms.) >> >> Nice. >> Note, of course, that we're all going on the assumption that all four fields contain the same number of lines. >> >> > > Thank you all for the example of improving performance over my clunky code. > > Yes, all the fields contain the same number of lines. > > 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. > > So a user driven action of: > > 1) Add a line (or a few) to the fields > 2) repackage data and run a few procedures > 3) User repeats starting at step 1 > > Can become very slow as the number of lines in the fields gets large - as you all have noted! > > Thank you all again! > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From zryip.theslug at gmail.com Sun Aug 21 18:38:17 2022 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 22 Aug 2022 00:38:17 +0200 Subject: Livecode Builder -how t write to a file? In-Reply-To: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> References: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Message-ID: Dear Matthias, I do not have the answer but a possible workaround. For debugging purposes I'm using the post message. In LCB add this handler: private handler throwWidgetError(in pError as String) returns nothing post "catchWidgetError" with [pError] end handler Call it by using: throwWidgetError("Something to log") And catch it by adding this handler into the card script where you test your widget: *command* catchWidgetError pTheError * put* pTheError & cr after msg *end* catchWidgetError This might be verbose as the message box will take the focus, and the widget will refresh, so logging in a file instead of the message box would be a possibility. *command* catchWidgetError pTheError * write *pTheError to file "xxx" *end* catchWidgetError On Sun, 21 Aug 2022 at 20:59, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > From time to time and when time allows i am trying to get used to with > Livecode Builder. > For debugging i would like my lcb script to write some debug code to a > file, but i really do not see how this can be done. > I found the experimental com.livecode.file module and the operator 'the > filecontents of file...', but unfortunately no script example. > > Does anyone know, if and how i can write some data to an external file on > hard disk in LCB? > > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Zryip TheSlug http://www.aslugontheroad.com From ambassador at fourthworld.com Sun Aug 21 21:28:36 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 21 Aug 2022 18:28:36 -0700 Subject: Livecode performance problem In-Reply-To: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> References: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> Message-ID: <8bc119d6-1455-f6f0-000b-ba149b88b00a@fourthworld.com> 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. > > So a user driven action of: > > 1) Add a line (or a few) to the fields > 2) repackage data and run a few procedures > 3) User repeats starting at step 1 > > Can become very slow as the number of lines in the fields gets large > - as you all have noted! I'd just bite the bullet and replace those columnar fields with one delimited field. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Mon Aug 22 18:45:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 23 Aug 2022 00:45:34 +0200 Subject: Livecode Builder -how t write to a file? In-Reply-To: References: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Message-ID: <5E7A5A08-0B06-46D4-8A97-74F057C834D5@m-r-d.de> Thanks Zryip, i think that is a good workaround. ;) Thanks. Regards, Matthias > Am 22.08.2022 um 00:38 schrieb zryip theSlug via use-livecode : > > Dear Matthias, > > I do not have the answer but a possible workaround. > > For debugging purposes I'm using the post message. > > In LCB add this handler: > private handler throwWidgetError(in pError as String) returns nothing > post "catchWidgetError" with [pError] > end handler > > Call it by using: > throwWidgetError("Something to log") > > And catch it by adding this handler into the card script where you test > your widget: > > *command* catchWidgetError pTheError > * put* pTheError & cr after msg > *end* catchWidgetError > > This might be verbose as the message box will take the focus, and the > widget will refresh, so logging in a file instead of the message box would > be a possibility. > > *command* catchWidgetError pTheError > * write *pTheError to file "xxx" > *end* catchWidgetError > > On Sun, 21 Aug 2022 at 20:59, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi. >> >> From time to time and when time allows i am trying to get used to with >> Livecode Builder. >> For debugging i would like my lcb script to write some debug code to a >> file, but i really do not see how this can be done. >> I found the experimental com.livecode.file module and the operator 'the >> filecontents of file...', but unfortunately no script example. >> >> Does anyone know, if and how i can write some data to an external file on >> hard disk in LCB? >> >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Zryip TheSlug > http://www.aslugontheroad.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From francois.chaplais at mines-paristech.fr Tue Aug 23 10:31:46 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Tue, 23 Aug 2022 16:31:46 +0200 Subject: case sensitivity of the keys in an associative array Message-ID: Dear list From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. For instance, I may define theArray[« Ddt »] If I define now theArray[« ddt »] this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) Is this behavior confirmed? Best regards François From alex at tweedly.net Tue Aug 23 10:45:22 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 23 Aug 2022 15:45:22 +0100 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: Not quite. It is dependent on the value of "casesensitive". If you do set the casesensitve to true then the keys are different (i.e. Ddt  would NOT replace the existing value for ddt) but if it is false (which it would be by default) thne DDt and ddt are teh same. [Only tested on 10.0.0 DP4 - but I think that's how it's always been] Alex. > on mouseup >    local tA >    put 1 into tA["a"] >    put "1" && the keys of tA &CR after msg >    set the casesensitive to true >    put 2 into tA["A"] >    put "2" && tA["a"] && the keys of tA &CR after msg > end mouseup On 23/08/2022 15:31, francois.chaplais via use-livecode wrote: > Dear list > > From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. > > For instance, I may define > theArray[ Ddt ] > > If I define now > theArray[ ddt ] > > this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) > > Is this behavior confirmed? > > Best regards > Franois > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Aug 23 10:46:46 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 23 Aug 2022 16:46:46 +0200 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: Bonjour François, > Am 23.08.2022 um 16:31 schrieb francois.chaplais via use-livecode : > > Dear list > > From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. > > For instance, I may define > theArray[« Ddt »] > > If I define now > theArray[« ddt »] > > this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) > > Is this behavior confirmed? yes, taht is correct bahvior! But you can force case sensitivity in LC: ... set the casesensitive to TRUE answer theArray[« Ddt »] ## -> NADA! answer theArray[« ddt »] ## Will do what you want. ... > Best regards > François Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From francois.chaplais at mines-paristech.fr Tue Aug 23 11:00:35 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Tue, 23 Aug 2022 17:00:35 +0200 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: <897B0044-96B7-40EF-8BC9-8A7E11BE5DAD@mines-paristech.fr> Thanks to you all! This list is a treasury. Chers, François > Le 23 août 2022 à 16:46, Klaus major-k via use-livecode a écrit : > > Bonjour François, > >> Am 23.08.2022 um 16:31 schrieb francois.chaplais via use-livecode : >> >> Dear list >> >> From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. >> >> For instance, I may define >> theArray[« Ddt »] >> >> If I define now >> theArray[« ddt »] >> >> this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) >> >> Is this behavior confirmed? > > yes, taht is correct bahvior! > > But you can force case sensitivity in LC: > ... > set the casesensitive to TRUE > answer theArray[« Ddt »] > ## -> NADA! > > answer theArray[« ddt »] > ## Will do what you want. > ... > >> Best regards >> François > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 24 23:22:25 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 24 Aug 2022 23:22:25 -0400 Subject: Svg Icon Tool Message-ID: Greetings list! A few years ago I published a tool that allowed easy creation of the Icon Families that I had been working on to integrate into the IDE. (The code had been started, but users had no way to leverage the planned capability at the time.) At that time I simply posted it to Sample Stacks and a copy on my web server with more icons. I had been wanting to get it onto GitHub for quite some time, but never got around to it. In another thread I mentioned the tool and Mike asked if it was available on GitHub. That was just the sort of thing I needed to get it posted. (Thanks Mike!) https://github.com/bwmilby/SvgIconTool The most significant change that I've made with this version is that it will keep the icon families and prefs stored as separate files instead of inside the stack. This will make things much easier since plugins start as a palette and you have to toplevel it to save (which is no longer necessary). If you use the previous version, you only really need to worry about any custom families that you imported. All of the ones that I provided earlier are available in the repository and can be loaded in bulk by dragging them onto the library card. I welcome feedback and bug reports on the GitHub repository. Thanks and have a blessed day! Brian Milby From matthias_livecode_150811 at m-r-d.de Thu Aug 25 07:06:31 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 13:06:31 +0200 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Thank you very much for this great tool. Maybe you add some information to the readme.md what files/folders from the zip have to be copied to the plugins folder. Regards, Matthias > Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode : > > Greetings list! > > A few years ago I published a tool that allowed easy creation of the Icon > Families that I had been working on to integrate into the IDE. (The code > had been started, but users had no way to leverage the planned capability > at the time.) At that time I simply posted it to Sample Stacks and a copy > on my web server with more icons. > > I had been wanting to get it onto GitHub for quite some time, but never got > around to it. In another thread I mentioned the tool and Mike asked if it > was available on GitHub. That was just the sort of thing I needed to get > it posted. (Thanks Mike!) > > https://github.com/bwmilby/SvgIconTool > > The most significant change that I've made with this version is that it > will keep the icon families and prefs stored as separate files instead of > inside the stack. This will make things much easier since plugins start as > a palette and you have to toplevel it to save (which is no longer > necessary). If you use the previous version, you only really need to worry > about any custom families that you imported. All of the ones that I > provided earlier are available in the repository and can be loaded in bulk > by dragging them onto the library card. > > I welcome feedback and bug reports on the GitHub repository. > > Thanks and have a blessed day! > Brian Milby > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Thu Aug 25 07:36:42 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Aug 2022 07:36:42 -0400 Subject: Svg Icon Tool In-Reply-To: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: You are welcome! Good idea. Just one file needs to be copied (SvgIconTool.livecode) to install. If you ran it once and imported families, then you can copy or move the milby.us folder to retain the settings (I actually link that folder so I can run as a plug-in or from the repo and use the same settings.) Thanks, Brian > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode wrote: > > Thank you very much for this great tool. > > Maybe you add some information to the readme.md what files/folders from the zip have to be copied to the plugins folder. > > Regards, > Matthias > > >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode : >> >> Greetings list! >> >> A few years ago I published a tool that allowed easy creation of the Icon >> Families that I had been working on to integrate into the IDE. (The code >> had been started, but users had no way to leverage the planned capability >> at the time.) At that time I simply posted it to Sample Stacks and a copy >> on my web server with more icons. >> >> I had been wanting to get it onto GitHub for quite some time, but never got >> around to it. In another thread I mentioned the tool and Mike asked if it >> was available on GitHub. That was just the sort of thing I needed to get >> it posted. (Thanks Mike!) >> >> https://github.com/bwmilby/SvgIconTool >> >> The most significant change that I've made with this version is that it >> will keep the icon families and prefs stored as separate files instead of >> inside the stack. This will make things much easier since plugins start as >> a palette and you have to toplevel it to save (which is no longer >> necessary). If you use the previous version, you only really need to worry >> about any custom families that you imported. All of the ones that I >> provided earlier are available in the repository and can be loaded in bulk >> by dragging them onto the library card. >> >> I welcome feedback and bug reports on the GitHub repository. >> >> Thanks and have a blessed day! >> Brian Milby >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 09:16:05 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 09:16:05 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: Hey, man, if it's that easy to get you to do something, then * Make the tree widget better * Make the NavBar better Boom. Hero me. On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > You are welcome! > > Good idea. Just one file needs to be copied (SvgIconTool.livecode) to > install. If you ran it once and imported families, then you can copy or > move the milby.us folder to retain the settings (I actually link that > folder so I can run as a plug-in or from the repo and use the same > settings.) > > Thanks, > Brian > > > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Thank you very much for this great tool. > > > > Maybe you add some information to the readme.md what files/folders from > the zip have to be copied to the plugins folder. > > > > Regards, > > Matthias > > > > > >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Greetings list! > >> > >> A few years ago I published a tool that allowed easy creation of the > Icon > >> Families that I had been working on to integrate into the IDE. (The > code > >> had been started, but users had no way to leverage the planned > capability > >> at the time.) At that time I simply posted it to Sample Stacks and a > copy > >> on my web server with more icons. > >> > >> I had been wanting to get it onto GitHub for quite some time, but never > got > >> around to it. In another thread I mentioned the tool and Mike asked if > it > >> was available on GitHub. That was just the sort of thing I needed to > get > >> it posted. (Thanks Mike!) > >> > >> https://github.com/bwmilby/SvgIconTool > >> > >> The most significant change that I've made with this version is that it > >> will keep the icon families and prefs stored as separate files instead > of > >> inside the stack. This will make things much easier since plugins > start as > >> a palette and you have to toplevel it to save (which is no longer > >> necessary). If you use the previous version, you only really need to > worry > >> about any custom families that you imported. All of the ones that I > >> provided earlier are available in the repository and can be loaded in > bulk > >> by dragging them onto the library card. > >> > >> I welcome feedback and bug reports on the GitHub repository. > >> > >> Thanks and have a blessed day! > >> Brian Milby > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 25 09:19:05 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 09:19:05 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: Although, as long as we're having this discussion, the navBar is higher priority, so hit that, first. On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner wrote: > Hey, man, if it's that easy to get you to do something, then > * Make the tree widget better > * Make the NavBar better > Boom. Hero me. > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You are welcome! >> >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) to >> install. If you ran it once and imported families, then you can copy or >> move the milby.us folder to retain the settings (I actually link that >> folder so I can run as a plug-in or from the repo and use the same >> settings.) >> >> Thanks, >> Brian >> >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Thank you very much for this great tool. >> > >> > Maybe you add some information to the readme.md what files/folders from >> the zip have to be copied to the plugins folder. >> > >> > Regards, >> > Matthias >> > >> > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Greetings list! >> >> >> >> A few years ago I published a tool that allowed easy creation of the >> Icon >> >> Families that I had been working on to integrate into the IDE. (The >> code >> >> had been started, but users had no way to leverage the planned >> capability >> >> at the time.) At that time I simply posted it to Sample Stacks and a >> copy >> >> on my web server with more icons. >> >> >> >> I had been wanting to get it onto GitHub for quite some time, but >> never got >> >> around to it. In another thread I mentioned the tool and Mike asked >> if it >> >> was available on GitHub. That was just the sort of thing I needed to >> get >> >> it posted. (Thanks Mike!) >> >> >> >> https://github.com/bwmilby/SvgIconTool >> >> >> >> The most significant change that I've made with this version is that it >> >> will keep the icon families and prefs stored as separate files instead >> of >> >> inside the stack. This will make things much easier since plugins >> start as >> >> a palette and you have to toplevel it to save (which is no longer >> >> necessary). If you use the previous version, you only really need to >> worry >> >> about any custom families that you imported. All of the ones that I >> >> provided earlier are available in the repository and can be loaded in >> bulk >> >> by dragging them onto the library card. >> >> >> >> I welcome feedback and bug reports on the GitHub repository. >> >> >> >> Thanks and have a blessed day! >> >> Brian Milby >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 at 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." > -- 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." From MikeKerner at roadrunner.com Thu Aug 25 10:21:00 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 10:21:00 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Message-ID: it will probably be faster and more flexible to have your database do your soriting for you, though. On Mon, Aug 15, 2022 at 7:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Perhaps some expansion of the column "pgContentTypeofColumn" property? > The current possible values are: > text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement > Allowing the addition of 'numeric' and 'datetime' would at least allow a > mapping to sorts although sort support 'international' (perhaps should > be the default for a polygrid column of type "text" and "binary". I am > also not sure how svg-iconname, imagedata, imagefile, and color should > sort. Perhaps svg-iconname should sort as "text". Bolean can sort as > "text" since ascending puts "false" first and descending puts "true" first. > > > On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote: > > So it occurred to me, while playing with sorting by columns, that it > > might be nice to have an additional "sortType" available. > > > > I'd like to be able to say > > > > - if all the 'things' being sorted on are numbers, then sort numeric, > > otherwise sort alphabetical. > > > > Would that be a reasonable enhancement request ? > > > > Would "natural" be a reasonable suggested name ? > > > > Alex. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From bobsneidar at iotecdigital.com Thu Aug 25 11:02:39 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:02:39 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Message-ID: <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> +1 if the source is a dabs, sort during query. Bob S On Aug 25, 2022, at 07:21 , Mike Kerner via use-livecode > wrote: it will probably be faster and more flexible to have your database do your soriting for you, though. On Mon, Aug 15, 2022 at 7:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: Perhaps some expansion of the column "pgContentTypeofColumn" property? The current possible values are: text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement Allowing the addition of 'numeric' and 'datetime' would at least allow a mapping to sorts although sort support 'international' (perhaps should be the default for a polygrid column of type "text" and "binary". I am also not sure how svg-iconname, imagedata, imagefile, and color should sort. Perhaps svg-iconname should sort as "text". Bolean can sort as "text" since ascending puts "false" first and descending puts "true" first. From bobsneidar at iotecdigital.com Thu Aug 25 11:17:44 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:17:44 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> Message-ID: <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> Not sure how that happened. If the source is a DATABASE... On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode > wrote: +1 if the source is a dabs, sort during query. Bob S From bobsneidar at iotecdigital.com Thu Aug 25 11:25:25 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:25:25 +0000 Subject: BN Guides Message-ID: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. Bob S From matthias_livecode_150811 at m-r-d.de Thu Aug 25 11:33:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 17:33:59 +0200 Subject: BN Guides In-Reply-To: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> Bernd Niggemann wrote it. > Am 25.08.2022 um 17:25 schrieb Bob Sneidar via use-livecode : > > Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 25 11:38:15 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 25 Aug 2022 11:38:15 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> Message-ID: <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> So what if you use the column headers on a PolyGrid (or whatever) to give the user a UI for sorting by column (adding, or not, sort arrows to the header labels). Is it still more efficient to re-query the database with the new, user chosen, sort order and repopulate the PolyGrid? Or more efficient to just resort the data already populated into the grid in the desired order the user has chosen? I suspect this later is the more efficient case unless you are sure you have a fast network and server with low latency and no competition for bandwidth. As always, people's use-cases for these widgets vary widely. That is why the more versatile a widget is the often (but not always) the better it is. On 8/25/2022 11:17 AM, Bob Sneidar via use-livecode wrote: > Not sure how that happened. If the source is a DATABASE... > > On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode > wrote: > > +1 if the source is a dabs, sort during query. > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Aug 25 11:45:42 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 17:45:42 +0200 Subject: BN Guides In-Reply-To: <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> Message-ID: <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> Forgot to place the link to the forum where he announced it. https://forums.livecode.com/viewtopic.php?f=4&t=31920 Matthias > Am 25.08.2022 um 17:33 schrieb matthias rebbe via use-livecode : > > Bernd Niggemann wrote it. > >> Am 25.08.2022 um 17:25 schrieb Bob Sneidar via use-livecode : >> >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 11:57:35 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 11:57:35 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> Message-ID: oh, i love this topic. this onion is so, so thick. since you are throwing in the curveball of on-demand column sorting, i have several suggestions (and these are just my suggestions): the obvious one is to use one of the bajillion ways that LC can sort, right? grab the data (if you don't already have the data in a container that you're using to populate the widget), sort it, put it back the less obvious is to do what i end up doing in many of my apps (because everything i write, now, is mobile), and that is have a local sqlite or mysql db. keep all the data that you retrieve from the server in there, and use the local copy as the data source. i do that because i can't guarantee network connectivity, but i want my apps to run, anyway. in that case, my sorting is still done in my db - my local cache. plus, if my app exits, crashes, loses the focus, device reboots, etc., i want it to come back in exactly the state it was in when it left, which is something that's easy to do with a local db. then there's using the local command line, because every OS has a sort routine you can call. From bobsneidar at iotecdigital.com Thu Aug 25 12:15:29 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 16:15:29 +0000 Subject: BN Guides In-Reply-To: <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> Message-ID: <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> Unfortunately I am unable to login to the forums (again) as the saved password I have for it no longer works. Also, if I ask for the activation link to be resent, both emails I would have used along with the only user name I use for everything (slylabs13), results in Account Not Found. Submitting a password reset on either of the two emails never sends a password reset email. Trying to register from scratch with slylabs13 as the user name generates an error that the user name is already in use! I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. So far, I am unusually calm. Normally I'd be cursing and swearing by now. :-) Bob S On Aug 25, 2022, at 08:45 , matthias rebbe via use-livecode > wrote: Forgot to place the link to the forum where he announced it. https://forums.livecode.com/viewtopic.php?f=4&t=31920 Matthias From bobsneidar at iotecdigital.com Thu Aug 25 12:17:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 16:17:30 +0000 Subject: BN Guides In-Reply-To: <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> Message-ID: I found the link to the Board Administrator. The board administrator link has been disabled. LOL! Bob S On Aug 25, 2022, at 09:15 , Bob Sneidar via use-livecode > wrote: I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. From alex at tweedly.net Thu Aug 25 12:39:36 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 25 Aug 2022 17:39:36 +0100 Subject: BN Guides In-Reply-To: References: Message-ID: <7B163A35-88EF-4869-879E-30515F094AA3@tweedly.net> Bob, Just email Heather- she can do everything ! Probably the support @ livecode.com address would be more correct than her directly. Alex Sent from my iPhone > On 25 Aug 2022, at 17:18, Bob Sneidar via use-livecode wrote: > > I found the link to the Board Administrator. The board administrator link has been disabled. LOL! > > Bob S > > > On Aug 25, 2022, at 09:15 , Bob Sneidar via use-livecode > wrote: > > I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 25 13:10:57 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 17:10:57 +0000 Subject: Exclude Keywords from Auto-Complete Message-ID: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> Hi all. I just submitted an enhancement request to create a new global property of keywords to exclude from the SE Auto-Complete feature. The reason is, whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if I hit tab to reformat the script or to move to the next parameter of an auto-complete suggestion, it replaces "me" with the first mergeDeploy suggestion. There are other scenarios I've run into as well. Also, I looked in the SE preferences for auto-complete, but did not find an entry. There is one for Auto Format, but that enables/disables the auto-indent feature. Hopefully they are not both enabled/disabled by that one check box. https://quality.livecode.com/show_bug.cgi?id=23900 Bob S From rdimola at evergreeninfo.net Thu Aug 25 13:24:09 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 25 Aug 2022 13:24:09 -0400 Subject: Exclude Keywords from Auto-Complete In-Reply-To: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> References: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> Message-ID: <003c01d8b8a7$7f667560$7e336020$@net> In the edit=>options of the SE there is an option to turn autocomplete On/Off. There is also edit=>Autocomplete Snippet Manager. I have not used it but it looks interesting. It may solve your problem with the "alternate" option? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Thursday, August 25, 2022 1:11 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Exclude Keywords from Auto-Complete Hi all. I just submitted an enhancement request to create a new global property of keywords to exclude from the SE Auto-Complete feature. The reason is, whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if I hit tab to reformat the script or to move to the next parameter of an auto-complete suggestion, it replaces "me" with the first mergeDeploy suggestion. There are other scenarios I've run into as well. Also, I looked in the SE preferences for auto-complete, but did not find an entry. There is one for Auto Format, but that enables/disables the auto-indent feature. Hopefully they are not both enabled/disabled by that one check box. https://quality.livecode.com/show_bug.cgi?id=23900 Bob S _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 25 13:47:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 17:47:15 +0000 Subject: Exclude Keywords from Auto-Complete In-Reply-To: <003c01d8b8a7$7f667560$7e336020$@net> References: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> <003c01d8b8a7$7f667560$7e336020$@net> Message-ID: Thanks Ralph, that looks interesting. I see: if ${condition:expression} then ${-- true code:statement} else # ${condition} {-- false code:statement} end if # ${condition} Not sure how to use that but I will research. Thanks. Bob S > On Aug 25, 2022, at 10:24 , Ralph DiMola via use-livecode wrote: > > In the edit=>options of the SE there is an option to turn autocomplete > On/Off. There is also edit=>Autocomplete Snippet Manager. I have not used it > but it looks interesting. It may solve your problem with the "alternate" > option? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Bob Sneidar via use-livecode > Sent: Thursday, August 25, 2022 1:11 PM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Exclude Keywords from Auto-Complete > > Hi all. > > I just submitted an enhancement request to create a new global property of > keywords to exclude from the SE Auto-Complete feature. The reason is, > whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if > I hit tab to reformat the script or to move to the next parameter of an > auto-complete suggestion, it replaces "me" with the first mergeDeploy > suggestion. There are other scenarios I've run into as well. > > Also, I looked in the SE preferences for auto-complete, but did not find an > entry. There is one for Auto Format, but that enables/disables the > auto-indent feature. Hopefully they are not both enabled/disabled by that > one check box. > > https://quality.livecode.com/show_bug.cgi?id=23900 > > Bob S From rdimola at evergreeninfo.net Thu Aug 25 14:38:20 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 25 Aug 2022 14:38:20 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: <004001d8b8b1$dcaeb930$960c2b90$@net> Mike, I have used my own version of the navbar widget for years. I added an option to enlarge/vertically justify the icon if there is no label and eliminated the "new item" thingy. I think the stock widget already lets you select the zero option. I added that back before the stock widget let you do it. What changes/enhancements are you looking for? I also have LCS routines to store the navbar options as a custom property array. I have handlers to add/delete/change option text and icons via script for a contextual UI. They are not documented or polished but if there is any interest I will look into it. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Thursday, August 25, 2022 9:19 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: Svg Icon Tool Although, as long as we're having this discussion, the navBar is higher priority, so hit that, first. On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner wrote: > Hey, man, if it's that easy to get you to do something, then > * Make the tree widget better > * Make the NavBar better > Boom. Hero me. > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You are welcome! >> >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) >> to install. If you ran it once and imported families, then you can >> copy or move the milby.us folder to retain the settings (I actually >> link that folder so I can run as a plug-in or from the repo and use >> the same >> settings.) >> >> Thanks, >> Brian >> >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Thank you very much for this great tool. >> > >> > Maybe you add some information to the readme.md what files/folders >> > from >> the zip have to be copied to the plugins folder. >> > >> > Regards, >> > Matthias >> > >> > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Greetings list! >> >> >> >> A few years ago I published a tool that allowed easy creation of >> >> the >> Icon >> >> Families that I had been working on to integrate into the IDE. >> >> (The >> code >> >> had been started, but users had no way to leverage the planned >> capability >> >> at the time.) At that time I simply posted it to Sample Stacks >> >> and a >> copy >> >> on my web server with more icons. >> >> >> >> I had been wanting to get it onto GitHub for quite some time, but >> never got >> >> around to it. In another thread I mentioned the tool and Mike >> >> asked >> if it >> >> was available on GitHub. That was just the sort of thing I needed >> >> to >> get >> >> it posted. (Thanks Mike!) >> >> >> >> https://github.com/bwmilby/SvgIconTool >> >> >> >> The most significant change that I've made with this version is >> >> that it will keep the icon families and prefs stored as separate >> >> files instead >> of >> >> inside the stack. This will make things much easier since plugins >> start as >> >> a palette and you have to toplevel it to save (which is no longer >> >> necessary). If you use the previous version, you only really need >> >> to >> worry >> >> about any custom families that you imported. All of the ones that >> >> I provided earlier are available in the repository and can be >> >> loaded in >> bulk >> >> by dragging them onto the library card. >> >> >> >> I welcome feedback and bug reports on the GitHub repository. >> >> >> >> Thanks and have a blessed day! >> >> Brian Milby >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 at 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." > -- 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 14:46:39 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 14:46:39 -0400 Subject: Svg Icon Tool In-Reply-To: <004001d8b8b1$dcaeb930$960c2b90$@net> References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> <004001d8b8b1$dcaeb930$960c2b90$@net> Message-ID: the two things that are glaring, imho are * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) - someone taps on a selection. i do a check, throw up a "nope", and nothing changes. this one is preventing me from moving off of the tmControls navbar. * autowidth to the card width. but there are several others, as well https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 listen, i get it. i need to re-learn lcb and actually use it. but i also have force powers, so i know that someone is going to do these things, before i do, and then i won't have to. On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike, > I have used my own version of the navbar widget for years. I added an > option to enlarge/vertically justify the icon if there is no label and > eliminated the "new item" thingy. I think the stock widget already lets you > select the zero option. I added that back before the stock widget let you > do it. What changes/enhancements are you looking for? > > I also have LCS routines to store the navbar options as a custom property > array. I have handlers to add/delete/change option text and icons via > script for a contextual UI. They are not documented or polished but if > there is any interest I will look into it. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Mike Kerner via use-livecode > Sent: Thursday, August 25, 2022 9:19 AM > To: How to use LiveCode > Cc: Mike Kerner > Subject: Re: Svg Icon Tool > > Although, as long as we're having this discussion, the navBar is higher > priority, so hit that, first. > > On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner > wrote: > > > Hey, man, if it's that easy to get you to do something, then > > * Make the tree widget better > > * Make the NavBar better > > Boom. Hero me. > > > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> You are welcome! > >> > >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) > >> to install. If you ran it once and imported families, then you can > >> copy or move the milby.us folder to retain the settings (I actually > >> link that folder so I can run as a plug-in or from the repo and use > >> the same > >> settings.) > >> > >> Thanks, > >> Brian > >> > >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > > >> > Thank you very much for this great tool. > >> > > >> > Maybe you add some information to the readme.md what files/folders > >> > from > >> the zip have to be copied to the plugins folder. > >> > > >> > Regards, > >> > Matthias > >> > > >> > > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com>: > >> >> > >> >> Greetings list! > >> >> > >> >> A few years ago I published a tool that allowed easy creation of > >> >> the > >> Icon > >> >> Families that I had been working on to integrate into the IDE. > >> >> (The > >> code > >> >> had been started, but users had no way to leverage the planned > >> capability > >> >> at the time.) At that time I simply posted it to Sample Stacks > >> >> and a > >> copy > >> >> on my web server with more icons. > >> >> > >> >> I had been wanting to get it onto GitHub for quite some time, but > >> never got > >> >> around to it. In another thread I mentioned the tool and Mike > >> >> asked > >> if it > >> >> was available on GitHub. That was just the sort of thing I needed > >> >> to > >> get > >> >> it posted. (Thanks Mike!) > >> >> > >> >> https://github.com/bwmilby/SvgIconTool > >> >> > >> >> The most significant change that I've made with this version is > >> >> that it will keep the icon families and prefs stored as separate > >> >> files instead > >> of > >> >> inside the stack. This will make things much easier since plugins > >> start as > >> >> a palette and you have to toplevel it to save (which is no longer > >> >> necessary). If you use the previous version, you only really need > >> >> to > >> worry > >> >> about any custom families that you imported. All of the ones that > >> >> I provided earlier are available in the repository and can be > >> >> loaded in > >> bulk > >> >> by dragging them onto the library card. > >> >> > >> >> I welcome feedback and bug reports on the GitHub repository. > >> >> > >> >> Thanks and have a blessed day! > >> >> Brian Milby > >> >> _______________________________________________ > >> >> use-livecode mailing list > >> >> use-livecode at 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 at 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 at 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." > > > > > -- > 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 at 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 at 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." From brian at milby7.com Thu Aug 25 17:47:34 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Aug 2022 17:47:34 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> I think what we probably need is simply: set the hilitedItemSilently of widget 1 to 1 Or set the hilitedItemWithoutMessage of widget 1 to 1 This would allow more elegant solutions to many of the raised issues. Thanks, Brian Sent from my iPhone > On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode wrote: > > the two things that are glaring, imho are > * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) - > someone taps on a selection. i do a check, throw up a "nope", and nothing > changes. this one is preventing me from moving off of the tmControls navbar. > * autowidth to the card width. > but there are several others, as well > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > listen, i get it. i need to re-learn lcb and actually use it. > but i also have force powers, so i know that someone is going to do these > things, before i do, and then i won't have to. > >> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Mike, >> I have used my own version of the navbar widget for years. I added an >> option to enlarge/vertically justify the icon if there is no label and >> eliminated the "new item" thingy. I think the stock widget already lets you >> select the zero option. I added that back before the stock widget let you >> do it. What changes/enhancements are you looking for? >> >> I also have LCS routines to store the navbar options as a custom property >> array. I have handlers to add/delete/change option text and icons via >> script for a contextual UI. They are not documented or polished but if >> there is any interest I will look into it. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> From MikeKerner at roadrunner.com Fri Aug 26 09:01:04 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 09:01:04 -0400 Subject: Svg Icon Tool In-Reply-To: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> References: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> Message-ID: i don't think so. i want to be able to be able to intercept the touch/click, and decide what to do. sometimes i want to ignore it. sometimes i want to throw up an error and not switch. sometimes i want to do something else, first. On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > > I think what we probably need is simply: > > set the hilitedItemSilently of widget 1 to 1 > Or > set the hilitedItemWithoutMessage of widget 1 to 1 > > This would allow more elegant solutions to many of the raised issues. > > Thanks, > Brian > > > Sent from my iPhone > > > On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > the two things that are glaring, imho are > > * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) > - > > someone taps on a selection. i do a check, throw up a "nope", and nothing > > changes. this one is preventing me from moving off of the tmControls > navbar. > > * autowidth to the card width. > > but there are several others, as well > > > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > > listen, i get it. i need to re-learn lcb and actually use it. > > but i also have force powers, so i know that someone is going to do these > > things, before i do, and then i won't have to. > > > >> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Mike, > >> I have used my own version of the navbar widget for years. I added an > >> option to enlarge/vertically justify the icon if there is no label and > >> eliminated the "new item" thingy. I think the stock widget already lets > you > >> select the zero option. I added that back before the stock widget let > you > >> do it. What changes/enhancements are you looking for? > >> > >> I also have LCS routines to store the navbar options as a custom > property > >> array. I have handlers to add/delete/change option text and icons via > >> script for a contextual UI. They are not documented or polished but if > >> there is any interest I will look into it. > >> > >> Ralph DiMola > >> IT Director > >> Evergreen Information Services > >> rdimola at evergreeninfo.net > >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From brian at milby7.com Fri Aug 26 09:22:48 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 09:22:48 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: The silent update would allow that to happen in the hilitechanged handler. I don’t know how you would implement a pre… message. How would the widget know whether to proceed or not? The two messages would fire almost simultaneously. There also isn’t any way to tell the widget to cancel the highlight action, which would be needed. A mouseDown message may work but would still need a way to cancel the highlight. I think the silent change is the most seamless way to accomplish this task. In general I think that normal mouse messages should be passed from widgets - even if they add specialized functionality with additional messages. I don’t think they would solve this issue on their own though. (I also did some work in this widget to add the nothing and multiple selections) > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode wrote: > > i don't think so. i want to be able to be able to intercept the > touch/click, and decide what to do. sometimes i want to ignore it. > sometimes i want to throw up an error and not switch. sometimes i want to > do something else, first. > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> >> I think what we probably need is simply: >> >> set the hilitedItemSilently of widget 1 to 1 >> Or >> set the hilitedItemWithoutMessage of widget 1 to 1 >> >> This would allow more elegant solutions to many of the raised issues. >> >> Thanks, >> Brian >> >> >> Sent from my iPhone >> >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> the two things that are glaring, imho are >>> * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) >> - >>> someone taps on a selection. i do a check, throw up a "nope", and nothing >>> changes. this one is preventing me from moving off of the tmControls >> navbar. >>> * autowidth to the card width. >>> but there are several others, as well >>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>> listen, i get it. i need to re-learn lcb and actually use it. >>> but i also have force powers, so i know that someone is going to do these >>> things, before i do, and then i won't have to. >>> >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Mike, >>>> I have used my own version of the navbar widget for years. I added an >>>> option to enlarge/vertically justify the icon if there is no label and >>>> eliminated the "new item" thingy. I think the stock widget already lets >> you >>>> select the zero option. I added that back before the stock widget let >> you >>>> do it. What changes/enhancements are you looking for? >>>> >>>> I also have LCS routines to store the navbar options as a custom >> property >>>> array. I have handlers to add/delete/change option text and icons via >>>> script for a contextual UI. They are not documented or polished but if >>>> there is any interest I will look into it. >>>> >>>> Ralph DiMola >>>> IT Director >>>> Evergreen Information Services >>>> rdimola at evergreeninfo.net >>>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 09:27:14 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 09:27:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: you would have a property for autohilite, and if that is false, the developer would be responsible for setting the hilite. that's the way it's implemented with other controls. On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > The silent update would allow that to happen in the hilitechanged handler. > > I don’t know how you would implement a pre… message. How would the widget > know whether to proceed or not? The two messages would fire almost > simultaneously. There also isn’t any way to tell the widget to cancel the > highlight action, which would be needed. > > A mouseDown message may work but would still need a way to cancel the > highlight. I think the silent change is the most seamless way to > accomplish this task. > > In general I think that normal mouse messages should be passed from > widgets - even if they add specialized functionality with additional > messages. I don’t think they would solve this issue on their own though. > > (I also did some work in this widget to add the nothing and multiple > selections) > > > > > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > i don't think so. i want to be able to be able to intercept the > > touch/click, and decide what to do. sometimes i want to ignore it. > > sometimes i want to throw up an error and not switch. sometimes i want to > > do something else, first. > > > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > >> I think what we probably need is simply: > >> > >> set the hilitedItemSilently of widget 1 to 1 > >> Or > >> set the hilitedItemWithoutMessage of widget 1 to 1 > >> > >> This would allow more elegant solutions to many of the raised issues. > >> > >> Thanks, > >> Brian > >> > >> > >> Sent from my iPhone > >> > >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> the two things that are glaring, imho are > >>> * [preHiliteChanged]( > https://quality.livecode.com/show_bug.cgi?id=23207) > >> - > >>> someone taps on a selection. i do a check, throw up a "nope", and > nothing > >>> changes. this one is preventing me from moving off of the tmControls > >> navbar. > >>> * autowidth to the card width. > >>> but there are several others, as well > >>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > >>> listen, i get it. i need to re-learn lcb and actually use it. > >>> but i also have force powers, so i know that someone is going to do > these > >>> things, before i do, and then i won't have to. > >>> > >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Mike, > >>>> I have used my own version of the navbar widget for years. I added an > >>>> option to enlarge/vertically justify the icon if there is no label and > >>>> eliminated the "new item" thingy. I think the stock widget already > lets > >> you > >>>> select the zero option. I added that back before the stock widget let > >> you > >>>> do it. What changes/enhancements are you looking for? > >>>> > >>>> I also have LCS routines to store the navbar options as a custom > >> property > >>>> array. I have handlers to add/delete/change option text and icons via > >>>> script for a contextual UI. They are not documented or polished but if > >>>> there is any interest I will look into it. > >>>> > >>>> Ralph DiMola > >>>> IT Director > >>>> Evergreen Information Services > >>>> rdimola at evergreeninfo.net > >>>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From rdimola at evergreeninfo.net Fri Aug 26 09:41:46 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 09:41:46 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <002a01d8b951$98eedc70$cacc9550$@net> Do widgets even have the capability to send a message and have it return back to the widget if it is "Pass"ed in the spirit of "Pre" messages? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Friday, August 26, 2022 9:27 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: Svg Icon Tool you would have a property for autohilite, and if that is false, the developer would be responsible for setting the hilite. that's the way it's implemented with other controls. On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > The silent update would allow that to happen in the hilitechanged handler. > > I don’t know how you would implement a pre… message. How would the > widget know whether to proceed or not? The two messages would fire > almost simultaneously. There also isn’t any way to tell the widget to > cancel the highlight action, which would be needed. > > A mouseDown message may work but would still need a way to cancel the > highlight. I think the silent change is the most seamless way to > accomplish this task. > > In general I think that normal mouse messages should be passed from > widgets - even if they add specialized functionality with additional > messages. I don’t think they would solve this issue on their own though. > > (I also did some work in this widget to add the nothing and multiple > selections) > > > > > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > i don't think so. i want to be able to be able to intercept the > > touch/click, and decide what to do. sometimes i want to ignore it. > > sometimes i want to throw up an error and not switch. sometimes i > > want to do something else, first. > > > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > >> I think what we probably need is simply: > >> > >> set the hilitedItemSilently of widget 1 to 1 Or set the > >> hilitedItemWithoutMessage of widget 1 to 1 > >> > >> This would allow more elegant solutions to many of the raised issues. > >> > >> Thanks, > >> Brian > >> > >> > >> Sent from my iPhone > >> > >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> the two things that are glaring, imho are > >>> * [preHiliteChanged]( > https://quality.livecode.com/show_bug.cgi?id=23207) > >> - > >>> someone taps on a selection. i do a check, throw up a "nope", and > nothing > >>> changes. this one is preventing me from moving off of the > >>> tmControls > >> navbar. > >>> * autowidth to the card width. > >>> but there are several others, as well > >>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar& > list_id=105904 > >>> listen, i get it. i need to re-learn lcb and actually use it. > >>> but i also have force powers, so i know that someone is going to > >>> do > these > >>> things, before i do, and then i won't have to. > >>> > >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Mike, > >>>> I have used my own version of the navbar widget for years. I > >>>> added an option to enlarge/vertically justify the icon if there > >>>> is no label and eliminated the "new item" thingy. I think the > >>>> stock widget already > lets > >> you > >>>> select the zero option. I added that back before the stock widget > >>>> let > >> you > >>>> do it. What changes/enhancements are you looking for? > >>>> > >>>> I also have LCS routines to store the navbar options as a custom > >> property > >>>> array. I have handlers to add/delete/change option text and icons > >>>> via script for a contextual UI. They are not documented or > >>>> polished but if there is any interest I will look into it. > >>>> > >>>> Ralph DiMola > >>>> IT Director > >>>> Evergreen Information Services > >>>> rdimola at evergreeninfo.net > >>>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 26 10:13:14 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 10:13:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: Ok, then we need a full spec on how this would work. It is not just the addition of a message. To get what you are desiring, it would be most consistent to just add the mouse messages and the autoHilite property. I would still want the silent option since that works most in the grain of the current functionality. In your use case, you wouldn’t even use the hiliteChanged message. You would just act based on the mouseUp after your checks. From a UI perspective, I think it makes more sense for the object to highlight on the touch and then revert on the mouseUp if not permitted. > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode wrote: > > you would have a property for autohilite, and if that is false, the > developer would be responsible for setting the hilite. that's the way it's > implemented with other controls. > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> The silent update would allow that to happen in the hilitechanged handler. >> >> I don’t know how you would implement a pre… message. How would the widget >> know whether to proceed or not? The two messages would fire almost >> simultaneously. There also isn’t any way to tell the widget to cancel the >> highlight action, which would be needed. >> >> A mouseDown message may work but would still need a way to cancel the >> highlight. I think the silent change is the most seamless way to >> accomplish this task. >> >> In general I think that normal mouse messages should be passed from >> widgets - even if they add specialized functionality with additional >> messages. I don’t think they would solve this issue on their own though. >> >> (I also did some work in this widget to add the nothing and multiple >> selections) >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> i don't think so. i want to be able to be able to intercept the >>> touch/click, and decide what to do. sometimes i want to ignore it. >>> sometimes i want to throw up an error and not switch. sometimes i want to >>> do something else, first. >>> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> I think what we probably need is simply: >>>> >>>> set the hilitedItemSilently of widget 1 to 1 >>>> Or >>>> set the hilitedItemWithoutMessage of widget 1 to 1 >>>> >>>> This would allow more elegant solutions to many of the raised issues. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> Sent from my iPhone >>>> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> the two things that are glaring, imho are >>>>> * [preHiliteChanged]( >> https://quality.livecode.com/show_bug.cgi?id=23207) >>>> - >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> nothing >>>>> changes. this one is preventing me from moving off of the tmControls >>>> navbar. >>>>> * autowidth to the card width. >>>>> but there are several others, as well >>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>> but i also have force powers, so i know that someone is going to do >> these >>>>> things, before i do, and then i won't have to. >>>>> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Mike, >>>>>> I have used my own version of the navbar widget for years. I added an >>>>>> option to enlarge/vertically justify the icon if there is no label and >>>>>> eliminated the "new item" thingy. I think the stock widget already >> lets >>>> you >>>>>> select the zero option. I added that back before the stock widget let >>>> you >>>>>> do it. What changes/enhancements are you looking for? >>>>>> >>>>>> I also have LCS routines to store the navbar options as a custom >>>> property >>>>>> array. I have handlers to add/delete/change option text and icons via >>>>>> script for a contextual UI. They are not documented or polished but if >>>>>> there is any interest I will look into it. >>>>>> >>>>>> Ralph DiMola >>>>>> IT Director >>>>>> Evergreen Information Services >>>>>> rdimola at evergreeninfo.net >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 10:28:45 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 10:28:45 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: correct, the hiliteChanged message is superfluous in this scenario, and the developer would just manage the touch/mouse messages i disagree that flipping the hilite to one and then back is better. the hilite is an indicator of state. if the state is not allowed to change, then the hilite should not change. in the current operation, the user hits a selection. the hilite changes. at this point, there aren't any good options. if we switch cards, then do the test, tell the user that the selection is not allowed, then switch back, they get this jerky transition, and we have to restore the previous state. if we do not make the transition, then they get the hilite changing, then they get rejected, and then we have to switch the hilite back to what it was, before. On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Ok, then we need a full spec on how this would work. It is not just the > addition of a message. > > To get what you are desiring, it would be most consistent to just add the > mouse messages and the autoHilite property. > > I would still want the silent option since that works most in the grain of > the current functionality. > > In your use case, you wouldn’t even use the hiliteChanged message. You > would just act based on the mouseUp after your checks. > > From a UI perspective, I think it makes more sense for the object to > highlight on the touch and then revert on the mouseUp if not permitted. > > > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > you would have a property for autohilite, and if that is false, the > > developer would be responsible for setting the hilite. that's the way > it's > > implemented with other controls. > > > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> The silent update would allow that to happen in the hilitechanged > handler. > >> > >> I don’t know how you would implement a pre… message. How would the > widget > >> know whether to proceed or not? The two messages would fire almost > >> simultaneously. There also isn’t any way to tell the widget to cancel > the > >> highlight action, which would be needed. > >> > >> A mouseDown message may work but would still need a way to cancel the > >> highlight. I think the silent change is the most seamless way to > >> accomplish this task. > >> > >> In general I think that normal mouse messages should be passed from > >> widgets - even if they add specialized functionality with additional > >> messages. I don’t think they would solve this issue on their own > though. > >> > >> (I also did some work in this widget to add the nothing and multiple > >> selections) > >> > >> > >> > >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> i don't think so. i want to be able to be able to intercept the > >>> touch/click, and decide what to do. sometimes i want to ignore it. > >>> sometimes i want to throw up an error and not switch. sometimes i want > to > >>> do something else, first. > >>> > >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> > >>>> I think what we probably need is simply: > >>>> > >>>> set the hilitedItemSilently of widget 1 to 1 > >>>> Or > >>>> set the hilitedItemWithoutMessage of widget 1 to 1 > >>>> > >>>> This would allow more elegant solutions to many of the raised issues. > >>>> > >>>> Thanks, > >>>> Brian > >>>> > >>>> > >>>> Sent from my iPhone > >>>> > >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>> the two things that are glaring, imho are > >>>>> * [preHiliteChanged]( > >> https://quality.livecode.com/show_bug.cgi?id=23207) > >>>> - > >>>>> someone taps on a selection. i do a check, throw up a "nope", and > >> nothing > >>>>> changes. this one is preventing me from moving off of the tmControls > >>>> navbar. > >>>>> * autowidth to the card width. > >>>>> but there are several others, as well > >>>>> > >>>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > >>>>> listen, i get it. i need to re-learn lcb and actually use it. > >>>>> but i also have force powers, so i know that someone is going to do > >> these > >>>>> things, before i do, and then i won't have to. > >>>>> > >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>>>> use-livecode at lists.runrev.com> wrote: > >>>>>> > >>>>>> Mike, > >>>>>> I have used my own version of the navbar widget for years. I added > an > >>>>>> option to enlarge/vertically justify the icon if there is no label > and > >>>>>> eliminated the "new item" thingy. I think the stock widget already > >> lets > >>>> you > >>>>>> select the zero option. I added that back before the stock widget > let > >>>> you > >>>>>> do it. What changes/enhancements are you looking for? > >>>>>> > >>>>>> I also have LCS routines to store the navbar options as a custom > >>>> property > >>>>>> array. I have handlers to add/delete/change option text and icons > via > >>>>>> script for a contextual UI. They are not documented or polished but > if > >>>>>> there is any interest I will look into it. > >>>>>> > >>>>>> Ralph DiMola > >>>>>> IT Director > >>>>>> Evergreen Information Services > >>>>>> rdimola at evergreeninfo.net > >>>>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at 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." From MikeKerner at roadrunner.com Fri Aug 26 10:34:24 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 10:34:24 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: i could see, for someone who wants it to behave the way it behaves now, that retaining the current behavior and adding to it would be better. the control can work both ways, a manual mode and an automagical mode. On Fri, Aug 26, 2022 at 10:28 AM Mike Kerner wrote: > correct, the hiliteChanged message is superfluous in this scenario, and > the developer would just manage the touch/mouse messages > i disagree that flipping the hilite to one and then back is better. the > hilite is an indicator of state. if the state is not allowed to change, > then the hilite should not change. > in the current operation, the user hits a selection. the hilite changes. > at this point, there aren't any good options. if we switch cards, then do > the test, tell the user that the selection is not allowed, then switch > back, they get this jerky transition, and we have to restore the previous > state. if we do not make the transition, then they get the hilite changing, > then they get rejected, and then we have to switch the hilite back to what > it was, before. > > On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Ok, then we need a full spec on how this would work. It is not just the >> addition of a message. >> >> To get what you are desiring, it would be most consistent to just add the >> mouse messages and the autoHilite property. >> >> I would still want the silent option since that works most in the grain >> of the current functionality. >> >> In your use case, you wouldn’t even use the hiliteChanged message. You >> would just act based on the mouseUp after your checks. >> >> From a UI perspective, I think it makes more sense for the object to >> highlight on the touch and then revert on the mouseUp if not permitted. >> >> > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > you would have a property for autohilite, and if that is false, the >> > developer would be responsible for setting the hilite. that's the way >> it's >> > implemented with other controls. >> > >> >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >> The silent update would allow that to happen in the hilitechanged >> handler. >> >> >> >> I don’t know how you would implement a pre… message. How would the >> widget >> >> know whether to proceed or not? The two messages would fire almost >> >> simultaneously. There also isn’t any way to tell the widget to cancel >> the >> >> highlight action, which would be needed. >> >> >> >> A mouseDown message may work but would still need a way to cancel the >> >> highlight. I think the silent change is the most seamless way to >> >> accomplish this task. >> >> >> >> In general I think that normal mouse messages should be passed from >> >> widgets - even if they add specialized functionality with additional >> >> messages. I don’t think they would solve this issue on their own >> though. >> >> >> >> (I also did some work in this widget to add the nothing and multiple >> >> selections) >> >> >> >> >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> i don't think so. i want to be able to be able to intercept the >> >>> touch/click, and decide what to do. sometimes i want to ignore it. >> >>> sometimes i want to throw up an error and not switch. sometimes i >> want to >> >>> do something else, first. >> >>> >> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >> >>>> use-livecode at lists.runrev.com> wrote: >> >>>> >> >>>> >> >>>> I think what we probably need is simply: >> >>>> >> >>>> set the hilitedItemSilently of widget 1 to 1 >> >>>> Or >> >>>> set the hilitedItemWithoutMessage of widget 1 to 1 >> >>>> >> >>>> This would allow more elegant solutions to many of the raised issues. >> >>>> >> >>>> Thanks, >> >>>> Brian >> >>>> >> >>>> >> >>>> Sent from my iPhone >> >>>> >> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >> >>>> use-livecode at lists.runrev.com> wrote: >> >>>>> >> >>>>> the two things that are glaring, imho are >> >>>>> * [preHiliteChanged]( >> >> https://quality.livecode.com/show_bug.cgi?id=23207) >> >>>> - >> >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> >> nothing >> >>>>> changes. this one is preventing me from moving off of the tmControls >> >>>> navbar. >> >>>>> * autowidth to the card width. >> >>>>> but there are several others, as well >> >>>>> >> >>>> >> >> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >> >>>>> listen, i get it. i need to re-learn lcb and actually use it. >> >>>>> but i also have force powers, so i know that someone is going to do >> >> these >> >>>>> things, before i do, and then i won't have to. >> >>>>> >> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >> >>>>>> use-livecode at lists.runrev.com> wrote: >> >>>>>> >> >>>>>> Mike, >> >>>>>> I have used my own version of the navbar widget for years. I added >> an >> >>>>>> option to enlarge/vertically justify the icon if there is no label >> and >> >>>>>> eliminated the "new item" thingy. I think the stock widget already >> >> lets >> >>>> you >> >>>>>> select the zero option. I added that back before the stock widget >> let >> >>>> you >> >>>>>> do it. What changes/enhancements are you looking for? >> >>>>>> >> >>>>>> I also have LCS routines to store the navbar options as a custom >> >>>> property >> >>>>>> array. I have handlers to add/delete/change option text and icons >> via >> >>>>>> script for a contextual UI. They are not documented or polished >> but if >> >>>>>> there is any interest I will look into it. >> >>>>>> >> >>>>>> Ralph DiMola >> >>>>>> IT Director >> >>>>>> Evergreen Information Services >> >>>>>> rdimola at evergreeninfo.net >> >>>>>> >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode at 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 at 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 at 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 at 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 at 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." > -- 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." From brian at milby7.com Fri Aug 26 10:58:14 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 10:58:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <7785DB46-5657-4588-AF98-96549AA153C9@milby7.com> Speaking from a phone UI context, I would think that when you touch an object that it would highlight to register the touch. If you drag off the object, then the touch is cancelled. When you release, then the validity is tested. If the touch is valid, then the object would retain the highlight (or if you had different colors for touch/selected it would change) and the follow on actions would take place. If not valid, the highlight would be reverted to previous state without any change in the current card. All of this can be scripted currently but you have to add your own tests to the hiliteChanged message and guard against causing a loop. I’ll set up a repo for this widget so it can be worked based on the GPL code. > On Aug 26, 2022, at 10:30 AM, Mike Kerner via use-livecode wrote: > > correct, the hiliteChanged message is superfluous in this scenario, and the > developer would just manage the touch/mouse messages > i disagree that flipping the hilite to one and then back is better. the > hilite is an indicator of state. if the state is not allowed to change, > then the hilite should not change. > in the current operation, the user hits a selection. the hilite changes. at > this point, there aren't any good options. if we switch cards, then do the > test, tell the user that the selection is not allowed, then switch back, > they get this jerky transition, and we have to restore the previous state. > if we do not make the transition, then they get the hilite changing, then > they get rejected, and then we have to switch the hilite back to what it > was, before. > >> On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Ok, then we need a full spec on how this would work. It is not just the >> addition of a message. >> >> To get what you are desiring, it would be most consistent to just add the >> mouse messages and the autoHilite property. >> >> I would still want the silent option since that works most in the grain of >> the current functionality. >> >> In your use case, you wouldn’t even use the hiliteChanged message. You >> would just act based on the mouseUp after your checks. >> >> From a UI perspective, I think it makes more sense for the object to >> highlight on the touch and then revert on the mouseUp if not permitted. >> >>> On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> you would have a property for autohilite, and if that is false, the >>> developer would be responsible for setting the hilite. that's the way >> it's >>> implemented with other controls. >>> >>>> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> The silent update would allow that to happen in the hilitechanged >> handler. >>>> >>>> I don’t know how you would implement a pre… message. How would the >> widget >>>> know whether to proceed or not? The two messages would fire almost >>>> simultaneously. There also isn’t any way to tell the widget to cancel >> the >>>> highlight action, which would be needed. >>>> >>>> A mouseDown message may work but would still need a way to cancel the >>>> highlight. I think the silent change is the most seamless way to >>>> accomplish this task. >>>> >>>> In general I think that normal mouse messages should be passed from >>>> widgets - even if they add specialized functionality with additional >>>> messages. I don’t think they would solve this issue on their own >> though. >>>> >>>> (I also did some work in this widget to add the nothing and multiple >>>> selections) >>>> >>>> >>>> >>>>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> i don't think so. i want to be able to be able to intercept the >>>>> touch/click, and decide what to do. sometimes i want to ignore it. >>>>> sometimes i want to throw up an error and not switch. sometimes i want >> to >>>>> do something else, first. >>>>> >>>>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> >>>>>> I think what we probably need is simply: >>>>>> >>>>>> set the hilitedItemSilently of widget 1 to 1 >>>>>> Or >>>>>> set the hilitedItemWithoutMessage of widget 1 to 1 >>>>>> >>>>>> This would allow more elegant solutions to many of the raised issues. >>>>>> >>>>>> Thanks, >>>>>> Brian >>>>>> >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> the two things that are glaring, imho are >>>>>>> * [preHiliteChanged]( >>>> https://quality.livecode.com/show_bug.cgi?id=23207) >>>>>> - >>>>>>> someone taps on a selection. i do a check, throw up a "nope", and >>>> nothing >>>>>>> changes. this one is preventing me from moving off of the tmControls >>>>>> navbar. >>>>>>> * autowidth to the card width. >>>>>>> but there are several others, as well >>>>>>> >>>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>>>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>>>> but i also have force powers, so i know that someone is going to do >>>> these >>>>>>> things, before i do, and then i won't have to. >>>>>>> >>>>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Mike, >>>>>>>> I have used my own version of the navbar widget for years. I added >> an >>>>>>>> option to enlarge/vertically justify the icon if there is no label >> and >>>>>>>> eliminated the "new item" thingy. I think the stock widget already >>>> lets >>>>>> you >>>>>>>> select the zero option. I added that back before the stock widget >> let >>>>>> you >>>>>>>> do it. What changes/enhancements are you looking for? >>>>>>>> >>>>>>>> I also have LCS routines to store the navbar options as a custom >>>>>> property >>>>>>>> array. I have handlers to add/delete/change option text and icons >> via >>>>>>>> script for a contextual UI. They are not documented or polished but >> if >>>>>>>> there is any interest I will look into it. >>>>>>>> >>>>>>>> Ralph DiMola >>>>>>>> IT Director >>>>>>>> Evergreen Information Services >>>>>>>> rdimola at evergreeninfo.net >>>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Aug 26 11:54:27 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 11:54:27 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <003c01d8b964$22059910$6610cb30$@net> What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 26, 2022 10:13 AM To: How to use LiveCode Cc: Brian Milby Subject: Re: Svg Icon Tool Ok, then we need a full spec on how this would work. It is not just the addition of a message. To get what you are desiring, it would be most consistent to just add the mouse messages and the autoHilite property. I would still want the silent option since that works most in the grain of the current functionality. In your use case, you wouldn’t even use the hiliteChanged message. You would just act based on the mouseUp after your checks. >From a UI perspective, I think it makes more sense for the object to highlight on the touch and then revert on the mouseUp if not permitted. > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode wrote: > > you would have a property for autohilite, and if that is false, the > developer would be responsible for setting the hilite. that's the way > it's implemented with other controls. > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> The silent update would allow that to happen in the hilitechanged handler. >> >> I don’t know how you would implement a pre… message. How would the >> widget know whether to proceed or not? The two messages would fire >> almost simultaneously. There also isn’t any way to tell the widget >> to cancel the highlight action, which would be needed. >> >> A mouseDown message may work but would still need a way to cancel the >> highlight. I think the silent change is the most seamless way to >> accomplish this task. >> >> In general I think that normal mouse messages should be passed from >> widgets - even if they add specialized functionality with additional >> messages. I don’t think they would solve this issue on their own though. >> >> (I also did some work in this widget to add the nothing and multiple >> selections) >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> i don't think so. i want to be able to be able to intercept the >>> touch/click, and decide what to do. sometimes i want to ignore it. >>> sometimes i want to throw up an error and not switch. sometimes i >>> want to do something else, first. >>> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> I think what we probably need is simply: >>>> >>>> set the hilitedItemSilently of widget 1 to 1 Or set the >>>> hilitedItemWithoutMessage of widget 1 to 1 >>>> >>>> This would allow more elegant solutions to many of the raised issues. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> Sent from my iPhone >>>> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> the two things that are glaring, imho are >>>>> * [preHiliteChanged]( >> https://quality.livecode.com/show_bug.cgi?id=23207) >>>> - >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> nothing >>>>> changes. this one is preventing me from moving off of the >>>>> tmControls >>>> navbar. >>>>> * autowidth to the card width. >>>>> but there are several others, as well >>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar >> &list_id=105904 >>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>> but i also have force powers, so i know that someone is going to >>>>> do >> these >>>>> things, before i do, and then i won't have to. >>>>> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Mike, >>>>>> I have used my own version of the navbar widget for years. I >>>>>> added an option to enlarge/vertically justify the icon if there >>>>>> is no label and eliminated the "new item" thingy. I think the >>>>>> stock widget already >> lets >>>> you >>>>>> select the zero option. I added that back before the stock widget >>>>>> let >>>> you >>>>>> do it. What changes/enhancements are you looking for? >>>>>> >>>>>> I also have LCS routines to store the navbar options as a custom >>>> property >>>>>> array. I have handlers to add/delete/change option text and icons >>>>>> via script for a contextual UI. They are not documented or >>>>>> polished but if there is any interest I will look into it. >>>>>> >>>>>> Ralph DiMola >>>>>> IT Director >>>>>> Evergreen Information Services >>>>>> rdimola at evergreeninfo.net >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 26 13:13:00 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 13:13:00 -0400 Subject: Svg Icon Tool In-Reply-To: <003c01d8b964$22059910$6610cb30$@net> References: <003c01d8b964$22059910$6610cb30$@net> Message-ID: <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> I think that if auto highlight is disabled then hiliteChanged would never get triggered. Having the back end highlight change without it visually changing would probably lead to confusion. > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode wrote: > > What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Fri Aug 26 15:25:15 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 15:25:15 -0400 Subject: Svg Icon Tool In-Reply-To: <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> Message-ID: <006101d8b981$94e1dee0$bea59ca0$@net> I looked at the code and an auto hilite property could be added and the hiliteing could be disabled. It would be confusing but it would be allow one to control the hilite. I'm going to try it for laughs. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 26, 2022 1:13 PM To: How to use LiveCode Cc: Brian Milby Subject: Re: Svg Icon Tool I think that if auto highlight is disabled then hiliteChanged would never get triggered. Having the back end highlight change without it visually changing would probably lead to confusion. > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode wrote: > > What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 16:08:08 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 16:08:08 -0400 Subject: Svg Icon Tool In-Reply-To: <006101d8b981$94e1dee0$bea59ca0$@net> References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: i decided, yesterday, to go through the lcb lessons, again, because of this issue (and wanting to deal with a couple of things in the iconPicker). hopefully it'll be done and released before i finish the course, because Stephen said that he's going to have a new version of powerButton out in the morning, which will hopefully cause me to forget about this while i play with that. On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I looked at the code and an auto hilite property could be added and the > hiliteing could be disabled. It would be confusing but it would be allow > one to control the hilite. I'm going to try it for laughs. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Brian Milby via use-livecode > Sent: Friday, August 26, 2022 1:13 PM > To: How to use LiveCode > Cc: Brian Milby > Subject: Re: Svg Icon Tool > > I think that if auto highlight is disabled then hiliteChanged would never > get triggered. Having the back end highlight change without it visually > changing would probably lead to confusion. > > > > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > What if the widget had a property to disable the auto hilite on click > and when the hiliteChanged message arrives you can set(or not) the hilite > as appropriate via setting a widget property? A pre-message would be > cleaner but this is not horrible. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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." From Bernd.Niggemann at uni-wh.de Fri Aug 26 16:25:08 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 26 Aug 2022 20:25:08 +0000 Subject: BN Guides Message-ID: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> Hi Bob, There is an alternative for guide right now https://livecodeshare.runrev.com/stack/1002/DevGuides-Plugin-Installer and 10.0.0 DP4 has guides built-in. They look and work really well. I will not develop bnGuides further since starting LC 10 they will be part of the IDE. I liked the idea to push the concept of behaviors for guides. But maybe a bit too far. Nevertheless the version of bnGuides Matthias linked to in the Forum is one version step ahead of the one in Livecodeshare/Sample Stacks. Kind regards Bernd From MikeKerner at roadrunner.com Fri Aug 26 16:50:59 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 16:50:59 -0400 Subject: Svg Icon Tool In-Reply-To: References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: sorry - STEVEN On Fri, Aug 26, 2022 at 4:08 PM Mike Kerner wrote: > i decided, yesterday, to go through the lcb lessons, again, because of > this issue (and wanting to deal with a couple of things in the iconPicker). > hopefully it'll be done and released before i finish the course, because > Stephen said that he's going to have a new version of powerButton out in > the morning, which will hopefully cause me to forget about this while i > play with that. > > On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I looked at the code and an auto hilite property could be added and the >> hiliteing could be disabled. It would be confusing but it would be allow >> one to control the hilite. I'm going to try it for laughs. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf Of Brian Milby via use-livecode >> Sent: Friday, August 26, 2022 1:13 PM >> To: How to use LiveCode >> Cc: Brian Milby >> Subject: Re: Svg Icon Tool >> >> I think that if auto highlight is disabled then hiliteChanged would never >> get triggered. Having the back end highlight change without it visually >> changing would probably lead to confusion. >> >> >> > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > What if the widget had a property to disable the auto hilite on click >> and when the hiliteChanged message arrives you can set(or not) the hilite >> as appropriate via setting a widget property? A pre-message would be >> cleaner but this is not horrible. >> > >> > Ralph DiMola >> > IT Director >> > Evergreen Information Services >> > rdimola at evergreeninfo.net >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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." > -- 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." From bobsneidar at iotecdigital.com Fri Aug 26 17:00:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 26 Aug 2022 21:00:20 +0000 Subject: BN Guides In-Reply-To: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> References: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> Message-ID: Works great. Thanks. Bob S On Aug 26, 2022, at 13:25 , Niggemann, Bernd via use-livecode > wrote: Hi Bob, There is an alternative for guide right now https://livecodeshare.runrev.com/stack/1002/DevGuides-Plugin-Installer and 10.0.0 DP4 has guides built-in. They look and work really well. I will not develop bnGuides further since starting LC 10 they will be part of the IDE. I liked the idea to push the concept of behaviors for guides. But maybe a bit too far. Nevertheless the version of bnGuides Matthias linked to in the Forum is one version step ahead of the one in Livecodeshare/Sample Stacks. Kind regards Bernd From bobcole at earthlink.net Fri Aug 26 17:10:31 2022 From: bobcole at earthlink.net (Bob Cole) Date: Fri, 26 Aug 2022 16:10:31 -0500 Subject: addIcon issue In-Reply-To: References: Message-ID: I added the test icon to the custom icon library. Now I want to delete it. In the Dictionary for Icon SVG Library, I see there is a way to delete an entire icon family: deleteIconFamily(pFamily) Is there a way to remove just one icon from a family? Bob From MikeKerner at roadrunner.com Sun Aug 28 11:10:12 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 11:10:12 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: * icon operations are temporary (as soon as you quit LC and relaunch it, the icons and families you add go away) * there is no deleteIcon code in the icon api * the icon api is in /Contents/Tools/Extensions/com.livecode.library.iconsvg/iconsvg.lcb On Fri, Aug 26, 2022 at 5:11 PM Bob Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > I added the test icon to the custom icon library. Now I want to delete it. > In the Dictionary for Icon SVG Library, I see there is a way to delete an > entire icon family: deleteIconFamily(pFamily) > Is there a way to remove just one icon from a family? > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sun Aug 28 12:58:27 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 12:58:27 -0400 Subject: lcb missing manual Message-ID: things for lcb that are supposedly documented, but i can't find: * editor types (e.g. com.livecode.pi.number) * other metadata definitions for properties, widgets, etc.) -- 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." From richmondmathewson at gmail.com Sun Aug 28 13:05:32 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 28 Aug 2022 18:05:32 +0100 Subject: lcb missing manual In-Reply-To: References: Message-ID: It would be good were there full documentation for LCB, and, preferably with some sort of thematic search so, unlike the LiveCode dictionary one did not have to flounder around so much working out what to search for. On Sun, 28 Aug 2022, 18:00 Mike Kerner via use-livecode, < use-livecode at lists.runrev.com> wrote: > things for lcb that are supposedly documented, but i can't find: > * editor types (e.g. com.livecode.pi.number) > * other metadata definitions for properties, widgets, etc.) > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Sun Aug 28 13:17:54 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 28 Aug 2022 10:17:54 -0700 Subject: lcb missing manual In-Reply-To: References: Message-ID: On 8/28/22 09:58, Mike Kerner via use-livecode wrote: > things for lcb that are supposedly documented, but i can't find: > * editor types (e.g. com.livecode.pi.number) > * other metadata definitions for properties, widgets, etc.) ...things that we use in LCS but aren't available in LCB: colornames switch statements etc. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Sun Aug 28 13:35:19 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 10:35:19 -0700 Subject: Livecode / Github In-Reply-To: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> References: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> Message-ID: The same applies to the code in Navigator. I wrote it about five years ago when I was preparing to transform Navigator itself to use script behaviors. Always work on a copy. That said, it worked fine for Navigator, and no one has ever told me it broke anything. gc On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > I tried scriptifier and it broke stuff so just be careful with it and > check its output. > > Sean > > > > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hey Skip, long time... > > I don't know if you were around when script-only-stack behaviors came > into > > being, but you can now rip all of the code out of your stacks and happily > > use vc/git. The stacks themselves are still binary (although several of > us > > have been messing with dumping that paradigm completely, it's less > > practical than I would have hoped, as of today). > > Navigator will export every script in a project into behavior stacks, and > > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded > > in the LC bundle, and it does the same thing, namely extracting all the > > scripts out of a project and putting them into .livecodescript text > files. > > Levure is great. I have used it with every project I've worked on for > > several years, BUT you don't have to use it to go this route. > > > >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Hi SKIP > >> > >> Welcome back to the list! > >> > >> There is Levure which I knew of as a third party application framework > >> created by Trevor DeVore but I just did a search for it and I see it > now on > >> the LiveCode website described as an App Collaboration Framework. > >> https://livecode.com/products/livecode-platform/levure/ < > >> https://livecode.com/products/livecode-platform/levure/> So it must > have > >> at some point migrated to the mother ship. > >> > >> I haven’t used it but I have considered migrating my application to it. > >> It works with version control systems as long as you follow its > >> recommendations about how to organize your code into behaviours that are > >> stored in script only stacks which are just text files that a version > >> control system can read (These are somewhat new so depending on when you > >> last used LiveCode they may be new to you.) This was an enhancement > that > >> has enabled the use of version control for scripts in a project. It is > the > >> binary stacks that versions control systems can’t track so in Levure > those > >> are just used for user interface. > >> > >> Hope this helps. > >> > >> Martin > >> > >> > >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Greetings! > >>> > >>> Been a while since I have been on this list. Working on a new project > >> and > >>> wondering if the backing up of Livecode files to Github was ever > >>> implemented and created. I know there was talk of it at one time. > >>> > >>> I apologize if it has been in place for a while and I am just out of > the > >>> loop. Actually, I HOPE that is the case! > >>> > >>> Regards, > >>> > >>> SKIP > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Sun Aug 28 13:38:06 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 10:38:06 -0700 Subject: BN Guides In-Reply-To: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: Where are the BN guides? I'd be curious to see how this is happening. As I recall, Navigator is designed to dive through whatever behaviors are set regardless of how deep the rabbit hole goes to find the actual behavior, but I haven't looked at that part of the code in years. gc On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Who wrote BN Guides? Very cool, but there is a conflict with Navigator. > When I double-click an object in Navigator to open it's script, I get t he > BNGuides script instead. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Sun Aug 28 14:06:39 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 14:06:39 -0400 Subject: lcb missing manual In-Reply-To: References: Message-ID: the lcb documentation, especially in the api widget is ungreat. the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. On Sun, Aug 28, 2022 at 1:18 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/28/22 09:58, Mike Kerner via use-livecode wrote: > > things for lcb that are supposedly documented, but i can't find: > > * editor types (e.g. com.livecode.pi.number) > > * other metadata definitions for properties, widgets, etc.) > > ...things that we use in LCS but aren't available in LCB: > colornames > switch statements > etc. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From ahsoftware at sonic.net Sun Aug 28 14:25:59 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 28 Aug 2022 11:25:59 -0700 Subject: lcb missing manual In-Reply-To: References: Message-ID: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> On 8/28/22 11:06, Mike Kerner wrote: > the lcb documentation, especially in the api widget is ungreat. > the good news is that as long as there is an oss repo version of LC, you > can hunt for some of the information that is missing. AND, at least for > now, you can still find much of it in the LC application > example: as i was hunting, i found a bunch of editors, but none of them > seem to be documented anywhere obvious. Yep - I find most of my documentation by digging. The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Sun Aug 28 15:05:44 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 28 Aug 2022 21:05:44 +0200 Subject: BN Guides In-Reply-To: References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: Geoff, you can find the most current version here https://forums.livecode.com/viewtopic.php?f=4&t=31920 Regards, Matthias > Am 28.08.2022 um 19:38 schrieb Geoff Canyon via use-livecode >: > > Where are the BN guides? I'd be curious to see how this is happening. As I > recall, Navigator is designed to dive through whatever behaviors are set > regardless of how deep the rabbit hole goes to find the actual behavior, > but I haven't looked at that part of the code in years. > > gc > > On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. >> When I double-click an object in Navigator to open it's script, I get t he >> BNGuides script instead. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sun Aug 28 15:29:27 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 12:29:27 -0700 Subject: Livecode / Github In-Reply-To: References: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> Message-ID: To be clear: if anyone wants to try Navigator's export to script behaviors function -- work on a copy, and I'd love feedback. On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon wrote: > The same applies to the code in Navigator. I wrote it about five years ago > when I was preparing to transform Navigator itself to use script behaviors. > > Always work on a copy. > > That said, it worked fine for Navigator, and no one has ever told me it > broke anything. > > gc > > On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I tried scriptifier and it broke stuff so just be careful with it and >> check its output. >> >> Sean >> >> >> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Hey Skip, long time... >> > I don't know if you were around when script-only-stack behaviors came >> into >> > being, but you can now rip all of the code out of your stacks and >> happily >> > use vc/git. The stacks themselves are still binary (although several of >> us >> > have been messing with dumping that paradigm completely, it's less >> > practical than I would have hoped, as of today). >> > Navigator will export every script in a project into behavior stacks, >> and >> > Monte wrote a stack called "Scriptifier", if memory serves. It's >> embedded >> > in the LC bundle, and it does the same thing, namely extracting all the >> > scripts out of a project and putting them into .livecodescript text >> files. >> > Levure is great. I have used it with every project I've worked on for >> > several years, BUT you don't have to use it to go this route. >> > >> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >> Hi SKIP >> >> >> >> Welcome back to the list! >> >> >> >> There is Levure which I knew of as a third party application framework >> >> created by Trevor DeVore but I just did a search for it and I see it >> now on >> >> the LiveCode website described as an App Collaboration Framework. >> >> https://livecode.com/products/livecode-platform/levure/ < >> >> https://livecode.com/products/livecode-platform/levure/> So it must >> have >> >> at some point migrated to the mother ship. >> >> >> >> I haven’t used it but I have considered migrating my application to it. >> >> It works with version control systems as long as you follow its >> >> recommendations about how to organize your code into behaviours that >> are >> >> stored in script only stacks which are just text files that a version >> >> control system can read (These are somewhat new so depending on when >> you >> >> last used LiveCode they may be new to you.) This was an enhancement >> that >> >> has enabled the use of version control for scripts in a project. It is >> the >> >> binary stacks that versions control systems can’t track so in Levure >> those >> >> are just used for user interface. >> >> >> >> Hope this helps. >> >> >> >> Martin >> >> >> >> >> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> Greetings! >> >>> >> >>> Been a while since I have been on this list. Working on a new project >> >> and >> >>> wondering if the backing up of Livecode files to Github was ever >> >>> implemented and created. I know there was talk of it at one time. >> >>> >> >>> I apologize if it has been in place for a while and I am just out of >> the >> >>> loop. Actually, I HOPE that is the case! >> >>> >> >>> Regards, >> >>> >> >>> SKIP >> >>> _______________________________________________ >> >>> use-livecode mailing list >> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From neville.smythe at optusnet.com.au Sun Aug 28 19:04:49 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 29 Aug 2022 09:04:49 +1000 Subject: SVG Icon tool query Message-ID: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> Many thanks to Brian for sharing the fantastic collection of icons included in this tool. Can I enquire as to the copyright status of the images? Neville From MikeKerner at roadrunner.com Sun Aug 28 19:18:43 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 19:18:43 -0400 Subject: SVG Icon tool query In-Reply-To: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> References: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> Message-ID: I looked at the source that Brian says he used in his repo ( https://github.com/leungwensen/svg-icon). I don't see any copyright listed on that site, but it has all of the libraries linked to it...but then at least the first one (Ant) doesn't seem to have any license listed anywhere, either. On Sun, Aug 28, 2022 at 7:06 PM Neville Smythe via use-livecode < use-livecode at lists.runrev.com> wrote: > Many thanks to Brian for sharing the fantastic collection of icons > included in this tool. Can I enquire as to the copyright status of the > images? > > Neville > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sun Aug 28 19:22:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 19:22:06 -0400 Subject: Svg Icon Tool In-Reply-To: References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: Interesting: Steven/LC also made a cool demo of the polyList for displaying the svg icon families and icons that are currently in LC. It's called "SVGIconList", and it uses a total of... 23 lines of code. On Fri, Aug 26, 2022 at 4:50 PM Mike Kerner wrote: > sorry - STEVEN > > On Fri, Aug 26, 2022 at 4:08 PM Mike Kerner > wrote: > >> i decided, yesterday, to go through the lcb lessons, again, because of >> this issue (and wanting to deal with a couple of things in the iconPicker). >> hopefully it'll be done and released before i finish the course, because >> Stephen said that he's going to have a new version of powerButton out in >> the morning, which will hopefully cause me to forget about this while i >> play with that. >> >> On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I looked at the code and an auto hilite property could be added and the >>> hiliteing could be disabled. It would be confusing but it would be allow >>> one to control the hilite. I'm going to try it for laughs. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>> Behalf Of Brian Milby via use-livecode >>> Sent: Friday, August 26, 2022 1:13 PM >>> To: How to use LiveCode >>> Cc: Brian Milby >>> Subject: Re: Svg Icon Tool >>> >>> I think that if auto highlight is disabled then hiliteChanged would >>> never get triggered. Having the back end highlight change without it >>> visually changing would probably lead to confusion. >>> >>> >>> > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> > >>> > What if the widget had a property to disable the auto hilite on click >>> and when the hiliteChanged message arrives you can set(or not) the hilite >>> as appropriate via setting a widget property? A pre-message would be >>> cleaner but this is not horrible. >>> > >>> > Ralph DiMola >>> > IT Director >>> > Evergreen Information Services >>> > rdimola at evergreeninfo.net >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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." >> > > > -- > 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." > -- 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." From sean at pidigital.co.uk Sun Aug 28 21:30:15 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 29 Aug 2022 02:30:15 +0100 Subject: Livecode / Github In-Reply-To: References: Message-ID: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> It will be good to see, once available, how using the new SmartCrumbs add on will help with this. All objects in JSON form and then use stack scripts (and htmlText, AudioClip and VideoClip data) in your GitHub repository. This is something I really want to start implementing. Sean > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > >  > To be clear: if anyone wants to try Navigator's export to script behaviors function -- work on a copy, and I'd love feedback. > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon wrote: >> The same applies to the code in Navigator. I wrote it about five years ago when I was preparing to transform Navigator itself to use script behaviors. >> >> Always work on a copy. >> >> That said, it worked fine for Navigator, and no one has ever told me it broke anything. >> >> gc >> >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode wrote: >>> I tried scriptifier and it broke stuff so just be careful with it and check its output. >>> >>> Sean >>> >>> >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode wrote: >>> > >>> > Hey Skip, long time... >>> > I don't know if you were around when script-only-stack behaviors came into >>> > being, but you can now rip all of the code out of your stacks and happily >>> > use vc/git. The stacks themselves are still binary (although several of us >>> > have been messing with dumping that paradigm completely, it's less >>> > practical than I would have hoped, as of today). >>> > Navigator will export every script in a project into behavior stacks, and >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded >>> > in the LC bundle, and it does the same thing, namely extracting all the >>> > scripts out of a project and putting them into .livecodescript text files. >>> > Levure is great. I have used it with every project I've worked on for >>> > several years, BUT you don't have to use it to go this route. >>> > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >>> >> use-livecode at lists.runrev.com> wrote: >>> >> >>> >> Hi SKIP >>> >> >>> >> Welcome back to the list! >>> >> >>> >> There is Levure which I knew of as a third party application framework >>> >> created by Trevor DeVore but I just did a search for it and I see it now on >>> >> the LiveCode website described as an App Collaboration Framework. >>> >> https://livecode.com/products/livecode-platform/levure/ < >>> >> https://livecode.com/products/livecode-platform/levure/> So it must have >>> >> at some point migrated to the mother ship. >>> >> >>> >> I haven’t used it but I have considered migrating my application to it. >>> >> It works with version control systems as long as you follow its >>> >> recommendations about how to organize your code into behaviours that are >>> >> stored in script only stacks which are just text files that a version >>> >> control system can read (These are somewhat new so depending on when you >>> >> last used LiveCode they may be new to you.) This was an enhancement that >>> >> has enabled the use of version control for scripts in a project. It is the >>> >> binary stacks that versions control systems can’t track so in Levure those >>> >> are just used for user interface. >>> >> >>> >> Hope this helps. >>> >> >>> >> Martin >>> >> >>> >> >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >>> >> use-livecode at lists.runrev.com> wrote: >>> >>> >>> >>> Greetings! >>> >>> >>> >>> Been a while since I have been on this list. Working on a new project >>> >> and >>> >>> wondering if the backing up of Livecode files to Github was ever >>> >>> implemented and created. I know there was talk of it at one time. >>> >>> >>> >>> I apologize if it has been in place for a while and I am just out of the >>> >>> loop. Actually, I HOPE that is the case! >>> >>> >>> >>> Regards, >>> >>> >>> >>> SKIP >>> >>> _______________________________________________ >>> >>> use-livecode mailing list >>> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sun Aug 28 23:45:07 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 28 Aug 2022 23:45:07 -0400 Subject: Livecode / Github In-Reply-To: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: If you want to see what the JSON export looks like for a fairly small stack, you can view this: https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json Unfortunately you will need to download and view it with something that understands the CR line ending since GitHub doesn't. That repo has both ScriptTracker exports and SmartCrumbs exports of the stack. The former is designed with two things in mind: allowing changes in the scripts that are part of a binary stack to be tracked and allowing the editing of those scripts in an external editor (I like Atom for the linting, have not tried the newer option). The latter looks to be a way to completely decompose a stack into mostly text files (images being one exception) that can be tracked (and in theory changes merged together I'm guessing). Since the JSON file is keyed off of the GUIDs of each object, it really doesn't lend itself to human inspection. Assuming line endings are sane (probably would work for Windows and definitely will work for Linux), Git should easily be able to track the changes. Whether someone could easily discern which object was being touched is another matter (which would be necessary to merge changes together). On Sun, Aug 28, 2022 at 9:31 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > It will be good to see, once available, how using the new SmartCrumbs add > on will help with this. All objects in JSON form and then use stack scripts > (and htmlText, AudioClip and VideoClip data) in your GitHub repository. > This is something I really want to start implementing. > > Sean > > > > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > > > >  > > To be clear: if anyone wants to try Navigator's export to script > behaviors function -- work on a copy, and I'd love feedback. > > > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon > wrote: > >> The same applies to the code in Navigator. I wrote it about five years > ago when I was preparing to transform Navigator itself to use script > behaviors. > >> > >> Always work on a copy. > >> > >> That said, it worked fine for Navigator, and no one has ever told me it > broke anything. > >> > >> gc > >> > >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> I tried scriptifier and it broke stuff so just be careful with it and > check its output. > >>> > >>> Sean > >>> > >>> > >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > > >>> > Hey Skip, long time... > >>> > I don't know if you were around when script-only-stack behaviors > came into > >>> > being, but you can now rip all of the code out of your stacks and > happily > >>> > use vc/git. The stacks themselves are still binary (although several > of us > >>> > have been messing with dumping that paradigm completely, it's less > >>> > practical than I would have hoped, as of today). > >>> > Navigator will export every script in a project into behavior > stacks, and > >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's > embedded > >>> > in the LC bundle, and it does the same thing, namely extracting all > the > >>> > scripts out of a project and putting them into .livecodescript text > files. > >>> > Levure is great. I have used it with every project I've worked on for > >>> > several years, BUT you don't have to use it to go this route. > >>> > > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > >>> >> use-livecode at lists.runrev.com> wrote: > >>> >> > >>> >> Hi SKIP > >>> >> > >>> >> Welcome back to the list! > >>> >> > >>> >> There is Levure which I knew of as a third party application > framework > >>> >> created by Trevor DeVore but I just did a search for it and I see > it now on > >>> >> the LiveCode website described as an App Collaboration Framework. > >>> >> https://livecode.com/products/livecode-platform/levure/ < > >>> >> https://livecode.com/products/livecode-platform/levure/> So it > must have > >>> >> at some point migrated to the mother ship. > >>> >> > >>> >> I haven’t used it but I have considered migrating my application to > it. > >>> >> It works with version control systems as long as you follow its > >>> >> recommendations about how to organize your code into behaviours > that are > >>> >> stored in script only stacks which are just text files that a > version > >>> >> control system can read (These are somewhat new so depending on > when you > >>> >> last used LiveCode they may be new to you.) This was an > enhancement that > >>> >> has enabled the use of version control for scripts in a project. It > is the > >>> >> binary stacks that versions control systems can’t track so in > Levure those > >>> >> are just used for user interface. > >>> >> > >>> >> Hope this helps. > >>> >> > >>> >> Martin > >>> >> > >>> >> > >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > >>> >> use-livecode at lists.runrev.com> wrote: > >>> >>> > >>> >>> Greetings! > >>> >>> > >>> >>> Been a while since I have been on this list. Working on a new > project > >>> >> and > >>> >>> wondering if the backing up of Livecode files to Github was ever > >>> >>> implemented and created. I know there was talk of it at one time. > >>> >>> > >>> >>> I apologize if it has been in place for a while and I am just out > of the > >>> >>> loop. Actually, I HOPE that is the case! > >>> >>> > >>> >>> Regards, > >>> >>> > >>> >>> SKIP > >>> >>> _______________________________________________ > >>> >>> use-livecode mailing list > >>> >>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Aug 29 09:04:57 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 29 Aug 2022 09:04:57 -0400 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: I would love for us to get to a place where we could have it both ways. On Sun, Aug 28, 2022 at 11:46 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > If you want to see what the JSON export looks like for a fairly small > stack, you can view this: > > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > Unfortunately you will need to download and view it with something that > understands the CR line ending since GitHub doesn't. That repo has both > ScriptTracker exports and SmartCrumbs exports of the stack. The former is > designed with two things in mind: allowing changes in the scripts that are > part of a binary stack to be tracked and allowing the editing of those > scripts in an external editor (I like Atom for the linting, have not tried > the newer option). The latter looks to be a way to completely decompose a > stack into mostly text files (images being one exception) that can be > tracked (and in theory changes merged together I'm guessing). > > Since the JSON file is keyed off of the GUIDs of each object, it really > doesn't lend itself to human inspection. Assuming line endings are sane > (probably would work for Windows and definitely will work for Linux), Git > should easily be able to track the changes. Whether someone could easily > discern which object was being touched is another matter (which would be > necessary to merge changes together). > > On Sun, Aug 28, 2022 at 9:31 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > It will be good to see, once available, how using the new SmartCrumbs add > > on will help with this. All objects in JSON form and then use stack > scripts > > (and htmlText, AudioClip and VideoClip data) in your GitHub repository. > > This is something I really want to start implementing. > > > > Sean > > > > > > > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > > > > > >  > > > To be clear: if anyone wants to try Navigator's export to script > > behaviors function -- work on a copy, and I'd love feedback. > > > > > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon > > wrote: > > >> The same applies to the code in Navigator. I wrote it about five years > > ago when I was preparing to transform Navigator itself to use script > > behaviors. > > >> > > >> Always work on a copy. > > >> > > >> That said, it worked fine for Navigator, and no one has ever told me > it > > broke anything. > > >> > > >> gc > > >> > > >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> I tried scriptifier and it broke stuff so just be careful with it and > > check its output. > > >>> > > >>> Sean > > >>> > > >>> > > >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > > >>> > Hey Skip, long time... > > >>> > I don't know if you were around when script-only-stack behaviors > > came into > > >>> > being, but you can now rip all of the code out of your stacks and > > happily > > >>> > use vc/git. The stacks themselves are still binary (although > several > > of us > > >>> > have been messing with dumping that paradigm completely, it's less > > >>> > practical than I would have hoped, as of today). > > >>> > Navigator will export every script in a project into behavior > > stacks, and > > >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's > > embedded > > >>> > in the LC bundle, and it does the same thing, namely extracting all > > the > > >>> > scripts out of a project and putting them into .livecodescript text > > files. > > >>> > Levure is great. I have used it with every project I've worked on > for > > >>> > several years, BUT you don't have to use it to go this route. > > >>> > > > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > > >>> >> use-livecode at lists.runrev.com> wrote: > > >>> >> > > >>> >> Hi SKIP > > >>> >> > > >>> >> Welcome back to the list! > > >>> >> > > >>> >> There is Levure which I knew of as a third party application > > framework > > >>> >> created by Trevor DeVore but I just did a search for it and I see > > it now on > > >>> >> the LiveCode website described as an App Collaboration Framework. > > >>> >> https://livecode.com/products/livecode-platform/levure/ < > > >>> >> https://livecode.com/products/livecode-platform/levure/> So it > > must have > > >>> >> at some point migrated to the mother ship. > > >>> >> > > >>> >> I haven’t used it but I have considered migrating my application > to > > it. > > >>> >> It works with version control systems as long as you follow its > > >>> >> recommendations about how to organize your code into behaviours > > that are > > >>> >> stored in script only stacks which are just text files that a > > version > > >>> >> control system can read (These are somewhat new so depending on > > when you > > >>> >> last used LiveCode they may be new to you.) This was an > > enhancement that > > >>> >> has enabled the use of version control for scripts in a project. > It > > is the > > >>> >> binary stacks that versions control systems can’t track so in > > Levure those > > >>> >> are just used for user interface. > > >>> >> > > >>> >> Hope this helps. > > >>> >> > > >>> >> Martin > > >>> >> > > >>> >> > > >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > > >>> >> use-livecode at lists.runrev.com> wrote: > > >>> >>> > > >>> >>> Greetings! > > >>> >>> > > >>> >>> Been a while since I have been on this list. Working on a new > > project > > >>> >> and > > >>> >>> wondering if the backing up of Livecode files to Github was ever > > >>> >>> implemented and created. I know there was talk of it at one > time. > > >>> >>> > > >>> >>> I apologize if it has been in place for a while and I am just out > > of the > > >>> >>> loop. Actually, I HOPE that is the case! > > >>> >>> > > >>> >>> Regards, > > >>> >>> > > >>> >>> SKIP > > >>> >>> _______________________________________________ > > >>> >>> use-livecode mailing list > > >>> >>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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." From gcanyon at gmail.com Mon Aug 29 11:26:58 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 29 Aug 2022 08:26:58 -0700 Subject: BN Guides In-Reply-To: References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: 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. Navigator out of the box assumes that behaviors are what you're interested in when you double-click to edit a script, so if BN Guides has assigned a behavior, it opens the script BN Guides assigns as the behavior. If I'm right and the assignment of behaviors is supposed to be the case only while you're dragging, then simply deselecting the dragged controls should correct this. If there's an issue with BN Guides, or you want to be *sure* to open the control's script, and not a behavior, you can: 1. In Navigator Preferences, you can choose what to do on double-click -- and double-click with many modifier keys. If all of your scripts are in the actual controls, then select "Edit Script" for "Double-click" instead of the default " 2. Right-click a command-bar and select "Edit Script" as the action for that command bar, and then click it to edit the control's script. At some point I considered updating the script menu to display all the controls in the behavior chain. Anyone feel free to let me know if that's a necessary thing. gc On Sun, Aug 28, 2022 at 12:06 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Geoff, > > you can find the most current version here > > https://forums.livecode.com/viewtopic.php?f=4&t=31920 < > https://forums.livecode.com/viewtopic.php?f=4&t=31920> > > > Regards, > Matthias > > > > Am 28.08.2022 um 19:38 schrieb Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com >: > > > > Where are the BN guides? I'd be curious to see how this is happening. As > I > > recall, Navigator is designed to dive through whatever behaviors are set > > regardless of how deep the rabbit hole goes to find the actual behavior, > > but I haven't looked at that part of the code in years. > > > > gc > > > > On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com > > wrote: > > > >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. > >> When I double-click an object in Navigator to open it's script, I get t > he > >> BNGuides script instead. > >> > >> Bob S > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Aug 29 13:29:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 10:29:37 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: On 8/28/22 20:45, Brian Milby via use-livecode wrote: > If you want to see what the JSON export looks like for a fairly small > stack, you can view this: > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > Unfortunately you will need to download and view it with something that > understands the CR line ending since GitHub doesn't. That repo has both > ScriptTracker exports and SmartCrumbs exports of the stack. The former is > designed with two things in mind: allowing changes in the scripts that are > part of a binary stack to be tracked and allowing the editing of those > scripts in an external editor (I like Atom for the linting, have not tried > the newer option). The latter looks to be a way to completely decompose a > stack into mostly text files (images being one exception) that can be > tracked (and in theory changes merged together I'm guessing). OK - I just tried out smartcrumbs to check it out. Not quite sure what's going on here. Outsmarted by smartcrumbs. According to the lesson you just drag this onto a stack. Nope. Click the "Export Stack" button. Stack flickers. Did anything happen? According to the dictionary there's an scGetPathLog(). Maybe that will give me a clue. /My LiveCode/SmartCrumbsVCW/logs//2022-08-29 Eh? What's this "/My LiveCode" thing? I don't have one of those. And why is it trying to store that off my root directory? Let's try that one again. "Recursion limit reached" I'll try scExportStack from the message box. It gives "can't find handler" OK - back to real work. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Mon Aug 29 13:53:26 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 29 Aug 2022 13:53:26 -0400 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: I used Magic Palette to do the export. It should create the folder structure next to the stack file that was the topstack in the IDE. I have not looked at the lesson though. On Mon, Aug 29, 2022 at 1:31 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/28/22 20:45, Brian Milby via use-livecode wrote: > > If you want to see what the JSON export looks like for a fairly small > > stack, you can view this: > > > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > > > Unfortunately you will need to download and view it with something that > > understands the CR line ending since GitHub doesn't. That repo has both > > ScriptTracker exports and SmartCrumbs exports of the stack. The former > is > > designed with two things in mind: allowing changes in the scripts that > are > > part of a binary stack to be tracked and allowing the editing of those > > scripts in an external editor (I like Atom for the linting, have not > tried > > the newer option). The latter looks to be a way to completely decompose > a > > stack into mostly text files (images being one exception) that can be > > tracked (and in theory changes merged together I'm guessing). > > OK - I just tried out smartcrumbs to check it out. Not quite sure what's > going on here. Outsmarted by smartcrumbs. > > According to the lesson you just drag this onto a stack. > Nope. > Click the "Export Stack" button. > Stack flickers. > Did anything happen? > According to the dictionary there's an scGetPathLog(). > Maybe that will give me a clue. > /My LiveCode/SmartCrumbsVCW/logs//2022-08-29 > Eh? > What's this "/My LiveCode" thing? I don't have one of those. > And why is it trying to store that off my root directory? > Let's try that one again. > "Recursion limit reached" > I'll try scExportStack from the message box. > It gives "can't find handler" > > OK - back to real work. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Aug 29 15:06:24 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 12:06:24 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> On 8/29/22 10:53, Brian Milby via use-livecode wrote: > I used Magic Palette to do the export. It should create the folder > structure next to the stack file that was the topstack in the IDE. Ah. OK - So I had to look up the filename of the stack first. Would have been nice if the nonexistent log file told me that. > I have not looked at the lesson though. Not missing anything there. I've just been going by the dictionary entries. But now I've opened the guide.md file and see more, although the formatting is wonky. Gotta love the fact that the TOC entry is "Unknown". Looks like it was rushed out the door. -- -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Mon Aug 29 15:22:31 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 29 Aug 2022 20:22:31 +0100 Subject: Livecode / Github In-Reply-To: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> References: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> Look at the guide in the guide section of the dictionary app. It formats okay (although I’m going through and rewriting the grammar to send for an update). Thanks Brian for the heads up on MagicPallet. I hadn’t looked to see what that was for yet. It’s all early stages yet but it’s looking very promising. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 29 Aug 2022, at 20:06, Mark Wieder via use-livecode wrote: > > On 8/29/22 10:53, Brian Milby via use-livecode wrote: >> I used Magic Palette to do the export. It should create the folder >> structure next to the stack file that was the topstack in the IDE. > > Ah. OK - So I had to look up the filename of the stack first. > Would have been nice if the nonexistent log file told me that. > >> I have not looked at the lesson though. > > Not missing anything there. > I've just been going by the dictionary entries. > But now I've opened the guide.md file and see more, although the formatting is wonky. Gotta love the fact that the TOC entry is "Unknown". Looks like it was rushed out the door. > > -- > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Aug 29 15:37:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 12:37:02 -0700 Subject: Livecode / Github In-Reply-To: <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> References: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> Message-ID: <8dcbb283-4907-b69a-5e89-46cfb451fb81@sonic.net> On 8/29/22 12:22, Pi Digital via use-livecode wrote: > Look at the guide in the guide section of the dictionary app. It formats okay (although Im going through and rewriting the grammar to send for an update). Thanks, Sean. Yeah - that does format much better in a browser. -- Mark Wieder ahsoftware at gmail.com From gregg.podnar at gmail.com Mon Aug 29 16:38:26 2022 From: gregg.podnar at gmail.com (Gregg) Date: Mon, 29 Aug 2022 16:38:26 -0400 Subject: Why is Livecode not on this list? Message-ID: https://spectrum.ieee.org/top-programming-languages-2022 From ambassador at fourthworld.com Mon Aug 29 16:51:16 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 13:51:16 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: 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 intrusive as altering an object's behavior property for something this transient. But Bernd does good work, so I'm curious: why this approach and not a frontScript? -- Richard Gaskin Fourth World Systems From ambassador at fourthworld.com Mon Aug 29 16:55:36 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 13:55:36 -0700 Subject: Why is Livecode not on this list? In-Reply-To: References: Message-ID: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> 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, where LC has only been in the top 50 a few times over the years I've been tracking it, but is often in the bottom 50 (out of hundreds of languages not so bad): https://www.tiobe.com/tiobe-index/ -- Richard Gaskin Fourth World Systems From richmondmathewson at gmail.com Mon Aug 29 17:15:04 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 29 Aug 2022 22:15:04 +0100 Subject: Why is Livecode not on this list? In-Reply-To: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> References: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> Message-ID: Personally, My 'take' on LiveCode is that, generally, it is ideal for boutique programming, for specific free-standing applications. It is also excellent for teaching children programming concepts in a relatively digestable way without dumbing programming down in the way block-coding efforts such as Scratch do. As such, there will always be very few advertisements for LiveCode programmers. That should not, in any way, devalue LiveCode. On Mon, 29 Aug 2022, 21:56 Richard Gaskin via use-livecode, < use-livecode at lists.runrev.com> wrote: > 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, where LC has > only been in the top 50 a few times over the years I've been tracking > it, but is often in the bottom 50 (out of hundreds of languages not so > bad): > > https://www.tiobe.com/tiobe-index/ > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Mon Aug 29 17:36:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Aug 2022 17:36:01 -0400 Subject: the script of with line numbers? Message-ID: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript   put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. From jacque at hyperactivesw.com Mon Aug 29 17:50:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 29 Aug 2022 16:50:53 -0500 Subject: the script of with line numbers? In-Reply-To: References: Message-ID: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: > Is there a way (an existing function or command in the language or IDE) to get the script of an > object WITH the line numbers as you see them in the IDE script editor? > > OR > > Do I just have to do something like: > > put the script of tObject into tScript > repeat with i=1 to the number of lines in tScript >   put i &space before line i of tScript > end repeat > > Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Aug 29 17:55:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 21:55:00 +0000 Subject: the script of with line numbers? In-Reply-To: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> References: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> Message-ID: Maybe marginally better: ... sort it by word 1 of each Bob S On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode > wrote: On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Aug 29 17:55:42 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 21:55:42 +0000 Subject: the script of with line numbers? In-Reply-To: References: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> Message-ID: <94DD7BBC-C054-4B62-AEE6-9757D2C9750F@iotecdigital.com> Correction: sort it numeric by word 1 of each Bob S On Aug 29, 2022, at 14:55 , Bob Sneidar > wrote: Maybe marginally better: ... sort it by word 1 of each Bob S On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode > wrote: On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Bernd.Niggemann at uni-wh.de Mon Aug 29 18:25:29 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 29 Aug 2022 22:25:29 +0000 Subject: BN Guides Message-ID: <3160207C-1B51-4F13-818C-1DDDD0F8D9ED@uni-wh.de> > Richard Gaskin via use-livecode Mon, 29 Aug 2022 13:53:13 -0700 > > 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 intrusive as altering an object's behavior property for something this transient. > > But Bernd does good work, so I'm curious: why this approach and not a frontScript? Actually I was experimenting and wanted to use behaviors dynamically at the time when I wrote this. A proof of principle if you want. It worked surprisingly well. That is why I sticked to behaviors. After fixing some edge cases it even removes the behaviors correctly... At the time there were no guides available for LC. But as of LC 10 Guidelines will be part of the IDE and that looks and works really well. (LC uses a backScript) Kind regards Bernd From ahsoftware at sonic.net Mon Aug 29 18:58:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 15:58:41 -0700 Subject: the script of with line numbers? In-Reply-To: References: Message-ID: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: > Is there a way (an existing function or command in the language or IDE) > to get the script of an object WITH the line numbers as you see them in > the IDE script editor? While some clever solutions have been posted, I gotta ask WHY? -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Aug 29 19:10:27 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 23:10:27 +0000 Subject: the script of with line numbers? In-Reply-To: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> Message-ID: <937A8FE2-4A88-495F-AE16-8466665E3956@iotecdigital.com> That question always reminds me of Mathesar when he discoveres that Commander Peter Quincy Taggert has been lying all along. :-) Bob S On Aug 29, 2022, at 15:58 , Mark Wieder via use-livecode > wrote: On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? While some clever solutions have been posted, I gotta ask WHY? -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 29 19:11:09 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Aug 2022 19:11:09 -0400 Subject: the script of with line numbers? In-Reply-To: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> Message-ID: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> On 8/29/2022 6:58 PM, Mark Wieder via use-livecode wrote: > On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: >> Is there a way (an existing function or command in the language or >> IDE) to get the script of an object WITH the line numbers as you see >> them in the IDE script editor? > > While some clever solutions have been posted, I gotta ask WHY? > In our applications, we trap the script error dialog and replace the default with our own. That dialog lets customers send the executionContexts and some other debugging information to us to report an error (if one gets by quality/beta testing). So we get the executionContext that say "error such and such occurred at line 342 of some handler". The line number is the line of the whole script the handler is in. When we et the message and log the problem in our instance of Bugzilla, one of the 1st things is to look at the script and see what the line of code references actually says. It could reduce a trouble should step to include the line numbers programmatically in the error report. No a huge priority in the scheme of things, but a "nice to have" sort of thing. Does that answer the "why?" From bobsneidar at iotecdigital.com Mon Aug 29 19:18:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 23:18:34 +0000 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: <72224209-4337-4747-A52B-AA2DF2B5EBB3@iotecdigital.com> As long as Mathesar is happy, I'm happy. Bob S On Aug 29, 2022, at 16:11 , Paul Dupuis via use-livecode > wrote: No a huge priority in the scheme of things, but a "nice to have" sort of thing. Does that answer the "why?" From ahsoftware at sonic.net Mon Aug 29 19:19:40 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 16:19:40 -0700 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: On 8/29/22 16:11, Paul Dupuis via use-livecode wrote: > It could reduce a trouble should step to include the line numbers > programmatically in the error report. > > No a huge priority in the scheme of things, but a "nice to have" sort of > thing. Does that answer the "why?" Somewhat. If you already have the line number from the error message, why not just grab that line of script? Or preface it with the line number you already have in your possession? But I find that the executionContexts gives me more information than just where the error occurred, since the actual problem may be farther up the line and it's only the end symptom that triggers the error. -- Mark Wieder ahsoftware at gmail.com From Bernd.Niggemann at uni-wh.de Mon Aug 29 19:22:19 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 29 Aug 2022 23:22:19 +0000 Subject: BN Guides Message-ID: <0CFB84B5-71D9-4F2D-AE86-67356B005FD8@uni-wh.de> > Richard Gaskin via use-livecode Mon, 29 Aug 2022 13:53:13 -0700 > so I'm curious: why this approach and not a frontScript? I thought about why I used behaviors a little more. What intrigued me was the idea that via a behavior a control was made aware of its neighbours. Be it a group or a control it knew where all the other objects were. Even dragged them along when needed. And it worked semi autonomously with a little help from "the owner of this me". I think that was my main fascination when using behaviors. It was a change of perspective from the central perspective to a decentralised perspective. Kind regards Bernd From ambassador at fourthworld.com Mon Aug 29 19:38:28 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 16:38:28 -0700 Subject: Why is Livecode not on this list? In-Reply-To: References: Message-ID: <9aa11f8f-1ba8-98de-1a9f-76277220a8d7@fourthworld.com> Richmond Mathewson wrote: > As such, there will always be very few advertisements for LiveCode > programmers. But still many good stories to tell. And apparently LC Ltd just hired a new Brand & Digital Marketing Lead, so I imagine we'll see those stories told. https://twitter.com/happymaan/status/1562801044132085762 -- Richard Gaskin Fourth World Systems From sean at pidigital.co.uk Mon Aug 29 23:49:21 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 30 Aug 2022 04:49:21 +0100 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> Using The earlier example, you could use put theErrorLineNum into tLineNum put the script of stack “myScript” into tScript split tScript using cr logError tLineNum, tScript[tLineNum] Or something like that. Sean >>> Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? >> >> While some clever solutions have been posted, I gotta ask WHY? >> > > In our applications, we trap the script error dialog and replace the default with our own. That dialog lets customers send the executionContexts and some other debugging information to us to report an error (if one gets by quality/beta testing). > > So we get the executionContext that say "error such and such occurred at line 342 of some handler". The line number is the line of the whole script the handler is in. > > When we et the message and log the problem in our instance of Bugzilla, one of the 1st things is to look at the script and see what the line of code references actually says. > > It could reduce a trouble should step to include the line numbers programmatically in the error report. From ambassador at fourthworld.com Tue Aug 30 01:14:05 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 22:14:05 -0700 Subject: the script of with line numbers? In-Reply-To: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> References: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> Message-ID: <92952525-1fdf-6f86-3e09-9daf297eca3e@fourthworld.com> Another option: Automate it, replacing Bugzilla's web UI with LC Mod Ken Ray's RevZilla to retrieve support emails, reformat them however needed, tuck them in the DB, integrate the report display with things like double-clicking a line in the executtionContexts to open scripts, etc. http://www.sonsothunder.com/devres/livecode/downloads/RevZilla2.htm One-stop shopping for a fully integrated software support system. A similar approach could be used with Nextcloud's Deck APIs, or a wide range of other issue tracking systems, even Github. -- Richard Gaskin Fourth World Systems From gcanyon at gmail.com Tue Aug 30 03:45:04 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 00:45:04 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: He's also throwing controls into the stack to show guides for the alignment, and then disposing of those. So maybe in for a penny? If I were doing something like this I think I'd try: 1. A frontscript, as you say, or just setting up to receive IDE messages -- pretty sure there's an objectMoved IDE message or something like it. 2. Using stacks with the shape set as guides. But maybe my idea is out of date or impractical in some way. I experimented with some sort of auto-alignment code a long time ago. I have no memory of how far I got with it. gc On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > 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 > intrusive as altering an object's behavior property for something this > transient. > > But Bernd does good work, so I'm curious: why this approach and not a > frontScript? > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Aug 30 13:42:52 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 30 Aug 2022 10:42:52 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: I've fantasized about being able to paint directly to the window buffer without using an object, but having done that in C back in the day I enjoy the conveniences scripted objects bring. Your stack suggestion is intriguing, but how does it work in practice? I find the systemic overhead of dynamically reinstantiating windows to fit a changing shape makes things a bit less smooth than I'd prefer. Or are you suggesting a separate stack for each guide line? That would keep the performance up, but seems tedious to write. -- Richard Gaskin Fourth World Systems Geoff Canyon wrote: > He's also throwing controls into the stack to show guides for the > alignment, and then disposing of those. So maybe in for a penny? > > If I were doing something like this I think I'd try: > > 1. A frontscript, as you say, or just setting up to receive IDE messages -- > pretty sure there's an objectMoved IDE message or something like it. > 2. Using stacks with the shape set as guides. > > But maybe my idea is out of date or impractical in some way. I experimented > with some sort of auto-alignment code a long time ago. I have no memory of > how far I got with it. > > gc > > On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 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 >> intrusive as altering an object's behavior property for something this >> transient. >> >> But Bernd does good work, so I'm curious: why this approach and not a >> frontScript? >> >> -- >> Richard Gaskin >> Fourth World Systems From gcanyon at gmail.com Tue Aug 30 17:27:13 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 14:27:13 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: <393ACC2F-9B6C-4FBE-9318-2B3E9C106F2B@gmail.com> 15(?) years ago I wrote an app that bounced a bunch of balls across the screen. Each was a shaped-stack. It has no trouble being pretty smooth even with twenty or so stacks, as I recall. It would be more than enough for guides, especially with the 100x hardware we have today. Positioning a stack is as simple as positioning a control, but for any translations to/from global coordinates. gc > On Aug 30, 2022, at 10:44 AM, Richard Gaskin via use-livecode wrote: > > I've fantasized about being able to paint directly to the window buffer without using an object, but having done that in C back in the day I enjoy the conveniences scripted objects bring. > > Your stack suggestion is intriguing, but how does it work in practice? > > I find the systemic overhead of dynamically reinstantiating windows to fit a changing shape makes things a bit less smooth than I'd prefer. > > Or are you suggesting a separate stack for each guide line? That would keep the performance up, but seems tedious to write. > > -- > Richard Gaskin > Fourth World Systems > > > > > Geoff Canyon wrote: >> He's also throwing controls into the stack to show guides for the >> alignment, and then disposing of those. So maybe in for a penny? >> If I were doing something like this I think I'd try: >> 1. A frontscript, as you say, or just setting up to receive IDE messages -- >> pretty sure there's an objectMoved IDE message or something like it. >> 2. Using stacks with the shape set as guides. >> But maybe my idea is out of date or impractical in some way. I experimented >> with some sort of auto-alignment code a long time ago. I have no memory of >> how far I got with it. >> gc >>> On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> 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 >>> intrusive as altering an object's behavior property for something this >>> transient. >>> >>> But Bernd does good work, so I'm curious: why this approach and not a >>> frontScript? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Aug 30 17:30:36 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 14:30:36 -0700 Subject: lcb missing manual In-Reply-To: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> References: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> Message-ID: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> Is there a page that discusses the pros of LCB? I looked and didn’t find it. I’m thinking of a simple list (I’m making this up because I didn’t find the page) — N times faster execution than LCS — interface with code libraries using simple hooks — bundle code and graphics together into widgets More? gc > On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode wrote: > > On 8/28/22 11:06, Mike Kerner wrote: >> the lcb documentation, especially in the api widget is ungreat. >> the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application >> example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. > > Yep - I find most of my documentation by digging. > > The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Aug 30 17:56:57 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 30 Aug 2022 17:56:57 -0400 Subject: lcb missing manual In-Reply-To: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> Message-ID: <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> LCB has been slower than LCS, but the advantage is that you can easily link to much faster compiler code. I’m not sure if that has changed any… I could pull out some code from a while back where we were doing some speed tests. Sent from my iPhone > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode wrote: > > Is there a page that discusses the pros of LCB? I looked and didn’t find it. > > I’m thinking of a simple list (I’m making this up because I didn’t find the page) > > — N times faster execution than LCS > — interface with code libraries using simple hooks > — bundle code and graphics together into widgets > > More? > > gc > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode wrote: >>> >>> On 8/28/22 11:06, Mike Kerner wrote: >>> the lcb documentation, especially in the api widget is ungreat. >>> the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application >>> example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. >> >> Yep - I find most of my documentation by digging. >> >> The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 30 19:12:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Aug 2022 23:12:47 +0000 Subject: Standardize Font Appearance Message-ID: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Hi all. I'm at the point now where I want to clean up the appearance of all my projects across all platforms. For instance, I have a Time Calculator stack that calculates total time for any number of start/stop/lunch entries. I have heretofore left my field and label fonts at the default, which for MacOS is . But when I create a standalone for Windows, the size of that text is larger, and so any labels I have overflow the label and only show me part of the text. What I want to do is set up my environment so that whatever font I use in the MacOS uses, there is an identical font on the Windows side as well. I know there is a way to embed fonts in a project, but I don't really understand how that works. If I use a font that exists in both Mac and Windows, a common web font for instance, they do not look at all the same on both platforms. Verdana is a good example. I am not averse to purchasing a font family or two and statically setting my font, size and style for every object, so long as the Windows and MacOS look (reasonably) the same. Any ideas? Bob S From bobsneidar at iotecdigital.com Tue Aug 30 19:20:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Aug 2022 23:20:34 +0000 Subject: Standardize Font Appearance In-Reply-To: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. Bob S On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode > wrote: Hi all. I'm at the point now where I want to clean up the appearance of all my projects across all platforms. For instance, I have a Time Calculator stack that calculates total time for any number of start/stop/lunch entries. I have heretofore left my field and label fonts at the default, which for MacOS is . But when I create a standalone for Windows, the size of that text is larger, and so any labels I have overflow the label and only show me part of the text. What I want to do is set up my environment so that whatever font I use in the MacOS uses, there is an identical font on the Windows side as well. I know there is a way to embed fonts in a project, but I don't really understand how that works. If I use a font that exists in both Mac and Windows, a common web font for instance, they do not look at all the same on both platforms. Verdana is a good example. I am not averse to purchasing a font family or two and statically setting my font, size and style for every object, so long as the Windows and MacOS look (reasonably) the same. Any ideas? Bob S From tom at makeshyft.com Tue Aug 30 20:36:51 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 30 Aug 2022 20:36:51 -0400 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: THe only way to do this is to use google's web fonts and ship them with your project. It works well. To save you the trouble, Android requires the fonts to be in a "fonts" folder in the root folder of your projects. Or at least its what I read somewhere in the forums. Cheers Bob On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. > > Bob S > > > On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > Hi all. > > I'm at the point now where I want to clean up the appearance of all my > projects across all platforms. For instance, I have a Time Calculator stack > that calculates total time for any number of start/stop/lunch entries. I > have heretofore left my field and label fonts at the default, which for > MacOS is . But when I create a standalone for Windows, the > size of that text is larger, and so any labels I have overflow the label > and only show me part of the text. > > What I want to do is set up my environment so that whatever font I use in > the MacOS uses, there is an identical font on the Windows side as well. I > know there is a way to embed fonts in a project, but I don't really > understand how that works. > > If I use a font that exists in both Mac and Windows, a common web font for > instance, they do not look at all the same on both platforms. Verdana is a > good example. I am not averse to purchasing a font family or two and > statically setting my font, size and style for every object, so long as the > Windows and MacOS look (reasonably) the same. > > Any ideas? > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Aug 30 21:55:30 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 30 Aug 2022 20:55:30 -0500 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: <182f19c5250.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have an Android app that uses a custom font. I just dropped the ttf file into the Copy Files pane of standalone settings and issued "start using font file" in a preOpenStack handler. Seems to work fine. Easy too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 30, 2022 7:39:19 PM Tom Glod via use-livecode wrote: > THe only way to do this is to use google's web fonts and ship them with > your project. It works well. > To save you the trouble, Android requires the fonts to be in a "fonts" > folder in the root folder of your projects. > Or at least its what I read somewhere in the forums. > > Cheers Bob > > On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. >> >> Bob S >> >> >> On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> Hi all. >> >> I'm at the point now where I want to clean up the appearance of all my >> projects across all platforms. For instance, I have a Time Calculator stack >> that calculates total time for any number of start/stop/lunch entries. I >> have heretofore left my field and label fonts at the default, which for >> MacOS is . But when I create a standalone for Windows, the >> size of that text is larger, and so any labels I have overflow the label >> and only show me part of the text. >> >> What I want to do is set up my environment so that whatever font I use in >> the MacOS uses, there is an identical font on the Windows side as well. I >> know there is a way to embed fonts in a project, but I don't really >> understand how that works. >> >> If I use a font that exists in both Mac and Windows, a common web font for >> instance, they do not look at all the same on both platforms. Verdana is a >> good example. I am not averse to purchasing a font family or two and >> statically setting my font, size and style for every object, so long as the >> Windows and MacOS look (reasonably) the same. >> >> Any ideas? >> >> Bob S >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Aug 30 22:02:50 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 03:02:50 +0100 Subject: Livecode / Github In-Reply-To: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: Hi Mark, When you said this, how did you use it to get it to work? I'm getting the same issues as you were. Thanks Sean On Mon, 29 Aug 2022 at 20:06, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > > Ah. OK - So I had to look up the filename of the stack first. > > From sean at pidigital.co.uk Tue Aug 30 22:36:06 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 03:36:06 +0100 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: Don't worry, it was password protected. I thought it had managed to remove the protection but the script I ran to remove it from the 97 stacks didn;t do it properly. So I did it again and then needed to restart LC first for it to fully recognise the protection removed. All good now. MainStack exported (it's massive so it took some time). just another 96 stacks to go. Looks like I'll set up an automation script. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On Wed, 31 Aug 2022 at 03:02, Sean Cole wrote: > Hi Mark, > > When you said this, how did you use it to get it to work? I'm getting the > same issues as you were. > > Thanks > Sean > > On Mon, 29 Aug 2022 at 20:06, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Ah. OK - So I had to look up the filename of the stack first. >> >> From ahsoftware at sonic.net Tue Aug 30 23:05:16 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 30 Aug 2022 20:05:16 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> On 8/30/22 19:36, Sean Cole via use-livecode wrote: > just another 96 stacks to go. > Looks like I'll set up an automation script. Ouch! I think the library would do well to check the password status and allow entering and cacheing the password as necessary. Too bad it's closed source so we can't fix it. -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Wed Aug 31 06:00:41 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 11:00:41 +0100 Subject: Livecode / Github In-Reply-To: <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> Message-ID: Well, I had to leave it overnight to finish exporting as it was clear to take some time. This was for just the main stack, not my long list of stacks. Looking at the message box this morning, though, has a response Message execution error: Error description: Object: object does not have this property Hint: 'Object does not have this property' ?? What property? Thanks LC for giving me all the information I need to fix it [shrugs]. It hasn't created the JSON file in the main .sc folder so it must have abandoned the operation at some point. I'll give it another go now after a reset and to another faster drive to see if that improves things but with no other info to go on I have no idea what needs to be done. LC Team: :-) It would be REALLY handy if proper errors were thrown when one occurs that can help us easily understand what the issues are. Also, if prior to release documentation were gone through to make sure they are legible. And if plugins released actually work as described. :-) Sean On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/30/22 19:36, Sean Cole via use-livecode wrote: > > just another 96 stacks to go. > > Looks like I'll set up an automation script. > > Ouch! I think the library would do well to check the password status and > allow entering and cacheing the password as necessary. Too bad it's > closed source so we can't fix it. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Wed Aug 31 08:46:51 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 08:46:51 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. Thanks, Brian > On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: > > Well, I had to leave it overnight to finish exporting as it was clear to > take some time. This was for just the main stack, not my long list of > stacks. Looking at the message box this morning, though, has a response > > Message execution error: > Error description: Object: object does not have this property > Hint: > > 'Object does not have this property' ?? What property? Thanks LC for giving > me all the information I need to fix it [shrugs]. It hasn't created the > JSON file in the main .sc folder so it must have abandoned the operation at > some point. > > I'll give it another go now after a reset and to another faster drive to > see if that improves things but with no other info to go on I have no idea > what needs to be done. > > LC Team: :-) It would be REALLY handy if proper errors were thrown when one > occurs that can help us easily understand what the issues are. Also, if > prior to release documentation were gone through to make sure they are > legible. And if plugins released actually work as described. :-) > > Sean > > >> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>> just another 96 stacks to go. >>> Looks like I'll set up an automation script. >> >> Ouch! I think the library would do well to check the password status and >> allow entering and cacheing the password as necessary. Too bad it's >> closed source so we can't fix it. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Aug 31 08:53:09 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 31 Aug 2022 08:53:09 -0400 Subject: lcb missing manual In-Reply-To: <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> Message-ID: It would be interesting if lcb was slower, since it's supposed to be lower-level. The demo that Steven did, demonstrating the speed of populating a polyGrid (lcb widget) vs. a dataGrid (lcs group) was that it was much, much faster. On Tue, Aug 30, 2022 at 5:58 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > LCB has been slower than LCS, but the advantage is that you can easily > link to much faster compiler code. I’m not sure if that has changed any… I > could pull out some code from a while back where we were doing some speed > tests. > > Sent from my iPhone > > > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there a page that discusses the pros of LCB? I looked and didn’t > find it. > > > > I’m thinking of a simple list (I’m making this up because I didn’t find > the page) > > > > — N times faster execution than LCS > > — interface with code libraries using simple hooks > > — bundle code and graphics together into widgets > > > > More? > > > > gc > > > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> On 8/28/22 11:06, Mike Kerner wrote: > >>> the lcb documentation, especially in the api widget is ungreat. > >>> the good news is that as long as there is an oss repo version of LC, > you can hunt for some of the information that is missing. AND, at least for > now, you can still find much of it in the LC application > >>> example: as i was hunting, i found a bunch of editors, but none of > them seem to be documented anywhere obvious. > >> > >> Yep - I find most of my documentation by digging. > >> > >> The lack of colornames just bit me earlier this week and I had to > backpedal and code a list of a dozen color names as "R,G,B". Even the > "#FFFFFF" format isn't accepted. > >> > >> -- > >> Mark Wieder > >> ahsoftware at gmail.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From sean at pidigital.co.uk Wed Aug 31 10:26:15 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 15:26:15 +0100 Subject: lcb missing manual In-Reply-To: References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> Message-ID: The subject of the dictionary has long been one of contention. One that I have often spoken up and been shouted down about (nb, I'm not making accusations or flames :) ). But I also understand the great amount of resources this would take to produce decent, up to date guides and indices of all the terms and libraries. LC's become quite the behemoth and I doubt any one individual could carry it out. Indeed, even a bunch of us during past HacktoberFests only achieved a percentage of it. The AI thing Kevin showed us some time ago showed promise. But I'm not sure how far off that is from seeing the light of day. Hopefully soon if I haven't already missed it. But, even so, a lot of the examples, language and syntax are out of date or incomplete so would still need some work. As someone who eats manuals and dictionaries for brunch I'd love to be part of the team to put it together as I have in the past. But I guess it would depend on LCL having the resources to put into it. I would hope they see it as important as we do. All the best On Wed, 31 Aug 2022 at 13:53, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > It would be interesting if lcb was slower, since it's supposed to be > lower-level. > The demo that Steven did, demonstrating the speed of populating a polyGrid > (lcb widget) vs. a dataGrid (lcs group) was that it was much, much faster. > > On Tue, Aug 30, 2022 at 5:58 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > LCB has been slower than LCS, but the advantage is that you can easily > > link to much faster compiler code. I’m not sure if that has changed > any… I > > could pull out some code from a while back where we were doing some speed > > tests. > > > > Sent from my iPhone > > > > > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Is there a page that discusses the pros of LCB? I looked and didn’t > > find it. > > > > > > I’m thinking of a simple list (I’m making this up because I didn’t find > > the page) > > > > > > — N times faster execution than LCS > > > — interface with code libraries using simple hooks > > > — bundle code and graphics together into widgets > > > > > > More? > > > > > > gc > > > > > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > >>> On 8/28/22 11:06, Mike Kerner wrote: > > >>> the lcb documentation, especially in the api widget is ungreat. > > >>> the good news is that as long as there is an oss repo version of LC, > > you can hunt for some of the information that is missing. AND, at least > for > > now, you can still find much of it in the LC application > > >>> example: as i was hunting, i found a bunch of editors, but none of > > them seem to be documented anywhere obvious. > > >> > > >> Yep - I find most of my documentation by digging. > > >> > > >> The lack of colornames just bit me earlier this week and I had to > > backpedal and code a list of a dozen color names as "R,G,B". Even the > > "#FFFFFF" format isn't accepted. > > >> > > >> -- > > >> Mark Wieder > > >> ahsoftware at gmail.com > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Wed Aug 31 10:33:03 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 31 Aug 2022 15:33:03 +0100 Subject: Livecode / Github In-Reply-To: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> References: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> Message-ID: It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: > > Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. > > Thanks, > Brian > >> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >> >> Well, I had to leave it overnight to finish exporting as it was clear to >> take some time. This was for just the main stack, not my long list of >> stacks. Looking at the message box this morning, though, has a response >> >> Message execution error: >> Error description: Object: object does not have this property >> Hint: >> >> 'Object does not have this property' ?? What property? Thanks LC for giving >> me all the information I need to fix it [shrugs]. It hasn't created the >> JSON file in the main .sc folder so it must have abandoned the operation at >> some point. >> >> I'll give it another go now after a reset and to another faster drive to >> see if that improves things but with no other info to go on I have no idea >> what needs to be done. >> >> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >> occurs that can help us easily understand what the issues are. Also, if >> prior to release documentation were gone through to make sure they are >> legible. And if plugins released actually work as described. :-) >> >> Sean >> >> >>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>> just another 96 stacks to go. >>>>> Looks like I'll set up an automation script. >>> >>> Ouch! I think the library would do well to check the password status and >>> allow entering and cacheing the password as necessary. Too bad it's >>> closed source so we can't fix it. >>> >>> -- >>> Mark Wieder >>> ahsoftware at gmail.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 31 10:37:08 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 10:37:08 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> I’ll run it on my much smaller ScriptTracker stack (which has a couple substacks) and report my findings. Brian Milby brian at milby7.com > On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode wrote: > > It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. > > Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. > > I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > >> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: >> >> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. >> >> Thanks, >> Brian >> >>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >>> >>> Well, I had to leave it overnight to finish exporting as it was clear to >>> take some time. This was for just the main stack, not my long list of >>> stacks. Looking at the message box this morning, though, has a response >>> >>> Message execution error: >>> Error description: Object: object does not have this property >>> Hint: >>> >>> 'Object does not have this property' ?? What property? Thanks LC for giving >>> me all the information I need to fix it [shrugs]. It hasn't created the >>> JSON file in the main .sc folder so it must have abandoned the operation at >>> some point. >>> >>> I'll give it another go now after a reset and to another faster drive to >>> see if that improves things but with no other info to go on I have no idea >>> what needs to be done. >>> >>> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >>> occurs that can help us easily understand what the issues are. Also, if >>> prior to release documentation were gone through to make sure they are >>> legible. And if plugins released actually work as described. :-) >>> >>> Sean >>> >>> >>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>>> just another 96 stacks to go. >>>>>> Looks like I'll set up an automation script. >>>> >>>> Ouch! I think the library would do well to check the password status and >>>> allow entering and cacheing the password as necessary. Too bad it's >>>> closed source so we can't fix it. >>>> >>>> -- >>>> Mark Wieder >>>> ahsoftware at gmail.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 31 10:48:02 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 10:48:02 -0400 Subject: Livecode / Github In-Reply-To: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> Message-ID: <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> https://github.com/bwmilby/scriptTracker It appears that the JSON file does include all substacks. Brian Milby brian at milby7.com > On Aug 31, 2022, at 10:37 AM, Brian Milby wrote: > > I’ll run it on my much smaller ScriptTracker stack (which has a couple substacks) and report my findings. > > Brian Milby > brian at milby7.com > >> On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode wrote: >> >> It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. >> >> Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. >> >> I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. >> >> Sean Cole >> Pi Digital Productions Ltd >> >> eMail Ts & Cs >> >> >>>> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: >>> >>> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. >>> >>> Thanks, >>> Brian >>> >>>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >>>> >>>> Well, I had to leave it overnight to finish exporting as it was clear to >>>> take some time. This was for just the main stack, not my long list of >>>> stacks. Looking at the message box this morning, though, has a response >>>> >>>> Message execution error: >>>> Error description: Object: object does not have this property >>>> Hint: >>>> >>>> 'Object does not have this property' ?? What property? Thanks LC for giving >>>> me all the information I need to fix it [shrugs]. It hasn't created the >>>> JSON file in the main .sc folder so it must have abandoned the operation at >>>> some point. >>>> >>>> I'll give it another go now after a reset and to another faster drive to >>>> see if that improves things but with no other info to go on I have no idea >>>> what needs to be done. >>>> >>>> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >>>> occurs that can help us easily understand what the issues are. Also, if >>>> prior to release documentation were gone through to make sure they are >>>> legible. And if plugins released actually work as described. :-) >>>> >>>> Sean >>>> >>>> >>>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>>>> just another 96 stacks to go. >>>>>>> Looks like I'll set up an automation script. >>>>> >>>>> Ouch! I think the library would do well to check the password status and >>>>> allow entering and cacheing the password as necessary. Too bad it's >>>>> closed source so we can't fix it. >>>>> >>>>> -- >>>>> Mark Wieder >>>>> ahsoftware at gmail.com >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 31 10:58:01 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 15:58:01 +0100 Subject: Livecode / Github In-Reply-To: <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> Message-ID: Thanks for the confirmation, Brian. I tried again from the message box. With a stack this large it takes about 10 seconds before the mainStack disappears for exporting and then reappears 1 min later. About 4-8 mins after that it truely finishes where it flashes up a white window for a moment then the error appears in the message box, same as before, object does not have this property. Because everything is handled using a GUID, I have no idea how far it has got nor which particular object is causing the problem. We'll find it eventually, I'm certain. Sean On Wed, 31 Aug 2022 at 15:48, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > https://github.com/bwmilby/scriptTracker > > It appears that the JSON file does include all substacks. > > Brian Milby > brian at milby7.com > > > On Aug 31, 2022, at 10:37 AM, Brian Milby wrote: > > > > I’ll run it on my much smaller ScriptTracker stack (which has a couple > substacks) and report my findings. > > > > Brian Milby > > brian at milby7.com > > > >> On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> It created a smartcrumbs folder which contained 1 .livecode.sc folder > which contained 3 subfolders, medias, scripts and shareTexts. medias > contained 1 images folder with 2,325 jpeg files. The scripts folder > contained 22,006 livecodescript files. The sharedTexts folders contained > 7,352 GUID ref’d folders with one or more html files as well as 7,462 > separate html files. And that is all. > >> > >> Having tried again using the Export button from the magicPallet (which, > because of the delay between pressing the button and it actually exporting, > should have a spinner or something to show its working on it) I get the > same result but this time with nothing in the message box or any log file. > >> > >> I’ll try again but from the message box. The guide definitely says it > will create a json file in each .livecode.sc folder that contains > information about other objects and substacks. It doesn’t say we need to > export each substack individually. But the json file should hold info about > all the other stuff as well. We’ll see. > >> > >> Sean Cole > >> Pi Digital Productions Ltd > >> > >> eMail Ts & Cs > >> > >> > >>>> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Had it created any of the script or other objects? Curious whether > it builds the JSON first or if it is done while exporting the other assets. > >>> > >>> Thanks, > >>> Brian > >>> > >>>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Well, I had to leave it overnight to finish exporting as it was > clear to > >>>> take some time. This was for just the main stack, not my long list of > >>>> stacks. Looking at the message box this morning, though, has a > response > >>>> > >>>> Message execution error: > >>>> Error description: Object: object does not have this property > >>>> Hint: > >>>> > >>>> 'Object does not have this property' ?? What property? Thanks LC for > giving > >>>> me all the information I need to fix it [shrugs]. It hasn't created > the > >>>> JSON file in the main .sc folder so it must have abandoned the > operation at > >>>> some point. > >>>> > >>>> I'll give it another go now after a reset and to another faster drive > to > >>>> see if that improves things but with no other info to go on I have no > idea > >>>> what needs to be done. > >>>> > >>>> LC Team: :-) It would be REALLY handy if proper errors were thrown > when one > >>>> occurs that can help us easily understand what the issues are. Also, > if > >>>> prior to release documentation were gone through to make sure they are > >>>> legible. And if plugins released actually work as described. :-) > >>>> > >>>> Sean > >>>> > >>>> > >>>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < > >>>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: > >>>>>>> just another 96 stacks to go. > >>>>>>> Looks like I'll set up an automation script. > >>>>> > >>>>> Ouch! I think the library would do well to check the password status > and > >>>>> allow entering and cacheing the password as necessary. Too bad it's > >>>>> closed source so we can't fix it. > >>>>> > >>>>> -- > >>>>> Mark Wieder > >>>>> ahsoftware at gmail.com > >>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Aug 31 11:17:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Aug 2022 15:17:59 +0000 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> Great idea! I looked for a download link for the fonts, but all I can find are github links to the source code (I don't want to have to build out all the fonts if that's what that is) and other sources for font downloaders and synchs. Is there anywhere I can just download the OTF files? Bob S > On Aug 30, 2022, at 17:36 , Tom Glod via use-livecode wrote: > > THe only way to do this is to use google's web fonts and ship them with > your project. It works well. > To save you the trouble, Android requires the fonts to be in a "fonts" > folder in the root folder of your projects. > Or at least its what I read somewhere in the forums. > > Cheers Bob > > On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. >> >> Bob S >> >> >> On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> Hi all. >> >> I'm at the point now where I want to clean up the appearance of all my >> projects across all platforms. For instance, I have a Time Calculator stack >> that calculates total time for any number of start/stop/lunch entries. I >> have heretofore left my field and label fonts at the default, which for >> MacOS is . But when I create a standalone for Windows, the >> size of that text is larger, and so any labels I have overflow the label >> and only show me part of the text. >> >> What I want to do is set up my environment so that whatever font I use in >> the MacOS uses, there is an identical font on the Windows side as well. I >> know there is a way to embed fonts in a project, but I don't really >> understand how that works. >> >> If I use a font that exists in both Mac and Windows, a common web font for >> instance, they do not look at all the same on both platforms. Verdana is a >> good example. I am not averse to purchasing a font family or two and >> statically setting my font, size and style for every object, so long as the >> Windows and MacOS look (reasonably) the same. >> >> Any ideas? >> >> Bob S >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 31 11:27:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Aug 2022 15:27:22 +0000 Subject: Standardize Font Appearance In-Reply-To: <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> Message-ID: <97A503CE-34F0-4BA8-8CA8-C7E52E7A1364@iotecdigital.com> Okay I see there are a butt-ton of them and must be downloaded individually. They can be had at fonts.com. I already found one I like for my module headers! Bob S On Aug 31, 2022, at 08:17 , Bob Sneidar via use-livecode > wrote: Great idea! I looked for a download link for the fonts, but all I can find are github links to the source code (I don't want to have to build out all the fonts if that's what that is) and other sources for font downloaders and synchs. Is there anywhere I can just download the OTF files? Bob S From ahsoftware at sonic.net Wed Aug 31 12:11:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 31 Aug 2022 09:11:02 -0700 Subject: Livecode / Github In-Reply-To: References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> Message-ID: <426b5d44-e22c-851e-4119-f34e2940b3a2@sonic.net> On 8/31/22 07:58, Sean Cole via use-livecode wrote: > Thanks for the confirmation, Brian. > > I tried again from the message box. With a stack this large it takes about > 10 seconds before the mainStack disappears for exporting and then reappears > 1 min later. About 4-8 mins after that it truely finishes where it flashes > up a white window for a moment then the error appears in the message box, > same as before, object does not have this property. Because everything is > handled using a GUID, I have no idea how far it has got nor which > particular object is causing the problem. We'll find it eventually, I'm > certain. Was a log file created? scGetPathLog() No logs were created for me, but just a thought. https://quality.livecode.com/show_bug.cgi?id=23910 -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Wed Aug 31 12:13:32 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 31 Aug 2022 09:13:32 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> Message-ID: <3ba1188d-59d4-c5d7-3f8e-262529b5ccfc@sonic.net> On 8/31/22 03:00, Sean Cole via use-livecode wrote: > LC Team: :-) It would be REALLY handy if proper errors were thrown when one > occurs that can help us easily understand what the issues are. Also, if > prior to release documentation were gone through to make sure they are > legible. And if plugins released actually work as described. :-) Actually, it's even worse. The result is empty if no error occurred and "* successful" if it worked. To me that seems backwards. https://quality.livecode.com/show_bug.cgi?id=23911 -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Aug 1 11:20:49 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 15:20:49 +0000 Subject: wait 0 with messages In-Reply-To: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> Message-ID: <56AA8EF8-C926-4A17-AEC3-16EA9D85350D@iotecdigital.com> This is correct. Bob S > On Jul 31, 2022, at 12:14 , J. Landman Gay via use-livecode wrote: > > On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: >> I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running the script in the first button will prevent mouseUp events in button 2 from being processed. > > I think it must do something, "wait 0" is a workaround for bug 22453 (and 18924 which is now marked as a duplicate.) I had to use the workaround and it works. > > So my take is that any wait allows LC to do housekeeping, and "with messages" also allows app-generated messages. I'd like to get a confirmation from the team though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 1 15:43:25 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 1 Aug 2022 15:43:25 -0400 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> Message-ID: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement > is executed) will not be processed (yet). > > Is this correct? > First, than you to those that have responded. The reason I got curious about 'wait 0 with messages' (or even just 'wait 0') is because of an epiphany I had just last week regarding a bug a customer reported in our software. The customer experienced and execution error and our software presents a custom dialog that allows them to email out support account some information, including the 'executionContexts' so we have some code debugging information. The problem as a 'can't find object' error. In reviewing the code, I could see no way that the error should have occurred. The code was using the ChartMaker library to create a graph. It all looked good per documentation and we could not reproduce the error in house. I then noticed a 'wait 0 with messages' prior to the line the error occurred on and noticed that the line that had the error used object references relative to the current stack (which the defaultStack was explicitly set to much prior). My epiphany was realizing - for the first time, despite LiveCodeing since HyperCard and having a Masters in Computer Science and my entire career being in the IT/software development space for over 40 years - that when the 'wait 0 with messages' is executed, if there was a pending USER click on another window, the defaultStack could change and then the relative object references would not be able to find their target objects. Perhaps I should have realized that a 'wait 0 with messages' COULD result in the defaultStack changing much sooner OR perhaps I should always fully qualify all object references (which I have been doing for quite a few years, but this was old code), but it is a 'gotcha' of using wait with messages I had never thought of. The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? From bobsneidar at iotecdigital.com Mon Aug 1 16:08:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 20:08:30 +0000 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: <2DBED7E7-0692-4E1C-88FA-7A8396BE4017@iotecdigital.com> It's my understanding that wait allows idle messages from the engine to be sent. When that happens, any send in time messages are processed. Wait with messages allows any other messages including engine messages to be processed. For instance, I have a FindBar object that uses wait 1 second with messages in a keyDown handler so that as the user continues to type the keystrokes can be processed. If the user pauses for 1 or more seconds, the code that performs the find is triggered, and then I exit to top to prevent any more unnecessary processing (otherwise the loop would keep going until all the keystrokes were processed). Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: > > Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? From bobsneidar at iotecdigital.com Mon Aug 1 16:16:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 20:16:24 +0000 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path. For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of of me' into a variable initially, then use the variable as a reference. Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: > > The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. From paul at researchware.com Mon Aug 1 16:25:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 1 Aug 2022 16:25:08 -0400 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: Yea, a number of years ago, I went to always fully qualifying object references through all the techniques you mentioned, but we've just not had a chance to scrub the entire code base (100,000 lines+) and so this one got missed until now. We're now going through the entire code base to catch any last cases where object references could be in error due to any wait with messages statements (combined with user actions). On 8/1/2022 4:16 PM, Bob Sneidar via use-livecode wrote: > As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path. > > For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of of me' into a variable initially, then use the variable as a reference. > > Bob S > > >> On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: >> >> The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Aug 3 09:10:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 3 Aug 2022 15:10:55 +0200 Subject: Is Livecode (the company) closed for holiday? Message-ID: Hi, does anyone know if Livecode Ltd. is closed for holiday or so? I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. Regards, Matthias From sean at pidigital.co.uk Wed Aug 3 09:36:19 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 14:36:19 +0100 Subject: Dispatch Message-ID: Hi all, I've been thinking about the command 'dispatch'. Is there any advantage/disadvantage in using it over just calling your handler? Thanks Sean From craig at starfirelighting.com Wed Aug 3 10:30:21 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 3 Aug 2022 10:30:21 -0400 Subject: Dispatch In-Reply-To: References: Message-ID: Hi. “Send” and “Dispatch” do much the same thing, but they do differ in how they interact with the message patch. They also each include their own personal gadgetry that comes in handy in different scenarios. Read about both in the dictionary, and do some experimentation with both. Craig > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode wrote: > > Hi all, > I've been thinking about the command 'dispatch'. Is there any > advantage/disadvantage in using it over just calling your handler? > Thanks > Sean > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 11:23:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:23:20 +0000 Subject: Dispatch In-Reply-To: References: Message-ID: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Send allows you to send in time. However the command or function must exist or you will throw an error. Dispatch cannot use send in time, but if a handler does not exist in the message path of the object you dispatch to, no error will be thrown. This can come in handy. Let's say you have assigned a behavior in all your fields, but in a few of your fields you have a special handler called Cleanup. You can then, 'dispatch "cleanup" to me' in any handler in the behavior. The fields that have the cleanup handler will get the message. The ones that don't will not throw an error. Bob S > On Aug 3, 2022, at 07:30 , Craig Newman via use-livecode wrote: > >> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode wrote: >> >> Hi all, >> I've been thinking about the command 'dispatch'. Is there any >> advantage/disadvantage in using it over just calling your handler? >> Thanks >> Sean From sean at pidigital.co.uk Wed Aug 3 11:27:04 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 16:27:04 +0100 Subject: Dispatch In-Reply-To: References: Message-ID: Thanks Craig, I was particularly asking if there was any 'advantage/disadvantage' in using dispatch myHandler with myVar over just using myHandler The dictionary defines its advantages for use with behaviours and that it returns in the 'it' variable if the message was handled or not - useful even when not used with behaviours in some cases I could imagine. However, I wondered if anyone else had already done the experimentation as to the dis/advantages of the above. Just making use of the community :) Sean On Wed, 3 Aug 2022 at 15:30, Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > “Send” and “Dispatch” do much the same thing, but they do differ in how > they interact with the message patch. They also each include their own > personal gadgetry that comes in handy in different scenarios. Read about > both in the dictionary, and do some experimentation with both. > > Craig > > > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > I've been thinking about the command 'dispatch'. Is there any > > advantage/disadvantage in using it over just calling your handler? > > Thanks > > Sean > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Aug 3 11:27:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:27:33 +0000 Subject: Dispatch In-Reply-To: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> References: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Message-ID: <28DF53EE-8854-4CD2-AE17-95D821551FE0@iotecdigital.com> That should read, "Dispatch cannot use 'in time'" > On Aug 3, 2022, at 08:23 , Bob Sneidar via use-livecode wrote: > > Dispatch cannot use send in time From heather at livecode.com Wed Aug 3 11:31:10 2022 From: heather at livecode.com (Heather Laine) Date: Wed, 3 Aug 2022 16:31:10 +0100 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: Message-ID: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. :) Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: > > Hi, > > does anyone know if Livecode Ltd. is closed for holiday or so? > > I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Wed Aug 3 11:33:32 2022 From: heather at livecode.com (Heather Laine) Date: Wed, 3 Aug 2022 16:33:32 +0100 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Aug 2022, at 16:31, Heather Laine via use-livecode wrote: > > We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. > > :) > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> does anyone know if Livecode Ltd. is closed for holiday or so? >> >> I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. >> >> Regards, >> >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 3 11:38:15 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 16:38:15 +0100 Subject: Dispatch In-Reply-To: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> References: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Message-ID: Awesome Bob, Thanks for the info. That is really helpful. I often use 'try' to catch incidents where things trip over, but this might just be more useful and perform slightly better going forward. Are there any other tips for its use? Sean On Wed, 3 Aug 2022 at 16:23, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Send allows you to send in time. However the command or function must > exist or you will throw an error. Dispatch cannot use send in time, but if > a handler does not exist in the message path of the object you dispatch to, > no error will be thrown. > > This can come in handy. Let's say you have assigned a behavior in all your > fields, but in a few of your fields you have a special handler called > Cleanup. You can then, 'dispatch "cleanup" to me' in any handler in the > behavior. The fields that have the cleanup handler will get the message. > The ones that don't will not throw an error. > > Bob S > > > > On Aug 3, 2022, at 07:30 , Craig Newman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi all, > >> I've been thinking about the command 'dispatch'. Is there any > >> advantage/disadvantage in using it over just calling your handler? > >> Thanks > >> Sean > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Wed Aug 3 11:42:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 3 Aug 2022 17:42:02 +0200 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: <3D0E41E9-5E79-42E3-8036-792FFB1186F7@m-r-d.de> Hello Heather, thanks for your reply. That explains it. All the best for you family issues. Regards, Matthias > Am 03.08.2022 um 17:33 schrieb Heather Laine via use-livecode : > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 3 Aug 2022, at 16:31, Heather Laine via use-livecode wrote: >> >> We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. >> >> :) >> >> Best Regards, >> >> Heather >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.com >> >> >> >>> On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: >>> >>> Hi, >>> >>> does anyone know if Livecode Ltd. is closed for holiday or so? >>> >>> I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. >>> >>> Regards, >>> >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 11:43:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:43:28 +0000 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: All my prayers. Bob S > On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode wrote: > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine From ahsoftware at sonic.net Wed Aug 3 11:53:06 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Aug 2022 08:53:06 -0700 Subject: Dispatch In-Reply-To: References: Message-ID: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> On 8/3/22 06:36, Sean Cole via use-livecode wrote: > Hi all, > I've been thinking about the command 'dispatch'. Is there any > advantage/disadvantage in using it over just calling your handler? If you can invoke a command/function directly then for the most part there's no real advantage in using dispatch. I never use send anymore unless I need send a message in time. I do use dispatch extensively, mostly for two reasons. One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. The second case where I use dispatch is as a form of publish/subscribe: dispatching a command without a receiver object sends the command along the message path where it can be handled/passed by any object along the way. Or not. Mostly in this paradigm I don't need or want to check the return value because it's irrelevant to the sender whether or not the message was handled. The dispatch command can also be useful for feature management. Dispatch a command down the message path, and if the given feature is enabled then the command will be handled. If not then there's no downside to calling the feature because it won't cause a runtime error. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 3 12:14:49 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 3 Aug 2022 12:14:49 -0400 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: <005201d8a754$2b458f20$81d0ad60$@net> +1 Ralph DiMola IT Director Evergreen Information Services -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, August 03, 2022 11:43 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Is Livecode (the company) closed for holiday? All my prayers. Bob S > On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode wrote: > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 12:14:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 16:14:47 +0000 Subject: Dispatch In-Reply-To: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> Message-ID: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> One correction. If a value is returned by the handler that was called, the result will be that value. Bob S > On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode wrote: > > One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. From ahsoftware at sonic.net Wed Aug 3 12:25:44 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Aug 2022 09:25:44 -0700 Subject: Dispatch In-Reply-To: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> Message-ID: <20a53b53-5a34-a550-ef1d-d5b216c7404f@sonic.net> On 8/3/22 09:14, Bob Sneidar wrote: > One correction. If a value is returned by the handler that was called, the result will be that value. Yeah - good catch. I meant to say the "it" value is three-state, not the "result". dispatch someMessage if it is not "unhandled" then... or if it is "passed" then... or if it is "handled" then... and note that you can dispatch functions as well a commands, and the return value of the function will be in the result if "it" is not "unhandled". -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 3 12:56:28 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 3 Aug 2022 12:56:28 -0400 Subject: Dispatch / Send / Wait with/without Messages In-Reply-To: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> Message-ID: <005601d8a759$fc36d710$f4a48530$@net> I'm having the same epiphany as Paul did below. The cornucopia of flexibility(and gotchas) that LC's message path model provides using: 1) Standard issue calling of commands and functions. 2) Engine messages 3) Send (optionally in time) 4) Dispatch 5) Wait in time with/without messages 6) exit to top And any others that I left out or don't know about can do things that I never could have imagined when I first found LC. Although I use all the above there's probably combinations I can't wrap my head around without more info. This would be a great as a dedicated chapter in a book and/or a Dr Mark W symposium followed by Q&A at the next RR Live. There seems to be a lot of app power/error prevention in the message path gold. For a newbie the LCs message path gold would be very attractive if it was only well documented and advertised. My 2 cents... Now back to changing some "wait with messages" to plain old waits to prevent users from clicking and getting my code into trouble now-and-again. Thanks to all on the list for this info!!! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, August 03, 2022 12:15 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Dispatch One correction. If a value is returned by the handler that was called, the result will be that value. Bob S > On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode wrote: > > One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement > is executed) will not be processed (yet). > > Is this correct? > First, than you to those that have responded. The reason I got curious about 'wait 0 with messages' (or even just 'wait 0') is because of an epiphany I had just last week regarding a bug a customer reported in our software. The customer experienced and execution error and our software presents a custom dialog that allows them to email out support account some information, including the 'executionContexts' so we have some code debugging information. The problem as a 'can't find object' error. In reviewing the code, I could see no way that the error should have occurred. The code was using the ChartMaker library to create a graph. It all looked good per documentation and we could not reproduce the error in house. I then noticed a 'wait 0 with messages' prior to the line the error occurred on and noticed that the line that had the error used object references relative to the current stack (which the defaultStack was explicitly set to much prior). My epiphany was realizing - for the first time, despite LiveCodeing since HyperCard and having a Masters in Computer Science and my entire career being in the IT/software development space for over 40 years - that when the 'wait 0 with messages' is executed, if there was a pending USER click on another window, the defaultStack could change and then the relative object references would not be able to find their target objects. Perhaps I should have realized that a 'wait 0 with messages' COULD result in the defaultStack changing much sooner OR perhaps I should always fully qualify all object references (which I have been doing for quite a few years, but this was old code), but it is a 'gotcha' of using wait with messages I had never thought of. The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dfe4 at cornell.edu Wed Aug 3 14:13:27 2022 From: dfe4 at cornell.edu (David Epstein) Date: Wed, 3 Aug 2022 14:13:27 -0400 Subject: Is there a way to create a generic setprop handler? References: <4E830440-7E96-4968-966D-D678573A4622@comcast.net> Message-ID: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> 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 of its custom properties is set? David Epstein From bobsneidar at iotecdigital.com Wed Aug 3 14:36:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 18:36:51 +0000 Subject: Is there a way to create a generic setprop handler? In-Reply-To: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> References: <4E830440-7E96-4968-966D-D678573A4622@comcast.net> <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> Message-ID: If I understand you then no. The only thing I would suggest is to use dispatch to trigger the "general handler" in all of your virtual properties (custom property is not the right phrase when referring to getProp/setProp). Bob S > On Aug 3, 2022, at 11:13 , David Epstein via use-livecode 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 of its custom properties is set? > > David Epstein From ambassador at fourthworld.com Wed Aug 3 14:49:47 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Aug 2022 11:49:47 -0700 Subject: Dispatch In-Reply-To: References: Message-ID: <486e9c51-d82b-c069-44b9-ad1f0fd61a08@fourthworld.com> 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 to add it. The message path is fine. It works reliably, and with as much efficiency as the team can throw at it. In most cases it's not only the easiest thing to type and the most efficient to execute, its simplicity and predictability also aid debugging and maintenance. For those times when you need an exception to the message path, LC provides many. Send, do, call, dispatch, etc. - each has their own unique set of tradeoffs that make it a good fit for the specific circumstance where the native message path isn't what you need. But those are for exceptional circumstances. The native message path is the norm of this language. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 3 15:28:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Aug 2022 12:28:10 -0700 Subject: Is there a way to create a generic setprop handler? In-Reply-To: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> References: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> Message-ID: <7293bb11-f5fa-4849-929f-cafca6063330@fourthworld.com> 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 of its custom properties is set? I don't know of a way to trap getProp and setProp generically, and that may not be bad since it would affect the performance of all custom property access, whether it's the subset of properties you're interested in or not. An alternative could be to put the properties you want custom handling for into a custom property set of their own, e.g.: getPRop uPropSet[pKey] put the params end uPropSet on mouseUp get the uPropSet["key1"] of me end mouseUp ...puts this in the Message Box: uPropSet "key1" This will allow open-ended trapping of property keys, but limited in scope to the set you need that for. A word of caution with dependency on getProp and setProp: Those messages are subject to suspension during lockMessages, which may be exactly what you want, or may have unintended side effects that can be maddening to track down if you don't keep that in mind. Using getProp and setProp requires review of your code base, including any third-party libraries, which may lock messages so you can evaluate the implications for your circumstance. If you need consistently reliable ways to trigger custom evaluation consider accessor handlers instead. LockMessages only prevents system messages; calling a custom handler is not affected by lockMessages. Examples: -- Using an object as the value container: on SetMyProp pKey, pVal set the uPropSet[pKey] of to pVal end SetMyProp function GetMyProp pKey return the uPropSet[pKey] of end GetMyProp -- Using an array variable as the value container: on SetMyProp pKey, pVal put pVal into sPropVarA[pKey] end SetMyProp function GetMyProp pKey return sPropVarA[pKey] end GetMyProp -- Usage for either storage method: on mouseUp SetMyProp "key1", "val1" end mouseUp on mouseUp put GetMyProp("key1") into fld 1 end mouseUp Fun: If you abstract data access using normal custom handlers, you have one-stop-shopping to change the storage mechanism. If you don't need persistence across sessions a variable may do, and if you need persistence you can store in an object whose stackfile gets saved, or encode the array variable and save that to disk, or use a local database, or even use any form of remote storage across the internet if you like -- all by updating just two handlers. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dfe4 at cornell.edu Wed Aug 3 18:08:48 2022 From: dfe4 at cornell.edu (David Epstein) Date: Wed, 3 Aug 2022 18:08:48 -0400 Subject: Chart widget question Message-ID: Using LC 10 dp2, I am trying to script the creation of a chart widget. My command “create widget myName as chart in group myMain” creates only a small gray box. The LC command “New Widget/Chart” creates a line chart, ready to be modified. What is the LC command doing that I am not? Or: how do I find the script that LC runs when the “New Widget/Chart” command is chosen? David Epstein From matthias_livecode_150811 at m-r-d.de Wed Aug 3 18:58:32 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 4 Aug 2022 00:58:32 +0200 Subject: Chart widget question In-Reply-To: References: Message-ID: <38E3ED19-48AF-42D4-AEAA-7EC32216087A@m-r-d.de> I have here only DP4 to test. Don't you have to use com.livecode.widget.chart as widgetkind? With create widget "myChart" as "com.livecode.widget.chart" set the width of last widget to 250 set the height of last widget to 250 i was able to create a chart. Regards, Matthias > Am 04.08.2022 um 00:08 schrieb David Epstein via use-livecode : > > Using LC 10 dp2, I am trying to script the creation of a chart widget. > > My command “create widget myName as chart in group myMain” creates only a small gray box. > > The LC command “New Widget/Chart” creates a line chart, ready to be modified. What is the LC command doing that I am not? > > Or: how do I find the script that LC runs when the “New Widget/Chart” command is chosen? > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 5 12:32:42 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 5 Aug 2022 12:32:42 -0400 Subject: megabundle thoughts Message-ID: i have not seen much discussion of the megabundle, especially about the widgets, etc. i'm not sure if it's worth the $. thoughts? -- 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." From paul at researchware.com Fri Aug 5 12:51:04 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 5 Aug 2022 12:51:04 -0400 Subject: megabundle thoughts In-Reply-To: References: Message-ID: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote: > i have not seen much discussion of the megabundle, especially about the > widgets, etc. > i'm not sure if it's worth the $. > thoughts? > I think the widgets are great additions to Livecode. That said, I have not purchased the MegaBundle. My Livecode commercial/business/whatever license is paid out to something like 2023 or 2024 due to past fund raising where the mothership offered license extensions as part of the packages in those efforts. I am licensed for all platforms, with the professional extensions, so I don't need any more platforms and I really don't need my license extended or any store credits. If there had been a bundle offering that was JUST the extra widgets and stuff without an LC license stuff bundled in, I would have bought one. I don't like to get too far ahead of LC licensing. After all I could get hit by the proverbial bus tomorrow and having 2 years or prepaid LC licensing would go to waste (for me at least). So, I think it is worth the $ if you need additional platforms and/or your license extended (if it is about to expire in, say, another 15 months or less). It may not be worth the $ if you are all set for the next couple of years on LC licensing itself. From alex at tweedly.net Fri Aug 5 13:34:53 2022 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 5 Aug 2022 18:34:53 +0100 Subject: megabundle thoughts In-Reply-To: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> Message-ID: <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> I kind of agree with Paul (though I ame to the opposite conclusion). Once I discounted the items I'd already paid for (conferences, courses, books, etc.) and the multi-year future licensing already paid, the value of the megabundle shrank from "amazing" to "pretty good". I decided to go ahead anyway (so I now have a $300 or $399 voucher that I may never get to use). But about the widgets .... I am very impressed by the PolyList widget; it lets you make sophisticated looking lists, including multi-column ones, very easy; I always disliked the fact that DataGrid couldn't do multi-column. I do think it needs, and will get, improvements (for example, I'd like to see a graphic UI to specify dataLayout - the current way seems kind of late-80's-ish :-) Polygrid looks like it could be useful in the right place - haven't used it yet. Responsive layout - seems like a great addition - I look forward to trying it out, but haven't got there yet. Haven't yet investigated the others. I think they could all do with better documentation and examples, so I'm really waiting for a tutorial or blog from Steven before I dive into each :-) Oh - and last thought - they could *really* do with a better release / version system, but that should resolve itself over time. Alex. On 05/08/2022 17:51, Paul Dupuis via use-livecode wrote: > On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote: >> i have not seen much discussion of the megabundle, especially about the >> widgets, etc. >> i'm not sure if it's worth the $. >> thoughts? >> > > I think the widgets are great additions to Livecode. That said, I have > not purchased the MegaBundle. My Livecode commercial/business/whatever > license is paid out to something like 2023 or 2024 due to past fund > raising where the mothership offered license extensions as part of the > packages in those efforts. I am licensed for all platforms, with the > professional extensions, so I don't need any more platforms and I > really don't need my license extended or any store credits. If there > had been a bundle offering that was JUST the extra widgets and stuff > without an LC license stuff bundled in, I would have bought one. > > I don't like to get too far ahead of LC licensing. After all I could > get hit by the proverbial bus tomorrow and having 2 years or prepaid > LC licensing would go to waste (for me at least). > > So, I think it is worth the $ if you need additional platforms and/or > your license extended (if it is about to expire in, say, another 15 > months or less). It may not be worth the $ if you are all set for the > next couple of years on LC licensing itself. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 5 13:46:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 05 Aug 2022 12:46:55 -0500 Subject: megabundle thoughts In-Reply-To: <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> Message-ID: <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I'm with Paul. I don't need additional licensing but if the widgets go on sale separately later then I'm in. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode wrote: > I kind of agree with Paul (though I ame to the opposite conclusion). From matthias_livecode_150811 at m-r-d.de Fri Aug 5 15:19:10 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 5 Aug 2022 21:19:10 +0200 Subject: megabundle thoughts In-Reply-To: <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I own a Lifetime commercial (Indy) license for all current and future platforms and a current subscription to upgrade my license to the Pro features with Email support. There are 2 items in the bundle i was interested in: the Email parser library and also the PolyGrid widget. The other stuff like the ebooks, conference videos and others i already own or i could upgrade much cheaper (Curry's libraries) through the LC shop. And without the voucher, which has the same value as the Megabundle costs, i would not have purchased the bundle. But i have also a subscription for the script compiler, so i decided to purchase the bundle and use the voucher for the next payments for the Script compiler subscription. So in my case i did not loose money, but got some really usefull widgets and libraries on top. I did not pay much attention for the other widgets and libraries, but must confess that the PolyList (formerl DataView) and also the ResponsiveLayout library are really great enhancements. So in case you have a current subscription in your LC account and you do not plan to cancel that subscription in near future, the MegaBundle is a bargain. You pay your subscription costs in advance and get some really great enhancements for LC. Matthias > Am 05.08.2022 um 19:46 schrieb J. Landman Gay via use-livecode : > > I'm with Paul. I don't need additional licensing but if the widgets go on sale separately later then I'm in. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode wrote: > >> I kind of agree with Paul (though I ame to the opposite conclusion). > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Sat Aug 6 07:44:31 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 13:44:31 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Hi all, So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. For this, if I understand correctly, some javascript needs to be used. I’ve tried to piece together how to do that from these sources: https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/ and Ali Lloyd’s cool WordLC app: https://alilloyd.livecodehosting.com/wordlc/wordlc.html where he uses window.addEventListener(”resize” […] etc in the html file to catch browser window resizing for the stack to react on. However, as I can’t see his LC script side of it, I fail to figure out the proper adaptation to my needs: I want my stack to get, from javascript, the impulse that the browser window has changed its width/height and what the new width/height is, in order to trigger a normal resizeStack handler to deal with that. Ideally, the javascript part of this should be included by LC in the standalone build, and I hope that’s what they plan at least when LC10 stable ships (seems logical), but in the meantime - can someone please help get the code right? /Andreas From harrison at all-auctions.com Sat Aug 6 10:30:25 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Sat, 6 Aug 2022 10:30:25 -0400 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Message-ID: <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> Hi Andreas, I have found the following website to be very helpful with a lot of my javascript projects. Do you know about these guys? https://www.w3schools.com/js/default.asp I hope that helps you. Cheers, Rick > On Aug 6, 2022, at 7:44 AM, Andreas Bergendal via use-livecode wrote: > > Hi all, > > So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. > > For this, if I understand correctly, some javascript needs to be used. I’ve tried to piece together how to do that from these sources: > https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/ > > and Ali Lloyd’s cool WordLC app: > https://alilloyd.livecodehosting.com/wordlc/wordlc.html > > where he uses window.addEventListener(”resize” […] etc in the html file to catch browser window resizing for the stack to react on. However, as I can’t see his LC script side of it, I fail to figure out the proper adaptation to my needs: > > I want my stack to get, from javascript, the impulse that the browser window has changed its width/height and what the new width/height is, in order to trigger a normal resizeStack handler to deal with that. > > Ideally, the javascript part of this should be included by LC in the standalone build, and I hope that’s what they plan at least when LC10 stable ships (seems logical), but in the meantime - can someone please help get the code right? > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sat Aug 6 12:28:01 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Aug 2022 09:28:01 -0700 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> Message-ID: On 8/6/22 07:30, harrison--- via use-livecode wrote: > I have found the following website to be very helpful with a lot of my javascript projects. > > Do you know about these guys? > > https://www.w3schools.com/js/default.asp And also the amazing GitHub Copilot: https://docs.github.com/en/copilot -- Mark Wieder ahsoftware at gmail.com From andreas.bergendal at gmail.com Sat Aug 6 13:14:12 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 19:14:12 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> Thanks guys, those are indeed great resources for many cases. What I’m after here however, are specific solutions to the javascript/livecode ’pairing’ of code to manage browser window/stack resizing. To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot of people here, since having your stack react to browser window resizing should be quite crucial in many cases of LC web deployment. That’s why I’m also confident that the mothership will build this into future releases of LC10. But as an early adopter, I can’t wait… ;-) From ahsoftware at sonic.net Sat Aug 6 13:28:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Aug 2022 10:28:33 -0700 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Message-ID: On 8/6/22 04:44, Andreas Bergendal via use-livecode wrote: > and Ali Lloyds cool WordLC app: > https://alilloyd.livecodehosting.com/wordlc/wordlc.html Unfortunately that throws a divide-by-zero error at line 461 in computeGridFieldWidth when I try to resize the window. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Sat Aug 6 13:45:42 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 6 Aug 2022 18:45:42 +0100 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> References: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> Message-ID: <83d19caf-bf24-37ef-2038-9628e1ed4c60@tweedly.net> You are correct Andreas - all this basic javascript interaction *really* should be in the default built already. A sample stack for building a web app was discussed in a session in the LC Global conference, by Steven Crichton and Michael McReary. It has all kinds of javascript magic, and the corresponding LC pairing. AFAIK, that stack hasn't been made public, so it wouldn't be up to me to show large sections - but I'm sure it's ok to give a couple of snippets ..... In the stack script of the app (includes some stuff with 'spinner - probably not generally needed) : > on openStack >    if the platform is "web" then >       do "document.querySelector('#canvas').removeAttribute('width');" > as "javascript" >       do > "document.querySelector('#canvas').removeAttribute('height');" as > "javascript" >       do "document.querySelector('#canvas').style.width = '100%';" as > "javascript" >       do > "document.querySelector('#emscripten_main').removeAttribute('width');" > as "javascript" >       do > "document.querySelector('#emscripten_main').removeAttribute('height');" > as "javascript" >       do "document.querySelector('#emscripten_main').style.width = > '100%';" as "javascript" >       do "var element = > document.getElementById('spinner');element.parentNode.removeChild(element);" > as "javascript" >       do "var element = > document.getElementById('status');element.parentNode.removeChild(element);" > as "javascript" >       do > "document.querySelector('#donestatus').removeAttribute('style');" as > "javascript" >       do "document.querySelector('#by').removeAttribute('style');" as > "javascript" > >       send "doBrowserResize" to me in 0 millisecs >    end if > end openStack > > on browserResized pInnerHeight >    set the height of this stack to pInnerHeight >    do > "document.querySelector('#emscripten_main').removeAttribute('width');" > as "javascript" >    do "document.querySelector('#emscripten_main').style.width = > '100%';" as "javascript" > end browserResized > > on doBrowserResize >    set the cJavascriptHandlers of this stack to "browserResized" & > return & "scrollEvent" >    set the visible of this stack to true >    do "getInnerHeight();" as "javascript" >    browserResized the result > end doBrowserResize > > on scrollEvent pHScroll, pVScroll >    send "scrollEvent" && pHScroll & comma & pVScroll to this card in 0 > seconds > end scrollEvent > and in the standalone.html : Hmmm - I don't understand it well enough to clip out the needed parts - so I've included the whole thing below  :-(   Again, it includes stuff with spinner, and stripe - which probably should be removed in the general case. Hopefully, LC will get their act together and provide a default build where basic functionality works. Good luck, Alex.                    LiveCode Conference - Meeting Space                    
    
Loading...
    
              
    
            
                              On 06/08/2022 18:14, Andreas Bergendal via use-livecode wrote: > Thanks guys, those are indeed great resources for many cases. > > What Im after here however, are specific solutions to the javascript/livecode pairing of code to manage browser window/stack resizing. > To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot of people here, since having your stack react to browser window resizing should be quite crucial in many cases of LC web deployment. > > Thats why Im also confident that the mothership will build this into future releases of LC10. But as an early adopter, I cant wait ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Sat Aug 6 15:46:21 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 21:46:21 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <8A4FE0CA-7B70-47EE-AEE8-9D9DB3D92EA1@gmail.com> Wow, thanks Alex! That’s brilliant and exactly what I need! I must have missed (or forgotten) that session at the conference - I’ll try to find it among the recordings to see if it helps explaining the various bits a little. In any case I’ll experiment with the code and see what I can get to work. Cheers, Andreas From selander at tkf.att.ne.jp Sun Aug 7 03:29:27 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 7 Aug 2022 16:29:27 +0900 Subject: Auto populate an HTML form with LC server Message-ID: Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? Any help appreciated. Tim Selander Tokyo, Japan From index at kenjikojima.com Sun Aug 7 07:17:35 2022 From: index at kenjikojima.com (Kenji Kojima) Date: Sun, 7 Aug 2022 07:17:35 -0400 Subject: Auto populate an HTML form with LC server In-Reply-To: References: Message-ID: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> Tim, See this https://www.webdesign-fan.com/ajaxzip3 and http://www.webdesign-fan-guide.com/ajaxzip3/ I believe you can use these on the LC server. Best, -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ > On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode wrote: > > Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. > > I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? > > Any help appreciated. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Sun Aug 7 08:57:45 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 7 Aug 2022 21:57:45 +0900 Subject: Auto populate an HTML form with LC server In-Reply-To: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> References: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> Message-ID: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> 一発でした! 小島様、ありがとうごあいました。助かりました! お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。 ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。 では、これからもよろしくお願いいたします。 セランダー・ティム Thank you so much!! Tim On 2022.08.07 20:17, Kenji Kojima wrote: > Tim, > > See this > https://www.webdesign-fan.com/ajaxzip3 > and > http://www.webdesign-fan-guide.com/ajaxzip3/ > > I believe you can use these on the LC server. > > Best, > -- > Kenji Kojima / 小島健治 > http://www.kenjikojima.com/ > > > >> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode >> > > wrote: >> >> Many web forms in Japan automatically fill in prefecture, town, >> ward and block when you just put in the zip code. I would like >> to do that on my web site, and know the api I would use. >> >> I assume these sites are using javascript, but can LC server >> pick up user input before the submit button is clicked? >> >> Any help appreciated. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sun Aug 7 18:15:00 2022 From: tom at makeshyft.com (Tom Glod) Date: Sun, 7 Aug 2022 18:15:00 -0400 Subject: megabundle thoughts In-Reply-To: References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Greetings Everyone! I might be pretty biased (cuz the bundle contains my AppStarterStack), And I understand that people have different goals with their software development. But all i know is there is ALOT of value in the bundle. So much so, I don't even necessarily agree with the price points, for the amount of value thats in it. (When you take just the vouchers into consideration) Just my 5 cents. On Fri, Aug 5, 2022 at 3:20 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > I own a Lifetime commercial (Indy) license for all current and future > platforms and a current subscription to upgrade my license to the Pro > features with Email support. > > There are 2 items in the bundle i was interested in: the Email parser > library and also the PolyGrid widget. The other stuff like the ebooks, > conference videos and others i already own or i could upgrade much cheaper > (Curry's libraries) through the LC shop. > > And without the voucher, which has the same value as the Megabundle > costs, i would not have purchased the bundle. > > But i have also a subscription for the script compiler, so i decided to > purchase the bundle and use the voucher for the next payments for the > Script compiler subscription. > > So in my case i did not loose money, but got some really usefull widgets > and libraries on top. I did not pay much attention for the other widgets > and libraries, but must confess that the PolyList (formerl DataView) and > also the ResponsiveLayout library are really great enhancements. > > So in case you have a current subscription in your LC account and you do > not plan to cancel that subscription in near future, the MegaBundle is a > bargain. You pay your subscription costs in advance and get some really > great enhancements for LC. > > > Matthias > > > > > Am 05.08.2022 um 19:46 schrieb J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com>: > > > > I'm with Paul. I don't need additional licensing but if the widgets go > on sale separately later then I'm in. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> I kind of agree with Paul (though I ame to the opposite conclusion). > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hakan at exformedia.se Mon Aug 8 00:32:05 2022 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Mon, 8 Aug 2022 06:32:05 +0200 Subject: Auto populate an HTML form with LC server In-Reply-To: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> References: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> Message-ID: <198891BF-DC51-4969-8D6E-569E74EFDAF7@exformedia.se> I don’t understand Japanese but to clarify the process. The server side can’t do anything unless you call it in some way. So every time you see something happening in the browser before you submit it is JavaScript running. The libraries mentioned are Ajax libraries (as far as I understand) and should be injected to the web page. With JavaScript you can listen to events in a similar way as in Livecode. And when your event of choice happens your JavaScript calls a server API that can then return an answer (which often is some json) that the JavaScript interprets and injects into the fields. So, Livecode server (or any other server) can’t pick up anything before you submit, but with JavaScript you can make the call! > 7 aug. 2022 kl. 14:59 skrev Tim Selander via use-livecode : > > 一発でした! > 小島様、ありがとうごあいました。助かりました! > お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。 > > ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。 > > では、これからもよろしくお願いいたします。 > > セランダー・ティム > > Thank you so much!! > > Tim > > > >> On 2022.08.07 20:17, Kenji Kojima wrote: >> Tim, >> See this >> https://www.webdesign-fan.com/ajaxzip3 >> and >> http://www.webdesign-fan-guide.com/ajaxzip3/ >> I believe you can use these on the LC server. >> Best, >> -- >> Kenji Kojima / 小島健治 >> http://www.kenjikojima.com/ >>>> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode > wrote: >>> >>> Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. >>> >>> I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? >>> >>> Any help appreciated. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 8 12:26:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 8 Aug 2022 12:26:30 -0400 Subject: Datagrid internal error Message-ID: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumns when the error occurs, does ANYONE have any idea what tColumns might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From paul at researchware.com Mon Aug 8 12:39:02 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 8 Aug 2022 12:39:02 -0400 Subject: Datagrid internal error In-Reply-To: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> Message-ID: <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > A customer encountered the following execution error (below) in our > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > the scrips for the Datagrid itself, rather than our code. At the end, > it is one of our handler, "populateMe", where line 139 is where the > error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > tColumnNames > For example, some information from the customer suggest they are working with a VERY large dataset, so the length of the list in TColumnNames could be quit long - perhaps hundreds of lines. Is there a practical limit on the number of columns a Datagrid can be set to? From rdimola at evergreeninfo.net Mon Aug 8 13:38:50 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 8 Aug 2022 13:38:50 -0400 Subject: Datagrid internal error In-Reply-To: <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> Message-ID: <005401d8ab4d$bbd48c10$337da430$@net> Paul, The max height of a field is 32,767 pixels. This can be hard to quantify especially on mobile with the cornucopia of screen resolutions. I would imagine that this limit also applies to groups as well. I got bit on this when the app worked in the IDE but failed on some devices. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Paul Dupuis via use-livecode Sent: Monday, August 08, 2022 12:39 PM To: use-livecode at lists.runrev.com Cc: Paul Dupuis Subject: Re: Datagrid internal error On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > A customer encountered the following execution error (below) in our > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > the scrips for the Datagrid itself, rather than our code. At the end, > it is one of our handler, "populateMe", where line 139 is where the > error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > tColumnNames > For example, some information from the customer suggest they are working with a VERY large dataset, so the length of the list in TColumnNames could be quit long - perhaps hundreds of lines. Is there a practical limit on the number of columns a Datagrid can be set to? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 8 17:59:13 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 21:59:13 +0000 Subject: Code Signing Certificates: Where to put? Message-ID: I went through the process of creating the 2 certs needed to sign, notarize and staple an app bundle. I imported the certs into my Keychain in System (login didn't seem like the place to put it) and now MrSign'n'Notarize Helper V3 is generating an error which seems to indicate it cannot find the certificate. Codesigning app... executing: codesign --deep --force --verify --verbose --sign "Robert Sneidar (9PV38Bl27Y)" --options runtime --entitlements /private/var/folders/dy/zctnynys6mg69880fpzrmsy00000gr/T/TemporaryItems/entitlements.plist "/Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app" /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: replacing existing signature Warning: unable to build chain to self-signed root for signer "Developer ID Application: " /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: errSecInternalComponent In subcomponent: /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app/Contents/MacOS/revsecurity.dylib process aborted Is this an issue caused by where I put the certificates? Bob S From bobsneidar at iotecdigital.com Mon Aug 8 19:53:04 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 23:53:04 +0000 Subject: Datagrid internal error In-Reply-To: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> Message-ID: <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> I believe dgProp ["columns"] is a comma delimited list. Bob S > On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: > > A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames From bobsneidar at iotecdigital.com Mon Aug 8 19:56:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 23:56:32 +0000 Subject: Datagrid internal error In-Reply-To: <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> Message-ID: Nope I take that back it's lines. I remember now wondering why that was. Bob S > On Aug 8, 2022, at 16:53 , Bob Sneidar wrote: > > I believe dgProp ["columns"] is a comma delimited list. > > Bob S > > >> On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: >> >> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. >> Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames > From paulmcclernan at gmail.com Mon Aug 8 20:50:31 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Mon, 8 Aug 2022 20:50:31 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> Message-ID: I would say go ahead and jump in yourself, I’d be willing to help if I can (I’m rather busy myself), if you post questions in the LCB forum section, if you get stuck. I’m sure Trevor has left a nice starting base (I’ve looked at all of his LCB work). You could likely get the lib binary for macOS using “HomeBrew”. On Thu, Jul 28, 2022 at 1:44 PM harrison--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > You should have led with that information. > > Keys here: Not time sensitive. Pay competitive rates: What is your > rate? Be upfront with that if you can. > > Thanks for clearing things up a bit. > > Cheers, > > Rick > > > > On Jul 28, 2022, at 12:23 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've hired and managed independent software developers for various > businesses for nearly 40 years. I am well aware of the market. > > > > We pay competitive contract rates. My estimate of time is probably about > right for someone who has set up at least 1 or 2 cross-platform LCB DLL > wrappers based on decades of estimating IT projects, but it was more meant > to suggest the work is something in the scope of many hours to days vs. > weeks or months. > > > > As for job size, if you are a contract developer who has a queue of > large jobs providing regular income, good for you. My experience is that > many contract developers value non-time sensitive small jobs they can fit > in and around larger projects to fill in the inevitable gaps between larger > projects that can come up. > > > > If no one is available or interested, as I said, it is not time > sensitive, so we can either wait or tackle it ourselves as time permits. > > > > Paul Dupuis > > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Aug 9 08:09:00 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 9 Aug 2022 08:09:00 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> Message-ID: <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> comma delimited or cr delimited, without looking it up, I am sure it is in the right format since it work 99.99% of the time. The names that would be in the column list all go through a name check function. That function prevents names that are all spaces, longer than 255 characters, or are a handful of "reserved words" and checks that each name does not contain the following characters     if (it < 32)  then return false -- all control characters (0x0000 to 0x0031)     if (it = 34)  then return false -- "                quote (0x0034) -- LC string encapsulator     if (it = 40)  then return false -- (     left parenthesis (0x0040) -- used in filter and theory criteria     if (it = 41)  then return false -- )    right parenthesis (0x0041) -- used in filter and theory criteria     if (it = 44)  then return false -- ,                comma (0x0044) -- LC item delimiter     if (it = 60)  then return false -- <       less than sign (0x0060) -- htmlText tag delimiter     if (it = 62)  then return false -- >    greater than sign (0x0062) -- htmlText tag delimiter     if (it = 91)  then return false -- [  left square bracket (0x0091) -- LC merge delimiter     if (it = 92)  then return false -- \            backslash (0x0092) -- regex string escape character     if (it = 93)  then return false -- ] right square bracket (0x0093) -- LC merge delimiter     if (it = 124) then return false -- |         vertical bar (0x0124) -- used in code     if (it = 127) then return false -- DEL             delete (0x0127) So, comma's are excluded, as are [ and ], and control characters, etc.. However all Unicode characters, codepoints 128 and up are allowed. Testing shows you can have a Datagrid where you can set the columns to empty, so that is not the cause of the error. I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? I don't really want to have to carve out time to build test stacks to try names with every possible characters or ever increasing numbers of column names until the error occurs or those possibilities are ruled out. I was hoping there might be someone on the list who was familiar enough with the internals of the Datagrid to have some idea what might have caused the error. Unfortunately, the customer's data is confidential, so they do not want to provide the data to us to use for testing. And the customer is either not technically savvy or does not have time (they have said they are under a deadline) to help much in troubleshooting. They can get the analysis this Datagrid provides by exporting some data to Excel and doing the analysis in Excel, so the error is not a show-stopper for them as well. Definitely not as convenient as the report in our app, but a viable work-around. See my original post for the executionContexts and the specific error. On 8/8/2022 7:56 PM, Bob Sneidar via use-livecode wrote: > Nope I take that back it's lines. I remember now wondering why that was. > > Bob S > > >> On Aug 8, 2022, at 16:53 , Bob Sneidar wrote: >> >> I believe dgProp ["columns"] is a comma delimited list. >> >> Bob S >> >> >>> On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: >>> >>> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. >>> Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Aug 9 10:44:22 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 9 Aug 2022 16:44:22 +0200 Subject: Code Signing Certificates: Where to put? In-Reply-To: References: Message-ID: <9C1D9CBF-1D59-4DB6-BF82-8A299B7B8354@m-r-d.de> My certificates are stored under Login in my Keychain. I created them using Xcode (Preferences/Account) and Xcode installed them directly in Login. So give it a try and move (if this is possible) the certs to Login or just delete the 2 and reinstall them. If you still run into a problem then could you try to create a simple standalone without any external/extension and see if it is possible to sign and notarize that? Matthias > Am 08.08.2022 um 23:59 schrieb Bob Sneidar via use-livecode : > > I went through the process of creating the 2 certs needed to sign, notarize and staple an app bundle. I imported the certs into my Keychain in System (login didn't seem like the place to put it) and now MrSign'n'Notarize Helper V3 is generating an error which seems to indicate it cannot find the certificate. > Codesigning app... > > executing: codesign --deep --force --verify --verbose --sign "Robert Sneidar (9PV38Bl27Y)" --options runtime --entitlements /private/var/folders/dy/zctnynys6mg69880fpzrmsy00000gr/T/TemporaryItems/entitlements.plist "/Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app" > /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: replacing existing signature > Warning: unable to build chain to self-signed root for signer "Developer ID Application: " > /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: errSecInternalComponent > In subcomponent: /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app/Contents/MacOS/revsecurity.dylib > process aborted > > Is this an issue caused by where I put the certificates? > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 9 11:09:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 9 Aug 2022 15:09:55 +0000 Subject: Datagrid internal error In-Reply-To: <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. Bob S > On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: > > I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? From paul at researchware.com Tue Aug 9 13:15:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 9 Aug 2022 13:15:31 -0400 Subject: Summer Bundle table/grid widgets.... Message-ID: I am in need of a control to display a table of numbers. The top ROW are column labels (text, sometimes up to 255 characters). The left COLUMN is row labels (text, sometime up to 255 characters). I'd like a widget that: 1) Can display this with the top row (or headers) fixed so they remain visible when the data is scrolled 2) Can display this with the left column fixed to they remain visible when the data is scrolled 3) Provides built in abilities to sort the numbers in all the data of the grid/table, by any column, ascending or descending as the user desires. I have already built this with a grouped field (for the fixed left column) and Datagrid (for the remained of the table). Do any of the new widgets in the Summer Bundle do this inherently without me having to make a custom object (as I had to do with the field + Datagrid)? From dan at clearvisiontech.com Tue Aug 9 13:33:42 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 9 Aug 2022 17:33:42 +0000 Subject: Android API Level 31 Message-ID: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> I am trying to upload an AAB to Google Play Condole and I am getting this error: "Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 31." I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio and restarted LC and rebuilt the app. Still getting the error from Google Play. Anyone have any ideas as to the LC/Studio settings needed to get Google to accept the app? Thank you in advance! Dan From merakosp at gmail.com Tue Aug 9 14:45:14 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 9 Aug 2022 21:45:14 +0300 Subject: Android API Level 31 In-Reply-To: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> References: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> Message-ID: Hello Dan, This is a new requirement of the Google Play Store, i.e. new apps should target Android API 31. We are preparing a build of LC 9.6.9 RC-1 that among other bugfixes includes support for API31 too, it is currently in testing and should be good for release very soon. If you are urgently affected please contact support and we can offer an interim (test) build to try. Kind regards, Panos -- On Tue, 9 Aug 2022 at 20:34, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am trying to upload an AAB to Google Play Condole and I am getting this > error: > > "Your app currently targets API level 30 and must target at least API > level 31 to ensure it is built on the latest APIs optimized for security > and performance. Change your app's target API level to at least 31." > > I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio > and restarted LC and rebuilt the app. Still getting the error from Google > Play. Anyone have any ideas as to the LC/Studio settings needed to get > Google to accept the app? > > Thank you in advance! > Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Tue Aug 9 15:12:14 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 9 Aug 2022 19:12:14 +0000 Subject: Android API Level 31 In-Reply-To: References: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> Message-ID: <77239A29-9319-4F46-BE0E-F0A53094F42B@clearvisiontech.com> Panos, THANK YOU for the quick reply and the information! If we're talking days or early next week, I can probably wait. Anything later than that and I'll need something to give my client. Thank you! Dan On 8/9/22, 11:47 AM, "use-livecode on behalf of panagiotis m via use-livecode" wrote: Hello Dan, This is a new requirement of the Google Play Store, i.e. new apps should target Android API 31. We are preparing a build of LC 9.6.9 RC-1 that among other bugfixes includes support for API31 too, it is currently in testing and should be good for release very soon. If you are urgently affected please contact support and we can offer an interim (test) build to try. Kind regards, Panos -- On Tue, 9 Aug 2022 at 20:34, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am trying to upload an AAB to Google Play Condole and I am getting this > error: > > "Your app currently targets API level 30 and must target at least API > level 31 to ensure it is built on the latest APIs optimized for security > and performance. Change your app's target API level to at least 31." > > I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio > and restarted LC and rebuilt the app. Still getting the error from Google > Play. Anyone have any ideas as to the LC/Studio settings needed to get > Google to accept the app? > > Thank you in advance! > Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Wed Aug 10 09:51:27 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 10 Aug 2022 09:51:27 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: This seems like a fragment of a longer thread, but the “dgText” and the “dgData” are the two methods I use to extract, process and reload the content of a data grid. Craig > On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: > > I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. > > Bob S > > >> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >> >> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 10 10:59:35 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 16:59:35 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" Message-ID: Hi all, the subject says it all... How can we get the the visible rect of a stack running on mobile with fullscreenmode "showall"? Know what I mean? Thank you for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Aug 10 11:11:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 15:11:00 +0000 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> I was referring to dgNumberOfRecords • get the dgNumberOfRecords • set the dgNumberOfRecords of group "DataGrid" to 20 • Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows: command GetDataForLine pLine, @pDataA end GetDataForLine You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. Bob S > On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode wrote: > > This seems like a fragment of a longer thread, but the “dgText” and the “dgData” are the two methods I use to extract, process and reload the content of a data grid. > > Craig > >> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: >> >> I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. >> >> Bob S >> >> >>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >>> >>> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 10 11:35:22 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 10 Aug 2022 11:35:22 -0400 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: Check out this repository: https://github.com/bwmilby/mobileDemo It has logging that shows various rects when changing modes. I can look later to try to give a more concise answer. Thanks, Brian Sent from my iPhone > On Aug 10, 2022, at 11:00 AM, Klaus major-k via use-livecode wrote: > > Hi all, > > the subject says it all... > > How can we get the the visible rect of a stack running > on mobile with fullscreenmode "showall"? > Know what I mean? > > Thank you for any hint! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 10 11:44:03 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 17:44:03 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> Hi Brian, > Am 10.08.2022 um 17:35 schrieb Brian Milby via use-livecode : > > Check out this repository: > https://github.com/bwmilby/mobileDemo > > It has logging that shows various rects when changing modes. I can look later to try to give a more concise answer. ah, yes, "the effectiver working screenrect"! 8-) Will take a deeper look at your stack later, thanks! > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Aug 10 12:04:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 16:04:22 +0000 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> References: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> Message-ID: <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> Wait, there is a more effectiver working screenrect than the effective one?? ;-P Bob S > On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: > > ah, yes, "the effectiver working screenrect"! 8-) From klaus at major-k.de Wed Aug 10 12:07:44 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:07:44 +0200 Subject: iPhone simulators Message-ID: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Hi all, we can open several different iPhone and iPad simulators on the Mac via Xcode. However in the "Test Target" menu of LC we only see one generic "iPhone Simulator 15.2" resp. "iPad Simulator 15.2". Is there a way to select one of the open simulators directly? Know what I mean? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Wed Aug 10 12:08:32 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:08:32 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> References: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> Message-ID: Hi Bob, > Am 10.08.2022 um 18:04 schrieb Bob Sneidar via use-livecode : > > Wait, there is a more effectiver working screenrect than the effective one?? ;-P yes, but it is R-rated! 8-) > Bob S > >> On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: >> ah, yes, "the effectiver working screenrect"! 8-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From panos.merakos at livecode.com Wed Aug 10 12:11:01 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 10 Aug 2022 19:11:01 +0300 Subject: [ANN] Release 9.6.9 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.9 RC-1. LiveCode 9.6.9 RC-1 comes with more than 30 bugfixes, including support for Android API 31, which is now a requirement for submitting new apps to the Google Play Store. You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/android-api-31-support/ Note: This maintenance pre-release will break from convention slightly in that there will definitely be an RC-2 with further bug fixes. This RC-1 release is being made due to the change in API level requirement for the Play Store recently made by Google. You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From merakosp at gmail.com Wed Aug 10 12:28:22 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 10 Aug 2022 19:28:22 +0300 Subject: iPhone simulators In-Reply-To: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: Hello Klaus, The suggested approach is to make sure the desired simulator device is already up and running. And then, in the Test Target menu, choose "iPhone Simulator 15.2" or ""iPad Simulator 15.2", and click Test. PS: To change a device, click on the Simulator app menu Hardware -> Device -> iPhone X.Y etc Note this might be slightly different depending on the version of your Simulator app, which depends on the Xcode version, which depends on your MacOS version :) Cheers, Panos On Wed, 10 Aug 2022 at 19:08, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > we can open several different iPhone and iPad simulators on the Mac via > Xcode. > > However in the "Test Target" menu of LC we only see one generic "iPhone > Simulator 15.2" > resp. "iPad Simulator 15.2". > > Is there a way to select one of the open simulators directly? > Know what I mean? Thanks in advance! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Aug 10 12:38:36 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:38:36 +0200 Subject: iPhone simulators In-Reply-To: References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: Hi Panos, > Am 10.08.2022 um 18:28 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > The suggested approach is to make sure the desired simulator device is > already up and running. And then, in the Test Target menu, choose "iPhone > Simulator 15.2" or ""iPad Simulator 15.2", and click Test. > > PS: To change a device, click on the Simulator app menu Hardware -> Device > -> iPhone X.Y etc yes, I know this, that was not my question. Supposed I opened two iPhone simulators (macOS 12.5, Xcode 13.2.1) in the simulator app, in the LC menu there is only ONE entry named "iPhone Simulator 15.2". My question is if we can test the app in one of the two simulators directly? Means can we specifically address one of the open simulators? Does not seem possible in the moment... Looks like only the first opened simulator is being addressed by LC. > Note this might be slightly different depending on the version of your > Simulator app, which depends on the Xcode version, which depends on your > MacOS version :) Go figure!? 8-) > Cheers, > Panos > > On Wed, 10 Aug 2022 at 19:08, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> we can open several different iPhone and iPad simulators on the Mac via >> Xcode. >> >> However in the "Test Target" menu of LC we only see one generic "iPhone >> Simulator 15.2" resp. "iPad Simulator 15.2". >> >> Is there a way to select one of the open simulators directly? >> Know what I mean? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Wed Aug 10 13:23:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Aug 2022 12:23:57 -0500 Subject: iPhone simulators In-Reply-To: References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 10, 2022 11:39:54 AM Klaus major-k via use-livecode > > Does not seem possible in the moment... > Looks like only the first opened simulator is being addressed by LC. From klaus at major-k.de Wed Aug 10 13:30:55 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 19:30:55 +0200 Subject: iPhone simulators In-Reply-To: <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> Hi Jaques, > Am 10.08.2022 um 19:23 schrieb J. Landman Gay via use-livecode : > > If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. yep, came to the same conclusion. A good candidate for an "enhancement request". :-) > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 10, 2022 11:39:54 AM Klaus major-k via use-livecode >> >> Does not seem possible in the moment... >> Looks like only the first opened simulator is being addressed by LC. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Wed Aug 10 13:56:20 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 10 Aug 2022 13:56:20 -0400 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: <102727ED-63C1-4F6D-B0DC-3C0B008E6A2E@milby7.com> The handler you probably need to look at is in card 1002 (index) called setBackground (line 104). The effective working screenrect is going to report device pixels. To actually know the relative rect from the card’s perspective you have to translate to the card coordinates. I may not have used the most efficient method, but you should be able to follow it. Thanks, Brian Sent from my iPhone > On Aug 10, 2022, at 12:08 PM, Klaus major-k via use-livecode wrote: > > Hi Bob, > >> Am 10.08.2022 um 18:04 schrieb Bob Sneidar via use-livecode : >> >> Wait, there is a more effectiver working screenrect than the effective one?? ;-P > > yes, but it is R-rated! 8-) > >> Bob S >> >>>> On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: >>> ah, yes, "the effectiver working screenrect"! 8-) > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 10 16:14:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Aug 2022 15:14:44 -0500 Subject: Windows standalone settings Message-ID: Does anyone still build for Windows x86 or is x86-64 sufficient now? Also, what UAC execution level do you set? Default, highest avialable, etc.? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Aug 10 16:23:45 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 16:23:45 -0400 Subject: Windows standalone settings In-Reply-To: References: Message-ID: <5849fd1e-665f-5089-118c-1cd11079909c@researchware.com> On 8/10/2022 4:14 PM, J. Landman Gay via use-livecode wrote: > Does anyone still build for Windows x86 or is x86-64 sufficient now? > > Also, what UAC execution level do you set? Default, highest avialable, > etc.? > I still build for 32 bit windows as it still works and is the lowest common denominator - it works on all windows systems. I leave the UAC at Default for our apps but Admin for our Installer (built in Livecode like our apps) From paul at researchware.com Wed Aug 10 16:27:26 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 16:27:26 -0400 Subject: Datagrid internal error In-Reply-To: <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> Message-ID: <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> I'm sorry, I don;t see what setting the dgData or dgText or dgNuberofRecords has to do with my original post - I get an internal Datagird script error when setting the names of the columns (see original post) On 8/10/2022 11:11 AM, Bob Sneidar via use-livecode wrote: > I was referring to dgNumberOfRecords > > get the dgNumberOfRecords > set the dgNumberOfRecords of group "DataGrid" to 20 > Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. > After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows: > > command GetDataForLine pLine, @pDataA > > end GetDataForLine > > You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. > > Bob S > > >> On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode wrote: >> >> This seems like a fragment of a longer thread, but the dgText and the dgData are the two methods I use to extract, process and reload the content of a data grid. >> >> Craig >> >>> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: >>> >>> I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. >>> >>> Bob S >>> >>> >>>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >>>> >>>> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at canelasoftware.com Wed Aug 10 16:41:48 2022 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 10 Aug 2022 13:41:48 -0700 Subject: [ANN] Release 9.6.9 RC-1 In-Reply-To: References: Message-ID: > On Aug 10, 2022, at 9:11 AM, panagiotis merakos via use-livecode wrote: > > Dear list members, > > We are pleased to announce the release of LiveCode 9.6.9 RC-1. > > LiveCode 9.6.9 RC-1 comes with more than 30 bugfixes, including support for > Android API 31, which is now a requirement for submitting new apps to the > Google Play Store. > > You can find more details on the bug fixes and improvements of this new > release here: > > https://livecode.com/android-api-31-support/ > > Note: This maintenance pre-release will break from convention slightly in > that there will definitely be an RC-2 with further bug fixes. This RC-1 > release is being made due to the change in API level requirement for the > Play Store recently made by Google. > > You can find the release in your LiveCode account area or get it via the > automatic updater. > > Enjoy! > > Kind regards > The LiveCode Team Thank you for this update. Best regards, Mark Talluto appli.io livecloud.io nursenotes.net canelasoftware.com From bobsneidar at iotecdigital.com Wed Aug 10 16:57:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 20:57:18 +0000 Subject: Datagrid internal error In-Reply-To: <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> Message-ID: Well the question came up if there was some limit on the number of records, and controlling the population of the datagrid would solve that. As far as the number of columns, I suspect there may be a limit on the number of *displayed* columns, and probably an issue with what characters are allowed for column names. Those things I am unsure of. Is it necessary to display *all* the data in the array, or can you use the datagrid as a sort of index to an array that is in memory, only populating the columns you need? The datagrid library is not protected, so if your app in the IDE throws an error and drops you into the datagrid library script in the debugger (mine does), then you can poke around in the debugger to see where things are going awry. Bob S > On Aug 10, 2022, at 13:27 , Paul Dupuis via use-livecode wrote: > > I'm sorry, I don;t see what setting the dgData or dgText or dgNuberofRecords has to do with my original post - I get an internal Datagird script error when setting the names of the columns (see original post) From craig at starfirelighting.com Wed Aug 10 16:57:23 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 10 Aug 2022 16:57:23 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: Paul. All I saw was this: "I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. Which is why I mentioned that the bulk of the thread must not have come to me. Craig From bobsneidar at iotecdigital.com Wed Aug 10 16:58:53 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 20:58:53 +0000 Subject: Windows standalone settings In-Reply-To: References: Message-ID: I do only because I have a special case where I grabbled a 32 bit windows PC to serve mySQL and Spiceworks, and to host my SQL Socket Agent. Bob S > On Aug 10, 2022, at 13:14 , J. Landman Gay via use-livecode wrote: > > Does anyone still build for Windows x86 or is x86-64 sufficient now? > > Also, what UAC execution level do you set? Default, highest avialable, etc.? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Wed Aug 10 17:02:43 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 10 Aug 2022 16:02:43 -0500 Subject: Datagrid internal error In-Reply-To: <005401d8ab4d$bbd48c10$337da430$@net> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: 32,767 is the max for width as well. If there are enough columns it is possible that the DataGrid is rendering a group that exceeds this limit and hence the error. The DataGrid works around the limit when rendering rows, but not when rendering columns. I suppose a quick test would be to create a DataGrid with 330 columns that are at least 100 pixels wide and see if you get the same error. -- Trevor DeVore ScreenSteps On Mon, Aug 8, 2022 at 12:36 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Paul, > > The max height of a field is 32,767 pixels. This can be hard to quantify > especially on mobile with the cornucopia of screen resolutions. I would > imagine that this limit also applies to groups as well. I got bit on this > when the app worked in the IDE but failed on some devices. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of Paul Dupuis via use-livecode > Sent: Monday, August 08, 2022 12:39 PM > To: use-livecode at lists.runrev.com > Cc: Paul Dupuis > Subject: Re: Datagrid internal error > > On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > > A customer encountered the following execution error (below) in our > > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > > the scrips for the Datagrid itself, rather than our code. At the end, > > it is one of our handler, "populateMe", where line 139 is where the > > error starts. > > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > > tColumnNames > > > > For example, some information from the customer suggest they are working > with a VERY large dataset, so the length of the list in TColumnNames could > be quit long - perhaps hundreds of lines. Is there a practical limit on the > number of columns a Datagrid can be set to? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Wed Aug 10 17:14:44 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 17:14:44 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> Message-ID: <33771d06-f7ea-8b67-f7e0-22a841b52c70@researchware.com> I do appreciate the responses. My question was not about the number of records, but about the number of COLUMNS and whether there is any practical or known limit. When my code is setting the column names, that list comes from customer entered data. I know that each name is less than 255 characters and restricts entry of certain characters (previously listed) such as comma, [ ], etc. How many names is unknown. In this specific case of the error I reported, the customer is not in a position to be able to help much (if at all). Since it is customer data dependent, we are not able to reproduce the error in the IDE. SO my very specific questions was: Has any one seen an error like the one I reported (copied again below) OR know of any issues/limits when setting the dgProp["columns"] property of a Datagrid? A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scripts for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumnNames when the error occurs, does ANYONE have any idea what tColumnNames might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From paul at researchware.com Wed Aug 10 17:15:25 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 17:15:25 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: <21ce9be5-0360-1ca5-5135-efc26d37016c@researchware.com> On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote: > 32,767 is the max for width as well. If there are enough columns it is > possible that the DataGrid is rendering a group that exceeds this limit and > hence the error. The DataGrid works around the limit when rendering rows, > but not when rendering columns. > > I suppose a quick test would be to create a DataGrid with 330 columns that > are at least 100 pixels wide and see if you get the same error. > Thank you! From sean at pidigital.co.uk Wed Aug 10 23:45:22 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 11 Aug 2022 04:45:22 +0100 Subject: Email via IMAP with HTML body from a template Message-ID: Hi all, I'm struggling with this still. It's been years (since before Dec 2020) and I just can't get my head around it. I have a template created in Dreamweaver that is a simple bit of HTML body with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). There is also a pdf that needs to be attached. How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via tsNetSmtpSync? There are zero tutorials and the dictionary is devoid of any useful information on how to use it. Google turned up nothing. In my previous request back in 2020, Monte, the author of the MIME library, had only referred me on to the RSC docs for MIME which is like looking for a straw in a needle stack. When I asked at one of the 'Firesides' I was told just to use a template and send it. But to send it, it needs to be encoded and that's the bit that is undocumented anywhere. Any help appreciated. From tom at makeshyft.com Thu Aug 11 00:38:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 00:38:10 -0400 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Sean, Try this .. edit the script of stack "com.livecode.library.mime" there seems to be some documentation there that may help. I also found this https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument Is that your comment? :) Hope that helps a bit. On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > I'm struggling with this still. It's been years (since before Dec 2020) and > I just can't get my head around it. > > I have a template created in Dreamweaver that is a simple bit of HTML body > with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). > There is also a pdf that needs to be attached. > > How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via > tsNetSmtpSync? > > There are zero tutorials and the dictionary is devoid of any useful > information on how to use it. Google turned up nothing. In my previous > request back in 2020, Monte, the author of the MIME library, had only > referred me on to the RSC docs for MIME which is like looking for a straw > in a needle stack. When I asked at one of the 'Firesides' I was told just > to use a template and send it. But to send it, it needs to be encoded and > that's the bit that is undocumented anywhere. > > Any help appreciated. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Thu Aug 11 01:11:38 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 11 Aug 2022 06:11:38 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Hi Tom, The doc in the script is the same that comes up in the dictionary. No help when it comes to actually following a series of instructions that are needed to send an HTML email via tsNetSmtpSync. Basically, it only tells you the syntax, but with no help on even a few of the necessary parameters you would need to use to make proper use of it. It's like being handed the space shuttle and told "there you are, work it out for yourself"! That is my comment on Fandom. The same I asked of Monte. Neither he nor anyone else wants to answer those questions it would seem. pContentA: How do we pre-encode parts including headers? pMultipartType: What MultiPart types are there? pParamA: What kind of parameters does ParamA take? The formatting we get from converting a field to mime (MimeEncodeFieldAsMimeMultipartDocument - a ridiculously long command name btw) is horrendous. It's practically unusable, hence why I NEED to find a way to send HTML by email on behalf of our clients. On Thu, 11 Aug 2022 at 05:38, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Sean, > > Try this .. > > edit the script of stack "com.livecode.library.mime" > > there seems to be some documentation there that may help. > > I also found this > > https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument > > Is that your comment? :) > > Hope that helps a bit. > > > > On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi all, > > > > I'm struggling with this still. It's been years (since before Dec 2020) > and > > I just can't get my head around it. > > > > I have a template created in Dreamweaver that is a simple bit of HTML > body > > with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). > > There is also a pdf that needs to be attached. > > > > How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send > via > > tsNetSmtpSync? > > > > There are zero tutorials and the dictionary is devoid of any useful > > information on how to use it. Google turned up nothing. In my previous > > request back in 2020, Monte, the author of the MIME library, had only > > referred me on to the RSC docs for MIME which is like looking for a straw > > in a needle stack. When I asked at one of the 'Firesides' I was told just > > to use a template and send it. But to send it, it needs to be encoded and > > that's the bit that is undocumented anywhere. > > > > Any help appreciated. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at techstrategies.com.au Thu Aug 11 01:45:09 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 15:45:09 +1000 Subject: Email via IMAP with HTML body from a template Message-ID: Hi Sean, There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode Does that help at all, Regards, Charles > On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: > > Sean, > > Try this .. > > edit the script of stack "com.livecode.library.mime" > > there seems to be some documentation there that may help. > > I also found this > > https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument > > Is that your comment? :) > > Hope that helps a bit. > > > >> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> Hi all, >> I'm struggling with this still. It's been years (since before Dec 2020) and >> I just can't get my head around it. >> I have a template created in Dreamweaver that is a simple bit of HTML body >> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >> There is also a pdf that needs to be attached. >> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >> tsNetSmtpSync? >> There are zero tutorials and the dictionary is devoid of any useful >> information on how to use it. Google turned up nothing. In my previous >> request back in 2020, Monte, the author of the MIME library, had only >> referred me on to the RSC docs for MIME which is like looking for a straw >> in a needle stack. When I asked at one of the 'Firesides' I was told just >> to use a template and send it. But to send it, it needs to be encoded and >> that's the bit that is undocumented anywhere. >> Any help appreciated. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Aug 11 02:10:08 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 07:10:08 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Hi Charles I know how to add an attachment because there are tutorials on this. That is already being implemented. My question is on how to add in proper html body for the content. Does your stack show how to do that? Sean > On 11 Aug 2022, at 06:45, Charles Warwick via use-livecode wrote: > > Hi Sean, > > There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: > > https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode > > Does that help at all, > > Regards, > > Charles From charles at techstrategies.com.au Thu Aug 11 02:16:03 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 16:16:03 +1000 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: <0C99BEF1-2C2C-4583-8E74-B6AFA0803E6E@techstrategies.com.au> Hi Sean, After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody With something like this: put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain put “” into tBodyPlain put tHeadersPlain & crlf & crlf & \ mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML put “” into tBodyHTML put tHeadersHTML & crlf & crlf & \ mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) Hope that helps, Regards, Charles > On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: > > Hi Sean, > > There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: > > https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode > > Does that help at all, > > Regards, > > Charles > >> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >> >> Sean, >> >> Try this .. >> >> edit the script of stack "com.livecode.library.mime" >> >> there seems to be some documentation there that may help. >> >> I also found this >> >> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >> >> Is that your comment? :) >> >> Hope that helps a bit. >> >> >> >>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> Hi all, >>> I'm struggling with this still. It's been years (since before Dec 2020) and >>> I just can't get my head around it. >>> I have a template created in Dreamweaver that is a simple bit of HTML body >>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>> There is also a pdf that needs to be attached. >>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>> tsNetSmtpSync? >>> There are zero tutorials and the dictionary is devoid of any useful >>> information on how to use it. Google turned up nothing. In my previous >>> request back in 2020, Monte, the author of the MIME library, had only >>> referred me on to the RSC docs for MIME which is like looking for a straw >>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>> to use a template and send it. But to send it, it needs to be encoded and >>> that's the bit that is undocumented anywhere. >>> Any help appreciated. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Thu Aug 11 02:23:44 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 16:23:44 +1000 Subject: Email via IMAP with HTML body from a template Message-ID: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Sorry, the last line of the replacement code should have been: put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody (It was missing the "into tBody" at the end of the line) > On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: > > Hi Sean, > > After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. > > If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: > > put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody > > With something like this: > > put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain > put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain > put “” into tBodyPlain > put tHeadersPlain & crlf & crlf & \ > mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] > > put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML > put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML > put “” into tBodyHTML > put tHeadersHTML & crlf & crlf & \ > mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) > > Hope that helps, > > Regards, > > Charles > >> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >> Hi Sean, >> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >> Does that help at all, >> Regards, >> Charles >>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>> Sean, >>> Try this .. >>> edit the script of stack "com.livecode.library.mime" >>> there seems to be some documentation there that may help. >>> I also found this >>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>> Is that your comment? :) >>> Hope that helps a bit. >>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> Hi all, >>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>> I just can't get my head around it. >>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>> There is also a pdf that needs to be attached. >>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>> tsNetSmtpSync? >>>> There are zero tutorials and the dictionary is devoid of any useful >>>> information on how to use it. Google turned up nothing. In my previous >>>> request back in 2020, Monte, the author of the MIME library, had only >>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>> to use a template and send it. But to send it, it needs to be encoded and >>>> that's the bit that is undocumented anywhere. >>>> Any help appreciated. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 06:08:28 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:08:28 +0200 Subject: iPhone simulators In-Reply-To: <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> Message-ID: <53B76442-2D0D-4D2E-B1CC-6F251935A242@major-k.de> Hi all, > Am 10.08.2022 um 19:30 schrieb Klaus major-k via use-livecode : > > Hi Jaques, > >> Am 10.08.2022 um 19:23 schrieb J. Landman Gay via use-livecode : >> If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. > yep, came to the same conclusion. A good candidate for an "enhancement request". :-) and done: Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 06:30:11 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:30:11 +0200 Subject: Fail to test new stack on Android device Message-ID: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Hi all, I just tested an older stack on my Android device, everything is fine. Then I created a new stack for a little stack and always get this error when selecting "Test" in the LC dev menu. Only script in that stack: ------------------------ on preopenstack set the fullscreenmode of this stack to "showall" end preopenstack ## And a button: on mouseUp ## Need to know if that is returning anything or giving an error or whatever... answer iphonesafeareainsets() end mouseUp ------------------------ If I switch back to the other stack, I can upload and test, but not with this new stack!? Any hints? Thanks! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 06:39:18 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:39:18 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Message-ID: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> > Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : > > Hi all, > > I just tested an older stack on my Android device, everything is fine. > Then I created a new stack for a little stack and always get this error > when selecting "Test" in the LC dev menu. > > > Only script in that stack: > ------------------------ > on preopenstack > set the fullscreenmode of this stack to "showall" > end preopenstack > > ## And a button: > on mouseUp > ## Need to know if that is returning anything or giving an error or whatever... > answer iphonesafeareainsets() > end mouseUp > ------------------------ > If I switch back to the other stack, I can upload and test, but not with this new stack!? > > Any hints? Thanks! of course everyting is set up correctly in the "Stanalone Application Settings"! -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Thu Aug 11 07:30:45 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Aug 2022 07:30:45 -0400 Subject: Fail to test new stack on Android device In-Reply-To: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> References: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> Message-ID: <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> Change the app name or version string info. You have an app with the same name and an earlier version already on the device. Sent from my iPhone > On Aug 11, 2022, at 6:39 AM, Klaus major-k via use-livecode wrote: > >  > >> Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : >> >> Hi all, >> >> I just tested an older stack on my Android device, everything is fine. >> Then I created a new stack for a little stack and always get this error >> when selecting "Test" in the LC dev menu. >> >> >> Only script in that stack: >> ------------------------ >> on preopenstack >> set the fullscreenmode of this stack to "showall" >> end preopenstack >> >> ## And a button: >> on mouseUp >> ## Need to know if that is returning anything or giving an error or whatever... >> answer iphonesafeareainsets() >> end mouseUp >> ------------------------ >> If I switch back to the other stack, I can upload and test, but not with this new stack!? >> >> Any hints? Thanks! > > of course everyting is set up correctly in the "Stanalone Application Settings"! > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 08:14:56 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:14:56 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> References: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> Message-ID: <7B6A1003-2782-41CA-B459-8522FCC32F92@major-k.de> Hi Brian, > Am 11.08.2022 um 13:30 schrieb Brian Milby via use-livecode : > > Change the app name or version string info. You have an app with the same name and an earlier version already on the device. thanks, will try that! > Sent from my iPhone > >> On Aug 11, 2022, at 6:39 AM, Klaus major-k via use-livecode wrote: >> Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : >>> >>> Hi all, >>> >>> I just tested an older stack on my Android device, everything is fine. >>> Then I created a new stack for a little stack and always get this error >>> when selecting "Test" in the LC dev menu. >>> >>> ... Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 08:44:31 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:44:31 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: Hi all, > Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode : > > Hi friends, > > quick question, cannot test it myself in the moment. > > Will -> iPhoneSafeAreaInsets() > a. work or > b. throw an error when being used on Android? > > If a. I presume it will return "the screenrect" without any "notches". > Does it? > > If b. then I will to check "if the platform = "iphone"..." > > Thanks for any quick answer! FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. Will file an enhancement request that is will return at least the screenrect on Android, so there is no need for a PLATFORM check. We already need too much of them. 8-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 08:48:34 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:48:34 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <990DA21D-3D55-4BF4-9D9E-3059695FBBC6@major-k.de> Hi all, > Am 11.08.2022 um 14:44 schrieb Klaus major-k via use-livecode : > Hi all, >> Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode : >> Hi friends, >> quick question, cannot test it myself in the moment. >> Will -> iPhoneSafeAreaInsets() >> a. work or >> b. throw an error when being used on Android? >> If a. I presume it will return "the screenrect" without any "notches". >> Does it? >> If b. then I will to check "if the platform = "iphone"..." >> Thanks for any quick answer! > FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. > Will file an enhancement request that is will return at least the screenrect on Android, > so there is no need for a PLATFORM check. and done: Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Thu Aug 11 11:16:58 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 11:16:58 -0400 Subject: Livecode SQLite Message-ID: Hi Folks, I have a question about Livecode's SQLite implementation. Looking at the official SQLite specs there seem to be json related functions. https://www.sqlite.org/json1.html but none of them seem to work using Livecode's driver. I was under the impression we had a full implementation I was interested in implementing a relatively new feature where you can index and query json documents and read the keys directly. https://dgl.cx/2020/06/sqlite-json-support I guess, if this is true, is there any documentation about which features of sqlite are implemented and which are not? TIA, -- Tom Glod From bobsneidar at iotecdigital.com Thu Aug 11 11:27:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 15:27:21 +0000 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? I see that your goal is to try and avoid platform checks, but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. Just my ignorant 2¢ Bob S > On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode wrote: > > iPhoneSafeAreaInsets() returns EMPTY on Android From bobsneidar at iotecdigital.com Thu Aug 11 11:32:10 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 15:32:10 +0000 Subject: Email via IMAP with HTML body from a template In-Reply-To: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> References: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Message-ID: I have to say, I've learned more about programming just from being a member of this list, than any book on the suject. Admittedly, I've read very few, as is manifestly evident when going back and re-reading my code. :-) Bob S > On Aug 10, 2022, at 23:23 , Charles Warwick via use-livecode wrote: > > Sorry, the last line of the replacement code should have been: > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody > > (It was missing the "into tBody" at the end of the line) > >> On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: >> >> Hi Sean, >> >> After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. >> >> If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: >> >> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody >> >> With something like this: >> >> put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain >> put “” into tBodyPlain >> put tHeadersPlain & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] >> >> put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML >> put “” into tBodyHTML >> put tHeadersHTML & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] >> >> put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) >> >> Hope that helps, >> >> Regards, >> >> Charles >> >>> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >>> Hi Sean, >>> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >>> Does that help at all, >>> Regards, >>> Charles >>>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>>> Sean, >>>> Try this .. >>>> edit the script of stack "com.livecode.library.mime" >>>> there seems to be some documentation there that may help. >>>> I also found this >>>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>>> Is that your comment? :) >>>> Hope that helps a bit. >>>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi all, >>>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>>> I just can't get my head around it. >>>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>>> There is also a pdf that needs to be attached. >>>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>>> tsNetSmtpSync? >>>>> There are zero tutorials and the dictionary is devoid of any useful >>>>> information on how to use it. Google turned up nothing. In my previous >>>>> request back in 2020, Monte, the author of the MIME library, had only >>>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>>> to use a template and send it. But to send it, it needs to be encoded and >>>>> that's the bit that is undocumented anywhere. >>>>> Any help appreciated. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 11:35:45 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 17:35:45 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> References: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> Message-ID: <4D3B1C7A-D04A-4B0D-A6A1-BD071899EBA8@major-k.de> Hi Bob, > Am 11.08.2022 um 17:27 schrieb Bob Sneidar via use-livecode : > > It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? Sure, but that is not the problem. > I see that your goal is to try and avoid platform checks, Yep, that is the goal, lazy moi! :-) > but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. Yes, and I still naively think that the IDE should just ignore these, so "if the platform = "mobile..." would not be neccessary anymore. 8-) > I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. > Just my ignorant 2¢ > > Bob S > > iPhoneSafeAreaInsets() returns EMPTY on Android Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From sean at pidigital.co.uk Thu Aug 11 11:36:56 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 16:36:56 +0100 Subject: Livecode SQLite In-Reply-To: References: Message-ID: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> How was you accessing the database? Is it locally based? The ones I access are stored on a web host server with a cPanel. I have my own php I POST my sql request to and receive JSON back. I then use JSONtoArray or, recommended, JsonImport encapsulated in a ‘try’ structure to convert the data. To tell the database to respond with json is not done at the LC end but must either be set up in the DB itself or, as in my case, whatever is the medium for the data, PHP for me. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 11 Aug 2022, at 16:16, Tom Glod via use-livecode wrote: > > Hi Folks, > > I have a question about Livecode's SQLite implementation. > > Looking at the official SQLite specs there seem to be json related > functions. > > https://www.sqlite.org/json1.html > > but none of them seem to work using Livecode's driver. > I was under the impression we had a full implementation > > I was interested in implementing a relatively new feature where you can > index and query json documents and read the keys directly. > > https://dgl.cx/2020/06/sqlite-json-support > > I guess, if this is true, is there any documentation about which features > of sqlite are implemented and which are not? > > TIA, > -- > Tom Glod > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Aug 11 11:38:36 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 16:38:36 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> References: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Message-ID: <26CAE311-2EED-4580-9E55-F42F491E51AE@pidigital.co.uk> Thanks Charles I think that’s going to work. I’m going to do some testing and let you know how I get on. Sean > On 11 Aug 2022, at 07:23, Charles Warwick via use-livecode wrote: > > Sorry, the last line of the replacement code should have been: > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody > > (It was missing the "into tBody" at the end of the line) > >> On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: >> >> Hi Sean, >> >> After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. >> >> If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: >> >> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody >> >> With something like this: >> >> put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain >> put “” into tBodyPlain >> put tHeadersPlain & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] >> >> put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML >> put “” into tBodyHTML >> put tHeadersHTML & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] >> >> put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) >> >> Hope that helps, >> >> Regards, >> >> Charles >> >>>> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >>> Hi Sean, >>> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >>> Does that help at all, >>> Regards, >>> Charles >>>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>>> Sean, >>>> Try this .. >>>> edit the script of stack "com.livecode.library.mime" >>>> there seems to be some documentation there that may help. >>>> I also found this >>>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>>> Is that your comment? :) >>>> Hope that helps a bit. >>>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi all, >>>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>>> I just can't get my head around it. >>>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>>> There is also a pdf that needs to be attached. >>>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>>> tsNetSmtpSync? >>>>> There are zero tutorials and the dictionary is devoid of any useful >>>>> information on how to use it. Google turned up nothing. In my previous >>>>> request back in 2020, Monte, the author of the MIME library, had only >>>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>>> to use a template and send it. But to send it, it needs to be encoded and >>>>> that's the bit that is undocumented anywhere. >>>>> Any help appreciated. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 11 11:57:05 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 11 Aug 2022 11:57:05 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: <5bbd8550-1ec3-9706-d6a8-38c7e0baf060@researchware.com> On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote: > 32,767 is the max for width as well. If there are enough columns it is > possible that the DataGrid is rendering a group that exceeds this limit and > hence the error. The DataGrid works around the limit when rendering rows, > but not when rendering columns. > > I suppose a quick test would be to create a DataGrid with 330 columns that > are at least 100 pixels wide and see if you get the same error. > So I created 2 test stacks with a Datagrid and a button to set the number of columns and populate a row of data. One stack I did in Livecode 4.6.4 (the oldest I have) and one I built in Livecode 9.6.8 to see if there were differences in the handling of the error condition between versions of the Datagrid object. [Note: Some of the Datagrids in our app are from LC 4.6.4 and we've never removed them and replaced them with newer versions and I don't believe Livecode does anything to automatically update the Datagrid objects in an old stack when opened in a new version of Livecode] Under LC464, trying to create a number of columns with default widths that would exceed the 32,767 pixel width limit of the group object (using 330 columns with a default width of 100px or 33,000 pixels) produces: 1) A blank header (no columns) 2) Visible column for data, where only the visible columns of the first row (8 columns) are populated with data and when you scroll to the right, all remaining column of the 1st row of data are empty. The grid is scrollable horizontally to what looks to be around 320-330 columns. Using 320 columns, works as expected. 325 works; 327 works. 328 only produces 327 columns in the header with 327 values for data in the first row. 329 produces a header with 329 columns and no data is rendered in the 1st row. Under LC968, the LC968 test version of this with 330 columns produces: 1) Columns headers 1 to 8 (the header that are the visible width of the Datagrid) 2) No data is rendered and the grid is not scrollable. Using 320 columns, works as expected. 325 works. 327 works. 328 produces 327 columns in the header and no data in the first row. 329 is the same as 330 (only 8 visible column headers and no data and no scrolling). So, the results are subtly different from Datagrids from LC4.6.4 and Datagrids from LC9.6.8, but both fail to do what a user would expect without any visible errors. However, having the number of columns exceed the width of a Livecode group object in pixels does not seem to be the source of the error I am trying to track down which was: Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumnNames when the error occurs AND (for reasons) I can not get the data from the customer, does ANYONE have any idea what tColumnNames might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From jacque at hyperactivesw.com Thu Aug 11 12:22:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 11:22:53 -0500 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> References: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> Message-ID: <1828db73f48.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Actually some Android phones have notches to imitate iPhones when Apple first introduced that. It wasn't very popular and most Android phones now use punch holes, but those also take up a bit of space, though not much. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 11, 2022 10:29:29 AM Bob Sneidar via use-livecode wrote: > It seems to me, someone who has done zero mobile development, that this > function has no meaning on an android, and should therefore return empty to > avoid unanticipated runtime errors. > > There should be however a function to get the screen rects of an android. > Does the effective working screenrect do it for you? > > I see that your goal is to try and avoid platform checks, but iOS and > Android seem to be such diverse OS platforms that checks are unavoidable. > There are a TON of commands and functions beginning with iPhone. I stopped > counting at 30 and I wasn't half way through. If all of these functions are > to equivalent values for the Android OS, we'd be waiting 5 years for the > enhancements. > > Just my ignorant 2 > > Bob S > > >> On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode >> wrote: >> >> iPhoneSafeAreaInsets() returns EMPTY on Android > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 11 12:23:48 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 11 Aug 2022 12:23:48 -0400 Subject: Datagrid and new Summer Bundle table/grid widgets Message-ID: <0e08a5fa-d55b-15cd-d576-9654ddc9119c@researchware.com> To anyone with the Summer Bundle: The Datagrid object has a practical limit on the number of columns that I just reported as https://quality.livecode.com/show_bug.cgi?id=23875 (about 327 columns at a default column width of 100px due to the Group objects 32767px width limit) Do any of the table/grid widgets in the Summer Bundle allow going beyond this limit? Could someone with a Summer Bundle please test the table/grid widgets. I have included the script I populate the column names and a first row of data in a Datagrid with below. I'd just like to know whether any of the new table widgets can exceed thsi Datagrid limit. Thank you to anyone who can spare the time to test in advance. on mouseUp pMouseButton   local tColumnNames, tArray   ask "Number of columns?"   if it is empty then exit mouseUp   --   repeat with i=1 to it     set cursor to busy     put "Column"&&i into tColumnName     put tColumnName into line i of tColumnNames     put i into tArray[1][tColumnName]   end repeat   --   set cursor to watch   set the dgData of group "Table" to tArray -- replace this line and the nest with code for the new widget   set the dgProp["columns"] of group "Table" to tColumnNames   beep 3 end mouseUp From jacque at hyperactivesw.com Thu Aug 11 12:42:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 11:42:44 -0500 Subject: Fail to test new stack on Android device In-Reply-To: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Message-ID: <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Brian was right, but it's the build number that matters rather than the version number. You can either increase it, or delete the existing app on the phone before installing the other one. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 11, 2022 5:31:36 AM Klaus major-k via use-livecode wrote: > Hi all, > > I just tested an older stack on my Android device, everything is fine. > Then I created a new stack for a little stack and always get this error > when selecting "Test" in the LC dev menu. > > > Only script in that stack: > ------------------------ > on preopenstack > set the fullscreenmode of this stack to "showall" > end preopenstack > > ## And a button: > on mouseUp > ## Need to know if that is returning anything or giving an error or whatever... > answer iphonesafeareainsets() > end mouseUp > ------------------------ > If I switch back to the other stack, I can upload and test, but not with > this new stack!? > > Any hints? Thanks! > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 12:45:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 18:45:14 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <6B884484-6AF5-4185-B0EB-7B4F2EB388F2@major-k.de> Hi Jaques and Brian, > Am 11.08.2022 um 18:42 schrieb J. Landman Gay via use-livecode : > > Brian was right, but it's the build number that matters rather than the version number. You can either increase it, or delete the existing app on the phone before installing the other one. yep, that worked! Always forget about this when I just want to do a quick test. 8-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 11, 2022 5:31:36 AM Klaus major-k via use-livecode wrote: > >> Hi all, >> >> I just tested an older stack on my Android device, everything is fine. >> Then I created a new stack for a little stack and always get this error >> when selecting "Test" in the LC dev menu. >> >> >> Only script in that stack: >> ------------------------ >> on preopenstack >> set the fullscreenmode of this stack to "showall" >> end preopenstack >> >> ## And a button: >> on mouseUp >> ## Need to know if that is returning anything or giving an error or whatever... >> answer iphonesafeareainsets() >> end mouseUp >> ------------------------ >> If I switch back to the other stack, I can upload and test, but not with this new stack!? >> >> Any hints? Thanks! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Thu Aug 11 14:13:54 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 13:13:54 -0500 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote: > FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll probably need to use the working screenrect on Android. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Thu Aug 11 14:17:26 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 20:17:26 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> References: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> Message-ID: <7217078D-859C-443D-AF90-1D189299CD37@major-k.de> Hi Jaques, > Am 11.08.2022 um 20:13 schrieb J. Landman Gay via use-livecode : > > On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote: >> FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. > > It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll probably need to use the working screenrect on Android. yes, I just wanted to see if it will throw an error on Android. It doesn't. :-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Thu Aug 11 17:30:43 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 17:30:43 -0400 Subject: Livecode SQLite In-Reply-To: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> References: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> Message-ID: Hi Sean, The SQLite db i want to read json fields from is local. I know there are lots of workarounds. But in link I provided, the premise was using sqlite function to index and read a jason document's field. like so: sqlite> insert into t values(json('{"d":"42"}')); sqlite> select * from t WHERE d = 42; {"d":"42"}|42 Thanks Sean, I'm happy you found the help you needed with your email problem. On Thu, Aug 11, 2022 at 11:37 AM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > How was you accessing the database? Is it locally based? > > The ones I access are stored on a web host server with a cPanel. I have my > own php I POST my sql request to and receive JSON back. I then use > JSONtoArray or, recommended, JsonImport encapsulated in a ‘try’ structure > to convert the data. > > To tell the database to respond with json is not done at the LC end but > must either be set up in the DB itself or, as in my case, whatever is the > medium for the data, PHP for me. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 11 Aug 2022, at 16:16, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Folks, > > > > I have a question about Livecode's SQLite implementation. > > > > Looking at the official SQLite specs there seem to be json related > > functions. > > > > https://www.sqlite.org/json1.html > > > > but none of them seem to work using Livecode's driver. > > I was under the impression we had a full implementation > > > > I was interested in implementing a relatively new feature where you can > > index and query json documents and read the keys directly. > > > > https://dgl.cx/2020/06/sqlite-json-support > > > > I guess, if this is true, is there any documentation about which features > > of sqlite are implemented and which are not? > > > > TIA, > > -- > > Tom Glod > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Thu Aug 11 19:27:52 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 11 Aug 2022 23:27:52 +0000 Subject: mobileControl placeholderText? Message-ID: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> Is there a method to add placeholderText to a native mobile control field? So, if the fields' text is empty, it will show a string in gray. Like a Password field that when empty displays "Enter password here". Dan From bobsneidar at iotecdigital.com Thu Aug 11 19:42:02 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 23:42:02 +0000 Subject: mobileControl placeholderText? In-Reply-To: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> References: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> Message-ID: I see a similar thing when I have a pulldown menu without a label. It will display the menu button name by default. What I will do then is set the label to some prompt or else a space. It's pretty annoying to have to do that though. Bob S > On Aug 11, 2022, at 16:27 , Dan Friedman via use-livecode wrote: > > Is there a method to add placeholderText to a native mobile control field? So, if the fields' text is empty, it will show a string in gray. Like a Password field that when empty displays "Enter password here". > > Dan From phil at pdslabs.net Thu Aug 11 21:35:18 2022 From: phil at pdslabs.net (Phil Davis) Date: Thu, 11 Aug 2022 18:35:18 -0700 Subject: Images and arrays... In-Reply-To: References: Message-ID: Hi Paul, sorry I'm so late to the party. I think the best you can do is to capture & then reuse all the properties of the target image. I created a stack and imported an image. Then I ran this button script to make an exact replica of image 1. It worked: on mouseUp     put the properties of img 1 into tPropsA -- could be saved for later use     lock screen     create image     set the properties of img 2 to tPropsA     set the left of img 2 to the right of img 1 + 30     unlock screen end mouseUp Hope this helps - Phil Davis On 7/5/22 2:20 PM, Paul Dupuis via use-livecode wrote: > I am drawing a blank: > > If I have the following code: > >                   export snapshot from rect tRect of player > "mediaConvert" of stack "libHrAPI" to tImage as PNG >                   put tImage into pRefArray[tRef] > > The actual image (not a reference, such as a long ID) is placed in the > tRefArray[tRef] array element > > However, if I have a variable tImageID that contains a reference to an > image such as > > image id 10328 of card id 10001 of stack "X" > > How do I get that actual Image stored in the array? > > put tImageID into pRefArray[tRef] -- results in the array element > storing the long ID > > put (tImageID) into pRefArray[tRef] -- also results in the array > element storing the long ID. I thought the () might for the long ID to > be evaluated to an actual image > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From mark at livecode.com Fri Aug 12 00:56:51 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 12 Aug 2022 05:56:51 +0100 Subject: Livecode SQLite In-Reply-To: References: Message-ID: On 2022-08-11 16:16, Tom Glod via use-livecode wrote: > I was interested in implementing a relatively new feature where you can > index and query json documents and read the keys directly. > > https://dgl.cx/2020/06/sqlite-json-support > > I guess, if this is true, is there any documentation about which > features > of sqlite are implemented and which are not? The version of SQLite is currently 3.34 built with FTS3, FTS3_PARANTHESIS, FTS4, FTS5, RTREE and JSON1 options. So the JSON features (at least as far as those included in 3.34) should be included - perhaps the queries you are trying rely on features (perhaps not JSON related) included in more recent versions? If you file a bug report with what examples of what isn't working, then we'll look into updating to the latest version of the library. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From selander at tkf.att.ne.jp Fri Aug 12 07:27:46 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 12 Aug 2022 20:27:46 +0900 Subject: Server globals Message-ID: As always, appreciate everyone's help. Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? Thanks. Tim Selander Tokyo, Japan From matthias_livecode_150811 at m-r-d.de Fri Aug 12 08:26:45 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 12 Aug 2022 14:26:45 +0200 Subject: Server globals In-Reply-To: References: Message-ID: Hi Tim, does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. Regards, Matthias > Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : > > As always, appreciate everyone's help. > > Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. > > All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? > > Thanks. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Fri Aug 12 09:18:26 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 12 Aug 2022 22:18:26 +0900 Subject: Server globals In-Reply-To: References: Message-ID: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... Anyway, thanks for the info; no global variables, but file saves look like they'll work! Tim On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > Hi Tim, > > does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? > > I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. > > > If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. > > Regards, > Matthias > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >> >> As always, appreciate everyone's help. >> >> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >> >> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Fri Aug 12 09:39:07 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 12 Aug 2022 15:39:07 +0200 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <20CD4267-A735-4430-B50D-2BA3729F25FC@m-r-d.de> Hi Tim, the maximum size of a cookie is 4096 bytes. I am using Sitelok from Vibralogix on one site for a membership list. I've integrated it in a site i created with Rapidweaver. I am also using Livecode Server scripts on that site for several tasks including form processing. The good thing is that i can add my Livecode Server scripts to my Rapidweaver pages, either the whole script or only an include statement that includes the script. I just need to tell Rapidweaver to store that page with file extension .lc instead of .html. I also had a look at Reviginiter. Looks so powerful, but i have not enough time in a row to get used with it. So i have to stay with my Rapidweaver/Livecode server script solutions. Regards, Matthias > Am 12.08.2022 um 15:18 schrieb Tim Selander via use-livecode : > > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. > > It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... > > Anyway, thanks for the info; no global variables, but file saves look like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? >> I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. >> If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. >> Regards, >> Matthias >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.clavel at gmail.com Fri Aug 12 12:39:04 2022 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Fri, 12 Aug 2022 18:39:04 +0200 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: Hi Tim, You can also use localStorage for user specific data at the browser level : In your .lc script on the server : to store and retrieve data Regards, JC Le ven. 12 août 2022 à 15:19, Tim Selander via use-livecode < use-livecode at lists.runrev.com> a écrit : > Hi Matthias, > > It is user specific, but I just tried the saving to a text file > on the server -- very fast. Got the user IP from $_Server, and > used that in the filename for easy later retrieval. How much data > can a cookie hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up > with some kind of pagination system. I'm probably trying to > re-invent the wheel -- badly. > > It's a simple membership list, with a few hundred records. Only > want to show 30 on the page at a time. I wonder if anyone has a > LC sample for doing that. I tried Ralph Bitter's Revigniter but > just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the > CURSOR feature. But know nothing about avoiding injection > attacks, so may fall back to using a .csv for the datafile. I've > done that for all my other projects.... > > Anyway, thanks for the info; no global variables, but file saves > look like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > > Hi Tim, > > > > does the variable have a user specific value or a value, that changes > from time to time, but is the same for all users? > > > > I've done something some time ago and used a text file on the server > which stored that value. In my case the value was not user specific so it > was an easy task. > > > > > > If the variable is user specific, why don't you use a cookies for that? > That will grant that the value is available at all pages in the same > domain. > > > > Regards, > > Matthias > > > > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> As always, appreciate everyone's help. > >> > >> Have made several little projects using LC Server on the on-rev.com > host. For the first time, I would like a global variable -- that is a > variable that would retain it's value even if the page is re-loaded. Or if > a user goes to another .lc page/file in the domain. > >> > >> All my playing around, and Googling around, has been for nought. Is > there a way to hang on to a bit of data was you move around pages in the > same domain? > >> > >> Thanks. > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From rdimola at evergreeninfo.net Fri Aug 12 13:18:43 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 12 Aug 2022 13:18:43 -0400 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <004b01d8ae6f$95f146d0$c1d3d470$@net> Using the IP can fail if more than one user is on the same IP via a router using NAT. The Browser local storage is a better solution. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tim Selander via use-livecode Sent: Friday, August 12, 2022 9:18 AM To: use-livecode at lists.runrev.com Cc: Tim Selander Subject: Re: Server globals Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... Anyway, thanks for the info; no global variables, but file saves look like they'll work! Tim On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > Hi Tim, > > does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? > > I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. > > > If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. > > Regards, > Matthias > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >> >> As always, appreciate everyone's help. >> >> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >> >> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Fri Aug 12 19:04:18 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 13 Aug 2022 08:04:18 +0900 Subject: Server globals In-Reply-To: <004b01d8ae6f$95f146d0$c1d3d470$@net> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <004b01d8ae6f$95f146d0$c1d3d470$@net> Message-ID: <3bf1f6bf-60ad-d2ae-1fe1-a216875a8d6d@tkf.att.ne.jp> Ah! Big problem I hadn't thought of -- thank you!! I'll try the local storage script Jacques offered. Many thanks. Tim On 2022.08.13 2:18, Ralph DiMola via use-livecode wrote: > Using the IP can fail if more than one user is on the same IP via a router > using NAT. The Browser local storage is a better solution. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Tim Selander via use-livecode > Sent: Friday, August 12, 2022 9:18 AM > To: use-livecode at lists.runrev.com > Cc: Tim Selander > Subject: Re: Server globals > > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the > server -- very fast. Got the user IP from $_Server, and used that in the > filename for easy later retrieval. How much data can a cookie hold? Guess > I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with some > kind of pagination system. I'm probably trying to re-invent the wheel -- > badly. > > It's a simple membership list, with a few hundred records. Only want to show > 30 on the page at a time. I wonder if anyone has a LC sample for doing that. > I tried Ralph Bitter's Revigniter but just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR > feature. But know nothing about avoiding injection attacks, so may fall back > to using a .csv for the datafile. I've done that for all my other > projects.... > > Anyway, thanks for the info; no global variables, but file saves look like > they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> >> does the variable have a user specific value or a value, that changes from > time to time, but is the same for all users? >> >> I've done something some time ago and used a text file on the server which > stored that value. In my case the value was not user specific so it was an > easy task. >> >> >> If the variable is user specific, why don't you use a cookies for that? > That will grant that the value is available at all pages in the same > domain. >> >> Regards, >> Matthias >> >> >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode > : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com host. > For the first time, I would like a global variable -- that is a variable > that would retain it's value even if the page is re-loaded. Or if a user > goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is there > a way to hang on to a bit of data was you move around pages in the same > domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Fri Aug 12 19:36:34 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 13 Aug 2022 00:36:34 +0100 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> Hi Tim, I think there are many easy ways to do this - and many not-so-easy ones too. IMO, easiest for something simple like this is to just use the url. See tweedly.net/page_by_url.txt for the code, or try it out at tweedly.net/page_by_url.lc (or try tweedly.net/page_by_url.lc?row=14 ) You can do something very similar using a cookie, with the 'row' value stored in the cookie each time (remember to "put cookie ..." before *any* other output.) Or by using the cookie to hold the name of a file in which you store this kind of info. This is necessary if you need to store a lot of data - if there is not already a cookie, create a filename using something like uuid(), and store the file name in it - then retrieve the cookie, and read or write the file. Alex. On 12/08/2022 14:18, Tim Selander via use-livecode wrote: > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the > server -- very fast. Got the user IP from $_Server, and used that in > the filename for easy later retrieval. How much data can a cookie > hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with > some kind of pagination system. I'm probably trying to re-invent the > wheel -- badly. > > It's a simple membership list, with a few hundred records. Only want > to show 30 on the page at a time. I wonder if anyone has a LC sample > for doing that. I tried Ralph Bitter's Revigniter but just can't wrap > my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR > feature. But know nothing about avoiding injection attacks, so may > fall back to using  a .csv for the datafile. I've done that for all my > other projects.... > > Anyway, thanks for the info; no global variables, but file saves look > like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> >> does the variable have a user specific value or a value, that changes >> from time to time, but is the same for all users? >> >> I've done something some time ago and used a text file on the server >> which stored that value. In my case the value was not user specific >> so it was an easy task. >> >> >> If the variable is user specific, why don't you use a  cookies for >> that? That will grant that the value is available  at all pages in >> the same domain. >> >> Regards, >> Matthias >> >> >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode >>> : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com >>> host. For the first time, I would like a global variable -- that is >>> a variable that would retain it's value even if the page is >>> re-loaded. Or if a user goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is >>> there a way to hang on to a bit of data was you move around pages in >>> the same domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Aug 12 19:37:36 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Aug 2022 23:37:36 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? Message-ID: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Hi all. Very odd, I thought this worked. I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? MacOS 10.15.7 LC 9.6.9 rc1 Bob S From selander at tkf.att.ne.jp Sat Aug 13 08:52:58 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 13 Aug 2022 21:52:58 +0900 Subject: Server globals In-Reply-To: <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> Message-ID: <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> Alex, Went to your page, and wow, that is exactly what I was trying to do. I'm still trying to figure out exactly how you do it, but I'm headed in the right direction. Thanks! Tim On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: > Hi Tim, > > I think there are many easy ways to do this - and many > not-so-easy ones too. > > IMO, easiest for something simple like this is to just use the url. > > See tweedly.net/page_by_url.txt for the code, or try it out at > tweedly.net/page_by_url.lc > > (or try tweedly.net/page_by_url.lc?row=14 ) > > You can do something very similar using a cookie, with the 'row' > value stored in the cookie each time (remember to "put cookie > ..." before *any* other output.) > > Or by using the cookie to hold the name of a file in which you > store this kind of info. This is necessary if you need to store a > lot of data - if there is not already a cookie, create a filename > using something like uuid(), and store the file name in it - then > retrieve the cookie, and read or write the file. > > Alex. > > On 12/08/2022 14:18, Tim Selander via use-livecode wrote: >> Hi Matthias, >> >> It is user specific, but I just tried the saving to a text file >> on the server -- very fast. Got the user IP from $_Server, and >> used that in the filename for easy later retrieval. How much >> data can a cookie hold? Guess I'll test that. >> >> One of the reasons I'm fussing with this is I'm trying to come >> up with some kind of pagination system. I'm probably trying to >> re-invent the wheel -- badly. >> >> It's a simple membership list, with a few hundred records. Only >> want to show 30 on the page at a time. I wonder if anyone has a >> LC sample for doing that. I tried Ralph Bitter's Revigniter but >> just can't wrap my head around it. >> >> Using MySQL for testing, so could try to figure out using the >> CURSOR feature. But know nothing about avoiding injection >> attacks, so may fall back to using  a .csv for the datafile. >> I've done that for all my other projects.... >> >> Anyway, thanks for the info; no global variables, but file >> saves look like they'll work! >> >> Tim >> >> On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >>> Hi Tim, >>> >>> does the variable have a user specific value or a value, that >>> changes from time to time, but is the same for all users? >>> >>> I've done something some time ago and used a text file on the >>> server which stored that value. In my case the value was not >>> user specific so it was an easy task. >>> >>> >>> If the variable is user specific, why don't you use a  cookies >>> for that? That will grant that the value is available  at all >>> pages in the same domain. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode >>>> : >>>> >>>> As always, appreciate everyone's help. >>>> >>>> Have made several little projects using LC Server on the >>>> on-rev.com host. For the first time, I would like a global >>>> variable -- that is a variable that would retain it's value >>>> even if the page is re-loaded. Or if a user goes to another >>>> .lc page/file in the domain. >>>> >>>> All my playing around, and Googling around, has been for >>>> nought. Is there a way to hang on to a bit of data was you >>>> move around pages in the same domain? >>>> >>>> Thanks. >>>> >>>> Tim Selander >>>> Tokyo, Japan >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sat Aug 13 14:49:26 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 13 Aug 2022 14:49:26 -0400 Subject: Server globals In-Reply-To: <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> Message-ID: With LC thinking that they want to emphasize web apps, more, the complications with server probably also need some effort. On Sat, Aug 13, 2022 at 8:54 AM Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Alex, > > Went to your page, and wow, that is exactly what I was trying to > do. I'm still trying to figure out exactly how you do it, but I'm > headed in the right direction. > > Thanks! > > Tim > > On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: > > Hi Tim, > > > > I think there are many easy ways to do this - and many > > not-so-easy ones too. > > > > IMO, easiest for something simple like this is to just use the url. > > > > See tweedly.net/page_by_url.txt for the code, or try it out at > > tweedly.net/page_by_url.lc > > > > (or try tweedly.net/page_by_url.lc?row=14 ) > > > > You can do something very similar using a cookie, with the 'row' > > value stored in the cookie each time (remember to "put cookie > > ..." before *any* other output.) > > > > Or by using the cookie to hold the name of a file in which you > > store this kind of info. This is necessary if you need to store a > > lot of data - if there is not already a cookie, create a filename > > using something like uuid(), and store the file name in it - then > > retrieve the cookie, and read or write the file. > > > > Alex. > > > > On 12/08/2022 14:18, Tim Selander via use-livecode wrote: > >> Hi Matthias, > >> > >> It is user specific, but I just tried the saving to a text file > >> on the server -- very fast. Got the user IP from $_Server, and > >> used that in the filename for easy later retrieval. How much > >> data can a cookie hold? Guess I'll test that. > >> > >> One of the reasons I'm fussing with this is I'm trying to come > >> up with some kind of pagination system. I'm probably trying to > >> re-invent the wheel -- badly. > >> > >> It's a simple membership list, with a few hundred records. Only > >> want to show 30 on the page at a time. I wonder if anyone has a > >> LC sample for doing that. I tried Ralph Bitter's Revigniter but > >> just can't wrap my head around it. > >> > >> Using MySQL for testing, so could try to figure out using the > >> CURSOR feature. But know nothing about avoiding injection > >> attacks, so may fall back to using a .csv for the datafile. > >> I've done that for all my other projects.... > >> > >> Anyway, thanks for the info; no global variables, but file > >> saves look like they'll work! > >> > >> Tim > >> > >> On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > >>> Hi Tim, > >>> > >>> does the variable have a user specific value or a value, that > >>> changes from time to time, but is the same for all users? > >>> > >>> I've done something some time ago and used a text file on the > >>> server which stored that value. In my case the value was not > >>> user specific so it was an easy task. > >>> > >>> > >>> If the variable is user specific, why don't you use a cookies > >>> for that? That will grant that the value is available at all > >>> pages in the same domain. > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode > >>>> : > >>>> > >>>> As always, appreciate everyone's help. > >>>> > >>>> Have made several little projects using LC Server on the > >>>> on-rev.com host. For the first time, I would like a global > >>>> variable -- that is a variable that would retain it's value > >>>> even if the page is re-loaded. Or if a user goes to another > >>>> .lc page/file in the domain. > >>>> > >>>> All my playing around, and Googling around, has been for > >>>> nought. Is there a way to hang on to a bit of data was you > >>>> move around pages in the same domain? > >>>> > >>>> Thanks. > >>>> > >>>> Tim Selander > >>>> Tokyo, Japan > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at 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." From andreas.bergendal at gmail.com Sat Aug 13 15:24:59 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 13 Aug 2022 21:24:59 +0200 Subject: A web app launcher with responsive design Message-ID: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Friends, I have done wonderful things with LC10 web deployment! I’m excited to share with you the fruits of this week's extensive research and testing! TL;DR: Try this: https://wheninspace.com/portal/ Long version: I wanted to do two things: 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) I have accomplished both! You can see and test the result here: https://wheninspace.com/portal/ Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) /Andreas From colinholgate at gmail.com Sat Aug 13 16:59:05 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 13 Aug 2022 14:59:05 -0600 Subject: Running installer on Windows 10 Message-ID: <35C01E39-3C91-43E9-A3F8-ACDDCCDF7FD9@gmail.com> I am testing a stack on some different systems, and on Mac M1, Mac Intel, Intel i7 PC with Windows 10, and an Intel Celeron N5095 with Windows 11, no problems. On an Intel Celeron N3450, Windows 10, nothing happens when opening the LiveCode 9.6.8 x86-64 installer, or if I open a standalone app that I made. When using run as admin, the initial “are you sure” screen appears, but then after that nothing happens. What could be different between a Celeron N5095 and a Celeron N3450, that would account for why LiveCode applications don’t open? I see from this post: https://forums.unrealengine.com/t/epic-games-launcher-does-not-open/420387 that some software might not like an Intel HD Graphics 500, but would that be a reason for the installer to fail silently? I worked around the issue for now by saving the stack as v7. The 7.1.3 installer works ok. From tom at makeshyft.com Sat Aug 13 17:23:48 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Aug 2022 17:23:48 -0400 Subject: Livecode SQLite In-Reply-To: References: Message-ID: Hey Mark, I'm using very simple examples to run it, so I don't think its my query, but you are eight I shouldreport this. This would be really great to have. Esp since almost everything is json these days. I will report it in the next few days. Thanks, On Fri, Aug 12, 2022 at 12:57 AM Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2022-08-11 16:16, Tom Glod via use-livecode wrote: > > I was interested in implementing a relatively new feature where you can > > index and query json documents and read the keys directly. > > > > https://dgl.cx/2020/06/sqlite-json-support > > > > I guess, if this is true, is there any documentation about which > > features > > of sqlite are implemented and which are not? > > The version of SQLite is currently 3.34 built with FTS3, > FTS3_PARANTHESIS, FTS4, FTS5, RTREE and JSON1 options. > > So the JSON features (at least as far as those included in 3.34) should > be included - perhaps the queries you are trying rely on features > (perhaps not JSON related) included in more recent versions? > > If you file a bug report with what examples of what isn't working, then > we'll look into updating to the latest version of the library. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From marksmithhfx at gmail.com Sat Aug 13 17:39:57 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 13 Aug 2022 22:39:57 +0100 Subject: A web app launcher with responsive design In-Reply-To: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: Congratulations Andreas and thanks for sharing. I haven’t done any work with the new LC HTML5 engine but I was really impressed with the speed of loading it on my new M1 Pro — about 3-4 seconds on first download and then a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the first download but again very quick (a second or two) on subsequent loads. It looks like you’ve got a lot of the tech working with objects and screens and the adaptive resizing. When I do get around to getting into this (and it looks very enticing) I’ll know where to go for help :) Mark > On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode wrote: > > Friends, I have done wonderful things with LC10 web deployment! > > I’m excited to share with you the fruits of this week's extensive research and testing! > > TL;DR: > Try this: https://wheninspace.com/portal/ > > Long version: > > I wanted to do two things: > > 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. > > 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) > > I have accomplished both! > You can see and test the result here: > https://wheninspace.com/portal/ > > Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). > > The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. > > When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. > > As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! > > I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Aug 13 20:06:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Aug 2022 20:06:10 -0400 Subject: A web app launcher with responsive design In-Reply-To: References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: Hey Andreas, thanks for sharing, cool example of responsive design. I thought the HTML5/javascript export was dead, and WASM would be used instead. It could be my own confusion about terminology being used. Can someone clarify this for me? Thanks, Tom On Sat, Aug 13, 2022 at 5:41 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Congratulations Andreas and thanks for sharing. I haven’t done any work > with the new LC HTML5 engine but I was really impressed with the speed of > loading it on my new M1 Pro — about 3-4 seconds on first download and then > a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the > first download but again very quick (a second or two) on subsequent loads. > It looks like you’ve got a lot of the tech working with objects and screens > and the adaptive resizing. When I do get around to getting into this (and > it looks very enticing) I’ll know where to go for help :) > > Mark > > > > On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Friends, I have done wonderful things with LC10 web deployment! > > > > I’m excited to share with you the fruits of this week's extensive > research and testing! > > > > TL;DR: > > Try this: https://wheninspace.com/portal/ < > https://wheninspace.com/portal/> > > > > Long version: > > > > I wanted to do two things: > > > > 1) Like we often do with desktop standalones: Create a minimal > launcher/splash stack as standalone, which only does one thing - open an > external stack that does everything else. This way I can then update > individual stacks, without having to build a new standalone each time. > > > > 2) Get the resizing of the browser window to trigger the resize of the > stacks and all the responsive design therein, and make it look good on both > desktop and mobile. (Refining the example from the mothership, ”Meeting > space”.) > > > > I have accomplished both! > > You can see and test the result here: > > https://wheninspace.com/portal/ > > > > Please try it both in desktop browsers (resizing the browser to various > sizes) and mobile browsers (both portrait and landscape orientation). > > > > The standalone consists of a minimal launch stack that just acts as > event listening agent (even after closing itself) and opens the Portal > stack which is an external LC stack. The Portal stack then has buttons for > opening additional external LC stacks. > > > > When the launcher stack receives a resize signal from the browser (from > the JavaScript in the html file), it dispatches ”resizeEvent” with the > width/height values to the topStack, which can subsequently rearrange its > stack rect and content accordingly. > > > > As a bonus, I also demonstrate the possibility to show several stacks in > the same browser window! > > > > I find the LC web deployment option a true game-changer! A new world is > opening! Let’s build it! :) > > > > /Andreas > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Sat Aug 13 20:16:23 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 14 Aug 2022 01:16:23 +0100 Subject: A web app launcher with responsive design In-Reply-To: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: > Friends, I have done wonderful things with LC10 web deployment! > > Im excited to share with you the fruits of this week's extensive research and testing! > Wow. Thanks Andreas. Resize, etc. work well for me on Safari, but fail badly on Chrome browser (details not included) - all build-for-web attempts fail on this version of Chrome.  (which it says is up-to-date). However, the way I read your email ( "...excited to share with you the fruits of this week's..."), I think ui intend to make this code available for the rest of us to use. But, I cant see a link, or a way to get access to the source. Please tell me I'm not over-interpreting your words. Please say that you have, or will, publish the text of the stacks involved. Many thanks again, Alex. From marksmithhfx at gmail.com Sun Aug 14 00:13:30 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 14 Aug 2022 05:13:30 +0100 Subject: A web app launcher with responsive design In-Reply-To: References: Message-ID: <546FC399-35F0-4C51-9F3D-9637E9AB10D8@gmail.com> Hi Tom, Andreas didn’t mention what the platform was in his message so I just googled “LC web deployment” and it turned up this… https://lessons.livecode.com/m/4071/l/800867-how-do-i-put-my-first-app-on-the-web However, since you mentioned WASM I looked it up and you are correct, LC 10 (which Andreas was using) is using Web Assembly not HTML5. Sent from my iPhone > On Aug 14, 2022, at 1:07 AM, Tom Glod via use-livecode wrote: > > Hey Andreas, thanks for sharing, cool example of responsive design. > > I thought the HTML5/javascript export was dead, and WASM would be used > instead. > It could be my own confusion about terminology being used. > Can someone clarify this for me? > > Thanks, > > Tom > > >> On Sat, Aug 13, 2022 at 5:41 PM Mark Smith via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Congratulations Andreas and thanks for sharing. I haven’t done any work >> with the new LC HTML5 engine but I was really impressed with the speed of >> loading it on my new M1 Pro — about 3-4 seconds on first download and then >> a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the >> first download but again very quick (a second or two) on subsequent loads. >> It looks like you’ve got a lot of the tech working with objects and screens >> and the adaptive resizing. When I do get around to getting into this (and >> it looks very enticing) I’ll know where to go for help :) >> >> Mark >> >> >>> On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Friends, I have done wonderful things with LC10 web deployment! >>> >>> I’m excited to share with you the fruits of this week's extensive >> research and testing! >>> >>> TL;DR: >>> Try this: https://wheninspace.com/portal/ < >> https://wheninspace.com/portal/> >>> >>> Long version: >>> >>> I wanted to do two things: >>> >>> 1) Like we often do with desktop standalones: Create a minimal >> launcher/splash stack as standalone, which only does one thing - open an >> external stack that does everything else. This way I can then update >> individual stacks, without having to build a new standalone each time. >>> >>> 2) Get the resizing of the browser window to trigger the resize of the >> stacks and all the responsive design therein, and make it look good on both >> desktop and mobile. (Refining the example from the mothership, ”Meeting >> space”.) >>> >>> I have accomplished both! >>> You can see and test the result here: >>> https://wheninspace.com/portal/ >>> >>> Please try it both in desktop browsers (resizing the browser to various >> sizes) and mobile browsers (both portrait and landscape orientation). >>> >>> The standalone consists of a minimal launch stack that just acts as >> event listening agent (even after closing itself) and opens the Portal >> stack which is an external LC stack. The Portal stack then has buttons for >> opening additional external LC stacks. >>> >>> When the launcher stack receives a resize signal from the browser (from >> the JavaScript in the html file), it dispatches ”resizeEvent” with the >> width/height values to the topStack, which can subsequently rearrange its >> stack rect and content accordingly. >>> >>> As a bonus, I also demonstrate the possibility to show several stacks in >> the same browser window! >>> >>> I find the LC web deployment option a true game-changer! A new world is >> opening! Let’s build it! :) >>> >>> /Andreas >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sun Aug 14 00:50:56 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 13 Aug 2022 21:50:56 -0700 Subject: A web app launcher with responsive design In-Reply-To: <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> Message-ID: <928b85a7-db56-32ae-b896-28428631cfcf@sonic.net> On 8/13/22 17:16, Alex Tweedly via use-livecode wrote: > > On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: >> Friends, I have done wonderful things with LC10 web deployment! >> >> Im excited to share with you the fruits of this week's extensive >> research and testing! >> > Wow. Thanks Andreas. > > Resize, etc. work well for me on Safari, but fail badly on Chrome > browser (details not included) - all build-for-web attempts fail on this > version of Chrome.  (which it says is up-to-date). OTOH, it's working fine for me on Chrome. Go figger. -- Mark Wieder ahsoftware at gmail.com From andreas.bergendal at gmail.com Sun Aug 14 06:47:16 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sun, 14 Aug 2022 12:47:16 +0200 Subject: A web app launcher with responsive design In-Reply-To: References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: <6F651EAA-8405-47B3-B8CA-868758401EFE@gmail.com> Hi all, Thanks for your feedback on this first test version. It is made with LC 10 dp 4 which indeed uses the wasm tech and not the old html5 tech. And don’t worry - I wouldn’t have half the knowledge I have in LC coding if it weren’t for the generous sharing on this list and in the forum. Being able to make a small contribution to this knowledge bank is my pleasure. Here’s a link to a zip file with all the stacks used in the example, plus the index.html file (with I use to replace the standalone.html file produced by the standalone maker): https://wheninspace.com/portal/LC_wasm_example_package.zip Note that the links used in the scripts to open stacks all point to my server/domain (obviously) , so if you want to experiment with your copy you’ll need to have a server to put them on and change the links accordingly. It will not work by using the Test deployment (at least not out-of-the-box). I do all testing live on the server. Note the order in which the stacks fire up: LCweblauncher.livecode (which becomes standalone.zip when built) -> uses WISwebLauncherLib.livecodescript -> opens WISwebPortal.livecode -> opens the other stacks. I’m sure there's room for vast improvement to all this, and I believe there will also be more support for natively handling some things in coming LC10 versions. But the future looks promising! :) /Andreas > 13 aug. 2022 kl. 23:39 skrev Mark Smith : > > Congratulations Andreas and thanks for sharing. I haven’t done any work with the new LC HTML5 engine but I was really impressed with the speed of loading it on my new M1 Pro — about 3-4 seconds on first download and then a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the first download but again very quick (a second or two) on subsequent loads. It looks like you’ve got a lot of the tech working with objects and screens and the adaptive resizing. When I do get around to getting into this (and it looks very enticing) I’ll know where to go for help :) > > Mark > > >> On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode wrote: >> >> Friends, I have done wonderful things with LC10 web deployment! >> >> I’m excited to share with you the fruits of this week's extensive research and testing! >> >> TL;DR: >> Try this: https://wheninspace.com/portal/ >> >> Long version: >> >> I wanted to do two things: >> >> 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. >> >> 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) >> >> I have accomplished both! >> You can see and test the result here: >> https://wheninspace.com/portal/ >> >> Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). >> >> The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. >> >> When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. >> >> As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! >> >> I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) >> >> /Andreas From jiml at netrin.com Sun Aug 14 16:02:47 2022 From: jiml at netrin.com (Jim Lambert) Date: Sun, 14 Aug 2022 13:02:47 -0700 Subject: A web app launcher with responsive design In-Reply-To: References: Message-ID: <7A474F6E-24C3-45FC-8CBB-020C6DB25DCF@netrin.com> Andreas, Very nice! Thanks, Jim Lambert From selander at tkf.att.ne.jp Mon Aug 15 08:58:25 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 15 Aug 2022 21:58:25 +0900 Subject: More Server Silliness Message-ID: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> With Alex and everyone's help, I got the global vs cookies, etc., sorted out and am happily paginating away with my little membership web site. With Kenji's help, I got automatic address fill-in from Japanese zip codes. However, I was looking at LiveCode's server samples (serversamples.livecode.com/index.lc) and thought, gee, the Ajax filtering looks pretty neat. So I set off to make that work, and failed. I'd give up on it, but after wasting THIS much time on it, I gotta bring it to you all for a little input and hopefully another bail-out. Just for testing, I made two new files. The first with the code LC provides at https://serversamples.livecode.com/display-file.lc?filename=ajax-simple.lc and the second from step 3 of the ajax sample page, https://serversamples.livecode.com/ajax.lc. Changed only the bits needed to pull data from my database. File one, ajax-simple.lc, lists my data and an input box just like the sample page. But it sends no info via GET to the second file, filter.lc. If I manually put the GET info in the URL,(filter.lc?search_term=John, I get the filtered data I expect, but in the filter.lc window -- the data is not returned to File 1, ajax-simple.lc. Has anyone using LC Server gotten that ajax sample to work?? Many thanks, Tim Selander From heather at livecode.com Mon Aug 15 09:55:24 2022 From: heather at livecode.com (Heather Laine) Date: Mon, 15 Aug 2022 14:55:24 +0100 Subject: [blog] Power Tools Message-ID: Dear List Folks, Just dropping a note to draw your attention to a fine blog post by Mr Mark Wieder: https://livecode.com/power-tools/ Enjoy! Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From selander at tkf.att.ne.jp Mon Aug 15 11:10:36 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 16 Aug 2022 00:10:36 +0900 Subject: More Server Silliness -- Nevermind In-Reply-To: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> References: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> Message-ID: <4eb3b4c4-5a5d-0fb8-e00b-d5787cf861fb@tkf.att.ne.jp> Using Firefox developer tools, found out jquery was not loading property. Hangs head in shame at rookie mistake... Still not working properly, but continue to poke at it. Tim Selander On 2022.08.15 21:58, Tim Selander via use-livecode wrote: > With Alex and everyone's help, I got the global vs cookies, etc., > sorted out and am happily paginating away with my little > membership web site. > > With Kenji's help, I got automatic address fill-in from Japanese > zip codes. > > However, I was looking at LiveCode's server samples > (serversamples.livecode.com/index.lc) and thought, gee, the Ajax > filtering looks pretty neat. > > So I set off to make that work, and failed. I'd give up on it, > but after wasting THIS much time on it, I gotta bring it to you > all for a little input and hopefully another bail-out. > > Just for testing, I made two new files. The first with the code > LC provides at > https://serversamples.livecode.com/display-file.lc?filename=ajax-simple.lc > and the second from step 3 of the ajax sample page, > https://serversamples.livecode.com/ajax.lc. > > Changed only the bits needed to pull data from my database. File > one, ajax-simple.lc, lists my data and an input box just like the > sample page. But it sends no info via GET to the second file, > filter.lc. If I manually put the GET info in the > URL,(filter.lc?search_term=John, I get the filtered data I > expect, but in the filter.lc window -- the data is not returned > to File 1, ajax-simple.lc. > > Has anyone using LC Server gotten that ajax sample to work?? > > Many thanks, > > Tim Selander > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From craig at starfirelighting.com Mon Aug 15 14:00:37 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 15 Aug 2022 14:00:37 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Message-ID: <24EBA058-E6F8-417B-8B94-AEFCCDE3E717@starfirelighting.com> Hi. I am missing something. Make a popup menu button. Ina mouseUp handler in another button: on mouseUp click at the loc of btn 1 end mouseUp Once the menu is open, the up and down arrow keys navigate among the menuItems. Craig > On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: > > Hi all. Very odd, I thought this worked. > > I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? > > MacOS 10.15.7 LC 9.6.9 rc1 > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Mon Aug 15 14:03:00 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 15 Aug 2022 14:03:00 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Message-ID: <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. Craig > On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: > > Hi all. Very odd, I thought this worked. > > I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? > > MacOS 10.15.7 LC 9.6.9 rc1 > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 14:29:20 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 14:29:20 -0400 Subject: Polygrid sorting Message-ID: So, I bought the Summer Bundle. Yes, it is a good deal. In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. From paul at researchware.com Mon Aug 15 15:34:39 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 15:34:39 -0400 Subject: Polygrid sorting (problems) In-Reply-To: References: Message-ID: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimited, WITHOUT the column headers, but ONLY the visible rows. So, what to use for sorting all the data in a PolyGrid by a particular column? The tsvData of widget X (and csvData, and Text) doesn't seem to work. The all seems to only get the visible data (rows). Only the pgData of widget return the whole dataset of the PolyGrid. Is this the way these properties are supposed to work? If that is how text, csvData, and tsvData are supposed to work (returning only the visible rows), then the sort example in the PolyGrid documentation require updating otherwise these properties require updating! On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application > uses a Datagrid to display customer research data. The columns headers > are text and the left most column ROWs are test and all other cells > are numbers. Some customers can have quite large data sets and I have > been running into the number of columns (ad a default width of 100px > per column) exceeding a GROUPs 32,767px width maximum (about 327-328 > columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this > limit. I have a "test" stack (for Datagrid testing) I converted to the > Polygrid and can easily generate 1000 columns x 1000 rows of data and > it works. > > So I guess the answer to bug > https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, > user column resizing (built into the Polygrid - Yea!) and column > sorting (NOT built into the Polygrid - Boo!). So, does anyone have > some column sort code for the Polygrid they have written that they > might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left > column (or the left N columns) to be locked/frozen, so they remain > visible when the Polygrid is scrolled horizontally. See > https://quality.livecode.com/show_bug.cgi?id=23880. If you might > benefit from this enhancement, please follow the bug or add a comment > to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Mon Aug 15 16:01:34 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 15 Aug 2022 21:01:34 +0100 Subject: Polygrid sorting In-Reply-To: References: Message-ID: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Hi Paul, I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. Cheers, Mark > On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: > > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. > > So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:10:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:10:49 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. Now I have to go try it on macOS? On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > >> On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: >> >> So, I bought the Summer Bundle. Yes, it is a good deal. >> >> In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. >> >> I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. >> >> So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >> >> On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? >> >> Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:12:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:12:51 -0400 Subject: Polygrid sorting In-Reply-To: References: Message-ID: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> So I see that the Summer Bundle of widgets in the store has a note that says "Latest update 1.0.19: 11 August 2022" However, the Download button says "Version 1.0.0". Does anyone know how to update the widget set to 1.0.19 or how to update a single widget? On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application > uses a Datagrid to display customer research data. The columns headers > are text and the left most column ROWs are test and all other cells > are numbers. Some customers can have quite large data sets and I have > been running into the number of columns (ad a default width of 100px > per column) exceeding a GROUPs 32,767px width maximum (about 327-328 > columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this > limit. I have a "test" stack (for Datagrid testing) I converted to the > Polygrid and can easily generate 1000 columns x 1000 rows of data and > it works. > > So I guess the answer to bug > https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, > user column resizing (built into the Polygrid - Yea!) and column > sorting (NOT built into the Polygrid - Boo!). So, does anyone have > some column sort code for the Polygrid they have written that they > might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left > column (or the left N columns) to be locked/frozen, so they remain > visible when the Polygrid is scrolled horizontally. See > https://quality.livecode.com/show_bug.cgi?id=23880. If you might > benefit from this enhancement, please follow the bug or add a comment > to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:33:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:33:31 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: <9f310ee2-3a16-de25-c4e5-7c108440a38d@researchware.com> I just tested on macOS Mojave (10.14) on an Intel MacBook Pro and the PolyGrid and my sample stack work as expected. Tried 10, 100, and 500 columns/rows. Now I have to find the MacBook Air with Monterey and see... 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > From paul at researchware.com Mon Aug 15 16:49:47 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:49:47 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: FYI, I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > From ahsoftware at sonic.net Mon Aug 15 16:55:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 13:55:33 -0700 Subject: Polygrid sorting In-Reply-To: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> References: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> Message-ID: On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: > So I see that the Summer Bundle of widgets in the store has a note that > says "Latest update 1.0.19: 11 August 2022" > > However, the Download button says "Version 1.0.0". Does anyone know how > to update the widget set to 1.0.19 or how to update a single widget? Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 version is always the most recent. From a July 27 comment from Steven Crighton on https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572 For the moment you have to update the new widgets manually. To do this, first log in to your LiveCode account. In the left hand navigation make your way to Products > thirdparty. Scroll down this list to find LiveCode Enhancements and download that bundle. Inside the bundle folder there is a widgetpackinstaller.livecode file If you want to update everything in your bundle in one go I recommend using that. Simply open that stack and click the install button. Note DataView will now be PolyList after you have updated. I updated once and looks like I'll have to again. -- -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 15 17:02:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 17:02:30 -0400 Subject: Polygrid sorting In-Reply-To: References: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> Message-ID: On 8/15/2022 4:55 PM, Mark Wieder via use-livecode wrote: > On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: >> So I see that the Summer Bundle of widgets in the store has a note >> that says "Latest update 1.0.19: 11 August 2022" >> >> However, the Download button says "Version 1.0.0". Does anyone know >> how to update the widget set to 1.0.19 or how to update a single widget? > > Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 > version is always the most recent. > > From a July 27 comment from Steven Crighton on > https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572 > > For the moment you have to update the new widgets manually. To do > this, first log in to your LiveCode account. In the left hand > navigation make your way to Products > thirdparty. Scroll down this > list to find LiveCode Enhancements and download that bundle. Inside > the bundle folder there is a widgetpackinstaller.livecode file If > you want to update everything in your bundle in one go I recommend > using that. Simply open that stack and click the install button. Note > DataView will now be PolyList after you have updated. > > I updated once and looks like I'll have to again. > Thank you Mark! (and Steven) From bobsneidar at iotecdigital.com Mon Aug 15 18:03:57 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 22:03:57 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> Message-ID: <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. Bob S > On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: > > Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. > > Craig > >> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. Very odd, I thought this worked. >> >> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >> >> MacOS 10.15.7 LC 9.6.9 rc1 >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 15 18:16:45 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 22:16:45 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> Message-ID: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. Bob S > On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: > > Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. > > When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. > > Bob S > > >> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >> >> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >> >> Craig >> >>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>> >>> Hi all. Very odd, I thought this worked. >>> >>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>> >>> MacOS 10.15.7 LC 9.6.9 rc1 >>> >>> Bob S >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Aug 15 19:22:15 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Aug 2022 00:22:15 +0100 Subject: Polygrid sorting (problems) In-Reply-To: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> Message-ID: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: > So there is an example of sorting in the PolyGrid documentation under > the entry for the MESSAGE "headerClick" and under the entry to the > PROPERTY "text" (and in 'the text of me') > > The example code only sort the visible rows as "the text of widget X" > returns the data of PolyGrid X as tab delimited, WITHOUT the column > headers, but ONLY the visible rows. > I'm using (I think) the latest version (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. Both "the text and "the pgtext" return the entire grid (without headers). I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. And come to think of it - why did they need to invent a new property name "pgText" ?  It seems to be a synonym for "the text", so would it not have been better to just use that ?  Full consistency with many other controls, no added "mental clutter", and "the text" colours nicely in the script editor, so more obvious if you mistype it. Alex. From alex at tweedly.net Mon Aug 15 19:25:03 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Aug 2022 00:25:03 +0100 Subject: Sorting [was: Polygrid sorting] Message-ID: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. I'd like to be able to say  - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. Would that be a reasonable enhancement request ? Would "natural" be a reasonable suggested name ? Alex. From bobsneidar at iotecdigital.com Mon Aug 15 19:30:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 23:30:09 +0000 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: <5130FDB3-F9D2-4CCB-B890-ECCD45745967@iotecdigital.com> I think they are trying to be consistent with datagrid terminology, perhaps thinking that a tabular data object has become a new class of objects. Bob S > On Aug 15, 2022, at 16:22 , Alex Tweedly via use-livecode wrote: > > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimited, WITHOUT the column headers, but ONLY the visible rows. >> > I'm using (I think) the latest version (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. > > Both "the text and "the pgtext" return the entire grid (without headers). > > I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. > > And come to think of it - why did they need to invent a new property name "pgText" ? It seems to be a synonym for "the text", so would it not have been better to just use that ? Full consistency with many other controls, no added "mental clutter", and "the text" colours nicely in the script editor, so more obvious if you mistype it. > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 15 19:35:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 23:35:28 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> Message-ID: Datagrids have this feature, so yes, I would expect there to be some way to specify what kind of sort you want to do. But it would have to be on a per column basis. But if you are sorting the text yourself, you can use the syntax: sort lines of tText by item n of each. I don't think any assumptions should be made by the engine as to what kind of data each column contains. I worked with an accounting system many years ago which had numeric invoice numbers, or so it seemed. Once you created a credit memo, it prepended R to the invoice number. Bob S > On Aug 15, 2022, at 16:25 , Alex Tweedly via use-livecode wrote: > > So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. > > I'd like to be able to say > > - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. > > Would that be a reasonable enhancement request ? > > Would "natural" be a reasonable suggested name ? > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Aug 15 19:43:12 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 16:43:12 -0700 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: > I haven't tried csvdata or tsvdata (they're not listed in the > dictionary, so I'd tend to avoid them if possible. I do see tsvData in the dictionary, but I'm getting weird errors thrown from the widget when I try to use it. May still be experimental. There aren't any examples and the source isn't available. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 15 19:46:38 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:46:38 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> Message-ID: <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Perhaps some expansion of the column "pgContentTypeofColumn" property? The current possible values are: text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement Allowing the addition of 'numeric' and 'datetime' would at least allow a mapping to sorts although sort support 'international' (perhaps should be the default for a polygrid column of type "text" and "binary". I am also not sure how svg-iconname, imagedata, imagefile, and color should sort. Perhaps svg-iconname should sort as "text". Bolean can sort as "text" since ascending puts "false" first and descending puts "true" first. On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote: > So it occurred to me, while playing with sorting by columns, that it > might be nice to have an additional "sortType" available. > > I'd like to be able to say > >  - if all the 'things' being sorted on are numbers, then sort numeric, > otherwise sort alphabetical. > > Would that be a reasonable enhancement request ? > > Would "natural" be a reasonable suggested name ? > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 19:51:33 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:51:33 -0400 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under >> the entry for the MESSAGE "headerClick" and under the entry to the >> PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" >> returns the data of PolyGrid X as tab delimited, WITHOUT the column >> headers, but ONLY the visible rows. >> > I'm using (I think) the latest version > (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. > Okay, a widget ignorant question: How do you tell what version of a widget you have installed? (i.e where/how do you see com.livecode.widget.polygrid.1.1.1) From paul at researchware.com Mon Aug 15 19:59:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:59:01 -0400 Subject: Polygrid sorting (problems) In-Reply-To: <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> Message-ID: <0fe233f8-3a70-3be7-9e10-691b65e8e305@researchware.com> On 8/15/2022 7:51 PM, Paul Dupuis via use-livecode wrote: > On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: >> >> On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >>> So there is an example of sorting in the PolyGrid documentation >>> under the entry for the MESSAGE "headerClick" and under the entry to >>> the PROPERTY "text" (and in 'the text of me') >>> >>> The example code only sort the visible rows as "the text of widget >>> X" returns the data of PolyGrid X as tab delimited, WITHOUT the >>> column headers, but ONLY the visible rows. >>> >> I'm using (I think) the latest version >> (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at >> all. >> > > Okay, a widget ignorant question: How do you tell what version of a > widget you have installed? (i.e where/how do you see > com.livecode.widget.polygrid.1.1.1) Never mind. It is in the file name, com.livecode.widget.polygrid.1.1.1.lce Also, FYI, regarding you note that: Both "the text and "the pgtext" return the entire grid (without headers). I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. Under the dictionary entry for "polygrid", I see the csvData and tsvData properties listed. The "text" property and the pgData property, but NO entry for pgText. It would appear, if the .lce file name is correct, that I am at the same version, 1.1.1. I am on Windows 10, under LC 9.6.8 From ahsoftware at sonic.net Mon Aug 15 20:12:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 17:12:37 -0700 Subject: Polygrid sorting (problems) In-Reply-To: References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: On 8/15/22 16:43, Mark Wieder via use-livecode wrote: > On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: > >> I haven't tried csvdata or tsvdata (they're not listed in the >> dictionary, so I'd tend to avoid them if possible. > > I do see tsvData in the dictionary, but I'm getting weird errors thrown > from the widget when I try to use it. May still be experimental. There > aren't any examples and the source isn't available. Correcting myself, I do see examples in the enhancements folder, they just aren't installed. There's also a Plugins/Templates/Default folder for various things, but I'm not sure what I'm supposed to do with those, if anything. If I use just the examples in the folder then the I can manipulate the tsvData and it works. But if I try to generate my own I end up throwing weird errors. -- Mark Wieder ahsoftware at gmail.com From marksmithhfx at gmail.com Tue Aug 16 04:33:49 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 16 Aug 2022 09:33:49 +0100 Subject: Polygrid sorting In-Reply-To: References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: Hi Paul, My bad. I don’t have the polygrid widget installed. I bought the summer bundle but haven’t had time to install or play with it. I will try this afternoon and send feedback later. Mark > On 15 Aug 2022, at 9:49 pm, Paul Dupuis via use-livecode wrote: > > FYI, > > I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. > > > On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: >> Hi Paul, >> >> I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. >> >> I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. >> >> Cheers, >> Mark >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Aug 16 07:33:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 16 Aug 2022 13:33:20 +0200 Subject: Separate app for iPad and iPhone? Message-ID: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Hi all, after wondering why on earth my former Android stack did not scale to fit an iPad screen, I finally found that there is a separate menu item for "iPad" in the "Standalone Application Setting". 8-) In (a LOT) earlier versions there was one entry for iPhone AND iPad. Does that mean that we need to build two separate app for iPad and iPhone and publish both to the app store nowadays? Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Tue Aug 16 08:11:07 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 16 Aug 2022 15:11:07 +0300 Subject: Separate app for iPad and iPhone? In-Reply-To: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> References: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Message-ID: Hello Klaus, There is also an option for both ("iPod, iPhone and iPad") Cheers, Panos -- On Tue, 16 Aug 2022 at 14:34, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > after wondering why on earth my former Android stack did not scale > to fit an iPad screen, I finally found that there is a separate menu item > for "iPad" in the "Standalone Application Setting". 8-) > In (a LOT) earlier versions there was one entry for iPhone AND iPad. > > Does that mean that we need to build two separate app for iPad and iPhone > and publish both to the app store nowadays? > > Thanks for any hint! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Tue Aug 16 08:17:57 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 16 Aug 2022 14:17:57 +0200 Subject: Separate app for iPad and iPhone? In-Reply-To: References: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Message-ID: Hi Panos, > Am 16.08.2022 um 14:11 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > There is also an option for both ("iPod, iPhone and iPad") oh, yeah, sorry, it is very hot over here in germany... 8-) > Cheers, > Panos > -- > > On Tue, 16 Aug 2022 at 14:34, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> after wondering why on earth my former Android stack did not scale >> to fit an iPad screen, I finally found that there is a separate menu item >> for "iPad" in the "Standalone Application Setting". 8-) >> In (a LOT) earlier versions there was one entry for iPhone AND iPad. >> >> Does that mean that we need to build two separate app for iPad and iPhone >> and publish both to the app store nowadays? Best Klaus > -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From craig at starfirelighting.com Tue Aug 16 08:55:13 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 16 Aug 2022 08:55:13 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> Message-ID: <6E29CF66-888B-45D5-82CA-25F7B5F1B71D@starfirelighting.com> Yes, the combo box does not return the “selected” menuItem. Likely something to do with its compound nature. > On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode wrote: > > I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. > > Bob S > > >> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: >> >> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. >> >> When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. >> >> Bob S >> >> >>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >>> >>> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >>> >>> Craig >>> >>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> Hi all. Very odd, I thought this worked. >>>> >>>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>>> >>>> MacOS 10.15.7 LC 9.6.9 rc1 >>>> >>>> Bob S >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Tue Aug 16 08:55:48 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 16 Aug 2022 08:55:48 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> Message-ID: <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Bob. You can always roll your own, Craig > On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode wrote: > > I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. > > Bob S > > >> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: >> >> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. >> >> When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. >> >> Bob S >> >> >>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >>> >>> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >>> >>> Craig >>> >>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> Hi all. Very odd, I thought this worked. >>>> >>>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>>> >>>> MacOS 10.15.7 LC 9.6.9 rc1 >>>> >>>> Bob S >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Tue Aug 16 09:18:30 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 16 Aug 2022 14:18:30 +0100 Subject: Polygrid sorting In-Reply-To: <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> Message-ID: <32D3639F-A2C6-42F2-A9FE-00E6D60E628A@gmail.com> I downloaded and installed the widget, it works (very well) now :) > On 15 Aug 2022, at 9:10 pm, Paul Dupuis via use-livecode wrote: > > Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. > > Now I have to go try it on macOS? > > > > On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: >> Hi Paul, >> >> I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. >> >> I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. >> >> Cheers, >> Mark >> >>> On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: >>> >>> So, I bought the Summer Bundle. Yes, it is a good deal. >>> >>> In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. >>> >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. >>> >>> So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >>> >>> On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? >>> >>> Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 16 11:08:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Aug 2022 15:08:15 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Message-ID: Thanks Craig for confirming, I will put in an enhancement request FWIW. Bob S > On Aug 16, 2022, at 05:55 , Craig Newman via use-livecode wrote: > > Bob. > > You can always roll your own, > > Craig From bobsneidar at iotecdigital.com Tue Aug 16 11:19:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Aug 2022 15:19:55 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Message-ID: <96DA5143-E316-4D46-B0E1-B2F47CA12432@iotecdigital.com> Bug 23884 Bob S On Aug 16, 2022, at 08:08 , Bob Sneidar > wrote: Thanks Craig for confirming, I will put in an enhancement request FWIW. Bob S On Aug 16, 2022, at 05:55 , Craig Newman via use-livecode > wrote: Bob. You can always roll your own, Craig From paul at researchware.com Wed Aug 17 13:38:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 13:38:50 -0400 Subject: the effective width of a stack? Message-ID: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> I can across some old code where I an referring to if (the effective width of stack X > someValue) then This code produces no errors and works. However, I was just trying to look up 'effective width' to see exactly what it was doing in the Livecode 9.6.8 Dictionary and struck out! Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not listed as an inherited property that 'effective' can be used with. Under 'width' it is not listed. If I look at the entry to the 'stack' object, I find 'width' but that just takes me to the entry for 'width' Am I imagining something, OR is there such a thing as 'effective width' and if so, where the heck is it documented? PS. I thought the width of a stack (or window) vs the effective width was teh difference between the inner dimensions of the stack (the card size) and the size  of the stack with borders and titlebar (outer dimensions). I forget which is which and, again, can not find it documented! Also, I thought that contrary to the Dictionary entry to the 'effective' keyword, you could SET the 'effective width' of a stack/window to change the size of the outer dimensions(?) I'd appreciate any pointers to where effective width or effective height of a stack is documented. From bobsneidar at iotecdigital.com Wed Aug 17 13:45:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 17 Aug 2022 17:45:24 +0000 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: The effective keyword can be used with the following inherited properties : • backgroundColor property • backgroundPattern property • backgroundPixel property • bottomColor property • bottomPattern property • bottomPixel property • focusColor property • focusPattern property • focusPixel property • foregroundColor property • foregroundPattern property • foregroundPixel property • hiliteColor property • hilitePattern property • hilitePixel property • topColor property • topPattern property • topPixel property • shadowColor property • shadowPattern property • shadowPixel property • textFont property • textHeight property • textSize property • textStyle property • filename of stack property • rectangle property • layerMode property I don't see "width" there. You have to use rect then do the math. Bob S > On Aug 17, 2022, at 10:38 , Paul Dupuis via use-livecode wrote: > > I can across some old code where I an referring to > > if (the effective width of stack X > someValue) then > > This code produces no errors and works. However, I was just trying to look up 'effective width' to see exactly what it was doing in the Livecode 9.6.8 Dictionary and struck out! From ahsoftware at sonic.net Wed Aug 17 13:58:58 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 17 Aug 2022 10:58:58 -0700 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> On 8/17/22 10:38, Paul Dupuis via use-livecode wrote: > I'd appreciate any pointers to where effective width or effective height > of a stack is documented. You can't use "effective" with custom properties either. https://quality.livecode.com/show_bug.cgi?id=23557 You *can* set the effective rect of a stack, although you may not get the result you expect. https://quality.livecode.com/show_bug.cgi?id=16305 -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Aug 17 14:09:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 17 Aug 2022 18:09:21 +0000 Subject: the effective width of a stack? In-Reply-To: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> Message-ID: I think this is why some time ago when I was trying to save and restore the position of windows I ran into the creeping window issue where the top of the window kept creepign up each time I opened it. Bob S > On Aug 17, 2022, at 10:58 , Mark Wieder via use-livecode wrote: > > You *can* set the effective rect of a stack, although you may not get the result you expect. > https://quality.livecode.com/show_bug.cgi?id=16305 > > -- > Mark Wieder > ahsoftware at gmail.com From dougr at telus.net Wed Aug 17 14:45:36 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Wed, 17 Aug 2022 11:45:36 -0700 Subject: issue related to Print.PrintSupport.Source.dll Message-ID: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> There was a flurry of discussions on the LC forum https://forums.livecode.com/viewtopic.php?f=9 &t=36870&start=45) in April to July regarding errors occurring involving Print.PrintSupport.Source.dll. I will post on the forum as well but was wondering if anyone (including the Mothership) has had similar problems and if solution(s) have been found. The forum discussions seems to have ended with "some" possible solutions but, in my reading, nothing definitive. Like the discussions on the forum *some* of my clients are experiencing this error but MANY are not. weird. Douglas Ruisaard From paul at researchware.com Wed Aug 17 15:46:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 15:46:08 -0400 Subject: the effective width of a stack? In-Reply-To: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> Message-ID: On 8/17/2022 1:58 PM, Mark Wieder via use-livecode wrote: > On 8/17/22 10:38, Paul Dupuis via use-livecode wrote: > >> I'd appreciate any pointers to where effective width or effective >> height of a stack is documented. > > You can't use "effective" with custom properties either. > https://quality.livecode.com/show_bug.cgi?id=23557 > > You *can* set the effective rect of a stack, although you may not get > the result you expect. > https://quality.livecode.com/show_bug.cgi?id=16305 > I now remember bug 16305. Mark entered it based on a list discussion where I reported it. Hence my comments on it. I now use Panos's workaround (in fact my code base is riddled with "work-arounds"), but there seem to be a (limited) consensus that on Windows 10, the effective rect should only factor in VISIBLE border elements, not INVISIBLE ones. I still wish they would fix it. That all said, where is effective width/heigh/rect of a stack/window documented in the Dictionary? The 'effective rect' and other 'effective' dimension properties of a stack/window are important for multiple window positioning, resizing, alignment, and more and should be in teh Dictionary. ALSO, as the 1 exception to the "you can not SET 'effective' things rule, that should definitely be documented. I'll file a documentation bug report, but I don't want to file one just to find out I looked under the 'wrong' place. Paul Dupuis Researchware From paul at researchware.com Wed Aug 17 15:51:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 15:51:51 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> Message-ID: <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> BTW the problem of: the text of widget X the csvData of widget X the tsvData of widget X AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) the pgText of widget X ALL not returning the full data for a PolyGrid widget is a confirmed bug: See https://quality.livecode.com/show_bug.cgi?id=23886 On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: > So there is an example of sorting in the PolyGrid documentation under > the entry for the MESSAGE "headerClick" and under the entry to the > PROPERTY "text" (and in 'the text of me') > > The example code only sort the visible rows as "the text of widget X" > returns the data of PolyGrid X as tab delimited, WITHOUT the column > headers, but ONLY the visible rows. > > So, what to use for sorting all the data in a PolyGrid by a particular > column? > > The tsvData of widget X (and csvData, and Text) doesn't seem to work. > The all seems to only get the visible data (rows). Only the pgData of > widget return the whole dataset of the PolyGrid. Is this the way these > properties are supposed to work? > > If that is how text, csvData, and tsvData are supposed to work > (returning only the visible rows), then the sort example in the > PolyGrid documentation require updating otherwise these properties > require updating! > > > > On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >> So, I bought the Summer Bundle. Yes, it is a good deal. >> >> In my case it was primarily for the Polygrid widget. Our application >> uses a Datagrid to display customer research data. The columns >> headers are text and the left most column ROWs are test and all other >> cells are numbers. Some customers can have quite large data sets and >> I have been running into the number of columns (ad a default width of >> 100px per column) exceeding a GROUPs 32,767px width maximum (about >> 327-328 columns). At this point the Datagrid just fails - no data is >> displayed. >> >> I can now attest that a Polygrid (under LC 9.6.8) does not have this >> limit. I have a "test" stack (for Datagrid testing) I converted to >> the Polygrid and can easily generate 1000 columns x 1000 rows of data >> and it works. >> >> So I guess the answer to bug >> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >> >> On that note, the Datagrid has 2 features I use in this specific >> case, user column resizing (built into the Polygrid - Yea!) and >> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >> have some column sort code for the Polygrid they have written that >> they might be willing to share? >> >> Also, I have filled a Polygrid enhancement request to allow the left >> column (or the left N columns) to be locked/frozen, so they remain >> visible when the Polygrid is scrolled horizontally. See >> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >> benefit from this enhancement, please follow the bug or add a comment >> to that effect. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Aug 17 17:52:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 17:52:08 -0400 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: On 8/17/2022 1:38 PM, Paul Dupuis via use-livecode wrote: > I can across some old code where I an referring to > > if (the effective width of stack X > someValue) then > > This code produces no errors and works. However, I was just trying to > look up 'effective width' to see exactly what it was doing in the > Livecode 9.6.8 Dictionary and struck out! > > Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not > listed as an inherited property that 'effective' can be used with. > Under 'width' it is not listed. If I look at the entry to the 'stack' > object, I find 'width' but that just takes me to the entry for 'width' > > Am I imagining something, OR is there such a thing as 'effective > width' and if so, where the heck is it documented? > > PS. I thought the width of a stack (or window) vs the effective width > was teh difference between the inner dimensions of the stack (the card > size) and the size  of the stack with borders and titlebar (outer > dimensions). I forget which is which and, again, can not find it > documented! Also, I thought that contrary to the Dictionary entry to > the 'effective' keyword, you could SET the 'effective width' of a > stack/window to change the size of the outer dimensions(?) > > I'd appreciate any pointers to where effective width or effective > height of a stack is documented. So testing shows that (in LC 9.6.8 at any rate) the following STACK properties can use the effective keyword: height width rect (or rectangle) left right top bottom topLeft topRight bottomLeft bottomRight and, indeed, the different between the property and the effective property is the property (inside dimensions) and effective property (outside dimensions) The "effective" keyword is ONLY documented with the rect/rectangle property in the Dictionary and not for any other dimensional properties, even though they work as expected (well except for Window 10: https://quality.livecode.com/show_bug.cgi?id=16305) It also appears (from testing) that you can set the effective rect (as documented in the rect Dictionary entry) and set the effective width or the effective height (not documented in the Dictionary). I have not yet tried setting the "effective" form of the remaining dimensional properties (top, left, topLeft, etc.) From jacque at hyperactivesw.com Wed Aug 17 18:02:38 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 17 Aug 2022 17:02:38 -0500 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> Message-ID: 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 customers have a different printer, try that OEM driver. We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. On 8/17/22 1:45 PM, Douglas A. Ruisaard via use-livecode wrote: > There was a flurry of discussions on the LC forum > https://forums.livecode.com/viewtopic.php?f=9 > > &t=36870&start=45) in April to July regarding errors occurring involving > Print.PrintSupport.Source.dll. > > > > I will post on the forum as well but was wondering if anyone (including the > Mothership) has had similar problems and if solution(s) have been found. > The forum discussions seems to have ended with "some" possible solutions > but, in my reading, nothing definitive. Like the discussions on the forum > *some* of my clients are experiencing this error but MANY are not. weird. > > > > Douglas Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Wed Aug 17 19:27:46 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 17 Aug 2022 16:27:46 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> Message-ID: <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > We had one instance where the user didn't have a printer at all, but > just deleting the Epson driver fixed it. \_()_/ -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Wed Aug 17 21:02:37 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 17 Aug 2022 21:02:37 -0400 Subject: i wonder what other widgets i'm missing Message-ID: I bought the megabundle and installed the widgets. Then I started checking out the signature widget, and discover that some of you have been using it for four years. I didn't even know it existed before today, and I have a Business license (I also had not been aware of the polylist/polygrids before the megabundle) So now I'm wondering a) what other widgets i'm missing b) since the widget store is kind of sparse, if there are other places to look for LC toys, especially widgets? -- 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." From MikeKerner at roadrunner.com Thu Aug 18 10:42:48 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 10:42:48 -0400 Subject: polylist toys Message-ID: fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" example that I can trigger an error just by opening it and tapping "populate" can anyone else confirm? -- 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." From bobsneidar at iotecdigital.com Thu Aug 18 11:28:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Aug 2022 15:28:20 +0000 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> Message-ID: <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> Not unheard of. Some years back we discovered that if the HP Universal Print Driver had been installed, Toshiba drivers would not work at all. We had to uninstall the HP Universal Driver and replace it with the model-specific driver. Bob S > On Aug 17, 2022, at 16:27 , Mark Wieder via use-livecode wrote: > > On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > >> We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. > > ¯\_(ツ)_/¯ > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Aug 18 11:48:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 08:48:02 -0700 Subject: polylist toys In-Reply-To: References: Message-ID: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> On 8/18/22 07:42, Mike Kerner via use-livecode wrote: > fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" > example that I can trigger an error just by opening it and tapping > "populate" > can anyone else confirm? > Yep. The polylist continually throws ridiculous errors at me. (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). And that's at line 2791 (unable to get image geometry) but the source is locked so there's nothing more to do. Also, the versioning thing is out of hand. I just downloaded version 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was a fix in the new version. So I now have v1.0.21 of the enhancements packaged in a 1.0.0 zip file, and I see that half a dozen extensions have been updated since the last time I downloaded 1.0.0. And there was no notification that anything had been updated/fixed/whatever. If it hadn't been for the comment Panos put into bugzilla how is anyone supposed to know that things have been updated? -- Mark Wieder ahsoftware at gmail.com From steven.crighton at livecode.com Thu Aug 18 12:34:08 2022 From: steven.crighton at livecode.com (Steven Crighton) Date: Thu, 18 Aug 2022 17:34:08 +0100 Subject: polylist toys Message-ID: Hi Mike, I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. Can you let me know what the error was? I would say just to double check that are you are using the most recent version. I understand that we need to make some improvements regarding the notification of updates on these new widgets and we will do that. In the meantime we have implemented a last updated date in the my account area, so it’s well worth checking in on that from time to time to see if there is a new update available. Thanks Steven From ahsoftware at sonic.net Thu Aug 18 12:55:55 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 09:55:55 -0700 Subject: polylist toys In-Reply-To: References: Message-ID: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> On 8/18/22 09:34, Steven Crighton via use-livecode wrote: > Hi Mike, > > I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. > > Can you let me know what the error was? > See my previous email. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Aug 18 13:27:22 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:27:22 -0400 Subject: polylist toys In-Reply-To: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> References: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> Message-ID: Steven, I also emailed Panos: I think it would be good to have a few of the LCG22/23 sessions cover some of the widgets. The documentation is kind-of thin, and I'm already stacking questions like: * polygrid/list vs. datagrid * much of the discussion is regarding web deployment, but at least for me, mobile is the important platform, so there should be more discussion about that * is there widget source somewhere, or are we going to have to rfq LC if we would like to request some enhancements? example: for the power button, maybe instead of a border at the edge, i'd like to be able to inset it. On Thu, Aug 18, 2022 at 12:57 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/18/22 09:34, Steven Crighton via use-livecode wrote: > > Hi Mike, > > > > I just tested the lazy load example and hit populate and clicked around > etc and could not trigger an error. > > > > Can you let me know what the error was? > > > > See my previous email. > > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From brian at milby7.com Thu Aug 18 13:34:19 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 18 Aug 2022 13:34:19 -0400 Subject: polylist toys In-Reply-To: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: I just rename the zip file when I download it :) But yes, only way to know currently is to log in and check the version/date. Sent from my iPhone > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode wrote: > > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: >> fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" >> example that I can trigger an error just by opening it and tapping >> "populate" >> can anyone else confirm? > > Yep. The polylist continually throws ridiculous errors at me. > (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). And that's at line 2791 (unable to get image geometry) but the source is locked so there's nothing more to do. > > Also, the versioning thing is out of hand. I just downloaded version 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was a fix in the new version. So I now have v1.0.21 of the enhancements packaged in a 1.0.0 zip file, and I see that half a dozen extensions have been updated since the last time I downloaded 1.0.0. And there was no notification that anything had been updated/fixed/whatever. If it hadn't been for the comment Panos put into bugzilla how is anyone supposed to know that things have been updated? > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 18 13:36:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:36:06 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: I am not aware of a place to check the version/date. I received a link for the download, and I don't see the download as a separate item in my account On Thu, Aug 18, 2022 at 1:35 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I just rename the zip file when I download it :) > > But yes, only way to know currently is to log in and check the > version/date. > > Sent from my iPhone > > > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: > >> fiddling with polylist examples, and i noticed in the > "lazyLoadOnlineImage" > >> example that I can trigger an error just by opening it and tapping > >> "populate" > >> can anyone else confirm? > > > > Yep. The polylist continually throws ridiculous errors at me. > > > (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). > And that's at line 2791 (unable to get image geometry) but the source is > locked so there's nothing more to do. > > > > Also, the versioning thing is out of hand. I just downloaded version > 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was > a fix in the new version. So I now have v1.0.21 of the enhancements > packaged in a 1.0.0 zip file, and I see that half a dozen extensions have > been updated since the last time I downloaded 1.0.0. And there was no > notification that anything had been updated/fixed/whatever. If it hadn't > been for the comment Panos put into bugzilla how is anyone supposed to know > that things have been updated? > > > > -- > > Mark Wieder > > ahsoftware at gmail.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 18 13:40:18 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:40:18 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: after hitting the link, again, I got 1_0_21 The error is the same: executing at 1:39:25 PM LCB Error Unable to get image geometry. Object PolyList LCB File E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb LCB Line 2791 On Thu, Aug 18, 2022 at 1:36 PM Mike Kerner wrote: > I am not aware of a place to check the version/date. I received a link for > the download, and I don't see the download as a separate item in my account > > On Thu, Aug 18, 2022 at 1:35 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I just rename the zip file when I download it :) >> >> But yes, only way to know currently is to log in and check the >> version/date. >> >> Sent from my iPhone >> >> > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: >> >> fiddling with polylist examples, and i noticed in the >> "lazyLoadOnlineImage" >> >> example that I can trigger an error just by opening it and tapping >> >> "populate" >> >> can anyone else confirm? >> > >> > Yep. The polylist continually throws ridiculous errors at me. >> > >> (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). >> And that's at line 2791 (unable to get image geometry) but the source is >> locked so there's nothing more to do. >> > >> > Also, the versioning thing is out of hand. I just downloaded version >> 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was >> a fix in the new version. So I now have v1.0.21 of the enhancements >> packaged in a 1.0.0 zip file, and I see that half a dozen extensions have >> been updated since the last time I downloaded 1.0.0. And there was no >> notification that anything had been updated/fixed/whatever. If it hadn't >> been for the comment Panos put into bugzilla how is anyone supposed to know >> that things have been updated? >> > >> > -- >> > Mark Wieder >> > ahsoftware at gmail.com >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at 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." > -- 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." From ahsoftware at sonic.net Thu Aug 18 13:51:18 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 10:51:18 -0700 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: <3a207b28-ab58-b090-1564-7b3c29bc1ccc@sonic.net> On 8/18/22 10:36, Mike Kerner via use-livecode wrote: > I am not aware of a place to check the version/date. I received a link for > the download, and I don't see the download as a separate item in my account It's hidden under "Third Party". Scroll down and there's something like "livecode enhancements". Then you download it, unzip it into a folder, launch the IDE, and open the widgetpackinstaller stack and click Install. Ignore (Purge) the errors about multiple stacks with the same name. When it's done a button (!) appears that says "Complete". Clicking it doesn't do anything useful. I don't know what happens if an error occurs. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Aug 18 13:53:05 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 10:53:05 -0700 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: On 8/18/22 10:40, Mike Kerner via use-livecode wrote: > after hitting the link, again, I got 1_0_21 > The error is the same: > > executing at 1:39:25 PM > > LCB Error Unable to get image geometry. > > Object PolyList > > LCB File > E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb > > LCB Line 2791 Yep. That's what I get as well. Not sure why there's a pointer to someone's Windows system. I'm guessing that gets bound in when the lcb file is generated by the build process. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Aug 18 14:02:47 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 14:02:47 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: oh, that's right, it's in "third party". i just hit the download link in the megabundle email, again. 21 is the latest, according to the site, which is what i just tried, a little bit ago. On Thu, Aug 18, 2022 at 1:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/18/22 10:40, Mike Kerner via use-livecode wrote: > > after hitting the link, again, I got 1_0_21 > > The error is the same: > > > > executing at 1:39:25 PM > > > > LCB Error Unable to get image geometry. > > > > Object PolyList > > > > LCB File > > > E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb > > > > LCB Line 2791 > > Yep. That's what I get as well. Not sure why there's a pointer to > someone's Windows system. I'm guessing that gets bound in when the lcb > file is generated by the build process. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From dougr at telus.net Thu Aug 18 14:18:25 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Thu, 18 Aug 2022 11:18:25 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> Message-ID: <02a101d8b32e$e8478b60$b8d6a220$@telus.net> I VERY much appreciate the feedback … it helps not to feel isolated with a virtually unsolvable issue which affects one’s credibility with clients. It is somewhat strange that this does seem to implicate LC to some degree, though. A version of my code which (probably) used whatever LC version was fairly current in 2013 (I should, but don’t, keep track of what version of LC I use for various releases of my applications) DOES NOT exhibit this issue on the very same installations which are experiencing the error. I would have used LC v 9.1 to produce the standalone which is *VERY* occasionally exhibiting this issue. So … apparently … sometime along the way, LC changes seem to have “promoted” the potential for this error. I’ve told the customers that I cannot possible fix something which I cannot reproduce. I’ve also insinuated that even if LC *does* discover and fix the underlying issue, that I *WILL NOT* re-issue a new version with the VAST majority of 5,000+ installations NOT experiencing a problem … citing the amount of regression testing which would be mandated as a part of such a revision. Again, thanks for the responses… this group is ALWAYS awesome in its support and knowledge! Douglas Ruisaard Trilogy Software (250) 573-3935 -----Original Message----- From: use-livecode On Behalf Of Bob Sneidar via use-livecode Sent: Thursday, August 18, 2022 8:28 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: issue related to Print.PrintSupport.Source.dll Not unheard of. Some years back we discovered that if the HP Universal Print Driver had been installed, Toshiba drivers would not work at all. We had to uninstall the HP Universal Driver and replace it with the model-specific driver. Bob S > On Aug 17, 2022, at 16:27 , Mark Wieder via use-livecode wrote: > > On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > >> We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. > > ¯\_(ツ)_/¯ > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bduck at mac.com Thu Aug 18 14:27:25 2022 From: bduck at mac.com (Brian K. Duck) Date: Thu, 18 Aug 2022 14:27:25 -0400 Subject: Fall 2022 xAPI Cohort Starts in Two Weeks! Message-ID: Join us for the LIVE kickoff web session on September 1st Starting on September 1st, every Thursday for 12 weeks, xAPI Cohort live web sessions will take place from 2:00 - 3:00 pm Eastern (US) Time. We will be sharing the link to the Virtual Classroom in an upcoming email so keep an eye on your inbox! Our first session will introduce xAPI and the xAPI Cohort. We'll talk about the projects you can take on, how to join a team, and what makes a project group successful. Please don’t feel overwhelmed if you’re not quite ready to brainstorm projects yet. To join, or Explore the xAPI Cohort website. https://xapicohort.com/ In past cohorts, we had a team work with LiveCode to build a sample stack for sending xAPI requests to a server. In there any interest in helping to update the project for LiveCode 10? Brian Duck From andreas.bergendal at gmail.com Thu Aug 18 14:49:57 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Thu, 18 Aug 2022 20:49:57 +0200 Subject: A web app launcher with responsive design Message-ID: <09E684DF-5A79-4BA4-BDD7-FF931C24A7F2@gmail.com> I have now redesigned the portal page and made it much more responsive and also with clearer sections for the example stacks: https://wheninspace.com/portal/ (You may need to clear the browser cache, or open the link in a private browser window if it looks the same as before.) I've also updated the download package and put a link to it from the portal stack. From matthias_livecode_150811 at m-r-d.de Thu Aug 18 15:04:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 18 Aug 2022 21:04:55 +0200 Subject: i wonder what other widgets i'm missing In-Reply-To: References: Message-ID: Normally the release notes of every Livecode version contains also information about newly added widgets. Regarding the PolyGrid and PolyList widgets. They were first released with the Megabundle. They were not available before. The original developer posted a year or so ago in the Livecode FB group about Polygrid and posted also a link to an sample stack with preview version of the PolyGrid widget. The release of the widget was promised for weeks later, but that never did happen. On Mac you can find all in Livecode included widgets in the application bundle under /contents/Tools/Extensions Sometimes widgets from Livecode community members are offered in the LC forums. A nice one btw is the gauge widget from Bernd Niggemann https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge Regards, Matthias > Am 18.08.2022 um 03:02 schrieb Mike Kerner via use-livecode : > > I bought the megabundle and installed the widgets. > Then I started checking out the signature widget, and discover that some of > you have been using it for four years. I didn't even know it existed before > today, and I have a Business license (I also had not been aware of the > polylist/polygrids before the megabundle) > So now I'm wondering > a) what other widgets i'm missing > b) since the widget store is kind of sparse, if there are other places to > look for LC toys, especially widgets? > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Aug 18 15:13:36 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 18 Aug 2022 14:13:36 -0500 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <02a101d8b32e$e8478b60$b8d6a220$@telus.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> <02a101d8b32e$e8478b60$b8d6a220$@telus.net> Message-ID: <74e73415-4abe-46fc-19d2-ea7dd72da873@hyperactivesw.com> On 8/18/22 1:18 PM, Douglas A. Ruisaard via use-livecode wrote: > I VERY much appreciate the feedback … it helps not to feel isolated with a virtually unsolvable issue which affects one’s credibility with clients. There is more info in the bug report: For us the problem did not show up until users installed Windows 11, and the drivers that ship with that conflict with LC, while the OEM driver does not. If Win 10 users are having the same issue, it may be that they got an update which updated the older drivers. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Aug 18 15:52:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 18 Aug 2022 14:52:57 -0500 Subject: A few issues with web apps Message-ID: I have just created my first web deployment and I'm *very* impressed. I didn't need to change any of the original scripts, the only changes were for visual elements that were different when run in a browser. Aside from appearance, the scripts ran flawlessly. On desktop it's great in all three browsers I tested on. But I ran into issues when running in mobile browsers on Android. Does anyone know how to fix these things: 1. Editable fields fail with both SwiftKey and GBoard keyboards, though they fail in different ways. The cursor is misaligned on GBoard, I can't type spaces in SwiftKey, and it is impossible to drag-select text in either one. Do I need an Android native field? Right now I'm just using LC fields. 2. The slider widget does not allow dragging the round indicator button. I can tap the bar to get an approximate setting but fine tuning with the slider button is impossible. Rather than slide, the whole web canvas moves instead. 3. I have some scrolling fields and the default Motif scrollbar looks awful. How do I implement a native browser scroller? Should I use the scripts I use for mobile devices? What's the best way to implement scrolling fields? All in all, everything else works, which is really quite incredible. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Thu Aug 18 16:02:43 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 16:02:43 -0400 Subject: i wonder what other widgets i'm missing In-Reply-To: References: Message-ID: what is curious is the signature widget, at least according to one of the threads i was reading, was out in since 2019, but it never showed up in the list of widgets in my tools palette. reading the thread, it seemed that some people had access to it, then. On Thu, Aug 18, 2022 at 3:06 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Normally the release notes of every Livecode version contains also > information about newly added widgets. > > Regarding the PolyGrid and PolyList widgets. They were first released with > the Megabundle. They were not available before. > The original developer posted a year or so ago in the Livecode FB group > about Polygrid and posted also a link to an sample stack with preview > version of the PolyGrid widget. > The release of the widget was promised for weeks later, but that never > did happen. > > On Mac you can find all in Livecode included widgets in the application > bundle under /contents/Tools/Extensions > Sometimes widgets from Livecode community members are offered in the LC > forums. A nice one btw is the gauge widget from Bernd Niggemann > https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge < > https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge> > > Regards, > Matthias > > > > > Am 18.08.2022 um 03:02 schrieb Mike Kerner via use-livecode < > use-livecode at lists.runrev.com>: > > > > I bought the megabundle and installed the widgets. > > Then I started checking out the signature widget, and discover that some > of > > you have been using it for four years. I didn't even know it existed > before > > today, and I have a Business license (I also had not been aware of the > > polylist/polygrids before the megabundle) > > So now I'm wondering > > a) what other widgets i'm missing > > b) since the widget store is kind of sparse, if there are other places to > > look for LC toys, especially widgets? > > > > -- > > 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 at 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 at 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." From steven.crighton at livecode.com Thu Aug 18 16:19:42 2022 From: steven.crighton at livecode.com (Steven Crighton) Date: Thu, 18 Aug 2022 21:19:42 +0100 Subject: polylist toys In-Reply-To: References: Message-ID: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> Hi Mike I see the issue now. If you were to load this in the latest LiveCode 10 DP you would not get that error (this is why I was not seeing it earlier). LiveCode 10 has an LCB feature that is required for this specific error not to occur. That LCB feature is not present in any LC9 version Steven From MikeKerner at roadrunner.com Thu Aug 18 16:29:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 16:29:06 -0400 Subject: polylist toys In-Reply-To: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> References: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> Message-ID: confirmed. 10 fixes it. On Thu, Aug 18, 2022 at 4:20 PM Steven Crighton via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike > > I see the issue now. If you were to load this in the latest LiveCode 10 DP > you would not get that error (this is why I was not seeing it earlier). > > LiveCode 10 has an LCB feature that is required for this specific error > not to occur. That LCB feature is not present in any LC9 version > > Steven > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From zryip.theslug at gmail.com Thu Aug 18 18:02:51 2022 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 19 Aug 2022 00:02:51 +0200 Subject: [ANN] 1-D Barcode generator Widget 1.0 is looking for Testers Message-ID: Dear LiveCode Users: It has been a long time since I've come with something really new. So, I'm pleased to announce our first widget generating one-dimensional barcodes. Here is the list of the barcodes styles supported: - Code39 - Code128A, Code128B, Code128C - EAN8, EAN13 - UPC-A, UPC-E - ITF As usual to ensure the best quality possible before a final release, we need some help for testing this widget outside of our development environment. Ideally we will be happy to send a beta version to users interested to help. If you have some interest in this new widget and would like to help, feel free to drop me a note. Some more informations about this barcode generator widget are available here: https://www.aslugontheroad.com/41-barcode-generator-widget-1-0-0-ready-for-a-beta-test Best Regards, -- Zryip TheSlug http://www.aslugontheroad.com From alex at tweedly.net Thu Aug 18 18:13:13 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 18 Aug 2022 23:13:13 +0100 Subject: polylist toys In-Reply-To: References: Message-ID: On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > Hi Mike, > > I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. As already confirmed, that problem is fixed in 10. However, the lazy load example still contains bugs due to race conditions, some of which I described in some forum post somewhere (Boy do I hate the forums! Surely there's some way to check what posts I have done myself). Thinking about it more, there are other race conditions which are perhaps more obscure, but more serious. I know it's only an example, and maybe can't be expected to be bulletproof, but as an example of how to do Lazy Loading it is (IMHO) really too naive and simplistic. People expect to take those examples and just use them. The obvious race conditions are: 1. if multiple entries reference the same image, then there is a chance the earlier ones never get properly updated (sURLToIndex[pURL] will have been overwritten by the next call to onlineImage before the image value gets set). 2. if the user (or anything else) resets the dataContent of the widget while there are outstanding "load URL"s, then when the downloadComplete is triggered, it will set the image value for some random new item to the image of the earlier one. 3. And if the one which was wrongly set in case 2 above also happens to be a URL that occurs multiple time (i.e. case 1 above), then that wrongly set image will remain "forever". Alex. From ambassador at fourthworld.com Thu Aug 18 18:25:47 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 18 Aug 2022 15:25:47 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: References: Message-ID: 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 customers have a different printer, try > that OEM driver. The Read Me that came with MetaCard included: "MetaCard is very good at exposing bugs in drivers." It used to annoy me that Raney would ask me to make sure I was using the latest driver available from the manufacturer of whatever device I was having trouble with (displays, printers, etc.). I'd say, "But it doesn't happen with any other software!" And he'd say, "Please check the driver version, and if a newer one doesn't fix it let me know." In nearly every such case since I had that exchange with him in 1999, he was right. Always check driver versions. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu Aug 18 18:29:23 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 18 Aug 2022 15:29:23 -0700 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: References: Message-ID: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> 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 World Systems From skiplondon at gmail.com Thu Aug 18 18:38:39 2022 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 18 Aug 2022 18:38:39 -0400 Subject: Livecode / Github Message-ID: Greetings! Been a while since I have been on this list. Working on a new project and wondering if the backing up of Livecode files to Github was ever implemented and created. I know there was talk of it at one time. I apologize if it has been in place for a while and I am just out of the loop. Actually, I HOPE that is the case! Regards, SKIP From mkoob at rogers.com Thu Aug 18 18:49:32 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 18 Aug 2022 18:49:32 -0400 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> References: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> Message-ID: <2070B206-989F-4155-9A92-1A0688B0C9EA@rogers.com> Hi Richard As far as others here are three I know of. There is the Tree View widget in LiveCode that gives you a hierarchical list. There is an explanation of that widget here: https://livecode.fandom.com/wiki/Tree_view_widget There is a third party product DataTree. https://www.nativesoft.net/products/datatree/ Levure has its own version of the DataGrid, the DataView https://github.com/trevordevore/levurehelper-dataview https://github.com/trevordevore/dataview_demo Martin > On Aug 18, 2022, at 6:29 PM, Richard Gaskin via use-livecode wrote: > > > 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 World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 18 18:50:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 18:50:22 -0400 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> References: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> Message-ID: <0176da5b-374a-78c4-c671-59865221f578@researchware.com> On 8/18/2022 6:29 PM, Richard Gaskin via use-livecode wrote: > > 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? > No list, but I did discover one reason for choosing PolyGrid over DataGrid recently. Large number of columns (such as user generated research data). The DataGrid is a group and so is limited to a total width of all columns of 32767px, or about 327 columns at the default of 100px per column. Exceed this and the data stops displaying. I have tested PolyGrid with 1000 columns without issue. The Datagrid column limit can also be an issue if you are close to the limit and the user resizes 1 or more columns to exceed the total pixel limit (assuming you have column resizing turned on, which it is by default) From mkoob at rogers.com Thu Aug 18 19:03:38 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 18 Aug 2022 19:03:38 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> Hi SKIP Welcome back to the list! There is Levure which I knew of as a third party application framework created by Trevor DeVore but I just did a search for it and I see it now on the LiveCode website described as an App Collaboration Framework. https://livecode.com/products/livecode-platform/levure/ So it must have at some point migrated to the mother ship. I haven’t used it but I have considered migrating my application to it. It works with version control systems as long as you follow its recommendations about how to organize your code into behaviours that are stored in script only stacks which are just text files that a version control system can read (These are somewhat new so depending on when you last used LiveCode they may be new to you.) This was an enhancement that has enabled the use of version control for scripts in a project. It is the binary stacks that versions control systems can’t track so in Levure those are just used for user interface. Hope this helps. Martin > On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode wrote: > > Greetings! > > Been a while since I have been on this list. Working on a new project and > wondering if the backing up of Livecode files to Github was ever > implemented and created. I know there was talk of it at one time. > > I apologize if it has been in place for a while and I am just out of the > loop. Actually, I HOPE that is the case! > > Regards, > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 18 19:20:02 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 19:20:02 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> Message-ID: <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> All, Bug 23886 has been fixed with the latest release of the Summer Bundle widget sets. Download from the store. On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: > BTW the problem of: > the text of widget X > the csvData of widget X > the tsvData of widget X > AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) > the pgText of widget X > ALL not returning the full data for a PolyGrid widget is a confirmed bug: > > See https://quality.livecode.com/show_bug.cgi?id=23886 > > > > On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under >> the entry for the MESSAGE "headerClick" and under the entry to the >> PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" >> returns the data of PolyGrid X as tab delimited, WITHOUT the column >> headers, but ONLY the visible rows. >> >> So, what to use for sorting all the data in a PolyGrid by a >> particular column? >> >> The tsvData of widget X (and csvData, and Text) doesn't seem to work. >> The all seems to only get the visible data (rows). Only the pgData of >> widget return the whole dataset of the PolyGrid. Is this the way >> these properties are supposed to work? >> >> If that is how text, csvData, and tsvData are supposed to work >> (returning only the visible rows), then the sort example in the >> PolyGrid documentation require updating otherwise these properties >> require updating! >> >> >> >> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >>> So, I bought the Summer Bundle. Yes, it is a good deal. >>> >>> In my case it was primarily for the Polygrid widget. Our application >>> uses a Datagrid to display customer research data. The columns >>> headers are text and the left most column ROWs are test and all >>> other cells are numbers. Some customers can have quite large data >>> sets and I have been running into the number of columns (ad a >>> default width of 100px per column) exceeding a GROUPs 32,767px width >>> maximum (about 327-328 columns). At this point the Datagrid just >>> fails - no data is displayed. >>> >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this >>> limit. I have a "test" stack (for Datagrid testing) I converted to >>> the Polygrid and can easily generate 1000 columns x 1000 rows of >>> data and it works. >>> >>> So I guess the answer to bug >>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the >>> PolyGrid" >>> >>> On that note, the Datagrid has 2 features I use in this specific >>> case, user column resizing (built into the Polygrid - Yea!) and >>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >>> have some column sort code for the Polygrid they have written that >>> they might be willing to share? >>> >>> Also, I have filled a Polygrid enhancement request to allow the left >>> column (or the left N columns) to be locked/frozen, so they remain >>> visible when the Polygrid is scrolled horizontally. See >>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >>> benefit from this enhancement, please follow the bug or add a >>> comment to that effect. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Thu Aug 18 19:32:56 2022 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 19 Aug 2022 00:32:56 +0100 Subject: Polylist widget Lazy Loading images example. [was Re: polylist toys] In-Reply-To: References: Message-ID: <56c60308-313d-4518-049a-707e448299b0@tweedly.net> On 18/08/2022 23:13, Alex Tweedly via use-livecode wrote: > > However, the lazy load example still contains bugs due to race conditions Solution: replace the card script with the following .... should fix all the race conditions I can see. > local sURLToIndex > > on onlineImage pIndex, pURL >    put  pIndex &CR after sURLToIndex[pURL] >    load URL pURL  with message "downloadComplete" > end onlineImage > > on downloadComplete pURL, pSatus >   local tURL >   repeat for each line L in sURLToIndex[pURL] >      set the itemPointer of widget "PolyList" to L >      set the subItemPointer of widget "PolyList" to "url" >      put the subitemContent of widget "PolyList" into tURL >      if tURL = pURL then -- still the right URL >         set the subItemPointer of widget "PolyList" to "image" >         set the subitemContent of widget "PolyList" to URL pURL >      end if >   end repeat >   put empty into sURLToIndex[pURL] > end downloadComplete And in the real world, add in cache aging, limit on number of entries, limit on total cache size in bytes, ... Alex. > > 1. if multiple entries reference the same image, then there is a > chance the earlier ones never get properly updated (sURLToIndex[pURL] > will have been overwritten by the next call to onlineImage before the > image value gets set). > > 2. if the user (or anything else) resets the dataContent of the widget > while there are outstanding "load URL"s, then when the > downloadComplete is triggered, it will set the image value for some > random new item to the image of the earlier one. > > 3. And if the one which was wrongly set in case 2 above also happens > to be a URL that occurs multiple time (i.e. case 1 above), then that > wrongly set image will remain "forever". > > From MikeKerner at roadrunner.com Thu Aug 18 20:31:49 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 20:31:49 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> Message-ID: which version is that? 21? On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > All, > > Bug 23886 has been fixed with the latest release of the Summer Bundle > widget sets. Download from the store. > > On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: > > BTW the problem of: > > the text of widget X > > the csvData of widget X > > the tsvData of widget X > > AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) > > the pgText of widget X > > ALL not returning the full data for a PolyGrid widget is a confirmed bug: > > > > See https://quality.livecode.com/show_bug.cgi?id=23886 > > > > > > > > On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: > >> So there is an example of sorting in the PolyGrid documentation under > >> the entry for the MESSAGE "headerClick" and under the entry to the > >> PROPERTY "text" (and in 'the text of me') > >> > >> The example code only sort the visible rows as "the text of widget X" > >> returns the data of PolyGrid X as tab delimited, WITHOUT the column > >> headers, but ONLY the visible rows. > >> > >> So, what to use for sorting all the data in a PolyGrid by a > >> particular column? > >> > >> The tsvData of widget X (and csvData, and Text) doesn't seem to work. > >> The all seems to only get the visible data (rows). Only the pgData of > >> widget return the whole dataset of the PolyGrid. Is this the way > >> these properties are supposed to work? > >> > >> If that is how text, csvData, and tsvData are supposed to work > >> (returning only the visible rows), then the sort example in the > >> PolyGrid documentation require updating otherwise these properties > >> require updating! > >> > >> > >> > >> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > >>> So, I bought the Summer Bundle. Yes, it is a good deal. > >>> > >>> In my case it was primarily for the Polygrid widget. Our application > >>> uses a Datagrid to display customer research data. The columns > >>> headers are text and the left most column ROWs are test and all > >>> other cells are numbers. Some customers can have quite large data > >>> sets and I have been running into the number of columns (ad a > >>> default width of 100px per column) exceeding a GROUPs 32,767px width > >>> maximum (about 327-328 columns). At this point the Datagrid just > >>> fails - no data is displayed. > >>> > >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this > >>> limit. I have a "test" stack (for Datagrid testing) I converted to > >>> the Polygrid and can easily generate 1000 columns x 1000 rows of > >>> data and it works. > >>> > >>> So I guess the answer to bug > >>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the > >>> PolyGrid" > >>> > >>> On that note, the Datagrid has 2 features I use in this specific > >>> case, user column resizing (built into the Polygrid - Yea!) and > >>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone > >>> have some column sort code for the Polygrid they have written that > >>> they might be willing to share? > >>> > >>> Also, I have filled a Polygrid enhancement request to allow the left > >>> column (or the left N columns) to be locked/frozen, so they remain > >>> visible when the Polygrid is scrolled horizontally. See > >>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might > >>> benefit from this enhancement, please follow the bug or add a > >>> comment to that effect. > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 18 20:39:31 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 20:39:31 -0400 Subject: Livecode / Github In-Reply-To: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> References: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> Message-ID: Hey Skip, long time... I don't know if you were around when script-only-stack behaviors came into being, but you can now rip all of the code out of your stacks and happily use vc/git. The stacks themselves are still binary (although several of us have been messing with dumping that paradigm completely, it's less practical than I would have hoped, as of today). Navigator will export every script in a project into behavior stacks, and Monte wrote a stack called "Scriptifier", if memory serves. It's embedded in the LC bundle, and it does the same thing, namely extracting all the scripts out of a project and putting them into .livecodescript text files. Levure is great. I have used it with every project I've worked on for several years, BUT you don't have to use it to go this route. On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi SKIP > > Welcome back to the list! > > There is Levure which I knew of as a third party application framework > created by Trevor DeVore but I just did a search for it and I see it now on > the LiveCode website described as an App Collaboration Framework. > https://livecode.com/products/livecode-platform/levure/ < > https://livecode.com/products/livecode-platform/levure/> So it must have > at some point migrated to the mother ship. > > I haven’t used it but I have considered migrating my application to it. > It works with version control systems as long as you follow its > recommendations about how to organize your code into behaviours that are > stored in script only stacks which are just text files that a version > control system can read (These are somewhat new so depending on when you > last used LiveCode they may be new to you.) This was an enhancement that > has enabled the use of version control for scripts in a project. It is the > binary stacks that versions control systems can’t track so in Levure those > are just used for user interface. > > Hope this helps. > > Martin > > > > On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Greetings! > > > > Been a while since I have been on this list. Working on a new project > and > > wondering if the backing up of Livecode files to Github was ever > > implemented and created. I know there was talk of it at one time. > > > > I apologize if it has been in place for a while and I am just out of the > > loop. Actually, I HOPE that is the case! > > > > Regards, > > > > SKIP > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From paul at researchware.com Thu Aug 18 20:53:12 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 20:53:12 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> Message-ID: <651a0a20-7bdf-46b0-771d-a45a24687835@researchware.com> Yes, Livecode enhancements bundle 1_0_21 (with PolyGrid 1.1.3) On 8/18/2022 8:31 PM, Mike Kerner via use-livecode wrote: > which version is that? 21? > > On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> All, >> >> Bug 23886 has been fixed with the latest release of the Summer Bundle >> widget sets. Download from the store. >> >> On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: >>> BTW the problem of: >>> the text of widget X >>> the csvData of widget X >>> the tsvData of widget X >>> AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) >>> the pgText of widget X >>> ALL not returning the full data for a PolyGrid widget is a confirmed bug: >>> >>> See https://quality.livecode.com/show_bug.cgi?id=23886 >>> >>> >>> >>> On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: >>>> So there is an example of sorting in the PolyGrid documentation under >>>> the entry for the MESSAGE "headerClick" and under the entry to the >>>> PROPERTY "text" (and in 'the text of me') >>>> >>>> The example code only sort the visible rows as "the text of widget X" >>>> returns the data of PolyGrid X as tab delimited, WITHOUT the column >>>> headers, but ONLY the visible rows. >>>> >>>> So, what to use for sorting all the data in a PolyGrid by a >>>> particular column? >>>> >>>> The tsvData of widget X (and csvData, and Text) doesn't seem to work. >>>> The all seems to only get the visible data (rows). Only the pgData of >>>> widget return the whole dataset of the PolyGrid. Is this the way >>>> these properties are supposed to work? >>>> >>>> If that is how text, csvData, and tsvData are supposed to work >>>> (returning only the visible rows), then the sort example in the >>>> PolyGrid documentation require updating otherwise these properties >>>> require updating! >>>> >>>> >>>> >>>> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >>>>> So, I bought the Summer Bundle. Yes, it is a good deal. >>>>> >>>>> In my case it was primarily for the Polygrid widget. Our application >>>>> uses a Datagrid to display customer research data. The columns >>>>> headers are text and the left most column ROWs are test and all >>>>> other cells are numbers. Some customers can have quite large data >>>>> sets and I have been running into the number of columns (ad a >>>>> default width of 100px per column) exceeding a GROUPs 32,767px width >>>>> maximum (about 327-328 columns). At this point the Datagrid just >>>>> fails - no data is displayed. >>>>> >>>>> I can now attest that a Polygrid (under LC 9.6.8) does not have this >>>>> limit. I have a "test" stack (for Datagrid testing) I converted to >>>>> the Polygrid and can easily generate 1000 columns x 1000 rows of >>>>> data and it works. >>>>> >>>>> So I guess the answer to bug >>>>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the >>>>> PolyGrid" >>>>> >>>>> On that note, the Datagrid has 2 features I use in this specific >>>>> case, user column resizing (built into the Polygrid - Yea!) and >>>>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >>>>> have some column sort code for the Polygrid they have written that >>>>> they might be willing to share? >>>>> >>>>> Also, I have filled a Polygrid enhancement request to allow the left >>>>> column (or the left N columns) to be locked/frozen, so they remain >>>>> visible when the Polygrid is scrolled horizontally. See >>>>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >>>>> benefit from this enhancement, please follow the bug or add a >>>>> comment to that effect. >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From sean at pidigital.co.uk Fri Aug 19 01:04:55 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 19 Aug 2022 06:04:55 +0100 Subject: Livecode / Github In-Reply-To: References: Message-ID: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> I tried scriptifier and it broke stuff so just be careful with it and check its output. Sean > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode wrote: > > Hey Skip, long time... > I don't know if you were around when script-only-stack behaviors came into > being, but you can now rip all of the code out of your stacks and happily > use vc/git. The stacks themselves are still binary (although several of us > have been messing with dumping that paradigm completely, it's less > practical than I would have hoped, as of today). > Navigator will export every script in a project into behavior stacks, and > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded > in the LC bundle, and it does the same thing, namely extracting all the > scripts out of a project and putting them into .livecodescript text files. > Levure is great. I have used it with every project I've worked on for > several years, BUT you don't have to use it to go this route. > >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi SKIP >> >> Welcome back to the list! >> >> There is Levure which I knew of as a third party application framework >> created by Trevor DeVore but I just did a search for it and I see it now on >> the LiveCode website described as an App Collaboration Framework. >> https://livecode.com/products/livecode-platform/levure/ < >> https://livecode.com/products/livecode-platform/levure/> So it must have >> at some point migrated to the mother ship. >> >> I haven’t used it but I have considered migrating my application to it. >> It works with version control systems as long as you follow its >> recommendations about how to organize your code into behaviours that are >> stored in script only stacks which are just text files that a version >> control system can read (These are somewhat new so depending on when you >> last used LiveCode they may be new to you.) This was an enhancement that >> has enabled the use of version control for scripts in a project. It is the >> binary stacks that versions control systems can’t track so in Levure those >> are just used for user interface. >> >> Hope this helps. >> >> Martin >> >> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Greetings! >>> >>> Been a while since I have been on this list. Working on a new project >> and >>> wondering if the backing up of Livecode files to Github was ever >>> implemented and created. I know there was talk of it at one time. >>> >>> I apologize if it has been in place for a while and I am just out of the >>> loop. Actually, I HOPE that is the case! >>> >>> Regards, >>> >>> SKIP >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Fri Aug 19 03:39:27 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 09:39:27 +0200 Subject: A few issues with web apps Message-ID: <52A0C209-091B-48AE-969B-50D59E8A2D9A@gmail.com> Hi Jacque, 1. I can’t test on Android, but I doubt an Android native field would solve the problem here, as the platform is Web, thus not really natively Android. The LC web engine doesn’t seem to know where it is running, apart from "in a browser”… But do try putting an Android native field in your test stack and see what happens. I’ll test an iOS field and see what I get. 2. I confirm the slider widget/object looks and functions horribly on iOS and macOS too. See next point. 3. Motif makes most standard LC objects look horrible, but the mothership has promised to get rid of that in future releases (please hurry! :). As to getting scrollers to work, some js seems necessary - see the excellent work by Kangaroo in the forum: https://forums.livecode.com/viewtopic.php?f=120&t=36957 Hopefully that solution can be applied to sliders too. Again, I doubt the native mobile scroller would work, because platform = web. Actually, my next step is anyway to test scroller stuff in my portal - I’ll make sure to try not just fields but also the slider. I’ll be back! :) /Andreas From andreas.bergendal at gmail.com Fri Aug 19 08:52:24 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 14:52:24 +0200 Subject: A few issues with web apps Message-ID: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> Bah, I can only get Kangaroo’s scroller trigger to work if deployed in a separate standalone. No matter how I try to integrate the code in my portal, it just doesn’t trigger. In any case, the code that works in desktop web browsers doesn't work in mobile browsers, so there is still a problem to solve there. Hoping for the mothership to fix (in-field wheel/touch) scrolling natively in coming dp’s… I mean, clicking/touching the actual scrollbar of a field always works, but in a desktop browser you want the mouse wheel scroll to work in fields (Kangaroo’s script does that, sometimes...), and on mobile touching/dragging over a field should scroll it (still unsolved). From merakosp at gmail.com Fri Aug 19 08:55:03 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 15:55:03 +0300 Subject: polylist toys In-Reply-To: References: Message-ID: Hello, Thank you all for the useful comments. I *think* the LCB feature in LC 10 Steven mentioned is the "is valid" operator, that returns a boolean value indicating whether or not the image data is valid. Also, note that in the upcoming releases of LC 10 we will add syntax for checking if a file/directory exists, so we could check not only image validity but also image existence in the first place. BTW, we have found a workaround for allowing this stack (lazy image example) to work in LC 9 as well. The updated bundle will probably appear in your account area in the next couple of days. Kind regards, Panos -- On Fri, 19 Aug 2022 at 01:13, Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > > On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > > Hi Mike, > > > > I just tested the lazy load example and hit populate and clicked around > etc and could not trigger an error. > > As already confirmed, that problem is fixed in 10. > > However, the lazy load example still contains bugs due to race > conditions, some of which I described in some forum post somewhere (Boy > do I hate the forums! Surely there's some way to check what posts I have > done myself). > > Thinking about it more, there are other race conditions which are > perhaps more obscure, but more serious. I know it's only an example, and > maybe can't be expected to be bulletproof, but as an example of how to > do Lazy Loading it is (IMHO) really too naive and simplistic. People > expect to take those examples and just use them. > > The obvious race conditions are: > > 1. if multiple entries reference the same image, then there is a chance > the earlier ones never get properly updated (sURLToIndex[pURL] will have > been overwritten by the next call to onlineImage before the image value > gets set). > > 2. if the user (or anything else) resets the dataContent of the widget > while there are outstanding "load URL"s, then when the downloadComplete > is triggered, it will set the image value for some random new item to > the image of the earlier one. > > 3. And if the one which was wrongly set in case 2 above also happens to > be a URL that occurs multiple time (i.e. case 1 above), then that > wrongly set image will remain "forever". > > Alex. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri Aug 19 08:58:19 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 15:58:19 +0300 Subject: A few issues with web apps In-Reply-To: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> References: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> Message-ID: Hello Andreas, To use Kangaroo's sample stack as is ( https://forums.livecode.com/viewtopic.php?f=120&t=36957) you have to tweak the custom standalone.html that is included in the Copy Files section and replace "" at line 213 with the correct version of LC 10 you're using, I guess in this case "" Cheers, Panos -- On Fri, 19 Aug 2022 at 15:53, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Bah, I can only get Kangaroo’s scroller trigger to work if deployed in a > separate standalone. No matter how I try to integrate the code in my > portal, it just doesn’t trigger. > > In any case, the code that works in desktop web browsers doesn't work in > mobile browsers, so there is still a problem to solve there. Hoping for the > mothership to fix (in-field wheel/touch) scrolling natively in coming dp’s… > > I mean, clicking/touching the actual scrollbar of a field always works, > but in a desktop browser you want the mouse wheel scroll to work in fields > (Kangaroo’s script does that, sometimes...), and on mobile > touching/dragging over a field should scroll it (still unsolved). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andreas.bergendal at gmail.com Fri Aug 19 09:21:15 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 15:21:15 +0200 Subject: A few issues with web apps Message-ID: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Thanks for the hint, Panos - that is useful to mention for those who want to try it. However, that is not my problem - I’ve already done that! Kangaroo’s stack works as advertised, as is (with dp-4 mod): https://wheninspace.com/test/WebScrollField.html But when I try to use the code, either like in the original, where it is inserted by an LC script in preOpenStack, or by extracting the actual js and putting it into the html file beforehand, it just doesn’t trigger. I get no error message, js or LC, it just does nothing. Actually, it was the same with the ”Meeting space” demo, which has a slightly different scroll wheel script. At first, I took both the resize js and the scroll js from there, but only the resize part works for me. It’s strange since my portal solution apparently catches resize events and passes them on to topStack, but fails to catch/pass scroll events… /Andreas From MikeKerner at roadrunner.com Fri Aug 19 10:41:36 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 19 Aug 2022 10:41:36 -0400 Subject: polylist toys In-Reply-To: References: Message-ID: while we're on the topic, i was just having a conversation off-list and it reminded me: we really should do another lcb class. i looked at lcb a couple of times, messed with it, and then said "meh", and moved on. On Fri, Aug 19, 2022 at 8:56 AM panagiotis m via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > Thank you all for the useful comments. > > I *think* the LCB feature in LC 10 Steven mentioned is the "is > valid" operator, that returns a boolean value indicating whether or not the > image data is valid. > Also, note that in the upcoming releases of LC 10 we will add syntax for > checking if a file/directory exists, so we could check not only image > validity but also image existence in the first place. > > BTW, we have found a workaround for allowing this stack (lazy image > example) to work in LC 9 as well. The updated bundle will probably appear > in your account area in the next couple of days. > > Kind regards, > Panos > -- > > On Fri, 19 Aug 2022 at 01:13, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > > > Hi Mike, > > > > > > I just tested the lazy load example and hit populate and clicked around > > etc and could not trigger an error. > > > > As already confirmed, that problem is fixed in 10. > > > > However, the lazy load example still contains bugs due to race > > conditions, some of which I described in some forum post somewhere (Boy > > do I hate the forums! Surely there's some way to check what posts I have > > done myself). > > > > Thinking about it more, there are other race conditions which are > > perhaps more obscure, but more serious. I know it's only an example, and > > maybe can't be expected to be bulletproof, but as an example of how to > > do Lazy Loading it is (IMHO) really too naive and simplistic. People > > expect to take those examples and just use them. > > > > The obvious race conditions are: > > > > 1. if multiple entries reference the same image, then there is a chance > > the earlier ones never get properly updated (sURLToIndex[pURL] will have > > been overwritten by the next call to onlineImage before the image value > > gets set). > > > > 2. if the user (or anything else) resets the dataContent of the widget > > while there are outstanding "load URL"s, then when the downloadComplete > > is triggered, it will set the image value for some random new item to > > the image of the earlier one. > > > > 3. And if the one which was wrongly set in case 2 above also happens to > > be a URL that occurs multiple time (i.e. case 1 above), then that > > wrongly set image will remain "forever". > > > > Alex. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From merakosp at gmail.com Fri Aug 19 11:00:41 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 18:00:41 +0300 Subject: A few issues with web apps In-Reply-To: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> References: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Message-ID: Hello all, BTW, I just wrote a lesson on how to scroll a LC text field on Web using : https://lessons.livecode.com/m/2592/l/1595736-scrolling-a-livecode-text-field-on-web-using-javascript Cheers, Panos -- On Fri, 19 Aug 2022 at 16:22, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for the hint, Panos - that is useful to mention for those who want > to try it. > However, that is not my problem - I’ve already done that! > > Kangaroo’s stack works as advertised, as is (with dp-4 mod): > https://wheninspace.com/test/WebScrollField.html < > https://wheninspace.com/test/WebScrollField.html> > > But when I try to use the code, either like in the original, where it is > inserted by an LC script in preOpenStack, or by extracting the actual js > and putting it into the html file beforehand, it just doesn’t trigger. I > get no error message, js or LC, it just does nothing. > > Actually, it was the same with the ”Meeting space” demo, which has a > slightly different scroll wheel script. At first, I took both the resize js > and the scroll js from there, but only the resize part works for me. It’s > strange since my portal solution apparently catches resize events and > passes them on to topStack, but fails to catch/pass scroll events… > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Aug 19 11:16:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 19 Aug 2022 10:16:55 -0500 Subject: A few issues with web apps In-Reply-To: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> References: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Message-ID: <182b6adba58.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I just tried the kangaroo example on your web site using my Android tablet. It behaves just like my slider widget. I can tap in the scrollbar to get the field scroll to jump but the indicator can't be moved. When I try, the whole canvas moves instead. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 19, 2022 8:23:25 AM Andreas Bergendal via use-livecode wrote: > Thanks for the hint, Panos - that is useful to mention for those who want > to try it. > However, that is not my problem - Ive already done that! > > Kangaroos stack works as advertised, as is (with dp-4 mod): > https://wheninspace.com/test/WebScrollField.html > > > But when I try to use the code, either like in the original, where it is > inserted by an LC script in preOpenStack, or by extracting the actual js > and putting it into the html file beforehand, it just doesnt trigger. I > get no error message, js or LC, it just does nothing. > > Actually, it was the same with the Meeting space demo, which has a > slightly different scroll wheel script. At first, I took both the resize js > and the scroll js from there, but only the resize part works for me. Its > strange since my portal solution apparently catches resize events and > passes them on to topStack, but fails to catch/pass scroll events > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Aug 19 13:16:37 2022 From: alex at tweedly.net (Tweedly) Date: Fri, 19 Aug 2022 18:16:37 +0100 Subject: A few issues with web apps In-Reply-To: References: Message-ID: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> > On 19 Aug 2022, at 16:01, panagiotis m via use-livecode wrote: > > Hello all, > > BTW, I just wrote a lesson on how to scroll a LC text field on Web using > : >> Thank you. But at the risk of sounding ungrateful - please don’t. Please just make basic functionality like resizing, scrolling, etc. Work properly and nicely out of the box. Alex. From paul at researchware.com Fri Aug 19 17:09:39 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 17:09:39 -0400 Subject: Livecode performance problem Message-ID: I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) I need to combine the data - frequently - into a form that look like: For the number of lines in the set of fields. Currently I do this as follows: put empty into vCombined put fld A into v1 put fld B into v2 put fld C into v3 put fld D into v4 repeat with i=1 to the number of lines in v1   put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined end repeat I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) Thank you for any pointers in advance, Paul Dupuis Researchware From bobsneidar at iotecdigital.com Fri Aug 19 18:07:52 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Aug 2022 22:07:52 +0000 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Off the top of my head: split v1 by tab split v2 by tab split v3 by tab split v4 by tab put the keys of v1 into tKeyList sort tKeyList ascending numeric repeat for each line tKey in tKeyList put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & v4 [tKey] & cr after tCombined end repeat Not sure if this will be faster, but every time you refer to a line of a string the engine has to parse out where that line is from the beginning. Parsing times will increase exponentially (is that the right term?) the more lines you are parsing in both the source strings AND the destination string. But arrays are indexed memory locations so the engine knows exactly where every bit of text is. And putting something after a string does not have to parse to find the end, the engine knows where that is in memory. It might be even faster though if you build an array as output and then use the combine command to convert it all at once to a string. I am assuming of course that splitting does not put lines of text in random order in the array. Arrays can be dicey that way. Bob S > On Aug 19, 2022, at 14:09 , Paul Dupuis via use-livecode wrote: > > I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > > > For the number of lines in the set of fields. Currently I do this as follows: > > put empty into vCombined > put fld A into v1 > put fld B into v2 > put fld C into v3 > put fld D into v4 > repeat with i=1 to the number of lines in v1 > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined > end repeat > > I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop > > My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? > > This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) > > Thank you for any pointers in advance, > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 19 18:13:04 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 19 Aug 2022 18:13:04 -0400 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <2C1E62C0-0048-4841-AC72-6BFAC56C9A35@milby7.com> First optimization would be to put … & cr after vCombined and then delete the trailing from when done. Sent from my iPhone > On Aug 19, 2022, at 5:11 PM, Paul Dupuis via use-livecode wrote: > > I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > > > For the number of lines in the set of fields. Currently I do this as follows: > > put empty into vCombined > put fld A into v1 > put fld B into v2 > put fld C into v3 > put fld D into v4 > repeat with i=1 to the number of lines in v1 > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined > end repeat > > I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop > > My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? > > This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) > > Thank you for any pointers in advance, > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 19 18:25:48 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 19 Aug 2022 18:25:48 -0400 Subject: Livecode performance problem In-Reply-To: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: Based on what Bob said, here is my version of that handler: on mouseUp local tA, tB, tC, tD, tAll, tStart, tEnd put fld "A" into tA put fld "B" into tB put fld "C" into tC put fld "D" into tD -- put the milliseconds into tStart split tA by cr split tB by cr split tC by cr split tD by cr repeat with i=1 to the number of lines of the keys of tA put i & tab & tA[i] & tab & tB[i] & tab & tC[i] & tab & tD[i] & cr after tAll end repeat delete the last char of tAll put the milliseconds into tEnd put (tEnd - tStart) & cr & tAll into fld "result" end mouseUp I used very short lines, but this way was 3/4ms; my initial method was 6/7ms; your original method was 15/16ms. On Fri, Aug 19, 2022 at 6:09 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Off the top of my head: > > split v1 by tab > split v2 by tab > split v3 by tab > split v4 by tab > > put the keys of v1 into tKeyList > sort tKeyList ascending numeric > > repeat for each line tKey in tKeyList > put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & > v4 [tKey] & cr after tCombined > end repeat > > Not sure if this will be faster, but every time you refer to a line of a > string the engine has to parse out where that line is from the beginning. > Parsing times will increase exponentially (is that the right term?) the > more lines you are parsing in both the source strings AND the destination > string. > > But arrays are indexed memory locations so the engine knows exactly where > every bit of text is. And putting something after a string does not have to > parse to find the end, the engine knows where that is in memory. It might > be even faster though if you build an array as output and then use the > combine command to convert it all at once to a string. > > I am assuming of course that splitting does not put lines of text in > random order in the array. Arrays can be dicey that way. > > Bob S > > > > > On Aug 19, 2022, at 14:09 , Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have a set of fields, call them A, B, C, and D. Each has the same > number of lines. Each field has different text (per line) > > > > I need to combine the data - frequently - into a form that look like: > > > > C> > > > > For the number of lines in the set of fields. Currently I do this as > follows: > > > > put empty into vCombined > > put fld A into v1 > > put fld B into v2 > > put fld C into v3 > > put fld D into v4 > > repeat with i=1 to the number of lines in v1 > > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& > line i of v4 into line i of vCombined > > end repeat > > > > I put the field contents into variable before the loop to combine them > as my understanding is variable access is faster than field access in a loop > > > > My question to the Hivemind is: Is there a noticeably faster way to > covert these field to the tab delimited structure as show above than the > code above? > > > > This current takes about 20 seconds for 2000 lines or about a second per > 100 lines (very roughly, I was not using a timer in my code, just my > wristwatch seconds in the IDE debugger between breakpoints) > > > > Thank you for any pointers in advance, > > > > Paul Dupuis > > Researchware > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Fri Aug 19 18:32:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 15:32:37 -0700 Subject: Livecode performance problem In-Reply-To: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: On 8/19/22 15:07, Bob Sneidar via use-livecode wrote: > Off the top of my head: > > split v1 by tab > split v2 by tab > split v3 by tab > split v4 by tab > > put the keys of v1 into tKeyList > sort tKeyList ascending numeric > > repeat for each line tKey in tKeyList > put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & v4 [tKey] & cr after tCombined > end repeat > > Not sure if this will be faster, but every time you refer to a line of a string the engine has to parse out where that line is from the beginning. It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with original code: 320 ms array version: 21 ms put empty into vCombined put fld "A" into v1 put fld "B" into v2 put fld "C" into v3 put fld "D" into v4 split v1 by cr split v2 by cr split v3 by cr split v4 by cr put 1 into i repeat for each element tLine in v1 put i&tab&v1[i]&tab&v2[i]&tab&v3[i]&tab&v4[i]&tab&cr after vCombined add 1 to i end repeat -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Aug 19 19:03:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Aug 2022 23:03:22 +0000 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. That is my understanding at least. Bob S On Aug 19, 2022, at 15:32 , Mark Wieder via use-livecode > wrote: It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with From alex at tweedly.net Fri Aug 19 19:31:00 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:31:00 +0100 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: On 19/08/2022 23:32, Mark Wieder via use-livecode wrote: > > It is indeed faster. Here's what I came up with. I'm not sure why 2000 > lines of text in four fields should take that long, I came up with > > original code: 320 ms > array version: 21 ms > >    put empty into vCombined >    put fld "A" into v1 >    put fld "B" into v2 >    put fld "C" into v3 >    put fld "D" into v4 >    split v1 by cr >    split v2 by cr >    split v3 by cr >    split v4 by cr >    put 1 into i >    repeat for each element tLine in v1 >       put i&tab&v1[i]&tab&v2[i]&tab&v3[i]&tab&v4[i]&tab&cr after > vCombined >       add 1 to i >    end repeat which is already quick enough that any further improvement is mainly academic. But for the record: "repeat for each line " is very efficient for a single variable, o you can avoid one of the four 'split's, and use the line variable to count your loop. >    --   split v1 by cr >    split v2 by cr >    split v3 by cr >    split v4 by cr >    put 1 into i >    repeat for each line tLine in v1 >       put i&tab& tLine &tab& v2[i] &tab& v3[i] &tab& v4[i] & cr after > vCombined >       add 1 to i >    end repeat > to trim about another 15% off the time (for my sample data, 24ms down to 20ms.) (and if you know that one of the four fields typically contains much more text (i.e. longer lines) than the others, you would choose it to not be split). Alex. From ahsoftware at sonic.net Fri Aug 19 19:40:56 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 16:40:56 -0700 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: > to trim about another 15% off the time (for my sample data, 24ms down to > 20ms.) Nice. Note, of course, that we're all going on the assumption that all four fields contain the same number of lines. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Aug 19 19:42:31 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 16:42:31 -0700 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <0e4818fe-4eb3-7d92-b786-aaf55324d931@sonic.net> On 8/19/22 16:03, Bob Sneidar via use-livecode wrote: > It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. My tests were based on 2174 lines of text in each field. Got nowhere near 20 seconds. Or even one. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Fri Aug 19 19:46:54 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:46:54 +0100 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <03b5bb40-b79a-87d2-3eeb-590fd13d5b63@tweedly.net> On 20/08/2022 00:03, Bob Sneidar via use-livecode wrote: > It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. Yes, for all the input strings. For the output string, it's just a "put ... after ...", so there is no need to count or scan the output string; LC already keeps (effectively) a pointer to the end of a string, and optimizes the straightforward extension at the end of a string. Alex. From paul at researchware.com Fri Aug 19 19:50:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 19:50:50 -0400 Subject: Livecode performance problem In-Reply-To: <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> Message-ID: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote: > On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: > >> to trim about another 15% off the time (for my sample data, 24ms down >> to 20ms.) > > Nice. > Note, of course, that we're all going on the assumption that all four > fields contain the same number of lines. > > Thank you all for the example of improving performance over my clunky code. Yes, all the fields contain the same number of lines. 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. So a user driven action of: 1) Add a line (or a few) to the fields 2) repackage data and run a few procedures 3) User repeats starting at step 1 Can become very slow as the number of lines in the fields gets large - as you all have noted! Thank you all again! From alex at tweedly.net Fri Aug 19 19:53:34 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:53:34 +0100 Subject: The use-livecode list. Message-ID: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> I've had a pretty shitty day. A variety of things have happened, or not happened, that made it not one of the good days. So I was not happy, and rather grumpy. (My apologies to Panos for being ungracious in an earlier post - it was meant to be a plea for completeness of the product in preference to more work-arounds - but it came across wrongly. Sorry, Panos). And then, the use-list comes up with a nice, tight, well-defined problem to tackle - and now I can end my day on a puzzle-solving high note, rather than dragging myself off to bed on a downbeat. Thanks again, use-list !! Alex. From paul at researchware.com Fri Aug 19 20:14:19 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 20:14:19 -0400 Subject: The use-livecode list. In-Reply-To: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> References: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> Message-ID: <0b143678-234d-5a3e-ef2b-1940327537f5@researchware.com> No, THANK YOU! On 8/19/2022 7:53 PM, Alex Tweedly via use-livecode wrote: > I've had a pretty shitty day. A variety of things have happened, or > not happened, that made it not one of the good days. > > So I was not happy, and rather grumpy. (My apologies to Panos for > being ungracious in an earlier post - it was meant to be a plea for > completeness of the product in preference to more work-arounds - but > it came across wrongly. Sorry, Panos). > > And then, the use-list comes up with a nice, tight, well-defined > problem to tackle - and now I can end my day on a puzzle-solving high > note, rather than dragging myself off to bed on a downbeat. > > Thanks again, use-list !! > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 19 20:43:17 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 19 Aug 2022 19:43:17 -0500 Subject: The use-livecode list. In-Reply-To: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> References: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> Message-ID: <182b8b44088.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> We did it just for you because we've all been there. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 19, 2022 6:54:47 PM Alex Tweedly via use-livecode wrote: > I've had a pretty shitty day. A variety of things have happened, or not > happened, that made it not one of the good days. > > So I was not happy, and rather grumpy. (My apologies to Panos for being > ungracious in an earlier post - it was meant to be a plea for > completeness of the product in preference to more work-arounds - but it > came across wrongly. Sorry, Panos). > > And then, the use-list comes up with a nice, tight, well-defined problem > to tackle - and now I can end my day on a puzzle-solving high note, > rather than dragging myself off to bed on a downbeat. > > Thanks again, use-list !! > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at livecode.com Sat Aug 20 04:22:35 2022 From: kevin at livecode.com (Kevin Miller) Date: Sat, 20 Aug 2022 09:22:35 +0100 Subject: A few issues with web apps In-Reply-To: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> References: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> Message-ID: Don't worry the goal is for zero workarounds by the time we're ready to ship GM. These things are just there to keep you going in the mean time. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself On 19/08/2022, 18:16, "use-livecode on behalf of Tweedly via use-livecode" wrote: > On 19 Aug 2022, at 16:01, panagiotis m via use-livecode wrote: > > Hello all, > > BTW, I just wrote a lesson on how to scroll a LC text field on Web using > : >> Thank you. But at the risk of sounding ungrateful - please don’t. Please just make basic functionality like resizing, scrolling, etc. Work properly and nicely out of the box. Alex. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dfe4 at cornell.edu Sat Aug 20 13:45:38 2022 From: dfe4 at cornell.edu (David Epstein) Date: Sat, 20 Aug 2022 13:45:38 -0400 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> I didn’t text the speed, but why not put fld A into x[1] put fld B into x[2] put fld C into x[3] put fld D into x[4] combine x by column return x > > I have a set of fields, call them A, B, C, and D. Each has the same > number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > C> From alex at tweedly.net Sat Aug 20 17:59:47 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 22:59:47 +0100 Subject: Livecode performance problem In-Reply-To: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> References: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> Message-ID: <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> I can't answer for anyone else, but for me - because I never thought about it :-) Combine by column - never used it before, so never thought of it. It's significantly faster, roughly 40% improvement over the previous best. Note, the spec requires that each line begins with the line number, so you need to add something like: >    local tmp >    repeat with i = 1 to the number of lines in g1 >       put i &CR after tmp >    end repeat >    put tmp into x[1] > >    put g1 into x[2] >    put g2 into x[3] >    put g3 into x[4] >    put g4 into x[5] and finish off with    combine x by column    put cr after x to fully match the earlier results. Alex. On 20/08/2022 18:45, David Epstein via use-livecode wrote: > I didnt text the speed, but why not > > put fld A into x[1] > put fld B into x[2] > put fld C into x[3] > put fld D into x[4] > combine x by column > return x > >> I have a set of fields, call them A, B, C, and D. Each has the same >> number of lines. Each field has different text (per line) >> >> I need to combine the data - frequently - into a form that look like: >> >> > C> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Aug 20 18:54:30 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 20 Aug 2022 17:54:30 -0500 Subject: A few issues with web apps In-Reply-To: References: Message-ID: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> On 8/18/22 2:52 PM, I wrote: > All in all, everything else works, which is really quite incredible. When I accidentally started replying to Andreas privately instead of to the list (I should pay more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for being so polite about it. So here you go: On desktop browsers, everything works great. On mobile it works pretty well except for text entry and a minor display issue. On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses don't always insert entries. I didn't test on iOS. I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. It tracks the mouse movement and scrolls the field accordingly. That works on desktop but doesn't work on mobile. This matches the behavior of anything draggable: the slider widget button, the buttons in the Population example that use "grab", and the LC field scroller thumb. On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" substack should be bold but displays as plain. On the other hand, the substack does display correctly layered over the mainstack. I had wondered if it would work, and it does. I know this will all get fixed so I'm not worried. This is just an example of where we're at right now for anyone curious. Overall, web deployment is very impressive. I was surprised at how good it is even in an unfinished state. BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened without error. Kudos to Mark Waddingham's attention to backward compatibility. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Aug 20 21:14:46 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 20 Aug 2022 21:14:46 -0400 Subject: Livecode performance problem In-Reply-To: <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> References: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> Message-ID: <5a8ff08e-86c7-2c36-c70e-706e31680360@researchware.com> Thank you! The prior solutions have dramatically reduced the time - the WHOLE analytics process in its entirety because of the slowness of my old code was taking HOURS (like 6-10) - and is now down to 30-35 minutes with the prior solutions. I can't wait to tr the combine by columns method to see how much more (40%! WOW!) it reduced the overall process time further! On 8/20/2022 5:59 PM, Alex Tweedly via use-livecode wrote: > I can't answer for anyone else, but for me - because I never thought > about it :-) > > Combine by column - never used it before, so never thought of it. > > It's significantly faster, roughly 40% improvement over the previous > best. > > Note, the spec requires that each line begins with the line number, so > you need to add something like: > >>    local tmp >>    repeat with i = 1 to the number of lines in g1 >>       put i &CR after tmp >>    end repeat >>    put tmp into x[1] >> >>    put g1 into x[2] >>    put g2 into x[3] >>    put g3 into x[4] >>    put g4 into x[5] > and finish off with > >    combine x by column >    put cr after x > > to fully match the earlier results. > > Alex. > > On 20/08/2022 18:45, David Epstein via use-livecode wrote: >> I didnt text the speed, but why not >> >> put fld A into x[1] >> put fld B into x[2] >> put fld C into x[3] >> put fld D into x[4] >> combine x by column >> return x >> >>> I have a set of fields, call them A, B, C, and D. Each has the same >>> number of lines. Each field has different text (per line) >>> >>> I need to combine the data - frequently - into a form that look like: >>> >>> >> C> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Aug 20 21:43:04 2022 From: dochawk at gmail.com (doc hawk) Date: Sat, 20 Aug 2022 18:43:04 -0700 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <8C1C8F20-658A-4D49-A456-1623F36FBF30@gmail.com> Short version: inserting between is a much slower process than after, as the entire field/string/whatever from the post of insertion has to be moved or otherwise handled. From MikeKerner at roadrunner.com Sun Aug 21 08:45:12 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 08:45:12 -0400 Subject: addIcon issue Message-ID: I have an svg widget that draws correctly, so I'm trying to add it to the library, but addIcon does not seem to be working. After calling addIcon, I try to search for the icon, but it does not appear in the icon picker, and adding it by name does not work, either. Here's the line: get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0 l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18 a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) -- 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." From MikeKerner at roadrunner.com Sun Aug 21 09:26:04 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 09:26:04 -0400 Subject: powerbutton (megabundle) is FUN Message-ID: I bought the megabundle, unsure what to expect from the stuff that comes with it. polylist/polygrid look like they are going to be great. as a tmControls nerd, i'm spoiled for gret-looking buttons with more options to customize them and get them to do all sorts of marvelous things. i think i'm about to switch to powerbutton. these have all the customization options and a few more to boot and they respond faster, because they are widgets instead of groups. this is an underrated widget. -- 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." From prothero at earthlearningsolutions.org Sun Aug 21 11:08:15 2022 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sun, 21 Aug 2022 08:08:15 -0700 Subject: A few issues with web apps In-Reply-To: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> References: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> Message-ID: <973017A5-22AD-4D45-8D46-25983EF0C9DD@earthlearningsolutions.org> Jacqueline, Thanks for the great status report on Livecode web deployment. From my perspective, it's finally starting to look promising. The first thing I noticed was the speed of bringing up the first page. I'm looking forward to working with the web deployment when it gets far enough in its development. Best, Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Aug 20, 2022, at 3:56 PM, J. Landman Gay via use-livecode wrote: > > On 8/18/22 2:52 PM, I wrote: >> All in all, everything else works, which is really quite incredible. > > When I accidentally started replying to Andreas privately instead of to the list (I should pay more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for being so polite about it. > > So here you go: > > > > On desktop browsers, everything works great. On mobile it works pretty well except for text entry and a minor display issue. > > On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses don't always insert entries. I didn't test on iOS. > > I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. It tracks the mouse movement and scrolls the field accordingly. That works on desktop but doesn't work on mobile. This matches the behavior of anything draggable: the slider widget button, the buttons in the Population example that use "grab", and the LC field scroller thumb. > > On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" substack should be bold but displays as plain. On the other hand, the substack does display correctly layered over the mainstack. I had wondered if it would work, and it does. > > I know this will all get fixed so I'm not worried. This is just an example of where we're at right now for anyone curious. Overall, web deployment is very impressive. I was surprised at how good it is even in an unfinished state. > > BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened without error. Kudos to Mark Waddingham's attention to backward compatibility. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Aug 21 13:20:27 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 21 Aug 2022 12:20:27 -0500 Subject: addIcon issue In-Reply-To: References: Message-ID: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't think you can add to the default icon family. The docs say that if you haven't specified a family then the icon goes into one named "custom". So see what you get when you run iconFamilies() and if "custom" is in there then set the family using setCurrentIconFamily("custom"). If you prefer, you can create your own family with its own name with addIconFamily. In any case you have to set the current family before you can use its icons. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode wrote: > I have an svg widget that draws correctly, so I'm trying to add it to the > library, but addIcon does not seem to be working. > After calling addIcon, I try to search for the icon, but it does not appear > in the icon picker, and adding it by name does not work, either. > Here's the line: > get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0 > l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18 > a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0 > 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Aug 21 13:56:38 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 13:56:38 -0400 Subject: addIcon issue In-Reply-To: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: reading through the library, it appears that you are correct - you cannot add to the default family. changing the family using setCurrentIconFamily("custom") does cause the picker to show those icons. if i want to select one for assignment to a widget, is that the only way to do it? entering custom/test does not seem to work. instead i have to set the family and then choose the icon On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't think you can add to the default icon family. The docs say that if > you haven't specified a family then the icon goes into one named "custom". > So see what you get when you run iconFamilies() and if "custom" is in > there > then set the family using setCurrentIconFamily("custom"). > > If you prefer, you can create your own family with its own name with > addIconFamily. In any case you have to set the current family before you > can use its icons. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode > wrote: > > > I have an svg widget that draws correctly, so I'm trying to add it to the > > library, but addIcon does not seem to be working. > > After calling addIcon, I try to search for the icon, but it does not > appear > > in the icon picker, and adding it by name does not work, either. > > Here's the line: > > get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 > 1.41,0 > > l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h > 18 > > a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A > 5,5 0 > > 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > > > > > > -- > > 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 at 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 at 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." From brian at milby7.com Sun Aug 21 14:41:36 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 21 Aug 2022 14:41:36 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon families. You should be able to set the icon using just the short name. The icon svg library will check the current library first and then cycle through all loaded families looking for a match. If there is a collision then you don’t know which one will get used (probably the current family and then the rest in order of creation). Here is a version with a large number of icons included: https://milby.us/lc/SvgIconTool.zip I worked on the family code and doubt much has changed since the source was closed. Version number matches GitHub in the rc1 of 9.6.9 currently. Thanks, Brian Sent from my iPhone > On Aug 21, 2022, at 1:58 PM, Mike Kerner via use-livecode wrote: > > reading through the library, it appears that you are correct - you cannot > add to the default family. > changing the family using setCurrentIconFamily("custom") does cause the > picker to show those icons. if i want to select one for assignment to a > widget, is that the only way to do it? entering custom/test does not seem > to work. instead i have to set the family and then choose the icon > >> On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I don't think you can add to the default icon family. The docs say that if >> you haven't specified a family then the icon goes into one named "custom". >> So see what you get when you run iconFamilies() and if "custom" is in >> there >> then set the family using setCurrentIconFamily("custom"). >> >> If you prefer, you can create your own family with its own name with >> addIconFamily. In any case you have to set the current family before you >> can use its icons. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode >> wrote: >> >>> I have an svg widget that draws correctly, so I'm trying to add it to the >>> library, but addIcon does not seem to be working. >>> After calling addIcon, I try to search for the icon, but it does not >> appear >>> in the icon picker, and adding it by name does not work, either. >>> Here's the line: >>> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 >> 1.41,0 >>> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h >> 18 >>> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A >> 5,5 0 >>> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) >>> >>> >>> -- >>> 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sun Aug 21 14:58:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 21 Aug 2022 20:58:16 +0200 Subject: Livecode Builder -how t write to a file? Message-ID: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Hi. From time to time and when time allows i am trying to get used to with Livecode Builder. For debugging i would like my lcb script to write some debug code to a file, but i really do not see how this can be done. I found the experimental com.livecode.file module and the operator 'the filecontents of file...', but unfortunately no script example. Does anyone know, if and how i can write some data to an external file on hard disk in LCB? Regards, Matthias From MikeKerner at roadrunner.com Sun Aug 21 16:30:09 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 16:30:09 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: thanks, brian, i'll have a look. i was reading through the library and the filter code. ralph proposed adding a family menu (or a means for either specifying the family or showing all families) to the filter. i think that would be a good idea. On Sun, Aug 21, 2022 at 2:42 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon > families. You should be able to set the icon using just the short name. > The icon svg library will check the current library first and then cycle > through all loaded families looking for a match. If there is a collision > then you don’t know which one will get used (probably the current family > and then the rest in order of creation). > > Here is a version with a large number of icons included: > https://milby.us/lc/SvgIconTool.zip > > I worked on the family code and doubt much has changed since the source > was closed. Version number matches GitHub in the rc1 of 9.6.9 currently. > > Thanks, > Brian > > Sent from my iPhone > > > On Aug 21, 2022, at 1:58 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > reading through the library, it appears that you are correct - you > cannot > > add to the default family. > > changing the family using setCurrentIconFamily("custom") does cause the > > picker to show those icons. if i want to select one for assignment to a > > widget, is that the only way to do it? entering custom/test does not seem > > to work. instead i have to set the family and then choose the icon > > > >> On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> I don't think you can add to the default icon family. The docs say that > if > >> you haven't specified a family then the icon goes into one named > "custom". > >> So see what you get when you run iconFamilies() and if "custom" is in > >> there > >> then set the family using setCurrentIconFamily("custom"). > >> > >> If you prefer, you can create your own family with its own name with > >> addIconFamily. In any case you have to set the current family before you > >> can use its icons. > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode > >> wrote: > >> > >>> I have an svg widget that draws correctly, so I'm trying to add it to > the > >>> library, but addIcon does not seem to be working. > >>> After calling addIcon, I try to search for the icon, but it does not > >> appear > >>> in the icon picker, and adding it by name does not work, either. > >>> Here's the line: > >>> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 > >> 1.41,0 > >>> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 > h > >> 18 > >>> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A > >> 5,5 0 > >>> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > >>> > >>> > >>> -- > >>> 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 at 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 at 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 at 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 at 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." From marksmithhfx at gmail.com Sun Aug 21 17:36:28 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 21 Aug 2022 22:36:28 +0100 Subject: Livecode performance problem In-Reply-To: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> Message-ID: Wow, what a great example. I decided to work through the various suggestions just so I could get a better grip on some of LC’s more sophisticated data handling commands. My original run using Paul’s example was 8 seconds (2000 lines per field, 1100 chars per line) Applying Brian’s simple suggestions of using “after” instead of “into” cut that in half (4 seconds) Splitting the lines and using an array drove the time down to 23 milliseconds. Amazing! Between those 2 that's 8000 msec -> 23 msec or about 350 times faster. I will definitely pay more attention to “split” in future. Great discussion. Mark > On 20 Aug 2022, at 12:50 am, Paul Dupuis via use-livecode wrote: > > On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote: >> On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: >> >>> to trim about another 15% off the time (for my sample data, 24ms down to 20ms.) >> >> Nice. >> Note, of course, that we're all going on the assumption that all four fields contain the same number of lines. >> >> > > Thank you all for the example of improving performance over my clunky code. > > Yes, all the fields contain the same number of lines. > > 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. > > So a user driven action of: > > 1) Add a line (or a few) to the fields > 2) repackage data and run a few procedures > 3) User repeats starting at step 1 > > Can become very slow as the number of lines in the fields gets large - as you all have noted! > > Thank you all again! > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From zryip.theslug at gmail.com Sun Aug 21 18:38:17 2022 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 22 Aug 2022 00:38:17 +0200 Subject: Livecode Builder -how t write to a file? In-Reply-To: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> References: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Message-ID: Dear Matthias, I do not have the answer but a possible workaround. For debugging purposes I'm using the post message. In LCB add this handler: private handler throwWidgetError(in pError as String) returns nothing post "catchWidgetError" with [pError] end handler Call it by using: throwWidgetError("Something to log") And catch it by adding this handler into the card script where you test your widget: *command* catchWidgetError pTheError * put* pTheError & cr after msg *end* catchWidgetError This might be verbose as the message box will take the focus, and the widget will refresh, so logging in a file instead of the message box would be a possibility. *command* catchWidgetError pTheError * write *pTheError to file "xxx" *end* catchWidgetError On Sun, 21 Aug 2022 at 20:59, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > From time to time and when time allows i am trying to get used to with > Livecode Builder. > For debugging i would like my lcb script to write some debug code to a > file, but i really do not see how this can be done. > I found the experimental com.livecode.file module and the operator 'the > filecontents of file...', but unfortunately no script example. > > Does anyone know, if and how i can write some data to an external file on > hard disk in LCB? > > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Zryip TheSlug http://www.aslugontheroad.com From ambassador at fourthworld.com Sun Aug 21 21:28:36 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 21 Aug 2022 18:28:36 -0700 Subject: Livecode performance problem In-Reply-To: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> References: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> Message-ID: <8bc119d6-1455-f6f0-000b-ba149b88b00a@fourthworld.com> 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. > > So a user driven action of: > > 1) Add a line (or a few) to the fields > 2) repackage data and run a few procedures > 3) User repeats starting at step 1 > > Can become very slow as the number of lines in the fields gets large > - as you all have noted! I'd just bite the bullet and replace those columnar fields with one delimited field. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Mon Aug 22 18:45:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 23 Aug 2022 00:45:34 +0200 Subject: Livecode Builder -how t write to a file? In-Reply-To: References: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Message-ID: <5E7A5A08-0B06-46D4-8A97-74F057C834D5@m-r-d.de> Thanks Zryip, i think that is a good workaround. ;) Thanks. Regards, Matthias > Am 22.08.2022 um 00:38 schrieb zryip theSlug via use-livecode : > > Dear Matthias, > > I do not have the answer but a possible workaround. > > For debugging purposes I'm using the post message. > > In LCB add this handler: > private handler throwWidgetError(in pError as String) returns nothing > post "catchWidgetError" with [pError] > end handler > > Call it by using: > throwWidgetError("Something to log") > > And catch it by adding this handler into the card script where you test > your widget: > > *command* catchWidgetError pTheError > * put* pTheError & cr after msg > *end* catchWidgetError > > This might be verbose as the message box will take the focus, and the > widget will refresh, so logging in a file instead of the message box would > be a possibility. > > *command* catchWidgetError pTheError > * write *pTheError to file "xxx" > *end* catchWidgetError > > On Sun, 21 Aug 2022 at 20:59, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi. >> >> From time to time and when time allows i am trying to get used to with >> Livecode Builder. >> For debugging i would like my lcb script to write some debug code to a >> file, but i really do not see how this can be done. >> I found the experimental com.livecode.file module and the operator 'the >> filecontents of file...', but unfortunately no script example. >> >> Does anyone know, if and how i can write some data to an external file on >> hard disk in LCB? >> >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Zryip TheSlug > http://www.aslugontheroad.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From francois.chaplais at mines-paristech.fr Tue Aug 23 10:31:46 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Tue, 23 Aug 2022 16:31:46 +0200 Subject: case sensitivity of the keys in an associative array Message-ID: Dear list From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. For instance, I may define theArray[« Ddt »] If I define now theArray[« ddt »] this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) Is this behavior confirmed? Best regards François From alex at tweedly.net Tue Aug 23 10:45:22 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 23 Aug 2022 15:45:22 +0100 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: Not quite. It is dependent on the value of "casesensitive". If you do set the casesensitve to true then the keys are different (i.e. Ddt  would NOT replace the existing value for ddt) but if it is false (which it would be by default) thne DDt and ddt are teh same. [Only tested on 10.0.0 DP4 - but I think that's how it's always been] Alex. > on mouseup >    local tA >    put 1 into tA["a"] >    put "1" && the keys of tA &CR after msg >    set the casesensitive to true >    put 2 into tA["A"] >    put "2" && tA["a"] && the keys of tA &CR after msg > end mouseup On 23/08/2022 15:31, francois.chaplais via use-livecode wrote: > Dear list > > From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. > > For instance, I may define > theArray[ Ddt ] > > If I define now > theArray[ ddt ] > > this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) > > Is this behavior confirmed? > > Best regards > Franois > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Aug 23 10:46:46 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 23 Aug 2022 16:46:46 +0200 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: Bonjour François, > Am 23.08.2022 um 16:31 schrieb francois.chaplais via use-livecode : > > Dear list > > From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. > > For instance, I may define > theArray[« Ddt »] > > If I define now > theArray[« ddt »] > > this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) > > Is this behavior confirmed? yes, taht is correct bahvior! But you can force case sensitivity in LC: ... set the casesensitive to TRUE answer theArray[« Ddt »] ## -> NADA! answer theArray[« ddt »] ## Will do what you want. ... > Best regards > François Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From francois.chaplais at mines-paristech.fr Tue Aug 23 11:00:35 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Tue, 23 Aug 2022 17:00:35 +0200 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: <897B0044-96B7-40EF-8BC9-8A7E11BE5DAD@mines-paristech.fr> Thanks to you all! This list is a treasury. Chers, François > Le 23 août 2022 à 16:46, Klaus major-k via use-livecode a écrit : > > Bonjour François, > >> Am 23.08.2022 um 16:31 schrieb francois.chaplais via use-livecode : >> >> Dear list >> >> From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. >> >> For instance, I may define >> theArray[« Ddt »] >> >> If I define now >> theArray[« ddt »] >> >> this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) >> >> Is this behavior confirmed? > > yes, taht is correct bahvior! > > But you can force case sensitivity in LC: > ... > set the casesensitive to TRUE > answer theArray[« Ddt »] > ## -> NADA! > > answer theArray[« ddt »] > ## Will do what you want. > ... > >> Best regards >> François > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 24 23:22:25 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 24 Aug 2022 23:22:25 -0400 Subject: Svg Icon Tool Message-ID: Greetings list! A few years ago I published a tool that allowed easy creation of the Icon Families that I had been working on to integrate into the IDE. (The code had been started, but users had no way to leverage the planned capability at the time.) At that time I simply posted it to Sample Stacks and a copy on my web server with more icons. I had been wanting to get it onto GitHub for quite some time, but never got around to it. In another thread I mentioned the tool and Mike asked if it was available on GitHub. That was just the sort of thing I needed to get it posted. (Thanks Mike!) https://github.com/bwmilby/SvgIconTool The most significant change that I've made with this version is that it will keep the icon families and prefs stored as separate files instead of inside the stack. This will make things much easier since plugins start as a palette and you have to toplevel it to save (which is no longer necessary). If you use the previous version, you only really need to worry about any custom families that you imported. All of the ones that I provided earlier are available in the repository and can be loaded in bulk by dragging them onto the library card. I welcome feedback and bug reports on the GitHub repository. Thanks and have a blessed day! Brian Milby From matthias_livecode_150811 at m-r-d.de Thu Aug 25 07:06:31 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 13:06:31 +0200 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Thank you very much for this great tool. Maybe you add some information to the readme.md what files/folders from the zip have to be copied to the plugins folder. Regards, Matthias > Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode : > > Greetings list! > > A few years ago I published a tool that allowed easy creation of the Icon > Families that I had been working on to integrate into the IDE. (The code > had been started, but users had no way to leverage the planned capability > at the time.) At that time I simply posted it to Sample Stacks and a copy > on my web server with more icons. > > I had been wanting to get it onto GitHub for quite some time, but never got > around to it. In another thread I mentioned the tool and Mike asked if it > was available on GitHub. That was just the sort of thing I needed to get > it posted. (Thanks Mike!) > > https://github.com/bwmilby/SvgIconTool > > The most significant change that I've made with this version is that it > will keep the icon families and prefs stored as separate files instead of > inside the stack. This will make things much easier since plugins start as > a palette and you have to toplevel it to save (which is no longer > necessary). If you use the previous version, you only really need to worry > about any custom families that you imported. All of the ones that I > provided earlier are available in the repository and can be loaded in bulk > by dragging them onto the library card. > > I welcome feedback and bug reports on the GitHub repository. > > Thanks and have a blessed day! > Brian Milby > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Thu Aug 25 07:36:42 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Aug 2022 07:36:42 -0400 Subject: Svg Icon Tool In-Reply-To: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: You are welcome! Good idea. Just one file needs to be copied (SvgIconTool.livecode) to install. If you ran it once and imported families, then you can copy or move the milby.us folder to retain the settings (I actually link that folder so I can run as a plug-in or from the repo and use the same settings.) Thanks, Brian > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode wrote: > > Thank you very much for this great tool. > > Maybe you add some information to the readme.md what files/folders from the zip have to be copied to the plugins folder. > > Regards, > Matthias > > >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode : >> >> Greetings list! >> >> A few years ago I published a tool that allowed easy creation of the Icon >> Families that I had been working on to integrate into the IDE. (The code >> had been started, but users had no way to leverage the planned capability >> at the time.) At that time I simply posted it to Sample Stacks and a copy >> on my web server with more icons. >> >> I had been wanting to get it onto GitHub for quite some time, but never got >> around to it. In another thread I mentioned the tool and Mike asked if it >> was available on GitHub. That was just the sort of thing I needed to get >> it posted. (Thanks Mike!) >> >> https://github.com/bwmilby/SvgIconTool >> >> The most significant change that I've made with this version is that it >> will keep the icon families and prefs stored as separate files instead of >> inside the stack. This will make things much easier since plugins start as >> a palette and you have to toplevel it to save (which is no longer >> necessary). If you use the previous version, you only really need to worry >> about any custom families that you imported. All of the ones that I >> provided earlier are available in the repository and can be loaded in bulk >> by dragging them onto the library card. >> >> I welcome feedback and bug reports on the GitHub repository. >> >> Thanks and have a blessed day! >> Brian Milby >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 09:16:05 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 09:16:05 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: Hey, man, if it's that easy to get you to do something, then * Make the tree widget better * Make the NavBar better Boom. Hero me. On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > You are welcome! > > Good idea. Just one file needs to be copied (SvgIconTool.livecode) to > install. If you ran it once and imported families, then you can copy or > move the milby.us folder to retain the settings (I actually link that > folder so I can run as a plug-in or from the repo and use the same > settings.) > > Thanks, > Brian > > > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Thank you very much for this great tool. > > > > Maybe you add some information to the readme.md what files/folders from > the zip have to be copied to the plugins folder. > > > > Regards, > > Matthias > > > > > >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Greetings list! > >> > >> A few years ago I published a tool that allowed easy creation of the > Icon > >> Families that I had been working on to integrate into the IDE. (The > code > >> had been started, but users had no way to leverage the planned > capability > >> at the time.) At that time I simply posted it to Sample Stacks and a > copy > >> on my web server with more icons. > >> > >> I had been wanting to get it onto GitHub for quite some time, but never > got > >> around to it. In another thread I mentioned the tool and Mike asked if > it > >> was available on GitHub. That was just the sort of thing I needed to > get > >> it posted. (Thanks Mike!) > >> > >> https://github.com/bwmilby/SvgIconTool > >> > >> The most significant change that I've made with this version is that it > >> will keep the icon families and prefs stored as separate files instead > of > >> inside the stack. This will make things much easier since plugins > start as > >> a palette and you have to toplevel it to save (which is no longer > >> necessary). If you use the previous version, you only really need to > worry > >> about any custom families that you imported. All of the ones that I > >> provided earlier are available in the repository and can be loaded in > bulk > >> by dragging them onto the library card. > >> > >> I welcome feedback and bug reports on the GitHub repository. > >> > >> Thanks and have a blessed day! > >> Brian Milby > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 25 09:19:05 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 09:19:05 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: Although, as long as we're having this discussion, the navBar is higher priority, so hit that, first. On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner wrote: > Hey, man, if it's that easy to get you to do something, then > * Make the tree widget better > * Make the NavBar better > Boom. Hero me. > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You are welcome! >> >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) to >> install. If you ran it once and imported families, then you can copy or >> move the milby.us folder to retain the settings (I actually link that >> folder so I can run as a plug-in or from the repo and use the same >> settings.) >> >> Thanks, >> Brian >> >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Thank you very much for this great tool. >> > >> > Maybe you add some information to the readme.md what files/folders from >> the zip have to be copied to the plugins folder. >> > >> > Regards, >> > Matthias >> > >> > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Greetings list! >> >> >> >> A few years ago I published a tool that allowed easy creation of the >> Icon >> >> Families that I had been working on to integrate into the IDE. (The >> code >> >> had been started, but users had no way to leverage the planned >> capability >> >> at the time.) At that time I simply posted it to Sample Stacks and a >> copy >> >> on my web server with more icons. >> >> >> >> I had been wanting to get it onto GitHub for quite some time, but >> never got >> >> around to it. In another thread I mentioned the tool and Mike asked >> if it >> >> was available on GitHub. That was just the sort of thing I needed to >> get >> >> it posted. (Thanks Mike!) >> >> >> >> https://github.com/bwmilby/SvgIconTool >> >> >> >> The most significant change that I've made with this version is that it >> >> will keep the icon families and prefs stored as separate files instead >> of >> >> inside the stack. This will make things much easier since plugins >> start as >> >> a palette and you have to toplevel it to save (which is no longer >> >> necessary). If you use the previous version, you only really need to >> worry >> >> about any custom families that you imported. All of the ones that I >> >> provided earlier are available in the repository and can be loaded in >> bulk >> >> by dragging them onto the library card. >> >> >> >> I welcome feedback and bug reports on the GitHub repository. >> >> >> >> Thanks and have a blessed day! >> >> Brian Milby >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 at 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." > -- 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." From MikeKerner at roadrunner.com Thu Aug 25 10:21:00 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 10:21:00 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Message-ID: it will probably be faster and more flexible to have your database do your soriting for you, though. On Mon, Aug 15, 2022 at 7:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Perhaps some expansion of the column "pgContentTypeofColumn" property? > The current possible values are: > text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement > Allowing the addition of 'numeric' and 'datetime' would at least allow a > mapping to sorts although sort support 'international' (perhaps should > be the default for a polygrid column of type "text" and "binary". I am > also not sure how svg-iconname, imagedata, imagefile, and color should > sort. Perhaps svg-iconname should sort as "text". Bolean can sort as > "text" since ascending puts "false" first and descending puts "true" first. > > > On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote: > > So it occurred to me, while playing with sorting by columns, that it > > might be nice to have an additional "sortType" available. > > > > I'd like to be able to say > > > > - if all the 'things' being sorted on are numbers, then sort numeric, > > otherwise sort alphabetical. > > > > Would that be a reasonable enhancement request ? > > > > Would "natural" be a reasonable suggested name ? > > > > Alex. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From bobsneidar at iotecdigital.com Thu Aug 25 11:02:39 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:02:39 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Message-ID: <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> +1 if the source is a dabs, sort during query. Bob S On Aug 25, 2022, at 07:21 , Mike Kerner via use-livecode > wrote: it will probably be faster and more flexible to have your database do your soriting for you, though. On Mon, Aug 15, 2022 at 7:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: Perhaps some expansion of the column "pgContentTypeofColumn" property? The current possible values are: text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement Allowing the addition of 'numeric' and 'datetime' would at least allow a mapping to sorts although sort support 'international' (perhaps should be the default for a polygrid column of type "text" and "binary". I am also not sure how svg-iconname, imagedata, imagefile, and color should sort. Perhaps svg-iconname should sort as "text". Bolean can sort as "text" since ascending puts "false" first and descending puts "true" first. From bobsneidar at iotecdigital.com Thu Aug 25 11:17:44 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:17:44 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> Message-ID: <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> Not sure how that happened. If the source is a DATABASE... On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode > wrote: +1 if the source is a dabs, sort during query. Bob S From bobsneidar at iotecdigital.com Thu Aug 25 11:25:25 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:25:25 +0000 Subject: BN Guides Message-ID: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. Bob S From matthias_livecode_150811 at m-r-d.de Thu Aug 25 11:33:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 17:33:59 +0200 Subject: BN Guides In-Reply-To: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> Bernd Niggemann wrote it. > Am 25.08.2022 um 17:25 schrieb Bob Sneidar via use-livecode : > > Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 25 11:38:15 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 25 Aug 2022 11:38:15 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> Message-ID: <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> So what if you use the column headers on a PolyGrid (or whatever) to give the user a UI for sorting by column (adding, or not, sort arrows to the header labels). Is it still more efficient to re-query the database with the new, user chosen, sort order and repopulate the PolyGrid? Or more efficient to just resort the data already populated into the grid in the desired order the user has chosen? I suspect this later is the more efficient case unless you are sure you have a fast network and server with low latency and no competition for bandwidth. As always, people's use-cases for these widgets vary widely. That is why the more versatile a widget is the often (but not always) the better it is. On 8/25/2022 11:17 AM, Bob Sneidar via use-livecode wrote: > Not sure how that happened. If the source is a DATABASE... > > On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode > wrote: > > +1 if the source is a dabs, sort during query. > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Aug 25 11:45:42 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 17:45:42 +0200 Subject: BN Guides In-Reply-To: <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> Message-ID: <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> Forgot to place the link to the forum where he announced it. https://forums.livecode.com/viewtopic.php?f=4&t=31920 Matthias > Am 25.08.2022 um 17:33 schrieb matthias rebbe via use-livecode : > > Bernd Niggemann wrote it. > >> Am 25.08.2022 um 17:25 schrieb Bob Sneidar via use-livecode : >> >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 11:57:35 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 11:57:35 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> Message-ID: oh, i love this topic. this onion is so, so thick. since you are throwing in the curveball of on-demand column sorting, i have several suggestions (and these are just my suggestions): the obvious one is to use one of the bajillion ways that LC can sort, right? grab the data (if you don't already have the data in a container that you're using to populate the widget), sort it, put it back the less obvious is to do what i end up doing in many of my apps (because everything i write, now, is mobile), and that is have a local sqlite or mysql db. keep all the data that you retrieve from the server in there, and use the local copy as the data source. i do that because i can't guarantee network connectivity, but i want my apps to run, anyway. in that case, my sorting is still done in my db - my local cache. plus, if my app exits, crashes, loses the focus, device reboots, etc., i want it to come back in exactly the state it was in when it left, which is something that's easy to do with a local db. then there's using the local command line, because every OS has a sort routine you can call. From bobsneidar at iotecdigital.com Thu Aug 25 12:15:29 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 16:15:29 +0000 Subject: BN Guides In-Reply-To: <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> Message-ID: <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> Unfortunately I am unable to login to the forums (again) as the saved password I have for it no longer works. Also, if I ask for the activation link to be resent, both emails I would have used along with the only user name I use for everything (slylabs13), results in Account Not Found. Submitting a password reset on either of the two emails never sends a password reset email. Trying to register from scratch with slylabs13 as the user name generates an error that the user name is already in use! I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. So far, I am unusually calm. Normally I'd be cursing and swearing by now. :-) Bob S On Aug 25, 2022, at 08:45 , matthias rebbe via use-livecode > wrote: Forgot to place the link to the forum where he announced it. https://forums.livecode.com/viewtopic.php?f=4&t=31920 Matthias From bobsneidar at iotecdigital.com Thu Aug 25 12:17:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 16:17:30 +0000 Subject: BN Guides In-Reply-To: <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> Message-ID: I found the link to the Board Administrator. The board administrator link has been disabled. LOL! Bob S On Aug 25, 2022, at 09:15 , Bob Sneidar via use-livecode > wrote: I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. From alex at tweedly.net Thu Aug 25 12:39:36 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 25 Aug 2022 17:39:36 +0100 Subject: BN Guides In-Reply-To: References: Message-ID: <7B163A35-88EF-4869-879E-30515F094AA3@tweedly.net> Bob, Just email Heather- she can do everything ! Probably the support @ livecode.com address would be more correct than her directly. Alex Sent from my iPhone > On 25 Aug 2022, at 17:18, Bob Sneidar via use-livecode wrote: > > I found the link to the Board Administrator. The board administrator link has been disabled. LOL! > > Bob S > > > On Aug 25, 2022, at 09:15 , Bob Sneidar via use-livecode > wrote: > > I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 25 13:10:57 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 17:10:57 +0000 Subject: Exclude Keywords from Auto-Complete Message-ID: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> Hi all. I just submitted an enhancement request to create a new global property of keywords to exclude from the SE Auto-Complete feature. The reason is, whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if I hit tab to reformat the script or to move to the next parameter of an auto-complete suggestion, it replaces "me" with the first mergeDeploy suggestion. There are other scenarios I've run into as well. Also, I looked in the SE preferences for auto-complete, but did not find an entry. There is one for Auto Format, but that enables/disables the auto-indent feature. Hopefully they are not both enabled/disabled by that one check box. https://quality.livecode.com/show_bug.cgi?id=23900 Bob S From rdimola at evergreeninfo.net Thu Aug 25 13:24:09 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 25 Aug 2022 13:24:09 -0400 Subject: Exclude Keywords from Auto-Complete In-Reply-To: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> References: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> Message-ID: <003c01d8b8a7$7f667560$7e336020$@net> In the edit=>options of the SE there is an option to turn autocomplete On/Off. There is also edit=>Autocomplete Snippet Manager. I have not used it but it looks interesting. It may solve your problem with the "alternate" option? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Thursday, August 25, 2022 1:11 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Exclude Keywords from Auto-Complete Hi all. I just submitted an enhancement request to create a new global property of keywords to exclude from the SE Auto-Complete feature. The reason is, whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if I hit tab to reformat the script or to move to the next parameter of an auto-complete suggestion, it replaces "me" with the first mergeDeploy suggestion. There are other scenarios I've run into as well. Also, I looked in the SE preferences for auto-complete, but did not find an entry. There is one for Auto Format, but that enables/disables the auto-indent feature. Hopefully they are not both enabled/disabled by that one check box. https://quality.livecode.com/show_bug.cgi?id=23900 Bob S _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 25 13:47:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 17:47:15 +0000 Subject: Exclude Keywords from Auto-Complete In-Reply-To: <003c01d8b8a7$7f667560$7e336020$@net> References: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> <003c01d8b8a7$7f667560$7e336020$@net> Message-ID: Thanks Ralph, that looks interesting. I see: if ${condition:expression} then ${-- true code:statement} else # ${condition} {-- false code:statement} end if # ${condition} Not sure how to use that but I will research. Thanks. Bob S > On Aug 25, 2022, at 10:24 , Ralph DiMola via use-livecode wrote: > > In the edit=>options of the SE there is an option to turn autocomplete > On/Off. There is also edit=>Autocomplete Snippet Manager. I have not used it > but it looks interesting. It may solve your problem with the "alternate" > option? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Bob Sneidar via use-livecode > Sent: Thursday, August 25, 2022 1:11 PM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Exclude Keywords from Auto-Complete > > Hi all. > > I just submitted an enhancement request to create a new global property of > keywords to exclude from the SE Auto-Complete feature. The reason is, > whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if > I hit tab to reformat the script or to move to the next parameter of an > auto-complete suggestion, it replaces "me" with the first mergeDeploy > suggestion. There are other scenarios I've run into as well. > > Also, I looked in the SE preferences for auto-complete, but did not find an > entry. There is one for Auto Format, but that enables/disables the > auto-indent feature. Hopefully they are not both enabled/disabled by that > one check box. > > https://quality.livecode.com/show_bug.cgi?id=23900 > > Bob S From rdimola at evergreeninfo.net Thu Aug 25 14:38:20 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 25 Aug 2022 14:38:20 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: <004001d8b8b1$dcaeb930$960c2b90$@net> Mike, I have used my own version of the navbar widget for years. I added an option to enlarge/vertically justify the icon if there is no label and eliminated the "new item" thingy. I think the stock widget already lets you select the zero option. I added that back before the stock widget let you do it. What changes/enhancements are you looking for? I also have LCS routines to store the navbar options as a custom property array. I have handlers to add/delete/change option text and icons via script for a contextual UI. They are not documented or polished but if there is any interest I will look into it. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Thursday, August 25, 2022 9:19 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: Svg Icon Tool Although, as long as we're having this discussion, the navBar is higher priority, so hit that, first. On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner wrote: > Hey, man, if it's that easy to get you to do something, then > * Make the tree widget better > * Make the NavBar better > Boom. Hero me. > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You are welcome! >> >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) >> to install. If you ran it once and imported families, then you can >> copy or move the milby.us folder to retain the settings (I actually >> link that folder so I can run as a plug-in or from the repo and use >> the same >> settings.) >> >> Thanks, >> Brian >> >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Thank you very much for this great tool. >> > >> > Maybe you add some information to the readme.md what files/folders >> > from >> the zip have to be copied to the plugins folder. >> > >> > Regards, >> > Matthias >> > >> > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Greetings list! >> >> >> >> A few years ago I published a tool that allowed easy creation of >> >> the >> Icon >> >> Families that I had been working on to integrate into the IDE. >> >> (The >> code >> >> had been started, but users had no way to leverage the planned >> capability >> >> at the time.) At that time I simply posted it to Sample Stacks >> >> and a >> copy >> >> on my web server with more icons. >> >> >> >> I had been wanting to get it onto GitHub for quite some time, but >> never got >> >> around to it. In another thread I mentioned the tool and Mike >> >> asked >> if it >> >> was available on GitHub. That was just the sort of thing I needed >> >> to >> get >> >> it posted. (Thanks Mike!) >> >> >> >> https://github.com/bwmilby/SvgIconTool >> >> >> >> The most significant change that I've made with this version is >> >> that it will keep the icon families and prefs stored as separate >> >> files instead >> of >> >> inside the stack. This will make things much easier since plugins >> start as >> >> a palette and you have to toplevel it to save (which is no longer >> >> necessary). If you use the previous version, you only really need >> >> to >> worry >> >> about any custom families that you imported. All of the ones that >> >> I provided earlier are available in the repository and can be >> >> loaded in >> bulk >> >> by dragging them onto the library card. >> >> >> >> I welcome feedback and bug reports on the GitHub repository. >> >> >> >> Thanks and have a blessed day! >> >> Brian Milby >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 at 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." > -- 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 14:46:39 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 14:46:39 -0400 Subject: Svg Icon Tool In-Reply-To: <004001d8b8b1$dcaeb930$960c2b90$@net> References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> <004001d8b8b1$dcaeb930$960c2b90$@net> Message-ID: the two things that are glaring, imho are * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) - someone taps on a selection. i do a check, throw up a "nope", and nothing changes. this one is preventing me from moving off of the tmControls navbar. * autowidth to the card width. but there are several others, as well https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 listen, i get it. i need to re-learn lcb and actually use it. but i also have force powers, so i know that someone is going to do these things, before i do, and then i won't have to. On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike, > I have used my own version of the navbar widget for years. I added an > option to enlarge/vertically justify the icon if there is no label and > eliminated the "new item" thingy. I think the stock widget already lets you > select the zero option. I added that back before the stock widget let you > do it. What changes/enhancements are you looking for? > > I also have LCS routines to store the navbar options as a custom property > array. I have handlers to add/delete/change option text and icons via > script for a contextual UI. They are not documented or polished but if > there is any interest I will look into it. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Mike Kerner via use-livecode > Sent: Thursday, August 25, 2022 9:19 AM > To: How to use LiveCode > Cc: Mike Kerner > Subject: Re: Svg Icon Tool > > Although, as long as we're having this discussion, the navBar is higher > priority, so hit that, first. > > On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner > wrote: > > > Hey, man, if it's that easy to get you to do something, then > > * Make the tree widget better > > * Make the NavBar better > > Boom. Hero me. > > > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> You are welcome! > >> > >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) > >> to install. If you ran it once and imported families, then you can > >> copy or move the milby.us folder to retain the settings (I actually > >> link that folder so I can run as a plug-in or from the repo and use > >> the same > >> settings.) > >> > >> Thanks, > >> Brian > >> > >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > > >> > Thank you very much for this great tool. > >> > > >> > Maybe you add some information to the readme.md what files/folders > >> > from > >> the zip have to be copied to the plugins folder. > >> > > >> > Regards, > >> > Matthias > >> > > >> > > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com>: > >> >> > >> >> Greetings list! > >> >> > >> >> A few years ago I published a tool that allowed easy creation of > >> >> the > >> Icon > >> >> Families that I had been working on to integrate into the IDE. > >> >> (The > >> code > >> >> had been started, but users had no way to leverage the planned > >> capability > >> >> at the time.) At that time I simply posted it to Sample Stacks > >> >> and a > >> copy > >> >> on my web server with more icons. > >> >> > >> >> I had been wanting to get it onto GitHub for quite some time, but > >> never got > >> >> around to it. In another thread I mentioned the tool and Mike > >> >> asked > >> if it > >> >> was available on GitHub. That was just the sort of thing I needed > >> >> to > >> get > >> >> it posted. (Thanks Mike!) > >> >> > >> >> https://github.com/bwmilby/SvgIconTool > >> >> > >> >> The most significant change that I've made with this version is > >> >> that it will keep the icon families and prefs stored as separate > >> >> files instead > >> of > >> >> inside the stack. This will make things much easier since plugins > >> start as > >> >> a palette and you have to toplevel it to save (which is no longer > >> >> necessary). If you use the previous version, you only really need > >> >> to > >> worry > >> >> about any custom families that you imported. All of the ones that > >> >> I provided earlier are available in the repository and can be > >> >> loaded in > >> bulk > >> >> by dragging them onto the library card. > >> >> > >> >> I welcome feedback and bug reports on the GitHub repository. > >> >> > >> >> Thanks and have a blessed day! > >> >> Brian Milby > >> >> _______________________________________________ > >> >> use-livecode mailing list > >> >> use-livecode at 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 at 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 at 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." > > > > > -- > 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 at 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 at 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." From brian at milby7.com Thu Aug 25 17:47:34 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Aug 2022 17:47:34 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> I think what we probably need is simply: set the hilitedItemSilently of widget 1 to 1 Or set the hilitedItemWithoutMessage of widget 1 to 1 This would allow more elegant solutions to many of the raised issues. Thanks, Brian Sent from my iPhone > On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode wrote: > > the two things that are glaring, imho are > * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) - > someone taps on a selection. i do a check, throw up a "nope", and nothing > changes. this one is preventing me from moving off of the tmControls navbar. > * autowidth to the card width. > but there are several others, as well > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > listen, i get it. i need to re-learn lcb and actually use it. > but i also have force powers, so i know that someone is going to do these > things, before i do, and then i won't have to. > >> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Mike, >> I have used my own version of the navbar widget for years. I added an >> option to enlarge/vertically justify the icon if there is no label and >> eliminated the "new item" thingy. I think the stock widget already lets you >> select the zero option. I added that back before the stock widget let you >> do it. What changes/enhancements are you looking for? >> >> I also have LCS routines to store the navbar options as a custom property >> array. I have handlers to add/delete/change option text and icons via >> script for a contextual UI. They are not documented or polished but if >> there is any interest I will look into it. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> From MikeKerner at roadrunner.com Fri Aug 26 09:01:04 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 09:01:04 -0400 Subject: Svg Icon Tool In-Reply-To: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> References: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> Message-ID: i don't think so. i want to be able to be able to intercept the touch/click, and decide what to do. sometimes i want to ignore it. sometimes i want to throw up an error and not switch. sometimes i want to do something else, first. On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > > I think what we probably need is simply: > > set the hilitedItemSilently of widget 1 to 1 > Or > set the hilitedItemWithoutMessage of widget 1 to 1 > > This would allow more elegant solutions to many of the raised issues. > > Thanks, > Brian > > > Sent from my iPhone > > > On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > the two things that are glaring, imho are > > * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) > - > > someone taps on a selection. i do a check, throw up a "nope", and nothing > > changes. this one is preventing me from moving off of the tmControls > navbar. > > * autowidth to the card width. > > but there are several others, as well > > > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > > listen, i get it. i need to re-learn lcb and actually use it. > > but i also have force powers, so i know that someone is going to do these > > things, before i do, and then i won't have to. > > > >> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Mike, > >> I have used my own version of the navbar widget for years. I added an > >> option to enlarge/vertically justify the icon if there is no label and > >> eliminated the "new item" thingy. I think the stock widget already lets > you > >> select the zero option. I added that back before the stock widget let > you > >> do it. What changes/enhancements are you looking for? > >> > >> I also have LCS routines to store the navbar options as a custom > property > >> array. I have handlers to add/delete/change option text and icons via > >> script for a contextual UI. They are not documented or polished but if > >> there is any interest I will look into it. > >> > >> Ralph DiMola > >> IT Director > >> Evergreen Information Services > >> rdimola at evergreeninfo.net > >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From brian at milby7.com Fri Aug 26 09:22:48 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 09:22:48 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: The silent update would allow that to happen in the hilitechanged handler. I don’t know how you would implement a pre… message. How would the widget know whether to proceed or not? The two messages would fire almost simultaneously. There also isn’t any way to tell the widget to cancel the highlight action, which would be needed. A mouseDown message may work but would still need a way to cancel the highlight. I think the silent change is the most seamless way to accomplish this task. In general I think that normal mouse messages should be passed from widgets - even if they add specialized functionality with additional messages. I don’t think they would solve this issue on their own though. (I also did some work in this widget to add the nothing and multiple selections) > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode wrote: > > i don't think so. i want to be able to be able to intercept the > touch/click, and decide what to do. sometimes i want to ignore it. > sometimes i want to throw up an error and not switch. sometimes i want to > do something else, first. > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> >> I think what we probably need is simply: >> >> set the hilitedItemSilently of widget 1 to 1 >> Or >> set the hilitedItemWithoutMessage of widget 1 to 1 >> >> This would allow more elegant solutions to many of the raised issues. >> >> Thanks, >> Brian >> >> >> Sent from my iPhone >> >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> the two things that are glaring, imho are >>> * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) >> - >>> someone taps on a selection. i do a check, throw up a "nope", and nothing >>> changes. this one is preventing me from moving off of the tmControls >> navbar. >>> * autowidth to the card width. >>> but there are several others, as well >>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>> listen, i get it. i need to re-learn lcb and actually use it. >>> but i also have force powers, so i know that someone is going to do these >>> things, before i do, and then i won't have to. >>> >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Mike, >>>> I have used my own version of the navbar widget for years. I added an >>>> option to enlarge/vertically justify the icon if there is no label and >>>> eliminated the "new item" thingy. I think the stock widget already lets >> you >>>> select the zero option. I added that back before the stock widget let >> you >>>> do it. What changes/enhancements are you looking for? >>>> >>>> I also have LCS routines to store the navbar options as a custom >> property >>>> array. I have handlers to add/delete/change option text and icons via >>>> script for a contextual UI. They are not documented or polished but if >>>> there is any interest I will look into it. >>>> >>>> Ralph DiMola >>>> IT Director >>>> Evergreen Information Services >>>> rdimola at evergreeninfo.net >>>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 09:27:14 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 09:27:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: you would have a property for autohilite, and if that is false, the developer would be responsible for setting the hilite. that's the way it's implemented with other controls. On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > The silent update would allow that to happen in the hilitechanged handler. > > I don’t know how you would implement a pre… message. How would the widget > know whether to proceed or not? The two messages would fire almost > simultaneously. There also isn’t any way to tell the widget to cancel the > highlight action, which would be needed. > > A mouseDown message may work but would still need a way to cancel the > highlight. I think the silent change is the most seamless way to > accomplish this task. > > In general I think that normal mouse messages should be passed from > widgets - even if they add specialized functionality with additional > messages. I don’t think they would solve this issue on their own though. > > (I also did some work in this widget to add the nothing and multiple > selections) > > > > > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > i don't think so. i want to be able to be able to intercept the > > touch/click, and decide what to do. sometimes i want to ignore it. > > sometimes i want to throw up an error and not switch. sometimes i want to > > do something else, first. > > > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > >> I think what we probably need is simply: > >> > >> set the hilitedItemSilently of widget 1 to 1 > >> Or > >> set the hilitedItemWithoutMessage of widget 1 to 1 > >> > >> This would allow more elegant solutions to many of the raised issues. > >> > >> Thanks, > >> Brian > >> > >> > >> Sent from my iPhone > >> > >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> the two things that are glaring, imho are > >>> * [preHiliteChanged]( > https://quality.livecode.com/show_bug.cgi?id=23207) > >> - > >>> someone taps on a selection. i do a check, throw up a "nope", and > nothing > >>> changes. this one is preventing me from moving off of the tmControls > >> navbar. > >>> * autowidth to the card width. > >>> but there are several others, as well > >>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > >>> listen, i get it. i need to re-learn lcb and actually use it. > >>> but i also have force powers, so i know that someone is going to do > these > >>> things, before i do, and then i won't have to. > >>> > >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Mike, > >>>> I have used my own version of the navbar widget for years. I added an > >>>> option to enlarge/vertically justify the icon if there is no label and > >>>> eliminated the "new item" thingy. I think the stock widget already > lets > >> you > >>>> select the zero option. I added that back before the stock widget let > >> you > >>>> do it. What changes/enhancements are you looking for? > >>>> > >>>> I also have LCS routines to store the navbar options as a custom > >> property > >>>> array. I have handlers to add/delete/change option text and icons via > >>>> script for a contextual UI. They are not documented or polished but if > >>>> there is any interest I will look into it. > >>>> > >>>> Ralph DiMola > >>>> IT Director > >>>> Evergreen Information Services > >>>> rdimola at evergreeninfo.net > >>>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From rdimola at evergreeninfo.net Fri Aug 26 09:41:46 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 09:41:46 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <002a01d8b951$98eedc70$cacc9550$@net> Do widgets even have the capability to send a message and have it return back to the widget if it is "Pass"ed in the spirit of "Pre" messages? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Friday, August 26, 2022 9:27 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: Svg Icon Tool you would have a property for autohilite, and if that is false, the developer would be responsible for setting the hilite. that's the way it's implemented with other controls. On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > The silent update would allow that to happen in the hilitechanged handler. > > I don’t know how you would implement a pre… message. How would the > widget know whether to proceed or not? The two messages would fire > almost simultaneously. There also isn’t any way to tell the widget to > cancel the highlight action, which would be needed. > > A mouseDown message may work but would still need a way to cancel the > highlight. I think the silent change is the most seamless way to > accomplish this task. > > In general I think that normal mouse messages should be passed from > widgets - even if they add specialized functionality with additional > messages. I don’t think they would solve this issue on their own though. > > (I also did some work in this widget to add the nothing and multiple > selections) > > > > > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > i don't think so. i want to be able to be able to intercept the > > touch/click, and decide what to do. sometimes i want to ignore it. > > sometimes i want to throw up an error and not switch. sometimes i > > want to do something else, first. > > > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > >> I think what we probably need is simply: > >> > >> set the hilitedItemSilently of widget 1 to 1 Or set the > >> hilitedItemWithoutMessage of widget 1 to 1 > >> > >> This would allow more elegant solutions to many of the raised issues. > >> > >> Thanks, > >> Brian > >> > >> > >> Sent from my iPhone > >> > >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> the two things that are glaring, imho are > >>> * [preHiliteChanged]( > https://quality.livecode.com/show_bug.cgi?id=23207) > >> - > >>> someone taps on a selection. i do a check, throw up a "nope", and > nothing > >>> changes. this one is preventing me from moving off of the > >>> tmControls > >> navbar. > >>> * autowidth to the card width. > >>> but there are several others, as well > >>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar& > list_id=105904 > >>> listen, i get it. i need to re-learn lcb and actually use it. > >>> but i also have force powers, so i know that someone is going to > >>> do > these > >>> things, before i do, and then i won't have to. > >>> > >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Mike, > >>>> I have used my own version of the navbar widget for years. I > >>>> added an option to enlarge/vertically justify the icon if there > >>>> is no label and eliminated the "new item" thingy. I think the > >>>> stock widget already > lets > >> you > >>>> select the zero option. I added that back before the stock widget > >>>> let > >> you > >>>> do it. What changes/enhancements are you looking for? > >>>> > >>>> I also have LCS routines to store the navbar options as a custom > >> property > >>>> array. I have handlers to add/delete/change option text and icons > >>>> via script for a contextual UI. They are not documented or > >>>> polished but if there is any interest I will look into it. > >>>> > >>>> Ralph DiMola > >>>> IT Director > >>>> Evergreen Information Services > >>>> rdimola at evergreeninfo.net > >>>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 26 10:13:14 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 10:13:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: Ok, then we need a full spec on how this would work. It is not just the addition of a message. To get what you are desiring, it would be most consistent to just add the mouse messages and the autoHilite property. I would still want the silent option since that works most in the grain of the current functionality. In your use case, you wouldn’t even use the hiliteChanged message. You would just act based on the mouseUp after your checks. From a UI perspective, I think it makes more sense for the object to highlight on the touch and then revert on the mouseUp if not permitted. > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode wrote: > > you would have a property for autohilite, and if that is false, the > developer would be responsible for setting the hilite. that's the way it's > implemented with other controls. > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> The silent update would allow that to happen in the hilitechanged handler. >> >> I don’t know how you would implement a pre… message. How would the widget >> know whether to proceed or not? The two messages would fire almost >> simultaneously. There also isn’t any way to tell the widget to cancel the >> highlight action, which would be needed. >> >> A mouseDown message may work but would still need a way to cancel the >> highlight. I think the silent change is the most seamless way to >> accomplish this task. >> >> In general I think that normal mouse messages should be passed from >> widgets - even if they add specialized functionality with additional >> messages. I don’t think they would solve this issue on their own though. >> >> (I also did some work in this widget to add the nothing and multiple >> selections) >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> i don't think so. i want to be able to be able to intercept the >>> touch/click, and decide what to do. sometimes i want to ignore it. >>> sometimes i want to throw up an error and not switch. sometimes i want to >>> do something else, first. >>> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> I think what we probably need is simply: >>>> >>>> set the hilitedItemSilently of widget 1 to 1 >>>> Or >>>> set the hilitedItemWithoutMessage of widget 1 to 1 >>>> >>>> This would allow more elegant solutions to many of the raised issues. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> Sent from my iPhone >>>> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> the two things that are glaring, imho are >>>>> * [preHiliteChanged]( >> https://quality.livecode.com/show_bug.cgi?id=23207) >>>> - >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> nothing >>>>> changes. this one is preventing me from moving off of the tmControls >>>> navbar. >>>>> * autowidth to the card width. >>>>> but there are several others, as well >>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>> but i also have force powers, so i know that someone is going to do >> these >>>>> things, before i do, and then i won't have to. >>>>> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Mike, >>>>>> I have used my own version of the navbar widget for years. I added an >>>>>> option to enlarge/vertically justify the icon if there is no label and >>>>>> eliminated the "new item" thingy. I think the stock widget already >> lets >>>> you >>>>>> select the zero option. I added that back before the stock widget let >>>> you >>>>>> do it. What changes/enhancements are you looking for? >>>>>> >>>>>> I also have LCS routines to store the navbar options as a custom >>>> property >>>>>> array. I have handlers to add/delete/change option text and icons via >>>>>> script for a contextual UI. They are not documented or polished but if >>>>>> there is any interest I will look into it. >>>>>> >>>>>> Ralph DiMola >>>>>> IT Director >>>>>> Evergreen Information Services >>>>>> rdimola at evergreeninfo.net >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 10:28:45 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 10:28:45 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: correct, the hiliteChanged message is superfluous in this scenario, and the developer would just manage the touch/mouse messages i disagree that flipping the hilite to one and then back is better. the hilite is an indicator of state. if the state is not allowed to change, then the hilite should not change. in the current operation, the user hits a selection. the hilite changes. at this point, there aren't any good options. if we switch cards, then do the test, tell the user that the selection is not allowed, then switch back, they get this jerky transition, and we have to restore the previous state. if we do not make the transition, then they get the hilite changing, then they get rejected, and then we have to switch the hilite back to what it was, before. On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Ok, then we need a full spec on how this would work. It is not just the > addition of a message. > > To get what you are desiring, it would be most consistent to just add the > mouse messages and the autoHilite property. > > I would still want the silent option since that works most in the grain of > the current functionality. > > In your use case, you wouldn’t even use the hiliteChanged message. You > would just act based on the mouseUp after your checks. > > From a UI perspective, I think it makes more sense for the object to > highlight on the touch and then revert on the mouseUp if not permitted. > > > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > you would have a property for autohilite, and if that is false, the > > developer would be responsible for setting the hilite. that's the way > it's > > implemented with other controls. > > > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> The silent update would allow that to happen in the hilitechanged > handler. > >> > >> I don’t know how you would implement a pre… message. How would the > widget > >> know whether to proceed or not? The two messages would fire almost > >> simultaneously. There also isn’t any way to tell the widget to cancel > the > >> highlight action, which would be needed. > >> > >> A mouseDown message may work but would still need a way to cancel the > >> highlight. I think the silent change is the most seamless way to > >> accomplish this task. > >> > >> In general I think that normal mouse messages should be passed from > >> widgets - even if they add specialized functionality with additional > >> messages. I don’t think they would solve this issue on their own > though. > >> > >> (I also did some work in this widget to add the nothing and multiple > >> selections) > >> > >> > >> > >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> i don't think so. i want to be able to be able to intercept the > >>> touch/click, and decide what to do. sometimes i want to ignore it. > >>> sometimes i want to throw up an error and not switch. sometimes i want > to > >>> do something else, first. > >>> > >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> > >>>> I think what we probably need is simply: > >>>> > >>>> set the hilitedItemSilently of widget 1 to 1 > >>>> Or > >>>> set the hilitedItemWithoutMessage of widget 1 to 1 > >>>> > >>>> This would allow more elegant solutions to many of the raised issues. > >>>> > >>>> Thanks, > >>>> Brian > >>>> > >>>> > >>>> Sent from my iPhone > >>>> > >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>> the two things that are glaring, imho are > >>>>> * [preHiliteChanged]( > >> https://quality.livecode.com/show_bug.cgi?id=23207) > >>>> - > >>>>> someone taps on a selection. i do a check, throw up a "nope", and > >> nothing > >>>>> changes. this one is preventing me from moving off of the tmControls > >>>> navbar. > >>>>> * autowidth to the card width. > >>>>> but there are several others, as well > >>>>> > >>>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > >>>>> listen, i get it. i need to re-learn lcb and actually use it. > >>>>> but i also have force powers, so i know that someone is going to do > >> these > >>>>> things, before i do, and then i won't have to. > >>>>> > >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>>>> use-livecode at lists.runrev.com> wrote: > >>>>>> > >>>>>> Mike, > >>>>>> I have used my own version of the navbar widget for years. I added > an > >>>>>> option to enlarge/vertically justify the icon if there is no label > and > >>>>>> eliminated the "new item" thingy. I think the stock widget already > >> lets > >>>> you > >>>>>> select the zero option. I added that back before the stock widget > let > >>>> you > >>>>>> do it. What changes/enhancements are you looking for? > >>>>>> > >>>>>> I also have LCS routines to store the navbar options as a custom > >>>> property > >>>>>> array. I have handlers to add/delete/change option text and icons > via > >>>>>> script for a contextual UI. They are not documented or polished but > if > >>>>>> there is any interest I will look into it. > >>>>>> > >>>>>> Ralph DiMola > >>>>>> IT Director > >>>>>> Evergreen Information Services > >>>>>> rdimola at evergreeninfo.net > >>>>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at 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." From MikeKerner at roadrunner.com Fri Aug 26 10:34:24 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 10:34:24 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: i could see, for someone who wants it to behave the way it behaves now, that retaining the current behavior and adding to it would be better. the control can work both ways, a manual mode and an automagical mode. On Fri, Aug 26, 2022 at 10:28 AM Mike Kerner wrote: > correct, the hiliteChanged message is superfluous in this scenario, and > the developer would just manage the touch/mouse messages > i disagree that flipping the hilite to one and then back is better. the > hilite is an indicator of state. if the state is not allowed to change, > then the hilite should not change. > in the current operation, the user hits a selection. the hilite changes. > at this point, there aren't any good options. if we switch cards, then do > the test, tell the user that the selection is not allowed, then switch > back, they get this jerky transition, and we have to restore the previous > state. if we do not make the transition, then they get the hilite changing, > then they get rejected, and then we have to switch the hilite back to what > it was, before. > > On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Ok, then we need a full spec on how this would work. It is not just the >> addition of a message. >> >> To get what you are desiring, it would be most consistent to just add the >> mouse messages and the autoHilite property. >> >> I would still want the silent option since that works most in the grain >> of the current functionality. >> >> In your use case, you wouldn’t even use the hiliteChanged message. You >> would just act based on the mouseUp after your checks. >> >> From a UI perspective, I think it makes more sense for the object to >> highlight on the touch and then revert on the mouseUp if not permitted. >> >> > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > you would have a property for autohilite, and if that is false, the >> > developer would be responsible for setting the hilite. that's the way >> it's >> > implemented with other controls. >> > >> >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >> The silent update would allow that to happen in the hilitechanged >> handler. >> >> >> >> I don’t know how you would implement a pre… message. How would the >> widget >> >> know whether to proceed or not? The two messages would fire almost >> >> simultaneously. There also isn’t any way to tell the widget to cancel >> the >> >> highlight action, which would be needed. >> >> >> >> A mouseDown message may work but would still need a way to cancel the >> >> highlight. I think the silent change is the most seamless way to >> >> accomplish this task. >> >> >> >> In general I think that normal mouse messages should be passed from >> >> widgets - even if they add specialized functionality with additional >> >> messages. I don’t think they would solve this issue on their own >> though. >> >> >> >> (I also did some work in this widget to add the nothing and multiple >> >> selections) >> >> >> >> >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> i don't think so. i want to be able to be able to intercept the >> >>> touch/click, and decide what to do. sometimes i want to ignore it. >> >>> sometimes i want to throw up an error and not switch. sometimes i >> want to >> >>> do something else, first. >> >>> >> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >> >>>> use-livecode at lists.runrev.com> wrote: >> >>>> >> >>>> >> >>>> I think what we probably need is simply: >> >>>> >> >>>> set the hilitedItemSilently of widget 1 to 1 >> >>>> Or >> >>>> set the hilitedItemWithoutMessage of widget 1 to 1 >> >>>> >> >>>> This would allow more elegant solutions to many of the raised issues. >> >>>> >> >>>> Thanks, >> >>>> Brian >> >>>> >> >>>> >> >>>> Sent from my iPhone >> >>>> >> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >> >>>> use-livecode at lists.runrev.com> wrote: >> >>>>> >> >>>>> the two things that are glaring, imho are >> >>>>> * [preHiliteChanged]( >> >> https://quality.livecode.com/show_bug.cgi?id=23207) >> >>>> - >> >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> >> nothing >> >>>>> changes. this one is preventing me from moving off of the tmControls >> >>>> navbar. >> >>>>> * autowidth to the card width. >> >>>>> but there are several others, as well >> >>>>> >> >>>> >> >> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >> >>>>> listen, i get it. i need to re-learn lcb and actually use it. >> >>>>> but i also have force powers, so i know that someone is going to do >> >> these >> >>>>> things, before i do, and then i won't have to. >> >>>>> >> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >> >>>>>> use-livecode at lists.runrev.com> wrote: >> >>>>>> >> >>>>>> Mike, >> >>>>>> I have used my own version of the navbar widget for years. I added >> an >> >>>>>> option to enlarge/vertically justify the icon if there is no label >> and >> >>>>>> eliminated the "new item" thingy. I think the stock widget already >> >> lets >> >>>> you >> >>>>>> select the zero option. I added that back before the stock widget >> let >> >>>> you >> >>>>>> do it. What changes/enhancements are you looking for? >> >>>>>> >> >>>>>> I also have LCS routines to store the navbar options as a custom >> >>>> property >> >>>>>> array. I have handlers to add/delete/change option text and icons >> via >> >>>>>> script for a contextual UI. They are not documented or polished >> but if >> >>>>>> there is any interest I will look into it. >> >>>>>> >> >>>>>> Ralph DiMola >> >>>>>> IT Director >> >>>>>> Evergreen Information Services >> >>>>>> rdimola at evergreeninfo.net >> >>>>>> >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode at 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 at 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 at 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 at 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 at 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." > -- 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." From brian at milby7.com Fri Aug 26 10:58:14 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 10:58:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <7785DB46-5657-4588-AF98-96549AA153C9@milby7.com> Speaking from a phone UI context, I would think that when you touch an object that it would highlight to register the touch. If you drag off the object, then the touch is cancelled. When you release, then the validity is tested. If the touch is valid, then the object would retain the highlight (or if you had different colors for touch/selected it would change) and the follow on actions would take place. If not valid, the highlight would be reverted to previous state without any change in the current card. All of this can be scripted currently but you have to add your own tests to the hiliteChanged message and guard against causing a loop. I’ll set up a repo for this widget so it can be worked based on the GPL code. > On Aug 26, 2022, at 10:30 AM, Mike Kerner via use-livecode wrote: > > correct, the hiliteChanged message is superfluous in this scenario, and the > developer would just manage the touch/mouse messages > i disagree that flipping the hilite to one and then back is better. the > hilite is an indicator of state. if the state is not allowed to change, > then the hilite should not change. > in the current operation, the user hits a selection. the hilite changes. at > this point, there aren't any good options. if we switch cards, then do the > test, tell the user that the selection is not allowed, then switch back, > they get this jerky transition, and we have to restore the previous state. > if we do not make the transition, then they get the hilite changing, then > they get rejected, and then we have to switch the hilite back to what it > was, before. > >> On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Ok, then we need a full spec on how this would work. It is not just the >> addition of a message. >> >> To get what you are desiring, it would be most consistent to just add the >> mouse messages and the autoHilite property. >> >> I would still want the silent option since that works most in the grain of >> the current functionality. >> >> In your use case, you wouldn’t even use the hiliteChanged message. You >> would just act based on the mouseUp after your checks. >> >> From a UI perspective, I think it makes more sense for the object to >> highlight on the touch and then revert on the mouseUp if not permitted. >> >>> On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> you would have a property for autohilite, and if that is false, the >>> developer would be responsible for setting the hilite. that's the way >> it's >>> implemented with other controls. >>> >>>> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> The silent update would allow that to happen in the hilitechanged >> handler. >>>> >>>> I don’t know how you would implement a pre… message. How would the >> widget >>>> know whether to proceed or not? The two messages would fire almost >>>> simultaneously. There also isn’t any way to tell the widget to cancel >> the >>>> highlight action, which would be needed. >>>> >>>> A mouseDown message may work but would still need a way to cancel the >>>> highlight. I think the silent change is the most seamless way to >>>> accomplish this task. >>>> >>>> In general I think that normal mouse messages should be passed from >>>> widgets - even if they add specialized functionality with additional >>>> messages. I don’t think they would solve this issue on their own >> though. >>>> >>>> (I also did some work in this widget to add the nothing and multiple >>>> selections) >>>> >>>> >>>> >>>>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> i don't think so. i want to be able to be able to intercept the >>>>> touch/click, and decide what to do. sometimes i want to ignore it. >>>>> sometimes i want to throw up an error and not switch. sometimes i want >> to >>>>> do something else, first. >>>>> >>>>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> >>>>>> I think what we probably need is simply: >>>>>> >>>>>> set the hilitedItemSilently of widget 1 to 1 >>>>>> Or >>>>>> set the hilitedItemWithoutMessage of widget 1 to 1 >>>>>> >>>>>> This would allow more elegant solutions to many of the raised issues. >>>>>> >>>>>> Thanks, >>>>>> Brian >>>>>> >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> the two things that are glaring, imho are >>>>>>> * [preHiliteChanged]( >>>> https://quality.livecode.com/show_bug.cgi?id=23207) >>>>>> - >>>>>>> someone taps on a selection. i do a check, throw up a "nope", and >>>> nothing >>>>>>> changes. this one is preventing me from moving off of the tmControls >>>>>> navbar. >>>>>>> * autowidth to the card width. >>>>>>> but there are several others, as well >>>>>>> >>>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>>>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>>>> but i also have force powers, so i know that someone is going to do >>>> these >>>>>>> things, before i do, and then i won't have to. >>>>>>> >>>>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Mike, >>>>>>>> I have used my own version of the navbar widget for years. I added >> an >>>>>>>> option to enlarge/vertically justify the icon if there is no label >> and >>>>>>>> eliminated the "new item" thingy. I think the stock widget already >>>> lets >>>>>> you >>>>>>>> select the zero option. I added that back before the stock widget >> let >>>>>> you >>>>>>>> do it. What changes/enhancements are you looking for? >>>>>>>> >>>>>>>> I also have LCS routines to store the navbar options as a custom >>>>>> property >>>>>>>> array. I have handlers to add/delete/change option text and icons >> via >>>>>>>> script for a contextual UI. They are not documented or polished but >> if >>>>>>>> there is any interest I will look into it. >>>>>>>> >>>>>>>> Ralph DiMola >>>>>>>> IT Director >>>>>>>> Evergreen Information Services >>>>>>>> rdimola at evergreeninfo.net >>>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Aug 26 11:54:27 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 11:54:27 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <003c01d8b964$22059910$6610cb30$@net> What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 26, 2022 10:13 AM To: How to use LiveCode Cc: Brian Milby Subject: Re: Svg Icon Tool Ok, then we need a full spec on how this would work. It is not just the addition of a message. To get what you are desiring, it would be most consistent to just add the mouse messages and the autoHilite property. I would still want the silent option since that works most in the grain of the current functionality. In your use case, you wouldn’t even use the hiliteChanged message. You would just act based on the mouseUp after your checks. >From a UI perspective, I think it makes more sense for the object to highlight on the touch and then revert on the mouseUp if not permitted. > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode wrote: > > you would have a property for autohilite, and if that is false, the > developer would be responsible for setting the hilite. that's the way > it's implemented with other controls. > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> The silent update would allow that to happen in the hilitechanged handler. >> >> I don’t know how you would implement a pre… message. How would the >> widget know whether to proceed or not? The two messages would fire >> almost simultaneously. There also isn’t any way to tell the widget >> to cancel the highlight action, which would be needed. >> >> A mouseDown message may work but would still need a way to cancel the >> highlight. I think the silent change is the most seamless way to >> accomplish this task. >> >> In general I think that normal mouse messages should be passed from >> widgets - even if they add specialized functionality with additional >> messages. I don’t think they would solve this issue on their own though. >> >> (I also did some work in this widget to add the nothing and multiple >> selections) >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> i don't think so. i want to be able to be able to intercept the >>> touch/click, and decide what to do. sometimes i want to ignore it. >>> sometimes i want to throw up an error and not switch. sometimes i >>> want to do something else, first. >>> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> I think what we probably need is simply: >>>> >>>> set the hilitedItemSilently of widget 1 to 1 Or set the >>>> hilitedItemWithoutMessage of widget 1 to 1 >>>> >>>> This would allow more elegant solutions to many of the raised issues. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> Sent from my iPhone >>>> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> the two things that are glaring, imho are >>>>> * [preHiliteChanged]( >> https://quality.livecode.com/show_bug.cgi?id=23207) >>>> - >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> nothing >>>>> changes. this one is preventing me from moving off of the >>>>> tmControls >>>> navbar. >>>>> * autowidth to the card width. >>>>> but there are several others, as well >>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar >> &list_id=105904 >>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>> but i also have force powers, so i know that someone is going to >>>>> do >> these >>>>> things, before i do, and then i won't have to. >>>>> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Mike, >>>>>> I have used my own version of the navbar widget for years. I >>>>>> added an option to enlarge/vertically justify the icon if there >>>>>> is no label and eliminated the "new item" thingy. I think the >>>>>> stock widget already >> lets >>>> you >>>>>> select the zero option. I added that back before the stock widget >>>>>> let >>>> you >>>>>> do it. What changes/enhancements are you looking for? >>>>>> >>>>>> I also have LCS routines to store the navbar options as a custom >>>> property >>>>>> array. I have handlers to add/delete/change option text and icons >>>>>> via script for a contextual UI. They are not documented or >>>>>> polished but if there is any interest I will look into it. >>>>>> >>>>>> Ralph DiMola >>>>>> IT Director >>>>>> Evergreen Information Services >>>>>> rdimola at evergreeninfo.net >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 26 13:13:00 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 13:13:00 -0400 Subject: Svg Icon Tool In-Reply-To: <003c01d8b964$22059910$6610cb30$@net> References: <003c01d8b964$22059910$6610cb30$@net> Message-ID: <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> I think that if auto highlight is disabled then hiliteChanged would never get triggered. Having the back end highlight change without it visually changing would probably lead to confusion. > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode wrote: > > What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Fri Aug 26 15:25:15 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 15:25:15 -0400 Subject: Svg Icon Tool In-Reply-To: <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> Message-ID: <006101d8b981$94e1dee0$bea59ca0$@net> I looked at the code and an auto hilite property could be added and the hiliteing could be disabled. It would be confusing but it would be allow one to control the hilite. I'm going to try it for laughs. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 26, 2022 1:13 PM To: How to use LiveCode Cc: Brian Milby Subject: Re: Svg Icon Tool I think that if auto highlight is disabled then hiliteChanged would never get triggered. Having the back end highlight change without it visually changing would probably lead to confusion. > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode wrote: > > What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 16:08:08 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 16:08:08 -0400 Subject: Svg Icon Tool In-Reply-To: <006101d8b981$94e1dee0$bea59ca0$@net> References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: i decided, yesterday, to go through the lcb lessons, again, because of this issue (and wanting to deal with a couple of things in the iconPicker). hopefully it'll be done and released before i finish the course, because Stephen said that he's going to have a new version of powerButton out in the morning, which will hopefully cause me to forget about this while i play with that. On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I looked at the code and an auto hilite property could be added and the > hiliteing could be disabled. It would be confusing but it would be allow > one to control the hilite. I'm going to try it for laughs. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Brian Milby via use-livecode > Sent: Friday, August 26, 2022 1:13 PM > To: How to use LiveCode > Cc: Brian Milby > Subject: Re: Svg Icon Tool > > I think that if auto highlight is disabled then hiliteChanged would never > get triggered. Having the back end highlight change without it visually > changing would probably lead to confusion. > > > > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > What if the widget had a property to disable the auto hilite on click > and when the hiliteChanged message arrives you can set(or not) the hilite > as appropriate via setting a widget property? A pre-message would be > cleaner but this is not horrible. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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." From Bernd.Niggemann at uni-wh.de Fri Aug 26 16:25:08 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 26 Aug 2022 20:25:08 +0000 Subject: BN Guides Message-ID: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> Hi Bob, There is an alternative for guide right now https://livecodeshare.runrev.com/stack/1002/DevGuides-Plugin-Installer and 10.0.0 DP4 has guides built-in. They look and work really well. I will not develop bnGuides further since starting LC 10 they will be part of the IDE. I liked the idea to push the concept of behaviors for guides. But maybe a bit too far. Nevertheless the version of bnGuides Matthias linked to in the Forum is one version step ahead of the one in Livecodeshare/Sample Stacks. Kind regards Bernd From MikeKerner at roadrunner.com Fri Aug 26 16:50:59 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 16:50:59 -0400 Subject: Svg Icon Tool In-Reply-To: References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: sorry - STEVEN On Fri, Aug 26, 2022 at 4:08 PM Mike Kerner wrote: > i decided, yesterday, to go through the lcb lessons, again, because of > this issue (and wanting to deal with a couple of things in the iconPicker). > hopefully it'll be done and released before i finish the course, because > Stephen said that he's going to have a new version of powerButton out in > the morning, which will hopefully cause me to forget about this while i > play with that. > > On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I looked at the code and an auto hilite property could be added and the >> hiliteing could be disabled. It would be confusing but it would be allow >> one to control the hilite. I'm going to try it for laughs. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf Of Brian Milby via use-livecode >> Sent: Friday, August 26, 2022 1:13 PM >> To: How to use LiveCode >> Cc: Brian Milby >> Subject: Re: Svg Icon Tool >> >> I think that if auto highlight is disabled then hiliteChanged would never >> get triggered. Having the back end highlight change without it visually >> changing would probably lead to confusion. >> >> >> > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > What if the widget had a property to disable the auto hilite on click >> and when the hiliteChanged message arrives you can set(or not) the hilite >> as appropriate via setting a widget property? A pre-message would be >> cleaner but this is not horrible. >> > >> > Ralph DiMola >> > IT Director >> > Evergreen Information Services >> > rdimola at evergreeninfo.net >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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." > -- 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." From bobsneidar at iotecdigital.com Fri Aug 26 17:00:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 26 Aug 2022 21:00:20 +0000 Subject: BN Guides In-Reply-To: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> References: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> Message-ID: Works great. Thanks. Bob S On Aug 26, 2022, at 13:25 , Niggemann, Bernd via use-livecode > wrote: Hi Bob, There is an alternative for guide right now https://livecodeshare.runrev.com/stack/1002/DevGuides-Plugin-Installer and 10.0.0 DP4 has guides built-in. They look and work really well. I will not develop bnGuides further since starting LC 10 they will be part of the IDE. I liked the idea to push the concept of behaviors for guides. But maybe a bit too far. Nevertheless the version of bnGuides Matthias linked to in the Forum is one version step ahead of the one in Livecodeshare/Sample Stacks. Kind regards Bernd From bobcole at earthlink.net Fri Aug 26 17:10:31 2022 From: bobcole at earthlink.net (Bob Cole) Date: Fri, 26 Aug 2022 16:10:31 -0500 Subject: addIcon issue In-Reply-To: References: Message-ID: I added the test icon to the custom icon library. Now I want to delete it. In the Dictionary for Icon SVG Library, I see there is a way to delete an entire icon family: deleteIconFamily(pFamily) Is there a way to remove just one icon from a family? Bob From MikeKerner at roadrunner.com Sun Aug 28 11:10:12 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 11:10:12 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: * icon operations are temporary (as soon as you quit LC and relaunch it, the icons and families you add go away) * there is no deleteIcon code in the icon api * the icon api is in /Contents/Tools/Extensions/com.livecode.library.iconsvg/iconsvg.lcb On Fri, Aug 26, 2022 at 5:11 PM Bob Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > I added the test icon to the custom icon library. Now I want to delete it. > In the Dictionary for Icon SVG Library, I see there is a way to delete an > entire icon family: deleteIconFamily(pFamily) > Is there a way to remove just one icon from a family? > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sun Aug 28 12:58:27 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 12:58:27 -0400 Subject: lcb missing manual Message-ID: things for lcb that are supposedly documented, but i can't find: * editor types (e.g. com.livecode.pi.number) * other metadata definitions for properties, widgets, etc.) -- 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." From richmondmathewson at gmail.com Sun Aug 28 13:05:32 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 28 Aug 2022 18:05:32 +0100 Subject: lcb missing manual In-Reply-To: References: Message-ID: It would be good were there full documentation for LCB, and, preferably with some sort of thematic search so, unlike the LiveCode dictionary one did not have to flounder around so much working out what to search for. On Sun, 28 Aug 2022, 18:00 Mike Kerner via use-livecode, < use-livecode at lists.runrev.com> wrote: > things for lcb that are supposedly documented, but i can't find: > * editor types (e.g. com.livecode.pi.number) > * other metadata definitions for properties, widgets, etc.) > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Sun Aug 28 13:17:54 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 28 Aug 2022 10:17:54 -0700 Subject: lcb missing manual In-Reply-To: References: Message-ID: On 8/28/22 09:58, Mike Kerner via use-livecode wrote: > things for lcb that are supposedly documented, but i can't find: > * editor types (e.g. com.livecode.pi.number) > * other metadata definitions for properties, widgets, etc.) ...things that we use in LCS but aren't available in LCB: colornames switch statements etc. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Sun Aug 28 13:35:19 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 10:35:19 -0700 Subject: Livecode / Github In-Reply-To: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> References: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> Message-ID: The same applies to the code in Navigator. I wrote it about five years ago when I was preparing to transform Navigator itself to use script behaviors. Always work on a copy. That said, it worked fine for Navigator, and no one has ever told me it broke anything. gc On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > I tried scriptifier and it broke stuff so just be careful with it and > check its output. > > Sean > > > > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hey Skip, long time... > > I don't know if you were around when script-only-stack behaviors came > into > > being, but you can now rip all of the code out of your stacks and happily > > use vc/git. The stacks themselves are still binary (although several of > us > > have been messing with dumping that paradigm completely, it's less > > practical than I would have hoped, as of today). > > Navigator will export every script in a project into behavior stacks, and > > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded > > in the LC bundle, and it does the same thing, namely extracting all the > > scripts out of a project and putting them into .livecodescript text > files. > > Levure is great. I have used it with every project I've worked on for > > several years, BUT you don't have to use it to go this route. > > > >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Hi SKIP > >> > >> Welcome back to the list! > >> > >> There is Levure which I knew of as a third party application framework > >> created by Trevor DeVore but I just did a search for it and I see it > now on > >> the LiveCode website described as an App Collaboration Framework. > >> https://livecode.com/products/livecode-platform/levure/ < > >> https://livecode.com/products/livecode-platform/levure/> So it must > have > >> at some point migrated to the mother ship. > >> > >> I haven’t used it but I have considered migrating my application to it. > >> It works with version control systems as long as you follow its > >> recommendations about how to organize your code into behaviours that are > >> stored in script only stacks which are just text files that a version > >> control system can read (These are somewhat new so depending on when you > >> last used LiveCode they may be new to you.) This was an enhancement > that > >> has enabled the use of version control for scripts in a project. It is > the > >> binary stacks that versions control systems can’t track so in Levure > those > >> are just used for user interface. > >> > >> Hope this helps. > >> > >> Martin > >> > >> > >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Greetings! > >>> > >>> Been a while since I have been on this list. Working on a new project > >> and > >>> wondering if the backing up of Livecode files to Github was ever > >>> implemented and created. I know there was talk of it at one time. > >>> > >>> I apologize if it has been in place for a while and I am just out of > the > >>> loop. Actually, I HOPE that is the case! > >>> > >>> Regards, > >>> > >>> SKIP > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Sun Aug 28 13:38:06 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 10:38:06 -0700 Subject: BN Guides In-Reply-To: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: Where are the BN guides? I'd be curious to see how this is happening. As I recall, Navigator is designed to dive through whatever behaviors are set regardless of how deep the rabbit hole goes to find the actual behavior, but I haven't looked at that part of the code in years. gc On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Who wrote BN Guides? Very cool, but there is a conflict with Navigator. > When I double-click an object in Navigator to open it's script, I get t he > BNGuides script instead. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Sun Aug 28 14:06:39 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 14:06:39 -0400 Subject: lcb missing manual In-Reply-To: References: Message-ID: the lcb documentation, especially in the api widget is ungreat. the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. On Sun, Aug 28, 2022 at 1:18 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/28/22 09:58, Mike Kerner via use-livecode wrote: > > things for lcb that are supposedly documented, but i can't find: > > * editor types (e.g. com.livecode.pi.number) > > * other metadata definitions for properties, widgets, etc.) > > ...things that we use in LCS but aren't available in LCB: > colornames > switch statements > etc. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From ahsoftware at sonic.net Sun Aug 28 14:25:59 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 28 Aug 2022 11:25:59 -0700 Subject: lcb missing manual In-Reply-To: References: Message-ID: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> On 8/28/22 11:06, Mike Kerner wrote: > the lcb documentation, especially in the api widget is ungreat. > the good news is that as long as there is an oss repo version of LC, you > can hunt for some of the information that is missing. AND, at least for > now, you can still find much of it in the LC application > example: as i was hunting, i found a bunch of editors, but none of them > seem to be documented anywhere obvious. Yep - I find most of my documentation by digging. The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Sun Aug 28 15:05:44 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 28 Aug 2022 21:05:44 +0200 Subject: BN Guides In-Reply-To: References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: Geoff, you can find the most current version here https://forums.livecode.com/viewtopic.php?f=4&t=31920 Regards, Matthias > Am 28.08.2022 um 19:38 schrieb Geoff Canyon via use-livecode >: > > Where are the BN guides? I'd be curious to see how this is happening. As I > recall, Navigator is designed to dive through whatever behaviors are set > regardless of how deep the rabbit hole goes to find the actual behavior, > but I haven't looked at that part of the code in years. > > gc > > On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. >> When I double-click an object in Navigator to open it's script, I get t he >> BNGuides script instead. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sun Aug 28 15:29:27 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 12:29:27 -0700 Subject: Livecode / Github In-Reply-To: References: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> Message-ID: To be clear: if anyone wants to try Navigator's export to script behaviors function -- work on a copy, and I'd love feedback. On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon wrote: > The same applies to the code in Navigator. I wrote it about five years ago > when I was preparing to transform Navigator itself to use script behaviors. > > Always work on a copy. > > That said, it worked fine for Navigator, and no one has ever told me it > broke anything. > > gc > > On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I tried scriptifier and it broke stuff so just be careful with it and >> check its output. >> >> Sean >> >> >> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Hey Skip, long time... >> > I don't know if you were around when script-only-stack behaviors came >> into >> > being, but you can now rip all of the code out of your stacks and >> happily >> > use vc/git. The stacks themselves are still binary (although several of >> us >> > have been messing with dumping that paradigm completely, it's less >> > practical than I would have hoped, as of today). >> > Navigator will export every script in a project into behavior stacks, >> and >> > Monte wrote a stack called "Scriptifier", if memory serves. It's >> embedded >> > in the LC bundle, and it does the same thing, namely extracting all the >> > scripts out of a project and putting them into .livecodescript text >> files. >> > Levure is great. I have used it with every project I've worked on for >> > several years, BUT you don't have to use it to go this route. >> > >> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >> Hi SKIP >> >> >> >> Welcome back to the list! >> >> >> >> There is Levure which I knew of as a third party application framework >> >> created by Trevor DeVore but I just did a search for it and I see it >> now on >> >> the LiveCode website described as an App Collaboration Framework. >> >> https://livecode.com/products/livecode-platform/levure/ < >> >> https://livecode.com/products/livecode-platform/levure/> So it must >> have >> >> at some point migrated to the mother ship. >> >> >> >> I haven’t used it but I have considered migrating my application to it. >> >> It works with version control systems as long as you follow its >> >> recommendations about how to organize your code into behaviours that >> are >> >> stored in script only stacks which are just text files that a version >> >> control system can read (These are somewhat new so depending on when >> you >> >> last used LiveCode they may be new to you.) This was an enhancement >> that >> >> has enabled the use of version control for scripts in a project. It is >> the >> >> binary stacks that versions control systems can’t track so in Levure >> those >> >> are just used for user interface. >> >> >> >> Hope this helps. >> >> >> >> Martin >> >> >> >> >> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> Greetings! >> >>> >> >>> Been a while since I have been on this list. Working on a new project >> >> and >> >>> wondering if the backing up of Livecode files to Github was ever >> >>> implemented and created. I know there was talk of it at one time. >> >>> >> >>> I apologize if it has been in place for a while and I am just out of >> the >> >>> loop. Actually, I HOPE that is the case! >> >>> >> >>> Regards, >> >>> >> >>> SKIP >> >>> _______________________________________________ >> >>> use-livecode mailing list >> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From neville.smythe at optusnet.com.au Sun Aug 28 19:04:49 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 29 Aug 2022 09:04:49 +1000 Subject: SVG Icon tool query Message-ID: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> Many thanks to Brian for sharing the fantastic collection of icons included in this tool. Can I enquire as to the copyright status of the images? Neville From MikeKerner at roadrunner.com Sun Aug 28 19:18:43 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 19:18:43 -0400 Subject: SVG Icon tool query In-Reply-To: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> References: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> Message-ID: I looked at the source that Brian says he used in his repo ( https://github.com/leungwensen/svg-icon). I don't see any copyright listed on that site, but it has all of the libraries linked to it...but then at least the first one (Ant) doesn't seem to have any license listed anywhere, either. On Sun, Aug 28, 2022 at 7:06 PM Neville Smythe via use-livecode < use-livecode at lists.runrev.com> wrote: > Many thanks to Brian for sharing the fantastic collection of icons > included in this tool. Can I enquire as to the copyright status of the > images? > > Neville > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sun Aug 28 19:22:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 19:22:06 -0400 Subject: Svg Icon Tool In-Reply-To: References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: Interesting: Steven/LC also made a cool demo of the polyList for displaying the svg icon families and icons that are currently in LC. It's called "SVGIconList", and it uses a total of... 23 lines of code. On Fri, Aug 26, 2022 at 4:50 PM Mike Kerner wrote: > sorry - STEVEN > > On Fri, Aug 26, 2022 at 4:08 PM Mike Kerner > wrote: > >> i decided, yesterday, to go through the lcb lessons, again, because of >> this issue (and wanting to deal with a couple of things in the iconPicker). >> hopefully it'll be done and released before i finish the course, because >> Stephen said that he's going to have a new version of powerButton out in >> the morning, which will hopefully cause me to forget about this while i >> play with that. >> >> On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I looked at the code and an auto hilite property could be added and the >>> hiliteing could be disabled. It would be confusing but it would be allow >>> one to control the hilite. I'm going to try it for laughs. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>> Behalf Of Brian Milby via use-livecode >>> Sent: Friday, August 26, 2022 1:13 PM >>> To: How to use LiveCode >>> Cc: Brian Milby >>> Subject: Re: Svg Icon Tool >>> >>> I think that if auto highlight is disabled then hiliteChanged would >>> never get triggered. Having the back end highlight change without it >>> visually changing would probably lead to confusion. >>> >>> >>> > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> > >>> > What if the widget had a property to disable the auto hilite on click >>> and when the hiliteChanged message arrives you can set(or not) the hilite >>> as appropriate via setting a widget property? A pre-message would be >>> cleaner but this is not horrible. >>> > >>> > Ralph DiMola >>> > IT Director >>> > Evergreen Information Services >>> > rdimola at evergreeninfo.net >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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." >> > > > -- > 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." > -- 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." From sean at pidigital.co.uk Sun Aug 28 21:30:15 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 29 Aug 2022 02:30:15 +0100 Subject: Livecode / Github In-Reply-To: References: Message-ID: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> It will be good to see, once available, how using the new SmartCrumbs add on will help with this. All objects in JSON form and then use stack scripts (and htmlText, AudioClip and VideoClip data) in your GitHub repository. This is something I really want to start implementing. Sean > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > >  > To be clear: if anyone wants to try Navigator's export to script behaviors function -- work on a copy, and I'd love feedback. > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon wrote: >> The same applies to the code in Navigator. I wrote it about five years ago when I was preparing to transform Navigator itself to use script behaviors. >> >> Always work on a copy. >> >> That said, it worked fine for Navigator, and no one has ever told me it broke anything. >> >> gc >> >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode wrote: >>> I tried scriptifier and it broke stuff so just be careful with it and check its output. >>> >>> Sean >>> >>> >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode wrote: >>> > >>> > Hey Skip, long time... >>> > I don't know if you were around when script-only-stack behaviors came into >>> > being, but you can now rip all of the code out of your stacks and happily >>> > use vc/git. The stacks themselves are still binary (although several of us >>> > have been messing with dumping that paradigm completely, it's less >>> > practical than I would have hoped, as of today). >>> > Navigator will export every script in a project into behavior stacks, and >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded >>> > in the LC bundle, and it does the same thing, namely extracting all the >>> > scripts out of a project and putting them into .livecodescript text files. >>> > Levure is great. I have used it with every project I've worked on for >>> > several years, BUT you don't have to use it to go this route. >>> > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >>> >> use-livecode at lists.runrev.com> wrote: >>> >> >>> >> Hi SKIP >>> >> >>> >> Welcome back to the list! >>> >> >>> >> There is Levure which I knew of as a third party application framework >>> >> created by Trevor DeVore but I just did a search for it and I see it now on >>> >> the LiveCode website described as an App Collaboration Framework. >>> >> https://livecode.com/products/livecode-platform/levure/ < >>> >> https://livecode.com/products/livecode-platform/levure/> So it must have >>> >> at some point migrated to the mother ship. >>> >> >>> >> I haven’t used it but I have considered migrating my application to it. >>> >> It works with version control systems as long as you follow its >>> >> recommendations about how to organize your code into behaviours that are >>> >> stored in script only stacks which are just text files that a version >>> >> control system can read (These are somewhat new so depending on when you >>> >> last used LiveCode they may be new to you.) This was an enhancement that >>> >> has enabled the use of version control for scripts in a project. It is the >>> >> binary stacks that versions control systems can’t track so in Levure those >>> >> are just used for user interface. >>> >> >>> >> Hope this helps. >>> >> >>> >> Martin >>> >> >>> >> >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >>> >> use-livecode at lists.runrev.com> wrote: >>> >>> >>> >>> Greetings! >>> >>> >>> >>> Been a while since I have been on this list. Working on a new project >>> >> and >>> >>> wondering if the backing up of Livecode files to Github was ever >>> >>> implemented and created. I know there was talk of it at one time. >>> >>> >>> >>> I apologize if it has been in place for a while and I am just out of the >>> >>> loop. Actually, I HOPE that is the case! >>> >>> >>> >>> Regards, >>> >>> >>> >>> SKIP >>> >>> _______________________________________________ >>> >>> use-livecode mailing list >>> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sun Aug 28 23:45:07 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 28 Aug 2022 23:45:07 -0400 Subject: Livecode / Github In-Reply-To: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: If you want to see what the JSON export looks like for a fairly small stack, you can view this: https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json Unfortunately you will need to download and view it with something that understands the CR line ending since GitHub doesn't. That repo has both ScriptTracker exports and SmartCrumbs exports of the stack. The former is designed with two things in mind: allowing changes in the scripts that are part of a binary stack to be tracked and allowing the editing of those scripts in an external editor (I like Atom for the linting, have not tried the newer option). The latter looks to be a way to completely decompose a stack into mostly text files (images being one exception) that can be tracked (and in theory changes merged together I'm guessing). Since the JSON file is keyed off of the GUIDs of each object, it really doesn't lend itself to human inspection. Assuming line endings are sane (probably would work for Windows and definitely will work for Linux), Git should easily be able to track the changes. Whether someone could easily discern which object was being touched is another matter (which would be necessary to merge changes together). On Sun, Aug 28, 2022 at 9:31 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > It will be good to see, once available, how using the new SmartCrumbs add > on will help with this. All objects in JSON form and then use stack scripts > (and htmlText, AudioClip and VideoClip data) in your GitHub repository. > This is something I really want to start implementing. > > Sean > > > > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > > > >  > > To be clear: if anyone wants to try Navigator's export to script > behaviors function -- work on a copy, and I'd love feedback. > > > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon > wrote: > >> The same applies to the code in Navigator. I wrote it about five years > ago when I was preparing to transform Navigator itself to use script > behaviors. > >> > >> Always work on a copy. > >> > >> That said, it worked fine for Navigator, and no one has ever told me it > broke anything. > >> > >> gc > >> > >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> I tried scriptifier and it broke stuff so just be careful with it and > check its output. > >>> > >>> Sean > >>> > >>> > >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > > >>> > Hey Skip, long time... > >>> > I don't know if you were around when script-only-stack behaviors > came into > >>> > being, but you can now rip all of the code out of your stacks and > happily > >>> > use vc/git. The stacks themselves are still binary (although several > of us > >>> > have been messing with dumping that paradigm completely, it's less > >>> > practical than I would have hoped, as of today). > >>> > Navigator will export every script in a project into behavior > stacks, and > >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's > embedded > >>> > in the LC bundle, and it does the same thing, namely extracting all > the > >>> > scripts out of a project and putting them into .livecodescript text > files. > >>> > Levure is great. I have used it with every project I've worked on for > >>> > several years, BUT you don't have to use it to go this route. > >>> > > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > >>> >> use-livecode at lists.runrev.com> wrote: > >>> >> > >>> >> Hi SKIP > >>> >> > >>> >> Welcome back to the list! > >>> >> > >>> >> There is Levure which I knew of as a third party application > framework > >>> >> created by Trevor DeVore but I just did a search for it and I see > it now on > >>> >> the LiveCode website described as an App Collaboration Framework. > >>> >> https://livecode.com/products/livecode-platform/levure/ < > >>> >> https://livecode.com/products/livecode-platform/levure/> So it > must have > >>> >> at some point migrated to the mother ship. > >>> >> > >>> >> I haven’t used it but I have considered migrating my application to > it. > >>> >> It works with version control systems as long as you follow its > >>> >> recommendations about how to organize your code into behaviours > that are > >>> >> stored in script only stacks which are just text files that a > version > >>> >> control system can read (These are somewhat new so depending on > when you > >>> >> last used LiveCode they may be new to you.) This was an > enhancement that > >>> >> has enabled the use of version control for scripts in a project. It > is the > >>> >> binary stacks that versions control systems can’t track so in > Levure those > >>> >> are just used for user interface. > >>> >> > >>> >> Hope this helps. > >>> >> > >>> >> Martin > >>> >> > >>> >> > >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > >>> >> use-livecode at lists.runrev.com> wrote: > >>> >>> > >>> >>> Greetings! > >>> >>> > >>> >>> Been a while since I have been on this list. Working on a new > project > >>> >> and > >>> >>> wondering if the backing up of Livecode files to Github was ever > >>> >>> implemented and created. I know there was talk of it at one time. > >>> >>> > >>> >>> I apologize if it has been in place for a while and I am just out > of the > >>> >>> loop. Actually, I HOPE that is the case! > >>> >>> > >>> >>> Regards, > >>> >>> > >>> >>> SKIP > >>> >>> _______________________________________________ > >>> >>> use-livecode mailing list > >>> >>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Aug 29 09:04:57 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 29 Aug 2022 09:04:57 -0400 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: I would love for us to get to a place where we could have it both ways. On Sun, Aug 28, 2022 at 11:46 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > If you want to see what the JSON export looks like for a fairly small > stack, you can view this: > > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > Unfortunately you will need to download and view it with something that > understands the CR line ending since GitHub doesn't. That repo has both > ScriptTracker exports and SmartCrumbs exports of the stack. The former is > designed with two things in mind: allowing changes in the scripts that are > part of a binary stack to be tracked and allowing the editing of those > scripts in an external editor (I like Atom for the linting, have not tried > the newer option). The latter looks to be a way to completely decompose a > stack into mostly text files (images being one exception) that can be > tracked (and in theory changes merged together I'm guessing). > > Since the JSON file is keyed off of the GUIDs of each object, it really > doesn't lend itself to human inspection. Assuming line endings are sane > (probably would work for Windows and definitely will work for Linux), Git > should easily be able to track the changes. Whether someone could easily > discern which object was being touched is another matter (which would be > necessary to merge changes together). > > On Sun, Aug 28, 2022 at 9:31 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > It will be good to see, once available, how using the new SmartCrumbs add > > on will help with this. All objects in JSON form and then use stack > scripts > > (and htmlText, AudioClip and VideoClip data) in your GitHub repository. > > This is something I really want to start implementing. > > > > Sean > > > > > > > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > > > > > >  > > > To be clear: if anyone wants to try Navigator's export to script > > behaviors function -- work on a copy, and I'd love feedback. > > > > > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon > > wrote: > > >> The same applies to the code in Navigator. I wrote it about five years > > ago when I was preparing to transform Navigator itself to use script > > behaviors. > > >> > > >> Always work on a copy. > > >> > > >> That said, it worked fine for Navigator, and no one has ever told me > it > > broke anything. > > >> > > >> gc > > >> > > >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> I tried scriptifier and it broke stuff so just be careful with it and > > check its output. > > >>> > > >>> Sean > > >>> > > >>> > > >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > > >>> > Hey Skip, long time... > > >>> > I don't know if you were around when script-only-stack behaviors > > came into > > >>> > being, but you can now rip all of the code out of your stacks and > > happily > > >>> > use vc/git. The stacks themselves are still binary (although > several > > of us > > >>> > have been messing with dumping that paradigm completely, it's less > > >>> > practical than I would have hoped, as of today). > > >>> > Navigator will export every script in a project into behavior > > stacks, and > > >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's > > embedded > > >>> > in the LC bundle, and it does the same thing, namely extracting all > > the > > >>> > scripts out of a project and putting them into .livecodescript text > > files. > > >>> > Levure is great. I have used it with every project I've worked on > for > > >>> > several years, BUT you don't have to use it to go this route. > > >>> > > > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > > >>> >> use-livecode at lists.runrev.com> wrote: > > >>> >> > > >>> >> Hi SKIP > > >>> >> > > >>> >> Welcome back to the list! > > >>> >> > > >>> >> There is Levure which I knew of as a third party application > > framework > > >>> >> created by Trevor DeVore but I just did a search for it and I see > > it now on > > >>> >> the LiveCode website described as an App Collaboration Framework. > > >>> >> https://livecode.com/products/livecode-platform/levure/ < > > >>> >> https://livecode.com/products/livecode-platform/levure/> So it > > must have > > >>> >> at some point migrated to the mother ship. > > >>> >> > > >>> >> I haven’t used it but I have considered migrating my application > to > > it. > > >>> >> It works with version control systems as long as you follow its > > >>> >> recommendations about how to organize your code into behaviours > > that are > > >>> >> stored in script only stacks which are just text files that a > > version > > >>> >> control system can read (These are somewhat new so depending on > > when you > > >>> >> last used LiveCode they may be new to you.) This was an > > enhancement that > > >>> >> has enabled the use of version control for scripts in a project. > It > > is the > > >>> >> binary stacks that versions control systems can’t track so in > > Levure those > > >>> >> are just used for user interface. > > >>> >> > > >>> >> Hope this helps. > > >>> >> > > >>> >> Martin > > >>> >> > > >>> >> > > >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > > >>> >> use-livecode at lists.runrev.com> wrote: > > >>> >>> > > >>> >>> Greetings! > > >>> >>> > > >>> >>> Been a while since I have been on this list. Working on a new > > project > > >>> >> and > > >>> >>> wondering if the backing up of Livecode files to Github was ever > > >>> >>> implemented and created. I know there was talk of it at one > time. > > >>> >>> > > >>> >>> I apologize if it has been in place for a while and I am just out > > of the > > >>> >>> loop. Actually, I HOPE that is the case! > > >>> >>> > > >>> >>> Regards, > > >>> >>> > > >>> >>> SKIP > > >>> >>> _______________________________________________ > > >>> >>> use-livecode mailing list > > >>> >>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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." From gcanyon at gmail.com Mon Aug 29 11:26:58 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 29 Aug 2022 08:26:58 -0700 Subject: BN Guides In-Reply-To: References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: 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. Navigator out of the box assumes that behaviors are what you're interested in when you double-click to edit a script, so if BN Guides has assigned a behavior, it opens the script BN Guides assigns as the behavior. If I'm right and the assignment of behaviors is supposed to be the case only while you're dragging, then simply deselecting the dragged controls should correct this. If there's an issue with BN Guides, or you want to be *sure* to open the control's script, and not a behavior, you can: 1. In Navigator Preferences, you can choose what to do on double-click -- and double-click with many modifier keys. If all of your scripts are in the actual controls, then select "Edit Script" for "Double-click" instead of the default " 2. Right-click a command-bar and select "Edit Script" as the action for that command bar, and then click it to edit the control's script. At some point I considered updating the script menu to display all the controls in the behavior chain. Anyone feel free to let me know if that's a necessary thing. gc On Sun, Aug 28, 2022 at 12:06 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Geoff, > > you can find the most current version here > > https://forums.livecode.com/viewtopic.php?f=4&t=31920 < > https://forums.livecode.com/viewtopic.php?f=4&t=31920> > > > Regards, > Matthias > > > > Am 28.08.2022 um 19:38 schrieb Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com >: > > > > Where are the BN guides? I'd be curious to see how this is happening. As > I > > recall, Navigator is designed to dive through whatever behaviors are set > > regardless of how deep the rabbit hole goes to find the actual behavior, > > but I haven't looked at that part of the code in years. > > > > gc > > > > On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com > > wrote: > > > >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. > >> When I double-click an object in Navigator to open it's script, I get t > he > >> BNGuides script instead. > >> > >> Bob S > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Aug 29 13:29:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 10:29:37 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: On 8/28/22 20:45, Brian Milby via use-livecode wrote: > If you want to see what the JSON export looks like for a fairly small > stack, you can view this: > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > Unfortunately you will need to download and view it with something that > understands the CR line ending since GitHub doesn't. That repo has both > ScriptTracker exports and SmartCrumbs exports of the stack. The former is > designed with two things in mind: allowing changes in the scripts that are > part of a binary stack to be tracked and allowing the editing of those > scripts in an external editor (I like Atom for the linting, have not tried > the newer option). The latter looks to be a way to completely decompose a > stack into mostly text files (images being one exception) that can be > tracked (and in theory changes merged together I'm guessing). OK - I just tried out smartcrumbs to check it out. Not quite sure what's going on here. Outsmarted by smartcrumbs. According to the lesson you just drag this onto a stack. Nope. Click the "Export Stack" button. Stack flickers. Did anything happen? According to the dictionary there's an scGetPathLog(). Maybe that will give me a clue. /My LiveCode/SmartCrumbsVCW/logs//2022-08-29 Eh? What's this "/My LiveCode" thing? I don't have one of those. And why is it trying to store that off my root directory? Let's try that one again. "Recursion limit reached" I'll try scExportStack from the message box. It gives "can't find handler" OK - back to real work. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Mon Aug 29 13:53:26 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 29 Aug 2022 13:53:26 -0400 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: I used Magic Palette to do the export. It should create the folder structure next to the stack file that was the topstack in the IDE. I have not looked at the lesson though. On Mon, Aug 29, 2022 at 1:31 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/28/22 20:45, Brian Milby via use-livecode wrote: > > If you want to see what the JSON export looks like for a fairly small > > stack, you can view this: > > > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > > > Unfortunately you will need to download and view it with something that > > understands the CR line ending since GitHub doesn't. That repo has both > > ScriptTracker exports and SmartCrumbs exports of the stack. The former > is > > designed with two things in mind: allowing changes in the scripts that > are > > part of a binary stack to be tracked and allowing the editing of those > > scripts in an external editor (I like Atom for the linting, have not > tried > > the newer option). The latter looks to be a way to completely decompose > a > > stack into mostly text files (images being one exception) that can be > > tracked (and in theory changes merged together I'm guessing). > > OK - I just tried out smartcrumbs to check it out. Not quite sure what's > going on here. Outsmarted by smartcrumbs. > > According to the lesson you just drag this onto a stack. > Nope. > Click the "Export Stack" button. > Stack flickers. > Did anything happen? > According to the dictionary there's an scGetPathLog(). > Maybe that will give me a clue. > /My LiveCode/SmartCrumbsVCW/logs//2022-08-29 > Eh? > What's this "/My LiveCode" thing? I don't have one of those. > And why is it trying to store that off my root directory? > Let's try that one again. > "Recursion limit reached" > I'll try scExportStack from the message box. > It gives "can't find handler" > > OK - back to real work. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Aug 29 15:06:24 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 12:06:24 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> On 8/29/22 10:53, Brian Milby via use-livecode wrote: > I used Magic Palette to do the export. It should create the folder > structure next to the stack file that was the topstack in the IDE. Ah. OK - So I had to look up the filename of the stack first. Would have been nice if the nonexistent log file told me that. > I have not looked at the lesson though. Not missing anything there. I've just been going by the dictionary entries. But now I've opened the guide.md file and see more, although the formatting is wonky. Gotta love the fact that the TOC entry is "Unknown". Looks like it was rushed out the door. -- -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Mon Aug 29 15:22:31 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 29 Aug 2022 20:22:31 +0100 Subject: Livecode / Github In-Reply-To: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> References: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> Look at the guide in the guide section of the dictionary app. It formats okay (although I’m going through and rewriting the grammar to send for an update). Thanks Brian for the heads up on MagicPallet. I hadn’t looked to see what that was for yet. It’s all early stages yet but it’s looking very promising. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 29 Aug 2022, at 20:06, Mark Wieder via use-livecode wrote: > > On 8/29/22 10:53, Brian Milby via use-livecode wrote: >> I used Magic Palette to do the export. It should create the folder >> structure next to the stack file that was the topstack in the IDE. > > Ah. OK - So I had to look up the filename of the stack first. > Would have been nice if the nonexistent log file told me that. > >> I have not looked at the lesson though. > > Not missing anything there. > I've just been going by the dictionary entries. > But now I've opened the guide.md file and see more, although the formatting is wonky. Gotta love the fact that the TOC entry is "Unknown". Looks like it was rushed out the door. > > -- > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Aug 29 15:37:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 12:37:02 -0700 Subject: Livecode / Github In-Reply-To: <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> References: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> Message-ID: <8dcbb283-4907-b69a-5e89-46cfb451fb81@sonic.net> On 8/29/22 12:22, Pi Digital via use-livecode wrote: > Look at the guide in the guide section of the dictionary app. It formats okay (although Im going through and rewriting the grammar to send for an update). Thanks, Sean. Yeah - that does format much better in a browser. -- Mark Wieder ahsoftware at gmail.com From gregg.podnar at gmail.com Mon Aug 29 16:38:26 2022 From: gregg.podnar at gmail.com (Gregg) Date: Mon, 29 Aug 2022 16:38:26 -0400 Subject: Why is Livecode not on this list? Message-ID: https://spectrum.ieee.org/top-programming-languages-2022 From ambassador at fourthworld.com Mon Aug 29 16:51:16 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 13:51:16 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: 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 intrusive as altering an object's behavior property for something this transient. But Bernd does good work, so I'm curious: why this approach and not a frontScript? -- Richard Gaskin Fourth World Systems From ambassador at fourthworld.com Mon Aug 29 16:55:36 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 13:55:36 -0700 Subject: Why is Livecode not on this list? In-Reply-To: References: Message-ID: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> 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, where LC has only been in the top 50 a few times over the years I've been tracking it, but is often in the bottom 50 (out of hundreds of languages not so bad): https://www.tiobe.com/tiobe-index/ -- Richard Gaskin Fourth World Systems From richmondmathewson at gmail.com Mon Aug 29 17:15:04 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 29 Aug 2022 22:15:04 +0100 Subject: Why is Livecode not on this list? In-Reply-To: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> References: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> Message-ID: Personally, My 'take' on LiveCode is that, generally, it is ideal for boutique programming, for specific free-standing applications. It is also excellent for teaching children programming concepts in a relatively digestable way without dumbing programming down in the way block-coding efforts such as Scratch do. As such, there will always be very few advertisements for LiveCode programmers. That should not, in any way, devalue LiveCode. On Mon, 29 Aug 2022, 21:56 Richard Gaskin via use-livecode, < use-livecode at lists.runrev.com> wrote: > 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, where LC has > only been in the top 50 a few times over the years I've been tracking > it, but is often in the bottom 50 (out of hundreds of languages not so > bad): > > https://www.tiobe.com/tiobe-index/ > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Mon Aug 29 17:36:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Aug 2022 17:36:01 -0400 Subject: the script of with line numbers? Message-ID: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript   put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. From jacque at hyperactivesw.com Mon Aug 29 17:50:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 29 Aug 2022 16:50:53 -0500 Subject: the script of with line numbers? In-Reply-To: References: Message-ID: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: > Is there a way (an existing function or command in the language or IDE) to get the script of an > object WITH the line numbers as you see them in the IDE script editor? > > OR > > Do I just have to do something like: > > put the script of tObject into tScript > repeat with i=1 to the number of lines in tScript >   put i &space before line i of tScript > end repeat > > Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Aug 29 17:55:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 21:55:00 +0000 Subject: the script of with line numbers? In-Reply-To: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> References: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> Message-ID: Maybe marginally better: ... sort it by word 1 of each Bob S On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode > wrote: On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Aug 29 17:55:42 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 21:55:42 +0000 Subject: the script of with line numbers? In-Reply-To: References: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> Message-ID: <94DD7BBC-C054-4B62-AEE6-9757D2C9750F@iotecdigital.com> Correction: sort it numeric by word 1 of each Bob S On Aug 29, 2022, at 14:55 , Bob Sneidar > wrote: Maybe marginally better: ... sort it by word 1 of each Bob S On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode > wrote: On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Bernd.Niggemann at uni-wh.de Mon Aug 29 18:25:29 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 29 Aug 2022 22:25:29 +0000 Subject: BN Guides Message-ID: <3160207C-1B51-4F13-818C-1DDDD0F8D9ED@uni-wh.de> > Richard Gaskin via use-livecode Mon, 29 Aug 2022 13:53:13 -0700 > > 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 intrusive as altering an object's behavior property for something this transient. > > But Bernd does good work, so I'm curious: why this approach and not a frontScript? Actually I was experimenting and wanted to use behaviors dynamically at the time when I wrote this. A proof of principle if you want. It worked surprisingly well. That is why I sticked to behaviors. After fixing some edge cases it even removes the behaviors correctly... At the time there were no guides available for LC. But as of LC 10 Guidelines will be part of the IDE and that looks and works really well. (LC uses a backScript) Kind regards Bernd From ahsoftware at sonic.net Mon Aug 29 18:58:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 15:58:41 -0700 Subject: the script of with line numbers? In-Reply-To: References: Message-ID: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: > Is there a way (an existing function or command in the language or IDE) > to get the script of an object WITH the line numbers as you see them in > the IDE script editor? While some clever solutions have been posted, I gotta ask WHY? -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Aug 29 19:10:27 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 23:10:27 +0000 Subject: the script of with line numbers? In-Reply-To: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> Message-ID: <937A8FE2-4A88-495F-AE16-8466665E3956@iotecdigital.com> That question always reminds me of Mathesar when he discoveres that Commander Peter Quincy Taggert has been lying all along. :-) Bob S On Aug 29, 2022, at 15:58 , Mark Wieder via use-livecode > wrote: On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? While some clever solutions have been posted, I gotta ask WHY? -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 29 19:11:09 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Aug 2022 19:11:09 -0400 Subject: the script of with line numbers? In-Reply-To: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> Message-ID: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> On 8/29/2022 6:58 PM, Mark Wieder via use-livecode wrote: > On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: >> Is there a way (an existing function or command in the language or >> IDE) to get the script of an object WITH the line numbers as you see >> them in the IDE script editor? > > While some clever solutions have been posted, I gotta ask WHY? > In our applications, we trap the script error dialog and replace the default with our own. That dialog lets customers send the executionContexts and some other debugging information to us to report an error (if one gets by quality/beta testing). So we get the executionContext that say "error such and such occurred at line 342 of some handler". The line number is the line of the whole script the handler is in. When we et the message and log the problem in our instance of Bugzilla, one of the 1st things is to look at the script and see what the line of code references actually says. It could reduce a trouble should step to include the line numbers programmatically in the error report. No a huge priority in the scheme of things, but a "nice to have" sort of thing. Does that answer the "why?" From bobsneidar at iotecdigital.com Mon Aug 29 19:18:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 23:18:34 +0000 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: <72224209-4337-4747-A52B-AA2DF2B5EBB3@iotecdigital.com> As long as Mathesar is happy, I'm happy. Bob S On Aug 29, 2022, at 16:11 , Paul Dupuis via use-livecode > wrote: No a huge priority in the scheme of things, but a "nice to have" sort of thing. Does that answer the "why?" From ahsoftware at sonic.net Mon Aug 29 19:19:40 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 16:19:40 -0700 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: On 8/29/22 16:11, Paul Dupuis via use-livecode wrote: > It could reduce a trouble should step to include the line numbers > programmatically in the error report. > > No a huge priority in the scheme of things, but a "nice to have" sort of > thing. Does that answer the "why?" Somewhat. If you already have the line number from the error message, why not just grab that line of script? Or preface it with the line number you already have in your possession? But I find that the executionContexts gives me more information than just where the error occurred, since the actual problem may be farther up the line and it's only the end symptom that triggers the error. -- Mark Wieder ahsoftware at gmail.com From Bernd.Niggemann at uni-wh.de Mon Aug 29 19:22:19 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 29 Aug 2022 23:22:19 +0000 Subject: BN Guides Message-ID: <0CFB84B5-71D9-4F2D-AE86-67356B005FD8@uni-wh.de> > Richard Gaskin via use-livecode Mon, 29 Aug 2022 13:53:13 -0700 > so I'm curious: why this approach and not a frontScript? I thought about why I used behaviors a little more. What intrigued me was the idea that via a behavior a control was made aware of its neighbours. Be it a group or a control it knew where all the other objects were. Even dragged them along when needed. And it worked semi autonomously with a little help from "the owner of this me". I think that was my main fascination when using behaviors. It was a change of perspective from the central perspective to a decentralised perspective. Kind regards Bernd From ambassador at fourthworld.com Mon Aug 29 19:38:28 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 16:38:28 -0700 Subject: Why is Livecode not on this list? In-Reply-To: References: Message-ID: <9aa11f8f-1ba8-98de-1a9f-76277220a8d7@fourthworld.com> Richmond Mathewson wrote: > As such, there will always be very few advertisements for LiveCode > programmers. But still many good stories to tell. And apparently LC Ltd just hired a new Brand & Digital Marketing Lead, so I imagine we'll see those stories told. https://twitter.com/happymaan/status/1562801044132085762 -- Richard Gaskin Fourth World Systems From sean at pidigital.co.uk Mon Aug 29 23:49:21 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 30 Aug 2022 04:49:21 +0100 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> Using The earlier example, you could use put theErrorLineNum into tLineNum put the script of stack “myScript” into tScript split tScript using cr logError tLineNum, tScript[tLineNum] Or something like that. Sean >>> Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? >> >> While some clever solutions have been posted, I gotta ask WHY? >> > > In our applications, we trap the script error dialog and replace the default with our own. That dialog lets customers send the executionContexts and some other debugging information to us to report an error (if one gets by quality/beta testing). > > So we get the executionContext that say "error such and such occurred at line 342 of some handler". The line number is the line of the whole script the handler is in. > > When we et the message and log the problem in our instance of Bugzilla, one of the 1st things is to look at the script and see what the line of code references actually says. > > It could reduce a trouble should step to include the line numbers programmatically in the error report. From ambassador at fourthworld.com Tue Aug 30 01:14:05 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 22:14:05 -0700 Subject: the script of with line numbers? In-Reply-To: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> References: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> Message-ID: <92952525-1fdf-6f86-3e09-9daf297eca3e@fourthworld.com> Another option: Automate it, replacing Bugzilla's web UI with LC Mod Ken Ray's RevZilla to retrieve support emails, reformat them however needed, tuck them in the DB, integrate the report display with things like double-clicking a line in the executtionContexts to open scripts, etc. http://www.sonsothunder.com/devres/livecode/downloads/RevZilla2.htm One-stop shopping for a fully integrated software support system. A similar approach could be used with Nextcloud's Deck APIs, or a wide range of other issue tracking systems, even Github. -- Richard Gaskin Fourth World Systems From gcanyon at gmail.com Tue Aug 30 03:45:04 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 00:45:04 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: He's also throwing controls into the stack to show guides for the alignment, and then disposing of those. So maybe in for a penny? If I were doing something like this I think I'd try: 1. A frontscript, as you say, or just setting up to receive IDE messages -- pretty sure there's an objectMoved IDE message or something like it. 2. Using stacks with the shape set as guides. But maybe my idea is out of date or impractical in some way. I experimented with some sort of auto-alignment code a long time ago. I have no memory of how far I got with it. gc On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > 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 > intrusive as altering an object's behavior property for something this > transient. > > But Bernd does good work, so I'm curious: why this approach and not a > frontScript? > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Aug 30 13:42:52 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 30 Aug 2022 10:42:52 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: I've fantasized about being able to paint directly to the window buffer without using an object, but having done that in C back in the day I enjoy the conveniences scripted objects bring. Your stack suggestion is intriguing, but how does it work in practice? I find the systemic overhead of dynamically reinstantiating windows to fit a changing shape makes things a bit less smooth than I'd prefer. Or are you suggesting a separate stack for each guide line? That would keep the performance up, but seems tedious to write. -- Richard Gaskin Fourth World Systems Geoff Canyon wrote: > He's also throwing controls into the stack to show guides for the > alignment, and then disposing of those. So maybe in for a penny? > > If I were doing something like this I think I'd try: > > 1. A frontscript, as you say, or just setting up to receive IDE messages -- > pretty sure there's an objectMoved IDE message or something like it. > 2. Using stacks with the shape set as guides. > > But maybe my idea is out of date or impractical in some way. I experimented > with some sort of auto-alignment code a long time ago. I have no memory of > how far I got with it. > > gc > > On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 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 >> intrusive as altering an object's behavior property for something this >> transient. >> >> But Bernd does good work, so I'm curious: why this approach and not a >> frontScript? >> >> -- >> Richard Gaskin >> Fourth World Systems From gcanyon at gmail.com Tue Aug 30 17:27:13 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 14:27:13 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: <393ACC2F-9B6C-4FBE-9318-2B3E9C106F2B@gmail.com> 15(?) years ago I wrote an app that bounced a bunch of balls across the screen. Each was a shaped-stack. It has no trouble being pretty smooth even with twenty or so stacks, as I recall. It would be more than enough for guides, especially with the 100x hardware we have today. Positioning a stack is as simple as positioning a control, but for any translations to/from global coordinates. gc > On Aug 30, 2022, at 10:44 AM, Richard Gaskin via use-livecode wrote: > > I've fantasized about being able to paint directly to the window buffer without using an object, but having done that in C back in the day I enjoy the conveniences scripted objects bring. > > Your stack suggestion is intriguing, but how does it work in practice? > > I find the systemic overhead of dynamically reinstantiating windows to fit a changing shape makes things a bit less smooth than I'd prefer. > > Or are you suggesting a separate stack for each guide line? That would keep the performance up, but seems tedious to write. > > -- > Richard Gaskin > Fourth World Systems > > > > > Geoff Canyon wrote: >> He's also throwing controls into the stack to show guides for the >> alignment, and then disposing of those. So maybe in for a penny? >> If I were doing something like this I think I'd try: >> 1. A frontscript, as you say, or just setting up to receive IDE messages -- >> pretty sure there's an objectMoved IDE message or something like it. >> 2. Using stacks with the shape set as guides. >> But maybe my idea is out of date or impractical in some way. I experimented >> with some sort of auto-alignment code a long time ago. I have no memory of >> how far I got with it. >> gc >>> On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> 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 >>> intrusive as altering an object's behavior property for something this >>> transient. >>> >>> But Bernd does good work, so I'm curious: why this approach and not a >>> frontScript? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Aug 30 17:30:36 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 14:30:36 -0700 Subject: lcb missing manual In-Reply-To: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> References: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> Message-ID: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> Is there a page that discusses the pros of LCB? I looked and didn’t find it. I’m thinking of a simple list (I’m making this up because I didn’t find the page) — N times faster execution than LCS — interface with code libraries using simple hooks — bundle code and graphics together into widgets More? gc > On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode wrote: > > On 8/28/22 11:06, Mike Kerner wrote: >> the lcb documentation, especially in the api widget is ungreat. >> the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application >> example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. > > Yep - I find most of my documentation by digging. > > The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Aug 30 17:56:57 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 30 Aug 2022 17:56:57 -0400 Subject: lcb missing manual In-Reply-To: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> Message-ID: <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> LCB has been slower than LCS, but the advantage is that you can easily link to much faster compiler code. I’m not sure if that has changed any… I could pull out some code from a while back where we were doing some speed tests. Sent from my iPhone > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode wrote: > > Is there a page that discusses the pros of LCB? I looked and didn’t find it. > > I’m thinking of a simple list (I’m making this up because I didn’t find the page) > > — N times faster execution than LCS > — interface with code libraries using simple hooks > — bundle code and graphics together into widgets > > More? > > gc > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode wrote: >>> >>> On 8/28/22 11:06, Mike Kerner wrote: >>> the lcb documentation, especially in the api widget is ungreat. >>> the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application >>> example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. >> >> Yep - I find most of my documentation by digging. >> >> The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 30 19:12:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Aug 2022 23:12:47 +0000 Subject: Standardize Font Appearance Message-ID: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Hi all. I'm at the point now where I want to clean up the appearance of all my projects across all platforms. For instance, I have a Time Calculator stack that calculates total time for any number of start/stop/lunch entries. I have heretofore left my field and label fonts at the default, which for MacOS is . But when I create a standalone for Windows, the size of that text is larger, and so any labels I have overflow the label and only show me part of the text. What I want to do is set up my environment so that whatever font I use in the MacOS uses, there is an identical font on the Windows side as well. I know there is a way to embed fonts in a project, but I don't really understand how that works. If I use a font that exists in both Mac and Windows, a common web font for instance, they do not look at all the same on both platforms. Verdana is a good example. I am not averse to purchasing a font family or two and statically setting my font, size and style for every object, so long as the Windows and MacOS look (reasonably) the same. Any ideas? Bob S From bobsneidar at iotecdigital.com Tue Aug 30 19:20:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Aug 2022 23:20:34 +0000 Subject: Standardize Font Appearance In-Reply-To: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. Bob S On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode > wrote: Hi all. I'm at the point now where I want to clean up the appearance of all my projects across all platforms. For instance, I have a Time Calculator stack that calculates total time for any number of start/stop/lunch entries. I have heretofore left my field and label fonts at the default, which for MacOS is . But when I create a standalone for Windows, the size of that text is larger, and so any labels I have overflow the label and only show me part of the text. What I want to do is set up my environment so that whatever font I use in the MacOS uses, there is an identical font on the Windows side as well. I know there is a way to embed fonts in a project, but I don't really understand how that works. If I use a font that exists in both Mac and Windows, a common web font for instance, they do not look at all the same on both platforms. Verdana is a good example. I am not averse to purchasing a font family or two and statically setting my font, size and style for every object, so long as the Windows and MacOS look (reasonably) the same. Any ideas? Bob S From tom at makeshyft.com Tue Aug 30 20:36:51 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 30 Aug 2022 20:36:51 -0400 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: THe only way to do this is to use google's web fonts and ship them with your project. It works well. To save you the trouble, Android requires the fonts to be in a "fonts" folder in the root folder of your projects. Or at least its what I read somewhere in the forums. Cheers Bob On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. > > Bob S > > > On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > Hi all. > > I'm at the point now where I want to clean up the appearance of all my > projects across all platforms. For instance, I have a Time Calculator stack > that calculates total time for any number of start/stop/lunch entries. I > have heretofore left my field and label fonts at the default, which for > MacOS is . But when I create a standalone for Windows, the > size of that text is larger, and so any labels I have overflow the label > and only show me part of the text. > > What I want to do is set up my environment so that whatever font I use in > the MacOS uses, there is an identical font on the Windows side as well. I > know there is a way to embed fonts in a project, but I don't really > understand how that works. > > If I use a font that exists in both Mac and Windows, a common web font for > instance, they do not look at all the same on both platforms. Verdana is a > good example. I am not averse to purchasing a font family or two and > statically setting my font, size and style for every object, so long as the > Windows and MacOS look (reasonably) the same. > > Any ideas? > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Aug 30 21:55:30 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 30 Aug 2022 20:55:30 -0500 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: <182f19c5250.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have an Android app that uses a custom font. I just dropped the ttf file into the Copy Files pane of standalone settings and issued "start using font file" in a preOpenStack handler. Seems to work fine. Easy too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 30, 2022 7:39:19 PM Tom Glod via use-livecode wrote: > THe only way to do this is to use google's web fonts and ship them with > your project. It works well. > To save you the trouble, Android requires the fonts to be in a "fonts" > folder in the root folder of your projects. > Or at least its what I read somewhere in the forums. > > Cheers Bob > > On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. >> >> Bob S >> >> >> On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> Hi all. >> >> I'm at the point now where I want to clean up the appearance of all my >> projects across all platforms. For instance, I have a Time Calculator stack >> that calculates total time for any number of start/stop/lunch entries. I >> have heretofore left my field and label fonts at the default, which for >> MacOS is . But when I create a standalone for Windows, the >> size of that text is larger, and so any labels I have overflow the label >> and only show me part of the text. >> >> What I want to do is set up my environment so that whatever font I use in >> the MacOS uses, there is an identical font on the Windows side as well. I >> know there is a way to embed fonts in a project, but I don't really >> understand how that works. >> >> If I use a font that exists in both Mac and Windows, a common web font for >> instance, they do not look at all the same on both platforms. Verdana is a >> good example. I am not averse to purchasing a font family or two and >> statically setting my font, size and style for every object, so long as the >> Windows and MacOS look (reasonably) the same. >> >> Any ideas? >> >> Bob S >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Aug 30 22:02:50 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 03:02:50 +0100 Subject: Livecode / Github In-Reply-To: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: Hi Mark, When you said this, how did you use it to get it to work? I'm getting the same issues as you were. Thanks Sean On Mon, 29 Aug 2022 at 20:06, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > > Ah. OK - So I had to look up the filename of the stack first. > > From sean at pidigital.co.uk Tue Aug 30 22:36:06 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 03:36:06 +0100 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: Don't worry, it was password protected. I thought it had managed to remove the protection but the script I ran to remove it from the 97 stacks didn;t do it properly. So I did it again and then needed to restart LC first for it to fully recognise the protection removed. All good now. MainStack exported (it's massive so it took some time). just another 96 stacks to go. Looks like I'll set up an automation script. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On Wed, 31 Aug 2022 at 03:02, Sean Cole wrote: > Hi Mark, > > When you said this, how did you use it to get it to work? I'm getting the > same issues as you were. > > Thanks > Sean > > On Mon, 29 Aug 2022 at 20:06, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Ah. OK - So I had to look up the filename of the stack first. >> >> From ahsoftware at sonic.net Tue Aug 30 23:05:16 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 30 Aug 2022 20:05:16 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> On 8/30/22 19:36, Sean Cole via use-livecode wrote: > just another 96 stacks to go. > Looks like I'll set up an automation script. Ouch! I think the library would do well to check the password status and allow entering and cacheing the password as necessary. Too bad it's closed source so we can't fix it. -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Wed Aug 31 06:00:41 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 11:00:41 +0100 Subject: Livecode / Github In-Reply-To: <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> Message-ID: Well, I had to leave it overnight to finish exporting as it was clear to take some time. This was for just the main stack, not my long list of stacks. Looking at the message box this morning, though, has a response Message execution error: Error description: Object: object does not have this property Hint: 'Object does not have this property' ?? What property? Thanks LC for giving me all the information I need to fix it [shrugs]. It hasn't created the JSON file in the main .sc folder so it must have abandoned the operation at some point. I'll give it another go now after a reset and to another faster drive to see if that improves things but with no other info to go on I have no idea what needs to be done. LC Team: :-) It would be REALLY handy if proper errors were thrown when one occurs that can help us easily understand what the issues are. Also, if prior to release documentation were gone through to make sure they are legible. And if plugins released actually work as described. :-) Sean On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/30/22 19:36, Sean Cole via use-livecode wrote: > > just another 96 stacks to go. > > Looks like I'll set up an automation script. > > Ouch! I think the library would do well to check the password status and > allow entering and cacheing the password as necessary. Too bad it's > closed source so we can't fix it. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Wed Aug 31 08:46:51 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 08:46:51 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. Thanks, Brian > On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: > > Well, I had to leave it overnight to finish exporting as it was clear to > take some time. This was for just the main stack, not my long list of > stacks. Looking at the message box this morning, though, has a response > > Message execution error: > Error description: Object: object does not have this property > Hint: > > 'Object does not have this property' ?? What property? Thanks LC for giving > me all the information I need to fix it [shrugs]. It hasn't created the > JSON file in the main .sc folder so it must have abandoned the operation at > some point. > > I'll give it another go now after a reset and to another faster drive to > see if that improves things but with no other info to go on I have no idea > what needs to be done. > > LC Team: :-) It would be REALLY handy if proper errors were thrown when one > occurs that can help us easily understand what the issues are. Also, if > prior to release documentation were gone through to make sure they are > legible. And if plugins released actually work as described. :-) > > Sean > > >> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>> just another 96 stacks to go. >>> Looks like I'll set up an automation script. >> >> Ouch! I think the library would do well to check the password status and >> allow entering and cacheing the password as necessary. Too bad it's >> closed source so we can't fix it. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Aug 31 08:53:09 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 31 Aug 2022 08:53:09 -0400 Subject: lcb missing manual In-Reply-To: <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> Message-ID: It would be interesting if lcb was slower, since it's supposed to be lower-level. The demo that Steven did, demonstrating the speed of populating a polyGrid (lcb widget) vs. a dataGrid (lcs group) was that it was much, much faster. On Tue, Aug 30, 2022 at 5:58 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > LCB has been slower than LCS, but the advantage is that you can easily > link to much faster compiler code. I’m not sure if that has changed any… I > could pull out some code from a while back where we were doing some speed > tests. > > Sent from my iPhone > > > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there a page that discusses the pros of LCB? I looked and didn’t > find it. > > > > I’m thinking of a simple list (I’m making this up because I didn’t find > the page) > > > > — N times faster execution than LCS > > — interface with code libraries using simple hooks > > — bundle code and graphics together into widgets > > > > More? > > > > gc > > > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> On 8/28/22 11:06, Mike Kerner wrote: > >>> the lcb documentation, especially in the api widget is ungreat. > >>> the good news is that as long as there is an oss repo version of LC, > you can hunt for some of the information that is missing. AND, at least for > now, you can still find much of it in the LC application > >>> example: as i was hunting, i found a bunch of editors, but none of > them seem to be documented anywhere obvious. > >> > >> Yep - I find most of my documentation by digging. > >> > >> The lack of colornames just bit me earlier this week and I had to > backpedal and code a list of a dozen color names as "R,G,B". Even the > "#FFFFFF" format isn't accepted. > >> > >> -- > >> Mark Wieder > >> ahsoftware at gmail.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From sean at pidigital.co.uk Wed Aug 31 10:26:15 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 15:26:15 +0100 Subject: lcb missing manual In-Reply-To: References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> Message-ID: The subject of the dictionary has long been one of contention. One that I have often spoken up and been shouted down about (nb, I'm not making accusations or flames :) ). But I also understand the great amount of resources this would take to produce decent, up to date guides and indices of all the terms and libraries. LC's become quite the behemoth and I doubt any one individual could carry it out. Indeed, even a bunch of us during past HacktoberFests only achieved a percentage of it. The AI thing Kevin showed us some time ago showed promise. But I'm not sure how far off that is from seeing the light of day. Hopefully soon if I haven't already missed it. But, even so, a lot of the examples, language and syntax are out of date or incomplete so would still need some work. As someone who eats manuals and dictionaries for brunch I'd love to be part of the team to put it together as I have in the past. But I guess it would depend on LCL having the resources to put into it. I would hope they see it as important as we do. All the best On Wed, 31 Aug 2022 at 13:53, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > It would be interesting if lcb was slower, since it's supposed to be > lower-level. > The demo that Steven did, demonstrating the speed of populating a polyGrid > (lcb widget) vs. a dataGrid (lcs group) was that it was much, much faster. > > On Tue, Aug 30, 2022 at 5:58 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > LCB has been slower than LCS, but the advantage is that you can easily > > link to much faster compiler code. I’m not sure if that has changed > any… I > > could pull out some code from a while back where we were doing some speed > > tests. > > > > Sent from my iPhone > > > > > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Is there a page that discusses the pros of LCB? I looked and didn’t > > find it. > > > > > > I’m thinking of a simple list (I’m making this up because I didn’t find > > the page) > > > > > > — N times faster execution than LCS > > > — interface with code libraries using simple hooks > > > — bundle code and graphics together into widgets > > > > > > More? > > > > > > gc > > > > > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > >>> On 8/28/22 11:06, Mike Kerner wrote: > > >>> the lcb documentation, especially in the api widget is ungreat. > > >>> the good news is that as long as there is an oss repo version of LC, > > you can hunt for some of the information that is missing. AND, at least > for > > now, you can still find much of it in the LC application > > >>> example: as i was hunting, i found a bunch of editors, but none of > > them seem to be documented anywhere obvious. > > >> > > >> Yep - I find most of my documentation by digging. > > >> > > >> The lack of colornames just bit me earlier this week and I had to > > backpedal and code a list of a dozen color names as "R,G,B". Even the > > "#FFFFFF" format isn't accepted. > > >> > > >> -- > > >> Mark Wieder > > >> ahsoftware at gmail.com > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Wed Aug 31 10:33:03 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 31 Aug 2022 15:33:03 +0100 Subject: Livecode / Github In-Reply-To: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> References: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> Message-ID: It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: > > Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. > > Thanks, > Brian > >> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >> >> Well, I had to leave it overnight to finish exporting as it was clear to >> take some time. This was for just the main stack, not my long list of >> stacks. Looking at the message box this morning, though, has a response >> >> Message execution error: >> Error description: Object: object does not have this property >> Hint: >> >> 'Object does not have this property' ?? What property? Thanks LC for giving >> me all the information I need to fix it [shrugs]. It hasn't created the >> JSON file in the main .sc folder so it must have abandoned the operation at >> some point. >> >> I'll give it another go now after a reset and to another faster drive to >> see if that improves things but with no other info to go on I have no idea >> what needs to be done. >> >> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >> occurs that can help us easily understand what the issues are. Also, if >> prior to release documentation were gone through to make sure they are >> legible. And if plugins released actually work as described. :-) >> >> Sean >> >> >>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>> just another 96 stacks to go. >>>>> Looks like I'll set up an automation script. >>> >>> Ouch! I think the library would do well to check the password status and >>> allow entering and cacheing the password as necessary. Too bad it's >>> closed source so we can't fix it. >>> >>> -- >>> Mark Wieder >>> ahsoftware at gmail.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 31 10:37:08 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 10:37:08 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> I’ll run it on my much smaller ScriptTracker stack (which has a couple substacks) and report my findings. Brian Milby brian at milby7.com > On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode wrote: > > It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. > > Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. > > I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > >> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: >> >> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. >> >> Thanks, >> Brian >> >>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >>> >>> Well, I had to leave it overnight to finish exporting as it was clear to >>> take some time. This was for just the main stack, not my long list of >>> stacks. Looking at the message box this morning, though, has a response >>> >>> Message execution error: >>> Error description: Object: object does not have this property >>> Hint: >>> >>> 'Object does not have this property' ?? What property? Thanks LC for giving >>> me all the information I need to fix it [shrugs]. It hasn't created the >>> JSON file in the main .sc folder so it must have abandoned the operation at >>> some point. >>> >>> I'll give it another go now after a reset and to another faster drive to >>> see if that improves things but with no other info to go on I have no idea >>> what needs to be done. >>> >>> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >>> occurs that can help us easily understand what the issues are. Also, if >>> prior to release documentation were gone through to make sure they are >>> legible. And if plugins released actually work as described. :-) >>> >>> Sean >>> >>> >>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>>> just another 96 stacks to go. >>>>>> Looks like I'll set up an automation script. >>>> >>>> Ouch! I think the library would do well to check the password status and >>>> allow entering and cacheing the password as necessary. Too bad it's >>>> closed source so we can't fix it. >>>> >>>> -- >>>> Mark Wieder >>>> ahsoftware at gmail.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 31 10:48:02 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 10:48:02 -0400 Subject: Livecode / Github In-Reply-To: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> Message-ID: <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> https://github.com/bwmilby/scriptTracker It appears that the JSON file does include all substacks. Brian Milby brian at milby7.com > On Aug 31, 2022, at 10:37 AM, Brian Milby wrote: > > I’ll run it on my much smaller ScriptTracker stack (which has a couple substacks) and report my findings. > > Brian Milby > brian at milby7.com > >> On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode wrote: >> >> It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. >> >> Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. >> >> I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. >> >> Sean Cole >> Pi Digital Productions Ltd >> >> eMail Ts & Cs >> >> >>>> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: >>> >>> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. >>> >>> Thanks, >>> Brian >>> >>>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >>>> >>>> Well, I had to leave it overnight to finish exporting as it was clear to >>>> take some time. This was for just the main stack, not my long list of >>>> stacks. Looking at the message box this morning, though, has a response >>>> >>>> Message execution error: >>>> Error description: Object: object does not have this property >>>> Hint: >>>> >>>> 'Object does not have this property' ?? What property? Thanks LC for giving >>>> me all the information I need to fix it [shrugs]. It hasn't created the >>>> JSON file in the main .sc folder so it must have abandoned the operation at >>>> some point. >>>> >>>> I'll give it another go now after a reset and to another faster drive to >>>> see if that improves things but with no other info to go on I have no idea >>>> what needs to be done. >>>> >>>> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >>>> occurs that can help us easily understand what the issues are. Also, if >>>> prior to release documentation were gone through to make sure they are >>>> legible. And if plugins released actually work as described. :-) >>>> >>>> Sean >>>> >>>> >>>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>>>> just another 96 stacks to go. >>>>>>> Looks like I'll set up an automation script. >>>>> >>>>> Ouch! I think the library would do well to check the password status and >>>>> allow entering and cacheing the password as necessary. Too bad it's >>>>> closed source so we can't fix it. >>>>> >>>>> -- >>>>> Mark Wieder >>>>> ahsoftware at gmail.com >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 31 10:58:01 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 15:58:01 +0100 Subject: Livecode / Github In-Reply-To: <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> Message-ID: Thanks for the confirmation, Brian. I tried again from the message box. With a stack this large it takes about 10 seconds before the mainStack disappears for exporting and then reappears 1 min later. About 4-8 mins after that it truely finishes where it flashes up a white window for a moment then the error appears in the message box, same as before, object does not have this property. Because everything is handled using a GUID, I have no idea how far it has got nor which particular object is causing the problem. We'll find it eventually, I'm certain. Sean On Wed, 31 Aug 2022 at 15:48, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > https://github.com/bwmilby/scriptTracker > > It appears that the JSON file does include all substacks. > > Brian Milby > brian at milby7.com > > > On Aug 31, 2022, at 10:37 AM, Brian Milby wrote: > > > > I’ll run it on my much smaller ScriptTracker stack (which has a couple > substacks) and report my findings. > > > > Brian Milby > > brian at milby7.com > > > >> On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> It created a smartcrumbs folder which contained 1 .livecode.sc folder > which contained 3 subfolders, medias, scripts and shareTexts. medias > contained 1 images folder with 2,325 jpeg files. The scripts folder > contained 22,006 livecodescript files. The sharedTexts folders contained > 7,352 GUID ref’d folders with one or more html files as well as 7,462 > separate html files. And that is all. > >> > >> Having tried again using the Export button from the magicPallet (which, > because of the delay between pressing the button and it actually exporting, > should have a spinner or something to show its working on it) I get the > same result but this time with nothing in the message box or any log file. > >> > >> I’ll try again but from the message box. The guide definitely says it > will create a json file in each .livecode.sc folder that contains > information about other objects and substacks. It doesn’t say we need to > export each substack individually. But the json file should hold info about > all the other stuff as well. We’ll see. > >> > >> Sean Cole > >> Pi Digital Productions Ltd > >> > >> eMail Ts & Cs > >> > >> > >>>> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Had it created any of the script or other objects? Curious whether > it builds the JSON first or if it is done while exporting the other assets. > >>> > >>> Thanks, > >>> Brian > >>> > >>>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Well, I had to leave it overnight to finish exporting as it was > clear to > >>>> take some time. This was for just the main stack, not my long list of > >>>> stacks. Looking at the message box this morning, though, has a > response > >>>> > >>>> Message execution error: > >>>> Error description: Object: object does not have this property > >>>> Hint: > >>>> > >>>> 'Object does not have this property' ?? What property? Thanks LC for > giving > >>>> me all the information I need to fix it [shrugs]. It hasn't created > the > >>>> JSON file in the main .sc folder so it must have abandoned the > operation at > >>>> some point. > >>>> > >>>> I'll give it another go now after a reset and to another faster drive > to > >>>> see if that improves things but with no other info to go on I have no > idea > >>>> what needs to be done. > >>>> > >>>> LC Team: :-) It would be REALLY handy if proper errors were thrown > when one > >>>> occurs that can help us easily understand what the issues are. Also, > if > >>>> prior to release documentation were gone through to make sure they are > >>>> legible. And if plugins released actually work as described. :-) > >>>> > >>>> Sean > >>>> > >>>> > >>>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < > >>>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: > >>>>>>> just another 96 stacks to go. > >>>>>>> Looks like I'll set up an automation script. > >>>>> > >>>>> Ouch! I think the library would do well to check the password status > and > >>>>> allow entering and cacheing the password as necessary. Too bad it's > >>>>> closed source so we can't fix it. > >>>>> > >>>>> -- > >>>>> Mark Wieder > >>>>> ahsoftware at gmail.com > >>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Aug 31 11:17:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Aug 2022 15:17:59 +0000 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> Great idea! I looked for a download link for the fonts, but all I can find are github links to the source code (I don't want to have to build out all the fonts if that's what that is) and other sources for font downloaders and synchs. Is there anywhere I can just download the OTF files? Bob S > On Aug 30, 2022, at 17:36 , Tom Glod via use-livecode wrote: > > THe only way to do this is to use google's web fonts and ship them with > your project. It works well. > To save you the trouble, Android requires the fonts to be in a "fonts" > folder in the root folder of your projects. > Or at least its what I read somewhere in the forums. > > Cheers Bob > > On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. >> >> Bob S >> >> >> On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> Hi all. >> >> I'm at the point now where I want to clean up the appearance of all my >> projects across all platforms. For instance, I have a Time Calculator stack >> that calculates total time for any number of start/stop/lunch entries. I >> have heretofore left my field and label fonts at the default, which for >> MacOS is . But when I create a standalone for Windows, the >> size of that text is larger, and so any labels I have overflow the label >> and only show me part of the text. >> >> What I want to do is set up my environment so that whatever font I use in >> the MacOS uses, there is an identical font on the Windows side as well. I >> know there is a way to embed fonts in a project, but I don't really >> understand how that works. >> >> If I use a font that exists in both Mac and Windows, a common web font for >> instance, they do not look at all the same on both platforms. Verdana is a >> good example. I am not averse to purchasing a font family or two and >> statically setting my font, size and style for every object, so long as the >> Windows and MacOS look (reasonably) the same. >> >> Any ideas? >> >> Bob S >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 31 11:27:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Aug 2022 15:27:22 +0000 Subject: Standardize Font Appearance In-Reply-To: <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> Message-ID: <97A503CE-34F0-4BA8-8CA8-C7E52E7A1364@iotecdigital.com> Okay I see there are a butt-ton of them and must be downloaded individually. They can be had at fonts.com. I already found one I like for my module headers! Bob S On Aug 31, 2022, at 08:17 , Bob Sneidar via use-livecode > wrote: Great idea! I looked for a download link for the fonts, but all I can find are github links to the source code (I don't want to have to build out all the fonts if that's what that is) and other sources for font downloaders and synchs. Is there anywhere I can just download the OTF files? Bob S From ahsoftware at sonic.net Wed Aug 31 12:11:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 31 Aug 2022 09:11:02 -0700 Subject: Livecode / Github In-Reply-To: References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> Message-ID: <426b5d44-e22c-851e-4119-f34e2940b3a2@sonic.net> On 8/31/22 07:58, Sean Cole via use-livecode wrote: > Thanks for the confirmation, Brian. > > I tried again from the message box. With a stack this large it takes about > 10 seconds before the mainStack disappears for exporting and then reappears > 1 min later. About 4-8 mins after that it truely finishes where it flashes > up a white window for a moment then the error appears in the message box, > same as before, object does not have this property. Because everything is > handled using a GUID, I have no idea how far it has got nor which > particular object is causing the problem. We'll find it eventually, I'm > certain. Was a log file created? scGetPathLog() No logs were created for me, but just a thought. https://quality.livecode.com/show_bug.cgi?id=23910 -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Wed Aug 31 12:13:32 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 31 Aug 2022 09:13:32 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> Message-ID: <3ba1188d-59d4-c5d7-3f8e-262529b5ccfc@sonic.net> On 8/31/22 03:00, Sean Cole via use-livecode wrote: > LC Team: :-) It would be REALLY handy if proper errors were thrown when one > occurs that can help us easily understand what the issues are. Also, if > prior to release documentation were gone through to make sure they are > legible. And if plugins released actually work as described. :-) Actually, it's even worse. The result is empty if no error occurred and "* successful" if it worked. To me that seems backwards. https://quality.livecode.com/show_bug.cgi?id=23911 -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Aug 1 11:20:49 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 15:20:49 +0000 Subject: wait 0 with messages In-Reply-To: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> Message-ID: <56AA8EF8-C926-4A17-AEC3-16EA9D85350D@iotecdigital.com> This is correct. Bob S > On Jul 31, 2022, at 12:14 , J. Landman Gay via use-livecode wrote: > > On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: >> I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running the script in the first button will prevent mouseUp events in button 2 from being processed. > > I think it must do something, "wait 0" is a workaround for bug 22453 (and 18924 which is now marked as a duplicate.) I had to use the workaround and it works. > > So my take is that any wait allows LC to do housekeeping, and "with messages" also allows app-generated messages. I'd like to get a confirmation from the team though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 1 15:43:25 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 1 Aug 2022 15:43:25 -0400 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> Message-ID: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement > is executed) will not be processed (yet). > > Is this correct? > First, than you to those that have responded. The reason I got curious about 'wait 0 with messages' (or even just 'wait 0') is because of an epiphany I had just last week regarding a bug a customer reported in our software. The customer experienced and execution error and our software presents a custom dialog that allows them to email out support account some information, including the 'executionContexts' so we have some code debugging information. The problem as a 'can't find object' error. In reviewing the code, I could see no way that the error should have occurred. The code was using the ChartMaker library to create a graph. It all looked good per documentation and we could not reproduce the error in house. I then noticed a 'wait 0 with messages' prior to the line the error occurred on and noticed that the line that had the error used object references relative to the current stack (which the defaultStack was explicitly set to much prior). My epiphany was realizing - for the first time, despite LiveCodeing since HyperCard and having a Masters in Computer Science and my entire career being in the IT/software development space for over 40 years - that when the 'wait 0 with messages' is executed, if there was a pending USER click on another window, the defaultStack could change and then the relative object references would not be able to find their target objects. Perhaps I should have realized that a 'wait 0 with messages' COULD result in the defaultStack changing much sooner OR perhaps I should always fully qualify all object references (which I have been doing for quite a few years, but this was old code), but it is a 'gotcha' of using wait with messages I had never thought of. The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? From bobsneidar at iotecdigital.com Mon Aug 1 16:08:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 20:08:30 +0000 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: <2DBED7E7-0692-4E1C-88FA-7A8396BE4017@iotecdigital.com> It's my understanding that wait allows idle messages from the engine to be sent. When that happens, any send in time messages are processed. Wait with messages allows any other messages including engine messages to be processed. For instance, I have a FindBar object that uses wait 1 second with messages in a keyDown handler so that as the user continues to type the keystrokes can be processed. If the user pauses for 1 or more seconds, the code that performs the find is triggered, and then I exit to top to prevent any more unnecessary processing (otherwise the loop would keep going until all the keystrokes were processed). Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: > > Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? From bobsneidar at iotecdigital.com Mon Aug 1 16:16:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Aug 2022 20:16:24 +0000 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path. For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of of me' into a variable initially, then use the variable as a reference. Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: > > The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. From paul at researchware.com Mon Aug 1 16:25:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 1 Aug 2022 16:25:08 -0400 Subject: wait 0 with messages (and the defaultStack) In-Reply-To: References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <4187625e-70c0-4873-05b9-78681c875c8f@researchware.com> Message-ID: Yea, a number of years ago, I went to always fully qualifying object references through all the techniques you mentioned, but we've just not had a chance to scrub the entire code base (100,000 lines+) and so this one got missed until now. We're now going through the entire code base to catch any last cases where object references could be in error due to any wait with messages statements (combined with user actions). On 8/1/2022 4:16 PM, Bob Sneidar via use-livecode wrote: > As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path. > > For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of of me' into a variable initially, then use the variable as a reference. > > Bob S > > >> On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode wrote: >> >> The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Aug 3 09:10:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 3 Aug 2022 15:10:55 +0200 Subject: Is Livecode (the company) closed for holiday? Message-ID: Hi, does anyone know if Livecode Ltd. is closed for holiday or so? I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. Regards, Matthias From sean at pidigital.co.uk Wed Aug 3 09:36:19 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 14:36:19 +0100 Subject: Dispatch Message-ID: Hi all, I've been thinking about the command 'dispatch'. Is there any advantage/disadvantage in using it over just calling your handler? Thanks Sean From craig at starfirelighting.com Wed Aug 3 10:30:21 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 3 Aug 2022 10:30:21 -0400 Subject: Dispatch In-Reply-To: References: Message-ID: Hi. “Send” and “Dispatch” do much the same thing, but they do differ in how they interact with the message patch. They also each include their own personal gadgetry that comes in handy in different scenarios. Read about both in the dictionary, and do some experimentation with both. Craig > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode wrote: > > Hi all, > I've been thinking about the command 'dispatch'. Is there any > advantage/disadvantage in using it over just calling your handler? > Thanks > Sean > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 11:23:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:23:20 +0000 Subject: Dispatch In-Reply-To: References: Message-ID: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Send allows you to send in time. However the command or function must exist or you will throw an error. Dispatch cannot use send in time, but if a handler does not exist in the message path of the object you dispatch to, no error will be thrown. This can come in handy. Let's say you have assigned a behavior in all your fields, but in a few of your fields you have a special handler called Cleanup. You can then, 'dispatch "cleanup" to me' in any handler in the behavior. The fields that have the cleanup handler will get the message. The ones that don't will not throw an error. Bob S > On Aug 3, 2022, at 07:30 , Craig Newman via use-livecode wrote: > >> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode wrote: >> >> Hi all, >> I've been thinking about the command 'dispatch'. Is there any >> advantage/disadvantage in using it over just calling your handler? >> Thanks >> Sean From sean at pidigital.co.uk Wed Aug 3 11:27:04 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 16:27:04 +0100 Subject: Dispatch In-Reply-To: References: Message-ID: Thanks Craig, I was particularly asking if there was any 'advantage/disadvantage' in using dispatch myHandler with myVar over just using myHandler The dictionary defines its advantages for use with behaviours and that it returns in the 'it' variable if the message was handled or not - useful even when not used with behaviours in some cases I could imagine. However, I wondered if anyone else had already done the experimentation as to the dis/advantages of the above. Just making use of the community :) Sean On Wed, 3 Aug 2022 at 15:30, Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > “Send” and “Dispatch” do much the same thing, but they do differ in how > they interact with the message patch. They also each include their own > personal gadgetry that comes in handy in different scenarios. Read about > both in the dictionary, and do some experimentation with both. > > Craig > > > On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > I've been thinking about the command 'dispatch'. Is there any > > advantage/disadvantage in using it over just calling your handler? > > Thanks > > Sean > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Aug 3 11:27:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:27:33 +0000 Subject: Dispatch In-Reply-To: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> References: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Message-ID: <28DF53EE-8854-4CD2-AE17-95D821551FE0@iotecdigital.com> That should read, "Dispatch cannot use 'in time'" > On Aug 3, 2022, at 08:23 , Bob Sneidar via use-livecode wrote: > > Dispatch cannot use send in time From heather at livecode.com Wed Aug 3 11:31:10 2022 From: heather at livecode.com (Heather Laine) Date: Wed, 3 Aug 2022 16:31:10 +0100 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: Message-ID: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. :) Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: > > Hi, > > does anyone know if Livecode Ltd. is closed for holiday or so? > > I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Wed Aug 3 11:33:32 2022 From: heather at livecode.com (Heather Laine) Date: Wed, 3 Aug 2022 16:33:32 +0100 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Aug 2022, at 16:31, Heather Laine via use-livecode wrote: > > We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. > > :) > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> does anyone know if Livecode Ltd. is closed for holiday or so? >> >> I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. >> >> Regards, >> >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 3 11:38:15 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 3 Aug 2022 16:38:15 +0100 Subject: Dispatch In-Reply-To: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> References: <0C81E366-8423-4A8C-87DA-43AE7D11A39A@iotecdigital.com> Message-ID: Awesome Bob, Thanks for the info. That is really helpful. I often use 'try' to catch incidents where things trip over, but this might just be more useful and perform slightly better going forward. Are there any other tips for its use? Sean On Wed, 3 Aug 2022 at 16:23, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Send allows you to send in time. However the command or function must > exist or you will throw an error. Dispatch cannot use send in time, but if > a handler does not exist in the message path of the object you dispatch to, > no error will be thrown. > > This can come in handy. Let's say you have assigned a behavior in all your > fields, but in a few of your fields you have a special handler called > Cleanup. You can then, 'dispatch "cleanup" to me' in any handler in the > behavior. The fields that have the cleanup handler will get the message. > The ones that don't will not throw an error. > > Bob S > > > > On Aug 3, 2022, at 07:30 , Craig Newman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi all, > >> I've been thinking about the command 'dispatch'. Is there any > >> advantage/disadvantage in using it over just calling your handler? > >> Thanks > >> Sean > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Wed Aug 3 11:42:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 3 Aug 2022 17:42:02 +0200 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: <3D0E41E9-5E79-42E3-8036-792FFB1186F7@m-r-d.de> Hello Heather, thanks for your reply. That explains it. All the best for you family issues. Regards, Matthias > Am 03.08.2022 um 17:33 schrieb Heather Laine via use-livecode : > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 3 Aug 2022, at 16:31, Heather Laine via use-livecode wrote: >> >> We are open. Yesterday was a bank holiday in Scotland yes. We don't work at weekends. I have a fair bit to catch up on and I'm not at my usual desk owing to some family issues hence cannot answer the phone. I see your ticket and it is going to get a response very shortly... I am nearing it in the queue. >> >> :) >> >> Best Regards, >> >> Heather >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.com >> >> >> >>> On 3 Aug 2022, at 14:10, matthias rebbe via use-livecode wrote: >>> >>> Hi, >>> >>> does anyone know if Livecode Ltd. is closed for holiday or so? >>> >>> I am just wondering, my Pro Support request is not answered since Friday and no one can be reached by phone. >>> >>> Regards, >>> >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 11:43:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 15:43:28 +0000 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: All my prayers. Bob S > On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode wrote: > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine From ahsoftware at sonic.net Wed Aug 3 11:53:06 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Aug 2022 08:53:06 -0700 Subject: Dispatch In-Reply-To: References: Message-ID: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> On 8/3/22 06:36, Sean Cole via use-livecode wrote: > Hi all, > I've been thinking about the command 'dispatch'. Is there any > advantage/disadvantage in using it over just calling your handler? If you can invoke a command/function directly then for the most part there's no real advantage in using dispatch. I never use send anymore unless I need send a message in time. I do use dispatch extensively, mostly for two reasons. One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. The second case where I use dispatch is as a form of publish/subscribe: dispatching a command without a receiver object sends the command along the message path where it can be handled/passed by any object along the way. Or not. Mostly in this paradigm I don't need or want to check the return value because it's irrelevant to the sender whether or not the message was handled. The dispatch command can also be useful for feature management. Dispatch a command down the message path, and if the given feature is enabled then the command will be handled. If not then there's no downside to calling the feature because it won't cause a runtime error. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 3 12:14:49 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 3 Aug 2022 12:14:49 -0400 Subject: Is Livecode (the company) closed for holiday? In-Reply-To: References: <536B753A-698F-450A-81F0-872BE2DD1E31@livecode.com> Message-ID: <005201d8a754$2b458f20$81d0ad60$@net> +1 Ralph DiMola IT Director Evergreen Information Services -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, August 03, 2022 11:43 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Is Livecode (the company) closed for holiday? All my prayers. Bob S > On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode wrote: > > *Monday was a bank holiday. I see that today is Wednesday so my comment that yesterday was a bank holiday was erroneous. It was Tuesday. As previously mentioned, I am working around some family issues and there is a fair bit of support to catch up on. > > Best Regards, > > Heather > > Heather Laine _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 3 12:14:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 16:14:47 +0000 Subject: Dispatch In-Reply-To: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> Message-ID: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> One correction. If a value is returned by the handler that was called, the result will be that value. Bob S > On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode wrote: > > One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. From ahsoftware at sonic.net Wed Aug 3 12:25:44 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Aug 2022 09:25:44 -0700 Subject: Dispatch In-Reply-To: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> Message-ID: <20a53b53-5a34-a550-ef1d-d5b216c7404f@sonic.net> On 8/3/22 09:14, Bob Sneidar wrote: > One correction. If a value is returned by the handler that was called, the result will be that value. Yeah - good catch. I meant to say the "it" value is three-state, not the "result". dispatch someMessage if it is not "unhandled" then... or if it is "passed" then... or if it is "handled" then... and note that you can dispatch functions as well a commands, and the return value of the function will be in the result if "it" is not "unhandled". -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 3 12:56:28 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 3 Aug 2022 12:56:28 -0400 Subject: Dispatch / Send / Wait with/without Messages In-Reply-To: <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> References: <79446712-559b-9177-ea02-26eacaadc37a@sonic.net> <55AF53BA-B023-4E4E-BB28-A8885F5C420B@iotecdigital.com> Message-ID: <005601d8a759$fc36d710$f4a48530$@net> I'm having the same epiphany as Paul did below. The cornucopia of flexibility(and gotchas) that LC's message path model provides using: 1) Standard issue calling of commands and functions. 2) Engine messages 3) Send (optionally in time) 4) Dispatch 5) Wait in time with/without messages 6) exit to top And any others that I left out or don't know about can do things that I never could have imagined when I first found LC. Although I use all the above there's probably combinations I can't wrap my head around without more info. This would be a great as a dedicated chapter in a book and/or a Dr Mark W symposium followed by Q&A at the next RR Live. There seems to be a lot of app power/error prevention in the message path gold. For a newbie the LCs message path gold would be very attractive if it was only well documented and advertised. My 2 cents... Now back to changing some "wait with messages" to plain old waits to prevent users from clicking and getting my code into trouble now-and-again. Thanks to all on the list for this info!!! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, August 03, 2022 12:15 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Dispatch One correction. If a value is returned by the handler that was called, the result will be that value. Bob S > On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode wrote: > > One, if I'm calling a handler in a different object that is outside the normal message path then I'll dispatch the handler to that object rather than using send. One caveat: note that the dispatch command returns a three-state value: "handled", "unhandled", and "passed". So on checking the return value I use "if it it not unhandled then...". The advantage is that there's no runtime error if the command isn't caught, at the slight disadvantage of having to check whether it was handled. On 7/30/2022 3:53 PM, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement > is executed) will not be processed (yet). > > Is this correct? > First, than you to those that have responded. The reason I got curious about 'wait 0 with messages' (or even just 'wait 0') is because of an epiphany I had just last week regarding a bug a customer reported in our software. The customer experienced and execution error and our software presents a custom dialog that allows them to email out support account some information, including the 'executionContexts' so we have some code debugging information. The problem as a 'can't find object' error. In reviewing the code, I could see no way that the error should have occurred. The code was using the ChartMaker library to create a graph. It all looked good per documentation and we could not reproduce the error in house. I then noticed a 'wait 0 with messages' prior to the line the error occurred on and noticed that the line that had the error used object references relative to the current stack (which the defaultStack was explicitly set to much prior). My epiphany was realizing - for the first time, despite LiveCodeing since HyperCard and having a Masters in Computer Science and my entire career being in the IT/software development space for over 40 years - that when the 'wait 0 with messages' is executed, if there was a pending USER click on another window, the defaultStack could change and then the relative object references would not be able to find their target objects. Perhaps I should have realized that a 'wait 0 with messages' COULD result in the defaultStack changing much sooner OR perhaps I should always fully qualify all object references (which I have been doing for quite a few years, but this was old code), but it is a 'gotcha' of using wait with messages I had never thought of. The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form is used, LiveCode continues normal processing during the wait. The current handler is frozen, but the user can start other handlers and perform other actions such as switching cards." and 'switching cards' does imply changing the context of relative object references even if the defaultStack does not change, so perhaps I should have realized, but didn't until just last week. Now I am very curious about exactly what wait 0 with messages does and also about what actions change the defaultStack. Does anyone know of an article or something someone has done to identify all the messages, commands, or functions that change (or potentially change) the defaultStack? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dfe4 at cornell.edu Wed Aug 3 14:13:27 2022 From: dfe4 at cornell.edu (David Epstein) Date: Wed, 3 Aug 2022 14:13:27 -0400 Subject: Is there a way to create a generic setprop handler? References: <4E830440-7E96-4968-966D-D678573A4622@comcast.net> Message-ID: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> 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 of its custom properties is set? David Epstein From bobsneidar at iotecdigital.com Wed Aug 3 14:36:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Aug 2022 18:36:51 +0000 Subject: Is there a way to create a generic setprop handler? In-Reply-To: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> References: <4E830440-7E96-4968-966D-D678573A4622@comcast.net> <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> Message-ID: If I understand you then no. The only thing I would suggest is to use dispatch to trigger the "general handler" in all of your virtual properties (custom property is not the right phrase when referring to getProp/setProp). Bob S > On Aug 3, 2022, at 11:13 , David Epstein via use-livecode 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 of its custom properties is set? > > David Epstein From ambassador at fourthworld.com Wed Aug 3 14:49:47 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Aug 2022 11:49:47 -0700 Subject: Dispatch In-Reply-To: References: Message-ID: <486e9c51-d82b-c069-44b9-ad1f0fd61a08@fourthworld.com> 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 to add it. The message path is fine. It works reliably, and with as much efficiency as the team can throw at it. In most cases it's not only the easiest thing to type and the most efficient to execute, its simplicity and predictability also aid debugging and maintenance. For those times when you need an exception to the message path, LC provides many. Send, do, call, dispatch, etc. - each has their own unique set of tradeoffs that make it a good fit for the specific circumstance where the native message path isn't what you need. But those are for exceptional circumstances. The native message path is the norm of this language. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Aug 3 15:28:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Aug 2022 12:28:10 -0700 Subject: Is there a way to create a generic setprop handler? In-Reply-To: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> References: <4B96778D-8A8A-454C-A9B5-4A115BC1AFA1@cornell.edu> Message-ID: <7293bb11-f5fa-4849-929f-cafca6063330@fourthworld.com> 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 of its custom properties is set? I don't know of a way to trap getProp and setProp generically, and that may not be bad since it would affect the performance of all custom property access, whether it's the subset of properties you're interested in or not. An alternative could be to put the properties you want custom handling for into a custom property set of their own, e.g.: getPRop uPropSet[pKey] put the params end uPropSet on mouseUp get the uPropSet["key1"] of me end mouseUp ...puts this in the Message Box: uPropSet "key1" This will allow open-ended trapping of property keys, but limited in scope to the set you need that for. A word of caution with dependency on getProp and setProp: Those messages are subject to suspension during lockMessages, which may be exactly what you want, or may have unintended side effects that can be maddening to track down if you don't keep that in mind. Using getProp and setProp requires review of your code base, including any third-party libraries, which may lock messages so you can evaluate the implications for your circumstance. If you need consistently reliable ways to trigger custom evaluation consider accessor handlers instead. LockMessages only prevents system messages; calling a custom handler is not affected by lockMessages. Examples: -- Using an object as the value container: on SetMyProp pKey, pVal set the uPropSet[pKey] of to pVal end SetMyProp function GetMyProp pKey return the uPropSet[pKey] of end GetMyProp -- Using an array variable as the value container: on SetMyProp pKey, pVal put pVal into sPropVarA[pKey] end SetMyProp function GetMyProp pKey return sPropVarA[pKey] end GetMyProp -- Usage for either storage method: on mouseUp SetMyProp "key1", "val1" end mouseUp on mouseUp put GetMyProp("key1") into fld 1 end mouseUp Fun: If you abstract data access using normal custom handlers, you have one-stop-shopping to change the storage mechanism. If you don't need persistence across sessions a variable may do, and if you need persistence you can store in an object whose stackfile gets saved, or encode the array variable and save that to disk, or use a local database, or even use any form of remote storage across the internet if you like -- all by updating just two handlers. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dfe4 at cornell.edu Wed Aug 3 18:08:48 2022 From: dfe4 at cornell.edu (David Epstein) Date: Wed, 3 Aug 2022 18:08:48 -0400 Subject: Chart widget question Message-ID: Using LC 10 dp2, I am trying to script the creation of a chart widget. My command “create widget myName as chart in group myMain” creates only a small gray box. The LC command “New Widget/Chart” creates a line chart, ready to be modified. What is the LC command doing that I am not? Or: how do I find the script that LC runs when the “New Widget/Chart” command is chosen? David Epstein From matthias_livecode_150811 at m-r-d.de Wed Aug 3 18:58:32 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 4 Aug 2022 00:58:32 +0200 Subject: Chart widget question In-Reply-To: References: Message-ID: <38E3ED19-48AF-42D4-AEAA-7EC32216087A@m-r-d.de> I have here only DP4 to test. Don't you have to use com.livecode.widget.chart as widgetkind? With create widget "myChart" as "com.livecode.widget.chart" set the width of last widget to 250 set the height of last widget to 250 i was able to create a chart. Regards, Matthias > Am 04.08.2022 um 00:08 schrieb David Epstein via use-livecode : > > Using LC 10 dp2, I am trying to script the creation of a chart widget. > > My command “create widget myName as chart in group myMain” creates only a small gray box. > > The LC command “New Widget/Chart” creates a line chart, ready to be modified. What is the LC command doing that I am not? > > Or: how do I find the script that LC runs when the “New Widget/Chart” command is chosen? > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 5 12:32:42 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 5 Aug 2022 12:32:42 -0400 Subject: megabundle thoughts Message-ID: i have not seen much discussion of the megabundle, especially about the widgets, etc. i'm not sure if it's worth the $. thoughts? -- 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." From paul at researchware.com Fri Aug 5 12:51:04 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 5 Aug 2022 12:51:04 -0400 Subject: megabundle thoughts In-Reply-To: References: Message-ID: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote: > i have not seen much discussion of the megabundle, especially about the > widgets, etc. > i'm not sure if it's worth the $. > thoughts? > I think the widgets are great additions to Livecode. That said, I have not purchased the MegaBundle. My Livecode commercial/business/whatever license is paid out to something like 2023 or 2024 due to past fund raising where the mothership offered license extensions as part of the packages in those efforts. I am licensed for all platforms, with the professional extensions, so I don't need any more platforms and I really don't need my license extended or any store credits. If there had been a bundle offering that was JUST the extra widgets and stuff without an LC license stuff bundled in, I would have bought one. I don't like to get too far ahead of LC licensing. After all I could get hit by the proverbial bus tomorrow and having 2 years or prepaid LC licensing would go to waste (for me at least). So, I think it is worth the $ if you need additional platforms and/or your license extended (if it is about to expire in, say, another 15 months or less). It may not be worth the $ if you are all set for the next couple of years on LC licensing itself. From alex at tweedly.net Fri Aug 5 13:34:53 2022 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 5 Aug 2022 18:34:53 +0100 Subject: megabundle thoughts In-Reply-To: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> Message-ID: <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> I kind of agree with Paul (though I ame to the opposite conclusion). Once I discounted the items I'd already paid for (conferences, courses, books, etc.) and the multi-year future licensing already paid, the value of the megabundle shrank from "amazing" to "pretty good". I decided to go ahead anyway (so I now have a $300 or $399 voucher that I may never get to use). But about the widgets .... I am very impressed by the PolyList widget; it lets you make sophisticated looking lists, including multi-column ones, very easy; I always disliked the fact that DataGrid couldn't do multi-column. I do think it needs, and will get, improvements (for example, I'd like to see a graphic UI to specify dataLayout - the current way seems kind of late-80's-ish :-) Polygrid looks like it could be useful in the right place - haven't used it yet. Responsive layout - seems like a great addition - I look forward to trying it out, but haven't got there yet. Haven't yet investigated the others. I think they could all do with better documentation and examples, so I'm really waiting for a tutorial or blog from Steven before I dive into each :-) Oh - and last thought - they could *really* do with a better release / version system, but that should resolve itself over time. Alex. On 05/08/2022 17:51, Paul Dupuis via use-livecode wrote: > On 8/5/2022 12:32 PM, Mike Kerner via use-livecode wrote: >> i have not seen much discussion of the megabundle, especially about the >> widgets, etc. >> i'm not sure if it's worth the $. >> thoughts? >> > > I think the widgets are great additions to Livecode. That said, I have > not purchased the MegaBundle. My Livecode commercial/business/whatever > license is paid out to something like 2023 or 2024 due to past fund > raising where the mothership offered license extensions as part of the > packages in those efforts. I am licensed for all platforms, with the > professional extensions, so I don't need any more platforms and I > really don't need my license extended or any store credits. If there > had been a bundle offering that was JUST the extra widgets and stuff > without an LC license stuff bundled in, I would have bought one. > > I don't like to get too far ahead of LC licensing. After all I could > get hit by the proverbial bus tomorrow and having 2 years or prepaid > LC licensing would go to waste (for me at least). > > So, I think it is worth the $ if you need additional platforms and/or > your license extended (if it is about to expire in, say, another 15 > months or less). It may not be worth the $ if you are all set for the > next couple of years on LC licensing itself. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 5 13:46:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 05 Aug 2022 12:46:55 -0500 Subject: megabundle thoughts In-Reply-To: <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> Message-ID: <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I'm with Paul. I don't need additional licensing but if the widgets go on sale separately later then I'm in. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode wrote: > I kind of agree with Paul (though I ame to the opposite conclusion). From matthias_livecode_150811 at m-r-d.de Fri Aug 5 15:19:10 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 5 Aug 2022 21:19:10 +0200 Subject: megabundle thoughts In-Reply-To: <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I own a Lifetime commercial (Indy) license for all current and future platforms and a current subscription to upgrade my license to the Pro features with Email support. There are 2 items in the bundle i was interested in: the Email parser library and also the PolyGrid widget. The other stuff like the ebooks, conference videos and others i already own or i could upgrade much cheaper (Curry's libraries) through the LC shop. And without the voucher, which has the same value as the Megabundle costs, i would not have purchased the bundle. But i have also a subscription for the script compiler, so i decided to purchase the bundle and use the voucher for the next payments for the Script compiler subscription. So in my case i did not loose money, but got some really usefull widgets and libraries on top. I did not pay much attention for the other widgets and libraries, but must confess that the PolyList (formerl DataView) and also the ResponsiveLayout library are really great enhancements. So in case you have a current subscription in your LC account and you do not plan to cancel that subscription in near future, the MegaBundle is a bargain. You pay your subscription costs in advance and get some really great enhancements for LC. Matthias > Am 05.08.2022 um 19:46 schrieb J. Landman Gay via use-livecode : > > I'm with Paul. I don't need additional licensing but if the widgets go on sale separately later then I'm in. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode wrote: > >> I kind of agree with Paul (though I ame to the opposite conclusion). > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Sat Aug 6 07:44:31 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 13:44:31 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Hi all, So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. For this, if I understand correctly, some javascript needs to be used. I’ve tried to piece together how to do that from these sources: https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/ and Ali Lloyd’s cool WordLC app: https://alilloyd.livecodehosting.com/wordlc/wordlc.html where he uses window.addEventListener(”resize” […] etc in the html file to catch browser window resizing for the stack to react on. However, as I can’t see his LC script side of it, I fail to figure out the proper adaptation to my needs: I want my stack to get, from javascript, the impulse that the browser window has changed its width/height and what the new width/height is, in order to trigger a normal resizeStack handler to deal with that. Ideally, the javascript part of this should be included by LC in the standalone build, and I hope that’s what they plan at least when LC10 stable ships (seems logical), but in the meantime - can someone please help get the code right? /Andreas From harrison at all-auctions.com Sat Aug 6 10:30:25 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Sat, 6 Aug 2022 10:30:25 -0400 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Message-ID: <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> Hi Andreas, I have found the following website to be very helpful with a lot of my javascript projects. Do you know about these guys? https://www.w3schools.com/js/default.asp I hope that helps you. Cheers, Rick > On Aug 6, 2022, at 7:44 AM, Andreas Bergendal via use-livecode wrote: > > Hi all, > > So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. > > For this, if I understand correctly, some javascript needs to be used. I’ve tried to piece together how to do that from these sources: > https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/ > > and Ali Lloyd’s cool WordLC app: > https://alilloyd.livecodehosting.com/wordlc/wordlc.html > > where he uses window.addEventListener(”resize” […] etc in the html file to catch browser window resizing for the stack to react on. However, as I can’t see his LC script side of it, I fail to figure out the proper adaptation to my needs: > > I want my stack to get, from javascript, the impulse that the browser window has changed its width/height and what the new width/height is, in order to trigger a normal resizeStack handler to deal with that. > > Ideally, the javascript part of this should be included by LC in the standalone build, and I hope that’s what they plan at least when LC10 stable ships (seems logical), but in the meantime - can someone please help get the code right? > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sat Aug 6 12:28:01 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Aug 2022 09:28:01 -0700 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> <9D2BC0B9-C30E-4B65-8540-A1B4F611A7A2@all-auctions.com> Message-ID: On 8/6/22 07:30, harrison--- via use-livecode wrote: > I have found the following website to be very helpful with a lot of my javascript projects. > > Do you know about these guys? > > https://www.w3schools.com/js/default.asp And also the amazing GitHub Copilot: https://docs.github.com/en/copilot -- Mark Wieder ahsoftware at gmail.com From andreas.bergendal at gmail.com Sat Aug 6 13:14:12 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 19:14:12 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> Thanks guys, those are indeed great resources for many cases. What I’m after here however, are specific solutions to the javascript/livecode ’pairing’ of code to manage browser window/stack resizing. To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot of people here, since having your stack react to browser window resizing should be quite crucial in many cases of LC web deployment. That’s why I’m also confident that the mothership will build this into future releases of LC10. But as an early adopter, I can’t wait… ;-) From ahsoftware at sonic.net Sat Aug 6 13:28:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Aug 2022 10:28:33 -0700 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> References: <18C945D8-A19E-45C7-8E67-26D31B038F1B@gmail.com> Message-ID: On 8/6/22 04:44, Andreas Bergendal via use-livecode wrote: > and Ali Lloyds cool WordLC app: > https://alilloyd.livecodehosting.com/wordlc/wordlc.html Unfortunately that throws a divide-by-zero error at line 461 in computeGridFieldWidth when I try to resize the window. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Sat Aug 6 13:45:42 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 6 Aug 2022 18:45:42 +0100 Subject: How to use addEventListener for browser window resizing in web deployment? In-Reply-To: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> References: <22EEE677-D559-4EE6-BD06-2EBA9BC2AFDA@gmail.com> Message-ID: <83d19caf-bf24-37ef-2038-9628e1ed4c60@tweedly.net> You are correct Andreas - all this basic javascript interaction *really* should be in the default built already. A sample stack for building a web app was discussed in a session in the LC Global conference, by Steven Crichton and Michael McReary. It has all kinds of javascript magic, and the corresponding LC pairing. AFAIK, that stack hasn't been made public, so it wouldn't be up to me to show large sections - but I'm sure it's ok to give a couple of snippets ..... In the stack script of the app (includes some stuff with 'spinner - probably not generally needed) : > on openStack >    if the platform is "web" then >       do "document.querySelector('#canvas').removeAttribute('width');" > as "javascript" >       do > "document.querySelector('#canvas').removeAttribute('height');" as > "javascript" >       do "document.querySelector('#canvas').style.width = '100%';" as > "javascript" >       do > "document.querySelector('#emscripten_main').removeAttribute('width');" > as "javascript" >       do > "document.querySelector('#emscripten_main').removeAttribute('height');" > as "javascript" >       do "document.querySelector('#emscripten_main').style.width = > '100%';" as "javascript" >       do "var element = > document.getElementById('spinner');element.parentNode.removeChild(element);" > as "javascript" >       do "var element = > document.getElementById('status');element.parentNode.removeChild(element);" > as "javascript" >       do > "document.querySelector('#donestatus').removeAttribute('style');" as > "javascript" >       do "document.querySelector('#by').removeAttribute('style');" as > "javascript" > >       send "doBrowserResize" to me in 0 millisecs >    end if > end openStack > > on browserResized pInnerHeight >    set the height of this stack to pInnerHeight >    do > "document.querySelector('#emscripten_main').removeAttribute('width');" > as "javascript" >    do "document.querySelector('#emscripten_main').style.width = > '100%';" as "javascript" > end browserResized > > on doBrowserResize >    set the cJavascriptHandlers of this stack to "browserResized" & > return & "scrollEvent" >    set the visible of this stack to true >    do "getInnerHeight();" as "javascript" >    browserResized the result > end doBrowserResize > > on scrollEvent pHScroll, pVScroll >    send "scrollEvent" && pHScroll & comma & pVScroll to this card in 0 > seconds > end scrollEvent > and in the standalone.html : Hmmm - I don't understand it well enough to clip out the needed parts - so I've included the whole thing below  :-(   Again, it includes stuff with spinner, and stripe - which probably should be removed in the general case. Hopefully, LC will get their act together and provide a default build where basic functionality works. Good luck, Alex.                    LiveCode Conference - Meeting Space                    
    
Loading...
    
              
    
            
                              On 06/08/2022 18:14, Andreas Bergendal via use-livecode wrote: > Thanks guys, those are indeed great resources for many cases. > > What Im after here however, are specific solutions to the javascript/livecode pairing of code to manage browser window/stack resizing. > To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot of people here, since having your stack react to browser window resizing should be quite crucial in many cases of LC web deployment. > > Thats why Im also confident that the mothership will build this into future releases of LC10. But as an early adopter, I cant wait ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Sat Aug 6 15:46:21 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 6 Aug 2022 21:46:21 +0200 Subject: How to use addEventListener for browser window resizing in web deployment? Message-ID: <8A4FE0CA-7B70-47EE-AEE8-9D9DB3D92EA1@gmail.com> Wow, thanks Alex! That’s brilliant and exactly what I need! I must have missed (or forgotten) that session at the conference - I’ll try to find it among the recordings to see if it helps explaining the various bits a little. In any case I’ll experiment with the code and see what I can get to work. Cheers, Andreas From selander at tkf.att.ne.jp Sun Aug 7 03:29:27 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 7 Aug 2022 16:29:27 +0900 Subject: Auto populate an HTML form with LC server Message-ID: Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? Any help appreciated. Tim Selander Tokyo, Japan From index at kenjikojima.com Sun Aug 7 07:17:35 2022 From: index at kenjikojima.com (Kenji Kojima) Date: Sun, 7 Aug 2022 07:17:35 -0400 Subject: Auto populate an HTML form with LC server In-Reply-To: References: Message-ID: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> Tim, See this https://www.webdesign-fan.com/ajaxzip3 and http://www.webdesign-fan-guide.com/ajaxzip3/ I believe you can use these on the LC server. Best, -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ > On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode wrote: > > Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. > > I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? > > Any help appreciated. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Sun Aug 7 08:57:45 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 7 Aug 2022 21:57:45 +0900 Subject: Auto populate an HTML form with LC server In-Reply-To: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> References: <7B38B2F6-1957-4C72-89EF-3F87FD14FC88@kenjikojima.com> Message-ID: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> 一発でした! 小島様、ありがとうごあいました。助かりました! お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。 ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。 では、これからもよろしくお願いいたします。 セランダー・ティム Thank you so much!! Tim On 2022.08.07 20:17, Kenji Kojima wrote: > Tim, > > See this > https://www.webdesign-fan.com/ajaxzip3 > and > http://www.webdesign-fan-guide.com/ajaxzip3/ > > I believe you can use these on the LC server. > > Best, > -- > Kenji Kojima / 小島健治 > http://www.kenjikojima.com/ > > > >> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode >> > > wrote: >> >> Many web forms in Japan automatically fill in prefecture, town, >> ward and block when you just put in the zip code. I would like >> to do that on my web site, and know the api I would use. >> >> I assume these sites are using javascript, but can LC server >> pick up user input before the submit button is clicked? >> >> Any help appreciated. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sun Aug 7 18:15:00 2022 From: tom at makeshyft.com (Tom Glod) Date: Sun, 7 Aug 2022 18:15:00 -0400 Subject: megabundle thoughts In-Reply-To: References: <310fafe6-4ac1-ef87-f1e0-0c9861928ce9@researchware.com> <85ca8d9e-3e9d-797f-8673-6fe89eb264b9@tweedly.net> <1826f1e02b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Greetings Everyone! I might be pretty biased (cuz the bundle contains my AppStarterStack), And I understand that people have different goals with their software development. But all i know is there is ALOT of value in the bundle. So much so, I don't even necessarily agree with the price points, for the amount of value thats in it. (When you take just the vouchers into consideration) Just my 5 cents. On Fri, Aug 5, 2022 at 3:20 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > I own a Lifetime commercial (Indy) license for all current and future > platforms and a current subscription to upgrade my license to the Pro > features with Email support. > > There are 2 items in the bundle i was interested in: the Email parser > library and also the PolyGrid widget. The other stuff like the ebooks, > conference videos and others i already own or i could upgrade much cheaper > (Curry's libraries) through the LC shop. > > And without the voucher, which has the same value as the Megabundle > costs, i would not have purchased the bundle. > > But i have also a subscription for the script compiler, so i decided to > purchase the bundle and use the voucher for the next payments for the > Script compiler subscription. > > So in my case i did not loose money, but got some really usefull widgets > and libraries on top. I did not pay much attention for the other widgets > and libraries, but must confess that the PolyList (formerl DataView) and > also the ResponsiveLayout library are really great enhancements. > > So in case you have a current subscription in your LC account and you do > not plan to cancel that subscription in near future, the MegaBundle is a > bargain. You pay your subscription costs in advance and get some really > great enhancements for LC. > > > Matthias > > > > > Am 05.08.2022 um 19:46 schrieb J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com>: > > > > I'm with Paul. I don't need additional licensing but if the widgets go > on sale separately later then I'm in. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On August 5, 2022 12:36:22 PM Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> I kind of agree with Paul (though I ame to the opposite conclusion). > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hakan at exformedia.se Mon Aug 8 00:32:05 2022 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Mon, 8 Aug 2022 06:32:05 +0200 Subject: Auto populate an HTML form with LC server In-Reply-To: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> References: <6bbf466f-7f52-7245-b09b-6c07389cb523@tkf.att.ne.jp> Message-ID: <198891BF-DC51-4969-8D6E-569E74EFDAF7@exformedia.se> I don’t understand Japanese but to clarify the process. The server side can’t do anything unless you call it in some way. So every time you see something happening in the browser before you submit it is JavaScript running. The libraries mentioned are Ajax libraries (as far as I understand) and should be injected to the web page. With JavaScript you can listen to events in a similar way as in Livecode. And when your event of choice happens your JavaScript calls a server API that can then return an answer (which often is some json) that the JavaScript interprets and injects into the fields. So, Livecode server (or any other server) can’t pick up anything before you submit, but with JavaScript you can make the call! > 7 aug. 2022 kl. 14:59 skrev Tim Selander via use-livecode : > > 一発でした! > 小島様、ありがとうごあいました。助かりました! > お久しぶりに「小島健治」というお名前をメールリストに見て、すごく嬉しくなりました。過去、何回も手伝ってくださいましたね。 > > ごめんんさい、芸術の世界とまったく縁のない人間ですが、HPを見ると、相変わらず重要なプロジェクトを取り上げていますね。 > > では、これからもよろしくお願いいたします。 > > セランダー・ティム > > Thank you so much!! > > Tim > > > >> On 2022.08.07 20:17, Kenji Kojima wrote: >> Tim, >> See this >> https://www.webdesign-fan.com/ajaxzip3 >> and >> http://www.webdesign-fan-guide.com/ajaxzip3/ >> I believe you can use these on the LC server. >> Best, >> -- >> Kenji Kojima / 小島健治 >> http://www.kenjikojima.com/ >>>> On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode > wrote: >>> >>> Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. >>> >>> I assume these sites are using javascript, but can LC server pick up user input before the submit button is clicked? >>> >>> Any help appreciated. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 8 12:26:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 8 Aug 2022 12:26:30 -0400 Subject: Datagrid internal error Message-ID: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumns when the error occurs, does ANYONE have any idea what tColumns might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From paul at researchware.com Mon Aug 8 12:39:02 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 8 Aug 2022 12:39:02 -0400 Subject: Datagrid internal error In-Reply-To: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> Message-ID: <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > A customer encountered the following execution error (below) in our > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > the scrips for the Datagrid itself, rather than our code. At the end, > it is one of our handler, "populateMe", where line 139 is where the > error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > tColumnNames > For example, some information from the customer suggest they are working with a VERY large dataset, so the length of the list in TColumnNames could be quit long - perhaps hundreds of lines. Is there a practical limit on the number of columns a Datagrid can be set to? From rdimola at evergreeninfo.net Mon Aug 8 13:38:50 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 8 Aug 2022 13:38:50 -0400 Subject: Datagrid internal error In-Reply-To: <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> Message-ID: <005401d8ab4d$bbd48c10$337da430$@net> Paul, The max height of a field is 32,767 pixels. This can be hard to quantify especially on mobile with the cornucopia of screen resolutions. I would imagine that this limit also applies to groups as well. I got bit on this when the app worked in the IDE but failed on some devices. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Paul Dupuis via use-livecode Sent: Monday, August 08, 2022 12:39 PM To: use-livecode at lists.runrev.com Cc: Paul Dupuis Subject: Re: Datagrid internal error On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > A customer encountered the following execution error (below) in our > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > the scrips for the Datagrid itself, rather than our code. At the end, > it is one of our handler, "populateMe", where line 139 is where the > error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > tColumnNames > For example, some information from the customer suggest they are working with a VERY large dataset, so the length of the list in TColumnNames could be quit long - perhaps hundreds of lines. Is there a practical limit on the number of columns a Datagrid can be set to? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 8 17:59:13 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 21:59:13 +0000 Subject: Code Signing Certificates: Where to put? Message-ID: I went through the process of creating the 2 certs needed to sign, notarize and staple an app bundle. I imported the certs into my Keychain in System (login didn't seem like the place to put it) and now MrSign'n'Notarize Helper V3 is generating an error which seems to indicate it cannot find the certificate. Codesigning app... executing: codesign --deep --force --verify --verbose --sign "Robert Sneidar (9PV38Bl27Y)" --options runtime --entitlements /private/var/folders/dy/zctnynys6mg69880fpzrmsy00000gr/T/TemporaryItems/entitlements.plist "/Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app" /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: replacing existing signature Warning: unable to build chain to self-signed root for signer "Developer ID Application: " /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: errSecInternalComponent In subcomponent: /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app/Contents/MacOS/revsecurity.dylib process aborted Is this an issue caused by where I put the certificates? Bob S From bobsneidar at iotecdigital.com Mon Aug 8 19:53:04 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 23:53:04 +0000 Subject: Datagrid internal error In-Reply-To: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> Message-ID: <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> I believe dgProp ["columns"] is a comma delimited list. Bob S > On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: > > A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames From bobsneidar at iotecdigital.com Mon Aug 8 19:56:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Aug 2022 23:56:32 +0000 Subject: Datagrid internal error In-Reply-To: <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> Message-ID: Nope I take that back it's lines. I remember now wondering why that was. Bob S > On Aug 8, 2022, at 16:53 , Bob Sneidar wrote: > > I believe dgProp ["columns"] is a comma delimited list. > > Bob S > > >> On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: >> >> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. >> Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames > From paulmcclernan at gmail.com Mon Aug 8 20:50:31 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Mon, 8 Aug 2022 20:50:31 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> Message-ID: I would say go ahead and jump in yourself, I’d be willing to help if I can (I’m rather busy myself), if you post questions in the LCB forum section, if you get stuck. I’m sure Trevor has left a nice starting base (I’ve looked at all of his LCB work). You could likely get the lib binary for macOS using “HomeBrew”. On Thu, Jul 28, 2022 at 1:44 PM harrison--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > You should have led with that information. > > Keys here: Not time sensitive. Pay competitive rates: What is your > rate? Be upfront with that if you can. > > Thanks for clearing things up a bit. > > Cheers, > > Rick > > > > On Jul 28, 2022, at 12:23 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've hired and managed independent software developers for various > businesses for nearly 40 years. I am well aware of the market. > > > > We pay competitive contract rates. My estimate of time is probably about > right for someone who has set up at least 1 or 2 cross-platform LCB DLL > wrappers based on decades of estimating IT projects, but it was more meant > to suggest the work is something in the scope of many hours to days vs. > weeks or months. > > > > As for job size, if you are a contract developer who has a queue of > large jobs providing regular income, good for you. My experience is that > many contract developers value non-time sensitive small jobs they can fit > in and around larger projects to fill in the inevitable gaps between larger > projects that can come up. > > > > If no one is available or interested, as I said, it is not time > sensitive, so we can either wait or tackle it ourselves as time permits. > > > > Paul Dupuis > > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Tue Aug 9 08:09:00 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 9 Aug 2022 08:09:00 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> Message-ID: <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> comma delimited or cr delimited, without looking it up, I am sure it is in the right format since it work 99.99% of the time. The names that would be in the column list all go through a name check function. That function prevents names that are all spaces, longer than 255 characters, or are a handful of "reserved words" and checks that each name does not contain the following characters     if (it < 32)  then return false -- all control characters (0x0000 to 0x0031)     if (it = 34)  then return false -- "                quote (0x0034) -- LC string encapsulator     if (it = 40)  then return false -- (     left parenthesis (0x0040) -- used in filter and theory criteria     if (it = 41)  then return false -- )    right parenthesis (0x0041) -- used in filter and theory criteria     if (it = 44)  then return false -- ,                comma (0x0044) -- LC item delimiter     if (it = 60)  then return false -- <       less than sign (0x0060) -- htmlText tag delimiter     if (it = 62)  then return false -- >    greater than sign (0x0062) -- htmlText tag delimiter     if (it = 91)  then return false -- [  left square bracket (0x0091) -- LC merge delimiter     if (it = 92)  then return false -- \            backslash (0x0092) -- regex string escape character     if (it = 93)  then return false -- ] right square bracket (0x0093) -- LC merge delimiter     if (it = 124) then return false -- |         vertical bar (0x0124) -- used in code     if (it = 127) then return false -- DEL             delete (0x0127) So, comma's are excluded, as are [ and ], and control characters, etc.. However all Unicode characters, codepoints 128 and up are allowed. Testing shows you can have a Datagrid where you can set the columns to empty, so that is not the cause of the error. I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? I don't really want to have to carve out time to build test stacks to try names with every possible characters or ever increasing numbers of column names until the error occurs or those possibilities are ruled out. I was hoping there might be someone on the list who was familiar enough with the internals of the Datagrid to have some idea what might have caused the error. Unfortunately, the customer's data is confidential, so they do not want to provide the data to us to use for testing. And the customer is either not technically savvy or does not have time (they have said they are under a deadline) to help much in troubleshooting. They can get the analysis this Datagrid provides by exporting some data to Excel and doing the analysis in Excel, so the error is not a show-stopper for them as well. Definitely not as convenient as the report in our app, but a viable work-around. See my original post for the executionContexts and the specific error. On 8/8/2022 7:56 PM, Bob Sneidar via use-livecode wrote: > Nope I take that back it's lines. I remember now wondering why that was. > > Bob S > > >> On Aug 8, 2022, at 16:53 , Bob Sneidar wrote: >> >> I believe dgProp ["columns"] is a comma delimited list. >> >> Bob S >> >> >>> On Aug 8, 2022, at 09:26 , Paul Dupuis via use-livecode wrote: >>> >>> A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scrips for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. >>> Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Aug 9 10:44:22 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 9 Aug 2022 16:44:22 +0200 Subject: Code Signing Certificates: Where to put? In-Reply-To: References: Message-ID: <9C1D9CBF-1D59-4DB6-BF82-8A299B7B8354@m-r-d.de> My certificates are stored under Login in my Keychain. I created them using Xcode (Preferences/Account) and Xcode installed them directly in Login. So give it a try and move (if this is possible) the certs to Login or just delete the 2 and reinstall them. If you still run into a problem then could you try to create a simple standalone without any external/extension and see if it is possible to sign and notarize that? Matthias > Am 08.08.2022 um 23:59 schrieb Bob Sneidar via use-livecode : > > I went through the process of creating the 2 certs needed to sign, notarize and staple an app bundle. I imported the certs into my Keychain in System (login didn't seem like the place to put it) and now MrSign'n'Notarize Helper V3 is generating an error which seems to indicate it cannot find the certificate. > Codesigning app... > > executing: codesign --deep --force --verify --verbose --sign "Robert Sneidar (9PV38Bl27Y)" --options runtime --entitlements /private/var/folders/dy/zctnynys6mg69880fpzrmsy00000gr/T/TemporaryItems/entitlements.plist "/Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app" > /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: replacing existing signature > Warning: unable to build chain to self-signed root for signer "Developer ID Application: " > /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app: errSecInternalComponent > In subcomponent: /Users/bobsneidar/Documents/Livecode Projects/Builds/slySQL Agent MAC/slySQL Agent.app/Contents/MacOS/revsecurity.dylib > process aborted > > Is this an issue caused by where I put the certificates? > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 9 11:09:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 9 Aug 2022 15:09:55 +0000 Subject: Datagrid internal error In-Reply-To: <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. Bob S > On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: > > I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? From paul at researchware.com Tue Aug 9 13:15:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 9 Aug 2022 13:15:31 -0400 Subject: Summer Bundle table/grid widgets.... Message-ID: I am in need of a control to display a table of numbers. The top ROW are column labels (text, sometimes up to 255 characters). The left COLUMN is row labels (text, sometime up to 255 characters). I'd like a widget that: 1) Can display this with the top row (or headers) fixed so they remain visible when the data is scrolled 2) Can display this with the left column fixed to they remain visible when the data is scrolled 3) Provides built in abilities to sort the numbers in all the data of the grid/table, by any column, ascending or descending as the user desires. I have already built this with a grouped field (for the fixed left column) and Datagrid (for the remained of the table). Do any of the new widgets in the Summer Bundle do this inherently without me having to make a custom object (as I had to do with the field + Datagrid)? From dan at clearvisiontech.com Tue Aug 9 13:33:42 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 9 Aug 2022 17:33:42 +0000 Subject: Android API Level 31 Message-ID: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> I am trying to upload an AAB to Google Play Condole and I am getting this error: "Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 31." I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio and restarted LC and rebuilt the app. Still getting the error from Google Play. Anyone have any ideas as to the LC/Studio settings needed to get Google to accept the app? Thank you in advance! Dan From merakosp at gmail.com Tue Aug 9 14:45:14 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 9 Aug 2022 21:45:14 +0300 Subject: Android API Level 31 In-Reply-To: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> References: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> Message-ID: Hello Dan, This is a new requirement of the Google Play Store, i.e. new apps should target Android API 31. We are preparing a build of LC 9.6.9 RC-1 that among other bugfixes includes support for API31 too, it is currently in testing and should be good for release very soon. If you are urgently affected please contact support and we can offer an interim (test) build to try. Kind regards, Panos -- On Tue, 9 Aug 2022 at 20:34, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am trying to upload an AAB to Google Play Condole and I am getting this > error: > > "Your app currently targets API level 30 and must target at least API > level 31 to ensure it is built on the latest APIs optimized for security > and performance. Change your app's target API level to at least 31." > > I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio > and restarted LC and rebuilt the app. Still getting the error from Google > Play. Anyone have any ideas as to the LC/Studio settings needed to get > Google to accept the app? > > Thank you in advance! > Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Tue Aug 9 15:12:14 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 9 Aug 2022 19:12:14 +0000 Subject: Android API Level 31 In-Reply-To: References: <727220B7-7BC5-42C8-BA19-338FFA55F94A@clearvisiontech.com> Message-ID: <77239A29-9319-4F46-BE0E-F0A53094F42B@clearvisiontech.com> Panos, THANK YOU for the quick reply and the information! If we're talking days or early next week, I can probably wait. Anything later than that and I'll need something to give my client. Thank you! Dan On 8/9/22, 11:47 AM, "use-livecode on behalf of panagiotis m via use-livecode" wrote: Hello Dan, This is a new requirement of the Google Play Store, i.e. new apps should target Android API 31. We are preparing a build of LC 9.6.9 RC-1 that among other bugfixes includes support for API31 too, it is currently in testing and should be good for release very soon. If you are urgently affected please contact support and we can offer an interim (test) build to try. Kind regards, Panos -- On Tue, 9 Aug 2022 at 20:34, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am trying to upload an AAB to Google Play Condole and I am getting this > error: > > "Your app currently targets API level 30 and must target at least API > level 31 to ensure it is built on the latest APIs optimized for security > and performance. Change your app's target API level to at least 31." > > I have enabled the "Android 12.0 (S)" SDK (API Level 31) in Android Studio > and restarted LC and rebuilt the app. Still getting the error from Google > Play. Anyone have any ideas as to the LC/Studio settings needed to get > Google to accept the app? > > Thank you in advance! > Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Wed Aug 10 09:51:27 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 10 Aug 2022 09:51:27 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: This seems like a fragment of a longer thread, but the “dgText” and the “dgData” are the two methods I use to extract, process and reload the content of a data grid. Craig > On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: > > I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. > > Bob S > > >> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >> >> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 10 10:59:35 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 16:59:35 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" Message-ID: Hi all, the subject says it all... How can we get the the visible rect of a stack running on mobile with fullscreenmode "showall"? Know what I mean? Thank you for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Aug 10 11:11:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 15:11:00 +0000 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> I was referring to dgNumberOfRecords • get the dgNumberOfRecords • set the dgNumberOfRecords of group "DataGrid" to 20 • Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows: command GetDataForLine pLine, @pDataA end GetDataForLine You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. Bob S > On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode wrote: > > This seems like a fragment of a longer thread, but the “dgText” and the “dgData” are the two methods I use to extract, process and reload the content of a data grid. > > Craig > >> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: >> >> I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. >> >> Bob S >> >> >>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >>> >>> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 10 11:35:22 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 10 Aug 2022 11:35:22 -0400 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: Check out this repository: https://github.com/bwmilby/mobileDemo It has logging that shows various rects when changing modes. I can look later to try to give a more concise answer. Thanks, Brian Sent from my iPhone > On Aug 10, 2022, at 11:00 AM, Klaus major-k via use-livecode wrote: > > Hi all, > > the subject says it all... > > How can we get the the visible rect of a stack running > on mobile with fullscreenmode "showall"? > Know what I mean? > > Thank you for any hint! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Aug 10 11:44:03 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 17:44:03 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> Hi Brian, > Am 10.08.2022 um 17:35 schrieb Brian Milby via use-livecode : > > Check out this repository: > https://github.com/bwmilby/mobileDemo > > It has logging that shows various rects when changing modes. I can look later to try to give a more concise answer. ah, yes, "the effectiver working screenrect"! 8-) Will take a deeper look at your stack later, thanks! > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Aug 10 12:04:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 16:04:22 +0000 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> References: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> Message-ID: <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> Wait, there is a more effectiver working screenrect than the effective one?? ;-P Bob S > On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: > > ah, yes, "the effectiver working screenrect"! 8-) From klaus at major-k.de Wed Aug 10 12:07:44 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:07:44 +0200 Subject: iPhone simulators Message-ID: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Hi all, we can open several different iPhone and iPad simulators on the Mac via Xcode. However in the "Test Target" menu of LC we only see one generic "iPhone Simulator 15.2" resp. "iPad Simulator 15.2". Is there a way to select one of the open simulators directly? Know what I mean? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Wed Aug 10 12:08:32 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:08:32 +0200 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> References: <992EC019-21BE-45FD-9A3C-844F3BE597A1@major-k.de> <85D09ECC-2265-4B3F-8D0C-BCF1CBB3A9C0@iotecdigital.com> Message-ID: Hi Bob, > Am 10.08.2022 um 18:04 schrieb Bob Sneidar via use-livecode : > > Wait, there is a more effectiver working screenrect than the effective one?? ;-P yes, but it is R-rated! 8-) > Bob S > >> On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: >> ah, yes, "the effectiver working screenrect"! 8-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From panos.merakos at livecode.com Wed Aug 10 12:11:01 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 10 Aug 2022 19:11:01 +0300 Subject: [ANN] Release 9.6.9 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.9 RC-1. LiveCode 9.6.9 RC-1 comes with more than 30 bugfixes, including support for Android API 31, which is now a requirement for submitting new apps to the Google Play Store. You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/android-api-31-support/ Note: This maintenance pre-release will break from convention slightly in that there will definitely be an RC-2 with further bug fixes. This RC-1 release is being made due to the change in API level requirement for the Play Store recently made by Google. You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From merakosp at gmail.com Wed Aug 10 12:28:22 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 10 Aug 2022 19:28:22 +0300 Subject: iPhone simulators In-Reply-To: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: Hello Klaus, The suggested approach is to make sure the desired simulator device is already up and running. And then, in the Test Target menu, choose "iPhone Simulator 15.2" or ""iPad Simulator 15.2", and click Test. PS: To change a device, click on the Simulator app menu Hardware -> Device -> iPhone X.Y etc Note this might be slightly different depending on the version of your Simulator app, which depends on the Xcode version, which depends on your MacOS version :) Cheers, Panos On Wed, 10 Aug 2022 at 19:08, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > we can open several different iPhone and iPad simulators on the Mac via > Xcode. > > However in the "Test Target" menu of LC we only see one generic "iPhone > Simulator 15.2" > resp. "iPad Simulator 15.2". > > Is there a way to select one of the open simulators directly? > Know what I mean? Thanks in advance! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Aug 10 12:38:36 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 18:38:36 +0200 Subject: iPhone simulators In-Reply-To: References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: Hi Panos, > Am 10.08.2022 um 18:28 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > The suggested approach is to make sure the desired simulator device is > already up and running. And then, in the Test Target menu, choose "iPhone > Simulator 15.2" or ""iPad Simulator 15.2", and click Test. > > PS: To change a device, click on the Simulator app menu Hardware -> Device > -> iPhone X.Y etc yes, I know this, that was not my question. Supposed I opened two iPhone simulators (macOS 12.5, Xcode 13.2.1) in the simulator app, in the LC menu there is only ONE entry named "iPhone Simulator 15.2". My question is if we can test the app in one of the two simulators directly? Means can we specifically address one of the open simulators? Does not seem possible in the moment... Looks like only the first opened simulator is being addressed by LC. > Note this might be slightly different depending on the version of your > Simulator app, which depends on the Xcode version, which depends on your > MacOS version :) Go figure!? 8-) > Cheers, > Panos > > On Wed, 10 Aug 2022 at 19:08, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> we can open several different iPhone and iPad simulators on the Mac via >> Xcode. >> >> However in the "Test Target" menu of LC we only see one generic "iPhone >> Simulator 15.2" resp. "iPad Simulator 15.2". >> >> Is there a way to select one of the open simulators directly? >> Know what I mean? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Wed Aug 10 13:23:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Aug 2022 12:23:57 -0500 Subject: iPhone simulators In-Reply-To: References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> Message-ID: <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 10, 2022 11:39:54 AM Klaus major-k via use-livecode > > Does not seem possible in the moment... > Looks like only the first opened simulator is being addressed by LC. From klaus at major-k.de Wed Aug 10 13:30:55 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 10 Aug 2022 19:30:55 +0200 Subject: iPhone simulators In-Reply-To: <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> Hi Jaques, > Am 10.08.2022 um 19:23 schrieb J. Landman Gay via use-livecode : > > If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. yep, came to the same conclusion. A good candidate for an "enhancement request". :-) > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 10, 2022 11:39:54 AM Klaus major-k via use-livecode >> >> Does not seem possible in the moment... >> Looks like only the first opened simulator is being addressed by LC. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Wed Aug 10 13:56:20 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 10 Aug 2022 13:56:20 -0400 Subject: Getting the visible rect of a stack with fullscreenmode "showall" In-Reply-To: References: Message-ID: <102727ED-63C1-4F6D-B0DC-3C0B008E6A2E@milby7.com> The handler you probably need to look at is in card 1002 (index) called setBackground (line 104). The effective working screenrect is going to report device pixels. To actually know the relative rect from the card’s perspective you have to translate to the card coordinates. I may not have used the most efficient method, but you should be able to follow it. Thanks, Brian Sent from my iPhone > On Aug 10, 2022, at 12:08 PM, Klaus major-k via use-livecode wrote: > > Hi Bob, > >> Am 10.08.2022 um 18:04 schrieb Bob Sneidar via use-livecode : >> >> Wait, there is a more effectiver working screenrect than the effective one?? ;-P > > yes, but it is R-rated! 8-) > >> Bob S >> >>>> On Aug 10, 2022, at 08:44 , Klaus major-k via use-livecode wrote: >>> ah, yes, "the effectiver working screenrect"! 8-) > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 10 16:14:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Aug 2022 15:14:44 -0500 Subject: Windows standalone settings Message-ID: Does anyone still build for Windows x86 or is x86-64 sufficient now? Also, what UAC execution level do you set? Default, highest avialable, etc.? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Aug 10 16:23:45 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 16:23:45 -0400 Subject: Windows standalone settings In-Reply-To: References: Message-ID: <5849fd1e-665f-5089-118c-1cd11079909c@researchware.com> On 8/10/2022 4:14 PM, J. Landman Gay via use-livecode wrote: > Does anyone still build for Windows x86 or is x86-64 sufficient now? > > Also, what UAC execution level do you set? Default, highest avialable, > etc.? > I still build for 32 bit windows as it still works and is the lowest common denominator - it works on all windows systems. I leave the UAC at Default for our apps but Admin for our Installer (built in Livecode like our apps) From paul at researchware.com Wed Aug 10 16:27:26 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 16:27:26 -0400 Subject: Datagrid internal error In-Reply-To: <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> Message-ID: <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> I'm sorry, I don;t see what setting the dgData or dgText or dgNuberofRecords has to do with my original post - I get an internal Datagird script error when setting the names of the columns (see original post) On 8/10/2022 11:11 AM, Bob Sneidar via use-livecode wrote: > I was referring to dgNumberOfRecords > > get the dgNumberOfRecords > set the dgNumberOfRecords of group "DataGrid" to 20 > Getting the dgNumberOfRecords is the same as getting the dgNumberOfLines. Setting the dgNumberOfRecords has a special significance however. If you set the dgNumberOfRecords then you are telling the data grid that you know how many total records there are and you are going to supply the data for each record on an as-needed basis. This is useful when you have data in a database cursor that you would like to feed into the data grid. > After setting this property the data grid will send the GetDataForLine message to the data grid whenever it needs to display data for a particular line. You can define this command in the data grid script or elsewhere in the hierarchy. The definition is as follows: > > command GetDataForLine pLine, @pDataA > > end GetDataForLine > > You should fill pDataA with the appropriate data based on the line of data being requested. pDataA should not have a numeric index. It is the array that would be assigned to one of the numeric indexes if you were assigning the dgData property. > > Bob S > > >> On Aug 10, 2022, at 06:51 , Craig Newman via use-livecode wrote: >> >> This seems like a fragment of a longer thread, but the dgText and the dgData are the two methods I use to extract, process and reload the content of a data grid. >> >> Craig >> >>> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode wrote: >>> >>> I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. >>> >>> Bob S >>> >>> >>>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode wrote: >>>> >>>> I can only image that the customer entered a name with some characters that Datagrid has a problem with as a column name OR that the shear number of columns (as the customer is working with a very large dataset) exceeds some practical Datagrid limit, but what would that be? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at canelasoftware.com Wed Aug 10 16:41:48 2022 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 10 Aug 2022 13:41:48 -0700 Subject: [ANN] Release 9.6.9 RC-1 In-Reply-To: References: Message-ID: > On Aug 10, 2022, at 9:11 AM, panagiotis merakos via use-livecode wrote: > > Dear list members, > > We are pleased to announce the release of LiveCode 9.6.9 RC-1. > > LiveCode 9.6.9 RC-1 comes with more than 30 bugfixes, including support for > Android API 31, which is now a requirement for submitting new apps to the > Google Play Store. > > You can find more details on the bug fixes and improvements of this new > release here: > > https://livecode.com/android-api-31-support/ > > Note: This maintenance pre-release will break from convention slightly in > that there will definitely be an RC-2 with further bug fixes. This RC-1 > release is being made due to the change in API level requirement for the > Play Store recently made by Google. > > You can find the release in your LiveCode account area or get it via the > automatic updater. > > Enjoy! > > Kind regards > The LiveCode Team Thank you for this update. Best regards, Mark Talluto appli.io livecloud.io nursenotes.net canelasoftware.com From bobsneidar at iotecdigital.com Wed Aug 10 16:57:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 20:57:18 +0000 Subject: Datagrid internal error In-Reply-To: <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> Message-ID: Well the question came up if there was some limit on the number of records, and controlling the population of the datagrid would solve that. As far as the number of columns, I suspect there may be a limit on the number of *displayed* columns, and probably an issue with what characters are allowed for column names. Those things I am unsure of. Is it necessary to display *all* the data in the array, or can you use the datagrid as a sort of index to an array that is in memory, only populating the columns you need? The datagrid library is not protected, so if your app in the IDE throws an error and drops you into the datagrid library script in the debugger (mine does), then you can poke around in the debugger to see where things are going awry. Bob S > On Aug 10, 2022, at 13:27 , Paul Dupuis via use-livecode wrote: > > I'm sorry, I don;t see what setting the dgData or dgText or dgNuberofRecords has to do with my original post - I get an internal Datagird script error when setting the names of the columns (see original post) From craig at starfirelighting.com Wed Aug 10 16:57:23 2022 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 10 Aug 2022 16:57:23 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> Message-ID: Paul. All I saw was this: "I believe there is a property you set, after which you programmatically control the population of the datagrid. I am in a hurry so I can't look it up right now, but it is in the datagrid API in livecode lessons. Which is why I mentioned that the bulk of the thread must not have come to me. Craig From bobsneidar at iotecdigital.com Wed Aug 10 16:58:53 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Aug 2022 20:58:53 +0000 Subject: Windows standalone settings In-Reply-To: References: Message-ID: I do only because I have a special case where I grabbled a 32 bit windows PC to serve mySQL and Spiceworks, and to host my SQL Socket Agent. Bob S > On Aug 10, 2022, at 13:14 , J. Landman Gay via use-livecode wrote: > > Does anyone still build for Windows x86 or is x86-64 sufficient now? > > Also, what UAC execution level do you set? Default, highest avialable, etc.? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Wed Aug 10 17:02:43 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 10 Aug 2022 16:02:43 -0500 Subject: Datagrid internal error In-Reply-To: <005401d8ab4d$bbd48c10$337da430$@net> References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: 32,767 is the max for width as well. If there are enough columns it is possible that the DataGrid is rendering a group that exceeds this limit and hence the error. The DataGrid works around the limit when rendering rows, but not when rendering columns. I suppose a quick test would be to create a DataGrid with 330 columns that are at least 100 pixels wide and see if you get the same error. -- Trevor DeVore ScreenSteps On Mon, Aug 8, 2022 at 12:36 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Paul, > > The max height of a field is 32,767 pixels. This can be hard to quantify > especially on mobile with the cornucopia of screen resolutions. I would > imagine that this limit also applies to groups as well. I got bit on this > when the app worked in the IDE but failed on some devices. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of Paul Dupuis via use-livecode > Sent: Monday, August 08, 2022 12:39 PM > To: use-livecode at lists.runrev.com > Cc: Paul Dupuis > Subject: Re: Datagrid internal error > > On 8/8/2022 12:26 PM, Paul Dupuis via use-livecode wrote: > > A customer encountered the following execution error (below) in our > > app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in > > the scrips for the Datagrid itself, rather than our code. At the end, > > it is one of our handler, "populateMe", where line 139 is where the > > error starts. > > Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to > > tColumnNames > > > > For example, some information from the customer suggest they are working > with a VERY large dataset, so the length of the list in TColumnNames could > be quit long - perhaps hundreds of lines. Is there a practical limit on the > number of columns a Datagrid can be set to? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Wed Aug 10 17:14:44 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 17:14:44 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <0B74C5FE-37CF-4858-A029-E7CE5D65A8AE@iotecdigital.com> <11c91d2d-6351-1459-7087-cd0d07061343@researchware.com> <499C9C03-5553-4B85-9386-F3BB2D571859@iotecdigital.com> <84758463-64dd-324b-9cf0-511cfe09ef0a@researchware.com> Message-ID: <33771d06-f7ea-8b67-f7e0-22a841b52c70@researchware.com> I do appreciate the responses. My question was not about the number of records, but about the number of COLUMNS and whether there is any practical or known limit. When my code is setting the column names, that list comes from customer entered data. I know that each name is less than 255 characters and restricts entry of certain characters (previously listed) such as comma, [ ], etc. How many names is unknown. In this specific case of the error I reported, the customer is not in a position to be able to help much (if at all). Since it is customer data dependent, we are not able to reproduce the error in the IDE. SO my very specific questions was: Has any one seen an error like the one I reported (copied again below) OR know of any issues/limits when setting the dgProp["columns"] property of a Datagrid? A customer encountered the following execution error (below) in our app (built on Livecode 9.6.7, MacOS 12.5). This error is occurring in the scripts for the Datagrid itself, rather than our code. At the end, it is one of our handler, "populateMe", where line 139 is where the error starts. Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumnNames when the error occurs, does ANYONE have any idea what tColumnNames might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From paul at researchware.com Wed Aug 10 17:15:25 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Aug 2022 17:15:25 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: <21ce9be5-0360-1ca5-5135-efc26d37016c@researchware.com> On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote: > 32,767 is the max for width as well. If there are enough columns it is > possible that the DataGrid is rendering a group that exceeds this limit and > hence the error. The DataGrid works around the limit when rendering rows, > but not when rendering columns. > > I suppose a quick test would be to create a DataGrid with 330 columns that > are at least 100 pixels wide and see if you get the same error. > Thank you! From sean at pidigital.co.uk Wed Aug 10 23:45:22 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 11 Aug 2022 04:45:22 +0100 Subject: Email via IMAP with HTML body from a template Message-ID: Hi all, I'm struggling with this still. It's been years (since before Dec 2020) and I just can't get my head around it. I have a template created in Dreamweaver that is a simple bit of HTML body with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). There is also a pdf that needs to be attached. How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via tsNetSmtpSync? There are zero tutorials and the dictionary is devoid of any useful information on how to use it. Google turned up nothing. In my previous request back in 2020, Monte, the author of the MIME library, had only referred me on to the RSC docs for MIME which is like looking for a straw in a needle stack. When I asked at one of the 'Firesides' I was told just to use a template and send it. But to send it, it needs to be encoded and that's the bit that is undocumented anywhere. Any help appreciated. From tom at makeshyft.com Thu Aug 11 00:38:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 00:38:10 -0400 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Sean, Try this .. edit the script of stack "com.livecode.library.mime" there seems to be some documentation there that may help. I also found this https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument Is that your comment? :) Hope that helps a bit. On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > I'm struggling with this still. It's been years (since before Dec 2020) and > I just can't get my head around it. > > I have a template created in Dreamweaver that is a simple bit of HTML body > with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). > There is also a pdf that needs to be attached. > > How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via > tsNetSmtpSync? > > There are zero tutorials and the dictionary is devoid of any useful > information on how to use it. Google turned up nothing. In my previous > request back in 2020, Monte, the author of the MIME library, had only > referred me on to the RSC docs for MIME which is like looking for a straw > in a needle stack. When I asked at one of the 'Firesides' I was told just > to use a template and send it. But to send it, it needs to be encoded and > that's the bit that is undocumented anywhere. > > Any help appreciated. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Thu Aug 11 01:11:38 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 11 Aug 2022 06:11:38 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Hi Tom, The doc in the script is the same that comes up in the dictionary. No help when it comes to actually following a series of instructions that are needed to send an HTML email via tsNetSmtpSync. Basically, it only tells you the syntax, but with no help on even a few of the necessary parameters you would need to use to make proper use of it. It's like being handed the space shuttle and told "there you are, work it out for yourself"! That is my comment on Fandom. The same I asked of Monte. Neither he nor anyone else wants to answer those questions it would seem. pContentA: How do we pre-encode parts including headers? pMultipartType: What MultiPart types are there? pParamA: What kind of parameters does ParamA take? The formatting we get from converting a field to mime (MimeEncodeFieldAsMimeMultipartDocument - a ridiculously long command name btw) is horrendous. It's practically unusable, hence why I NEED to find a way to send HTML by email on behalf of our clients. On Thu, 11 Aug 2022 at 05:38, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Sean, > > Try this .. > > edit the script of stack "com.livecode.library.mime" > > there seems to be some documentation there that may help. > > I also found this > > https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument > > Is that your comment? :) > > Hope that helps a bit. > > > > On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi all, > > > > I'm struggling with this still. It's been years (since before Dec 2020) > and > > I just can't get my head around it. > > > > I have a template created in Dreamweaver that is a simple bit of HTML > body > > with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). > > There is also a pdf that needs to be attached. > > > > How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send > via > > tsNetSmtpSync? > > > > There are zero tutorials and the dictionary is devoid of any useful > > information on how to use it. Google turned up nothing. In my previous > > request back in 2020, Monte, the author of the MIME library, had only > > referred me on to the RSC docs for MIME which is like looking for a straw > > in a needle stack. When I asked at one of the 'Firesides' I was told just > > to use a template and send it. But to send it, it needs to be encoded and > > that's the bit that is undocumented anywhere. > > > > Any help appreciated. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at techstrategies.com.au Thu Aug 11 01:45:09 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 15:45:09 +1000 Subject: Email via IMAP with HTML body from a template Message-ID: Hi Sean, There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode Does that help at all, Regards, Charles > On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: > > Sean, > > Try this .. > > edit the script of stack "com.livecode.library.mime" > > there seems to be some documentation there that may help. > > I also found this > > https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument > > Is that your comment? :) > > Hope that helps a bit. > > > >> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> Hi all, >> I'm struggling with this still. It's been years (since before Dec 2020) and >> I just can't get my head around it. >> I have a template created in Dreamweaver that is a simple bit of HTML body >> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >> There is also a pdf that needs to be attached. >> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >> tsNetSmtpSync? >> There are zero tutorials and the dictionary is devoid of any useful >> information on how to use it. Google turned up nothing. In my previous >> request back in 2020, Monte, the author of the MIME library, had only >> referred me on to the RSC docs for MIME which is like looking for a straw >> in a needle stack. When I asked at one of the 'Firesides' I was told just >> to use a template and send it. But to send it, it needs to be encoded and >> that's the bit that is undocumented anywhere. >> Any help appreciated. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Aug 11 02:10:08 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 07:10:08 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: Hi Charles I know how to add an attachment because there are tutorials on this. That is already being implemented. My question is on how to add in proper html body for the content. Does your stack show how to do that? Sean > On 11 Aug 2022, at 06:45, Charles Warwick via use-livecode wrote: > > Hi Sean, > > There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: > > https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode > > Does that help at all, > > Regards, > > Charles From charles at techstrategies.com.au Thu Aug 11 02:16:03 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 16:16:03 +1000 Subject: Email via IMAP with HTML body from a template In-Reply-To: References: Message-ID: <0C99BEF1-2C2C-4583-8E74-B6AFA0803E6E@techstrategies.com.au> Hi Sean, After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody With something like this: put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain put “” into tBodyPlain put tHeadersPlain & crlf & crlf & \ mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML put “” into tBodyHTML put tHeadersHTML & crlf & crlf & \ mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) Hope that helps, Regards, Charles > On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: > > Hi Sean, > > There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: > > https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode > > Does that help at all, > > Regards, > > Charles > >> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >> >> Sean, >> >> Try this .. >> >> edit the script of stack "com.livecode.library.mime" >> >> there seems to be some documentation there that may help. >> >> I also found this >> >> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >> >> Is that your comment? :) >> >> Hope that helps a bit. >> >> >> >>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> Hi all, >>> I'm struggling with this still. It's been years (since before Dec 2020) and >>> I just can't get my head around it. >>> I have a template created in Dreamweaver that is a simple bit of HTML body >>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>> There is also a pdf that needs to be attached. >>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>> tsNetSmtpSync? >>> There are zero tutorials and the dictionary is devoid of any useful >>> information on how to use it. Google turned up nothing. In my previous >>> request back in 2020, Monte, the author of the MIME library, had only >>> referred me on to the RSC docs for MIME which is like looking for a straw >>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>> to use a template and send it. But to send it, it needs to be encoded and >>> that's the bit that is undocumented anywhere. >>> Any help appreciated. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Thu Aug 11 02:23:44 2022 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 11 Aug 2022 16:23:44 +1000 Subject: Email via IMAP with HTML body from a template Message-ID: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Sorry, the last line of the replacement code should have been: put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody (It was missing the "into tBody" at the end of the line) > On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: > > Hi Sean, > > After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. > > If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: > > put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody > > With something like this: > > put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain > put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain > put “” into tBodyPlain > put tHeadersPlain & crlf & crlf & \ > mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] > > put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML > put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML > put “” into tBodyHTML > put tHeadersHTML & crlf & crlf & \ > mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) > > Hope that helps, > > Regards, > > Charles > >> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >> Hi Sean, >> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >> Does that help at all, >> Regards, >> Charles >>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>> Sean, >>> Try this .. >>> edit the script of stack "com.livecode.library.mime" >>> there seems to be some documentation there that may help. >>> I also found this >>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>> Is that your comment? :) >>> Hope that helps a bit. >>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> Hi all, >>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>> I just can't get my head around it. >>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>> There is also a pdf that needs to be attached. >>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>> tsNetSmtpSync? >>>> There are zero tutorials and the dictionary is devoid of any useful >>>> information on how to use it. Google turned up nothing. In my previous >>>> request back in 2020, Monte, the author of the MIME library, had only >>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>> to use a template and send it. But to send it, it needs to be encoded and >>>> that's the bit that is undocumented anywhere. >>>> Any help appreciated. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 06:08:28 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:08:28 +0200 Subject: iPhone simulators In-Reply-To: <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> References: <700D60BB-911D-499B-8BD9-6BC7A7442A78@major-k.de> <18288c8cbc8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <07EC9DFE-FB02-457A-A79C-1AE689BEEBB3@major-k.de> Message-ID: <53B76442-2D0D-4D2E-B1CC-6F251935A242@major-k.de> Hi all, > Am 10.08.2022 um 19:30 schrieb Klaus major-k via use-livecode : > > Hi Jaques, > >> Am 10.08.2022 um 19:23 schrieb J. Landman Gay via use-livecode : >> If I remember right you can have an iPhone and an iPad simulator open at the same time and choose between them, but if you want two of the same type then it doesn't work. > yep, came to the same conclusion. A good candidate for an "enhancement request". :-) and done: Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 06:30:11 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:30:11 +0200 Subject: Fail to test new stack on Android device Message-ID: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Hi all, I just tested an older stack on my Android device, everything is fine. Then I created a new stack for a little stack and always get this error when selecting "Test" in the LC dev menu. Only script in that stack: ------------------------ on preopenstack set the fullscreenmode of this stack to "showall" end preopenstack ## And a button: on mouseUp ## Need to know if that is returning anything or giving an error or whatever... answer iphonesafeareainsets() end mouseUp ------------------------ If I switch back to the other stack, I can upload and test, but not with this new stack!? Any hints? Thanks! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 06:39:18 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 12:39:18 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Message-ID: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> > Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : > > Hi all, > > I just tested an older stack on my Android device, everything is fine. > Then I created a new stack for a little stack and always get this error > when selecting "Test" in the LC dev menu. > > > Only script in that stack: > ------------------------ > on preopenstack > set the fullscreenmode of this stack to "showall" > end preopenstack > > ## And a button: > on mouseUp > ## Need to know if that is returning anything or giving an error or whatever... > answer iphonesafeareainsets() > end mouseUp > ------------------------ > If I switch back to the other stack, I can upload and test, but not with this new stack!? > > Any hints? Thanks! of course everyting is set up correctly in the "Stanalone Application Settings"! -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Thu Aug 11 07:30:45 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Aug 2022 07:30:45 -0400 Subject: Fail to test new stack on Android device In-Reply-To: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> References: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> Message-ID: <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> Change the app name or version string info. You have an app with the same name and an earlier version already on the device. Sent from my iPhone > On Aug 11, 2022, at 6:39 AM, Klaus major-k via use-livecode wrote: > >  > >> Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : >> >> Hi all, >> >> I just tested an older stack on my Android device, everything is fine. >> Then I created a new stack for a little stack and always get this error >> when selecting "Test" in the LC dev menu. >> >> >> Only script in that stack: >> ------------------------ >> on preopenstack >> set the fullscreenmode of this stack to "showall" >> end preopenstack >> >> ## And a button: >> on mouseUp >> ## Need to know if that is returning anything or giving an error or whatever... >> answer iphonesafeareainsets() >> end mouseUp >> ------------------------ >> If I switch back to the other stack, I can upload and test, but not with this new stack!? >> >> Any hints? Thanks! > > of course everyting is set up correctly in the "Stanalone Application Settings"! > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 08:14:56 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:14:56 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> References: <40D487EA-018C-48DD-81CA-80E11EC12042@major-k.de> <0346CE66-3B95-42C7-AE27-D0AE9E419855@milby7.com> Message-ID: <7B6A1003-2782-41CA-B459-8522FCC32F92@major-k.de> Hi Brian, > Am 11.08.2022 um 13:30 schrieb Brian Milby via use-livecode : > > Change the app name or version string info. You have an app with the same name and an earlier version already on the device. thanks, will try that! > Sent from my iPhone > >> On Aug 11, 2022, at 6:39 AM, Klaus major-k via use-livecode wrote: >> Am 11.08.2022 um 12:30 schrieb Klaus major-k via use-livecode : >>> >>> Hi all, >>> >>> I just tested an older stack on my Android device, everything is fine. >>> Then I created a new stack for a little stack and always get this error >>> when selecting "Test" in the LC dev menu. >>> >>> ... Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 08:44:31 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:44:31 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: Hi all, > Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode : > > Hi friends, > > quick question, cannot test it myself in the moment. > > Will -> iPhoneSafeAreaInsets() > a. work or > b. throw an error when being used on Android? > > If a. I presume it will return "the screenrect" without any "notches". > Does it? > > If b. then I will to check "if the platform = "iphone"..." > > Thanks for any quick answer! FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. Will file an enhancement request that is will return at least the screenrect on Android, so there is no need for a PLATFORM check. We already need too much of them. 8-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Aug 11 08:48:34 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 14:48:34 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <990DA21D-3D55-4BF4-9D9E-3059695FBBC6@major-k.de> Hi all, > Am 11.08.2022 um 14:44 schrieb Klaus major-k via use-livecode : > Hi all, >> Am 15.07.2022 um 13:14 schrieb Klaus major-k via use-livecode : >> Hi friends, >> quick question, cannot test it myself in the moment. >> Will -> iPhoneSafeAreaInsets() >> a. work or >> b. throw an error when being used on Android? >> If a. I presume it will return "the screenrect" without any "notches". >> Does it? >> If b. then I will to check "if the platform = "iphone"..." >> Thanks for any quick answer! > FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. > Will file an enhancement request that is will return at least the screenrect on Android, > so there is no need for a PLATFORM check. and done: Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Thu Aug 11 11:16:58 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 11:16:58 -0400 Subject: Livecode SQLite Message-ID: Hi Folks, I have a question about Livecode's SQLite implementation. Looking at the official SQLite specs there seem to be json related functions. https://www.sqlite.org/json1.html but none of them seem to work using Livecode's driver. I was under the impression we had a full implementation I was interested in implementing a relatively new feature where you can index and query json documents and read the keys directly. https://dgl.cx/2020/06/sqlite-json-support I guess, if this is true, is there any documentation about which features of sqlite are implemented and which are not? TIA, -- Tom Glod From bobsneidar at iotecdigital.com Thu Aug 11 11:27:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 15:27:21 +0000 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? I see that your goal is to try and avoid platform checks, but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. Just my ignorant 2¢ Bob S > On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode wrote: > > iPhoneSafeAreaInsets() returns EMPTY on Android From bobsneidar at iotecdigital.com Thu Aug 11 11:32:10 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 15:32:10 +0000 Subject: Email via IMAP with HTML body from a template In-Reply-To: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> References: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Message-ID: I have to say, I've learned more about programming just from being a member of this list, than any book on the suject. Admittedly, I've read very few, as is manifestly evident when going back and re-reading my code. :-) Bob S > On Aug 10, 2022, at 23:23 , Charles Warwick via use-livecode wrote: > > Sorry, the last line of the replacement code should have been: > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody > > (It was missing the "into tBody" at the end of the line) > >> On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: >> >> Hi Sean, >> >> After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. >> >> If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: >> >> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody >> >> With something like this: >> >> put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain >> put “” into tBodyPlain >> put tHeadersPlain & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] >> >> put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML >> put “” into tBodyHTML >> put tHeadersHTML & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] >> >> put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) >> >> Hope that helps, >> >> Regards, >> >> Charles >> >>> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >>> Hi Sean, >>> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >>> Does that help at all, >>> Regards, >>> Charles >>>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>>> Sean, >>>> Try this .. >>>> edit the script of stack "com.livecode.library.mime" >>>> there seems to be some documentation there that may help. >>>> I also found this >>>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>>> Is that your comment? :) >>>> Hope that helps a bit. >>>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi all, >>>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>>> I just can't get my head around it. >>>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>>> There is also a pdf that needs to be attached. >>>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>>> tsNetSmtpSync? >>>>> There are zero tutorials and the dictionary is devoid of any useful >>>>> information on how to use it. Google turned up nothing. In my previous >>>>> request back in 2020, Monte, the author of the MIME library, had only >>>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>>> to use a template and send it. But to send it, it needs to be encoded and >>>>> that's the bit that is undocumented anywhere. >>>>> Any help appreciated. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 11:35:45 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 17:35:45 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> References: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> Message-ID: <4D3B1C7A-D04A-4B0D-A6A1-BD071899EBA8@major-k.de> Hi Bob, > Am 11.08.2022 um 17:27 schrieb Bob Sneidar via use-livecode : > > It seems to me, someone who has done zero mobile development, that this function has no meaning on an android, and should therefore return empty to avoid unanticipated runtime errors. There should be however a function to get the screen rects of an android. Does the effective working screenrect do it for you? Sure, but that is not the problem. > I see that your goal is to try and avoid platform checks, Yep, that is the goal, lazy moi! :-) > but iOS and Android seem to be such diverse OS platforms that checks are unavoidable. There are a TON of commands and functions beginning with iPhone. Yes, and I still naively think that the IDE should just ignore these, so "if the platform = "mobile..." would not be neccessary anymore. 8-) > I stopped counting at 30 and I wasn't half way through. If all of these functions are to equivalent values for the Android OS, we'd be waiting 5 years for the enhancements. > Just my ignorant 2¢ > > Bob S > > iPhoneSafeAreaInsets() returns EMPTY on Android Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From sean at pidigital.co.uk Thu Aug 11 11:36:56 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 16:36:56 +0100 Subject: Livecode SQLite In-Reply-To: References: Message-ID: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> How was you accessing the database? Is it locally based? The ones I access are stored on a web host server with a cPanel. I have my own php I POST my sql request to and receive JSON back. I then use JSONtoArray or, recommended, JsonImport encapsulated in a ‘try’ structure to convert the data. To tell the database to respond with json is not done at the LC end but must either be set up in the DB itself or, as in my case, whatever is the medium for the data, PHP for me. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 11 Aug 2022, at 16:16, Tom Glod via use-livecode wrote: > > Hi Folks, > > I have a question about Livecode's SQLite implementation. > > Looking at the official SQLite specs there seem to be json related > functions. > > https://www.sqlite.org/json1.html > > but none of them seem to work using Livecode's driver. > I was under the impression we had a full implementation > > I was interested in implementing a relatively new feature where you can > index and query json documents and read the keys directly. > > https://dgl.cx/2020/06/sqlite-json-support > > I guess, if this is true, is there any documentation about which features > of sqlite are implemented and which are not? > > TIA, > -- > Tom Glod > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Aug 11 11:38:36 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 11 Aug 2022 16:38:36 +0100 Subject: Email via IMAP with HTML body from a template In-Reply-To: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> References: <946CE30C-C30E-41EB-B407-8A896FC9508D@techstrategies.com.au> Message-ID: <26CAE311-2EED-4580-9E55-F42F491E51AE@pidigital.co.uk> Thanks Charles I think that’s going to work. I’m going to do some testing and let you know how I get on. Sean > On 11 Aug 2022, at 07:23, Charles Warwick via use-livecode wrote: > > Sorry, the last line of the replacement code should have been: > > put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) into tBody > > (It was missing the "into tBody" at the end of the line) > >> On 11 Aug 2022, at 4:17 pm, Charles Warwick wrote: >> >> Hi Sean, >> >> After reading your second e-mail, I see that you don't want to use mimeEncodeFieldAsMIMEMultipartDocument to generate the HTML version of the e-mail body from a field as it does in that sample stack. >> >> If you want to create your own HTML and plain text versions of the e-mail body, you can still use that sample stack. Simply replace the following line: >> >> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody >> >> With something like this: >> >> put “Content-Type: text/plain; charset=UTF-8” & crlf into tHeadersPlain >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersPlain >> put “” into tBodyPlain >> put tHeadersPlain & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyPlain, “quoted-printable”) into tContent[1] >> >> put “Content-Type: text/html; charset=UTF-8” & crlf into tHeadersHTML >> put “Content-Transfer-Encoding: quoted-printable” after tHeadersHTML >> put “” into tBodyHTML >> put tHeadersHTML & crlf & crlf & \ >> mimeEncodeForMIMETransfer(tBodyHTML, “quoted-printable”) into tContent[2] >> >> put mimeEncodeAsMIMEMultipartDocument(tContent, “alernative”) >> >> Hope that helps, >> >> Regards, >> >> Charles >> >>>> On 11 Aug 2022, at 3:46 pm, Charles Warwick wrote: >>> Hi Sean, >>> There is a sample stack on my website for sending an e-mail with an attachment using the MIME library here: >>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode >>> Does that help at all, >>> Regards, >>> Charles >>>>> On 11 Aug 2022, at 2:39 pm, Tom Glod via use-livecode wrote: >>>> Sean, >>>> Try this .. >>>> edit the script of stack "com.livecode.library.mime" >>>> there seems to be some documentation there that may help. >>>> I also found this >>>> https://livecode.fandom.com/wiki/MimeEncodeAsMIMEMultipartDocument >>>> Is that your comment? :) >>>> Hope that helps a bit. >>>>> On Wed, Aug 10, 2022 at 11:46 PM Sean Cole via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi all, >>>>> I'm struggling with this still. It's been years (since before Dec 2020) and >>>>> I just can't get my head around it. >>>>> I have a template created in Dreamweaver that is a simple bit of HTML body >>>>> with CSS styling embedded (https://pidigital.co.uk/DeepDiveReport.html). >>>>> There is also a pdf that needs to be attached. >>>>> How do I use MimeEncodeAsMIMEMultipartDocument to make it ready to send via >>>>> tsNetSmtpSync? >>>>> There are zero tutorials and the dictionary is devoid of any useful >>>>> information on how to use it. Google turned up nothing. In my previous >>>>> request back in 2020, Monte, the author of the MIME library, had only >>>>> referred me on to the RSC docs for MIME which is like looking for a straw >>>>> in a needle stack. When I asked at one of the 'Firesides' I was told just >>>>> to use a template and send it. But to send it, it needs to be encoded and >>>>> that's the bit that is undocumented anywhere. >>>>> Any help appreciated. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 11 11:57:05 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 11 Aug 2022 11:57:05 -0400 Subject: Datagrid internal error In-Reply-To: References: <2981919d-4756-8d31-0a95-d28fdca6b445@researchware.com> <60e95862-61d7-4a07-2423-b77b10afc68f@researchware.com> <005401d8ab4d$bbd48c10$337da430$@net> Message-ID: <5bbd8550-1ec3-9706-d6a8-38c7e0baf060@researchware.com> On 8/10/2022 5:02 PM, Trevor DeVore via use-livecode wrote: > 32,767 is the max for width as well. If there are enough columns it is > possible that the DataGrid is rendering a group that exceeds this limit and > hence the error. The DataGrid works around the limit when rendering rows, > but not when rendering columns. > > I suppose a quick test would be to create a DataGrid with 330 columns that > are at least 100 pixels wide and see if you get the same error. > So I created 2 test stacks with a Datagrid and a button to set the number of columns and populate a row of data. One stack I did in Livecode 4.6.4 (the oldest I have) and one I built in Livecode 9.6.8 to see if there were differences in the handling of the error condition between versions of the Datagrid object. [Note: Some of the Datagrids in our app are from LC 4.6.4 and we've never removed them and replaced them with newer versions and I don't believe Livecode does anything to automatically update the Datagrid objects in an old stack when opened in a new version of Livecode] Under LC464, trying to create a number of columns with default widths that would exceed the 32,767 pixel width limit of the group object (using 330 columns with a default width of 100px or 33,000 pixels) produces: 1) A blank header (no columns) 2) Visible column for data, where only the visible columns of the first row (8 columns) are populated with data and when you scroll to the right, all remaining column of the 1st row of data are empty. The grid is scrollable horizontally to what looks to be around 320-330 columns. Using 320 columns, works as expected. 325 works; 327 works. 328 only produces 327 columns in the header with 327 values for data in the first row. 329 produces a header with 329 columns and no data is rendered in the 1st row. Under LC968, the LC968 test version of this with 330 columns produces: 1) Columns headers 1 to 8 (the header that are the visible width of the Datagrid) 2) No data is rendered and the grid is not scrollable. Using 320 columns, works as expected. 325 works. 327 works. 328 produces 327 columns in the header and no data in the first row. 329 is the same as 330 (only 8 visible column headers and no data and no scrolling). So, the results are subtly different from Datagrids from LC4.6.4 and Datagrids from LC9.6.8, but both fail to do what a user would expect without any visible errors. However, having the number of columns exceed the width of a Livecode group object in pixels does not seem to be the source of the error I am trying to track down which was: Line 139 set the dgProp["columns"] of grp "rwMatrixObj_DataGrid" to tColumnNames tColumnNames is a variable containing a list of text lines that are customer entered column names, so they could be ANYTHING (up to 255 chars, no control characters, including DEL (127)) that a user could type or paste into a field, including words in any language using Unicode. As the executionContexts data does not contain the actual values of the variable tColumnNames when the error occurs AND (for reasons) I can not get the data from the customer, does ANYONE have any idea what tColumnNames might contain that could produce the error(s) show below? Technical information: Property: value is not a number: (Line 11, column 1) Object: can't set object property: (Line 11, column 5) set: can't set property: (Line 11, column 1) Handler: error in statement: LayoutControl (Line 11, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDefaultHeaderButtonBehavior" - repeat: error in statement: (Line 5066, column 1) Handler: error in statement: _table.ResizeHeaders (Line 5052, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.ResizeColumns (Line 4967, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.CreateColumns (Line 4737, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - Handler: error in statement: _table.RegenerateColumns (Line 4538, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - switch: error in statement: (Line 6150, column 1) Handler: error in statement: dgProps (Line 5553, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 5529, column 1) Handler: error in statement: dgProp (Line 5529, column 1) Object ID: stack "RevDataGridLibraryBehaviorsDataGridButtonBehavior" - set: can't set property: (Line 139, column 1) if-then: error in statement: (Line 139, column 1) Handler: error in statement: populateMe (Line 138, column 1) Object: group "Table" of card "FrequencyReport" of stack "FreqReport.rwtl" Object ID: group id 1162 of card id 1002 of stack "/Applications/HyperRESEARCH 4.5.4/Components/Tools/FreqReport.rwtl" From jacque at hyperactivesw.com Thu Aug 11 12:22:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 11:22:53 -0500 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> References: <83E72EFC-F56E-4464-95C7-2B8C030383AB@iotecdigital.com> Message-ID: <1828db73f48.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Actually some Android phones have notches to imitate iPhones when Apple first introduced that. It wasn't very popular and most Android phones now use punch holes, but those also take up a bit of space, though not much. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 11, 2022 10:29:29 AM Bob Sneidar via use-livecode wrote: > It seems to me, someone who has done zero mobile development, that this > function has no meaning on an android, and should therefore return empty to > avoid unanticipated runtime errors. > > There should be however a function to get the screen rects of an android. > Does the effective working screenrect do it for you? > > I see that your goal is to try and avoid platform checks, but iOS and > Android seem to be such diverse OS platforms that checks are unavoidable. > There are a TON of commands and functions beginning with iPhone. I stopped > counting at 30 and I wasn't half way through. If all of these functions are > to equivalent values for the Android OS, we'd be waiting 5 years for the > enhancements. > > Just my ignorant 2 > > Bob S > > >> On Aug 11, 2022, at 05:44 , Klaus major-k via use-livecode >> wrote: >> >> iPhoneSafeAreaInsets() returns EMPTY on Android > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 11 12:23:48 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 11 Aug 2022 12:23:48 -0400 Subject: Datagrid and new Summer Bundle table/grid widgets Message-ID: <0e08a5fa-d55b-15cd-d576-9654ddc9119c@researchware.com> To anyone with the Summer Bundle: The Datagrid object has a practical limit on the number of columns that I just reported as https://quality.livecode.com/show_bug.cgi?id=23875 (about 327 columns at a default column width of 100px due to the Group objects 32767px width limit) Do any of the table/grid widgets in the Summer Bundle allow going beyond this limit? Could someone with a Summer Bundle please test the table/grid widgets. I have included the script I populate the column names and a first row of data in a Datagrid with below. I'd just like to know whether any of the new table widgets can exceed thsi Datagrid limit. Thank you to anyone who can spare the time to test in advance. on mouseUp pMouseButton   local tColumnNames, tArray   ask "Number of columns?"   if it is empty then exit mouseUp   --   repeat with i=1 to it     set cursor to busy     put "Column"&&i into tColumnName     put tColumnName into line i of tColumnNames     put i into tArray[1][tColumnName]   end repeat   --   set cursor to watch   set the dgData of group "Table" to tArray -- replace this line and the nest with code for the new widget   set the dgProp["columns"] of group "Table" to tColumnNames   beep 3 end mouseUp From jacque at hyperactivesw.com Thu Aug 11 12:42:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 11:42:44 -0500 Subject: Fail to test new stack on Android device In-Reply-To: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> Message-ID: <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Brian was right, but it's the build number that matters rather than the version number. You can either increase it, or delete the existing app on the phone before installing the other one. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 11, 2022 5:31:36 AM Klaus major-k via use-livecode wrote: > Hi all, > > I just tested an older stack on my Android device, everything is fine. > Then I created a new stack for a little stack and always get this error > when selecting "Test" in the LC dev menu. > > > Only script in that stack: > ------------------------ > on preopenstack > set the fullscreenmode of this stack to "showall" > end preopenstack > > ## And a button: > on mouseUp > ## Need to know if that is returning anything or giving an error or whatever... > answer iphonesafeareainsets() > end mouseUp > ------------------------ > If I switch back to the other stack, I can upload and test, but not with > this new stack!? > > Any hints? Thanks! > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Aug 11 12:45:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 18:45:14 +0200 Subject: Fail to test new stack on Android device In-Reply-To: <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <06D69988-8C8D-44AC-82A0-DAF8493878C4@major-k.de> <1828dc96ba0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <6B884484-6AF5-4185-B0EB-7B4F2EB388F2@major-k.de> Hi Jaques and Brian, > Am 11.08.2022 um 18:42 schrieb J. Landman Gay via use-livecode : > > Brian was right, but it's the build number that matters rather than the version number. You can either increase it, or delete the existing app on the phone before installing the other one. yep, that worked! Always forget about this when I just want to do a quick test. 8-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 11, 2022 5:31:36 AM Klaus major-k via use-livecode wrote: > >> Hi all, >> >> I just tested an older stack on my Android device, everything is fine. >> Then I created a new stack for a little stack and always get this error >> when selecting "Test" in the LC dev menu. >> >> >> Only script in that stack: >> ------------------------ >> on preopenstack >> set the fullscreenmode of this stack to "showall" >> end preopenstack >> >> ## And a button: >> on mouseUp >> ## Need to know if that is returning anything or giving an error or whatever... >> answer iphonesafeareainsets() >> end mouseUp >> ------------------------ >> If I switch back to the other stack, I can upload and test, but not with this new stack!? >> >> Any hints? Thanks! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Thu Aug 11 14:13:54 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 11 Aug 2022 13:13:54 -0500 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: References: Message-ID: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote: > FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll probably need to use the working screenrect on Android. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Thu Aug 11 14:17:26 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 11 Aug 2022 20:17:26 +0200 Subject: iPhoneSafeAreaInsets() and Android In-Reply-To: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> References: <645efb9c-e58f-0197-60b6-345314c7622d@hyperactivesw.com> Message-ID: <7217078D-859C-443D-AF90-1D189299CD37@major-k.de> Hi Jaques, > Am 11.08.2022 um 20:13 schrieb J. Landman Gay via use-livecode : > > On 8/11/22 7:44 AM, Klaus major-k via use-livecode wrote: >> FYI, iPhoneSafeAreaInsets() returns EMPTY on Android. > > It looks like it's for iOS only, Android isn't listed in the dictionary reference. You'll probably need to use the working screenrect on Android. yes, I just wanted to see if it will throw an error on Android. It doesn't. :-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Thu Aug 11 17:30:43 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 11 Aug 2022 17:30:43 -0400 Subject: Livecode SQLite In-Reply-To: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> References: <1EEF82C3-B260-476E-9D16-57840C5B0AE3@pidigital.co.uk> Message-ID: Hi Sean, The SQLite db i want to read json fields from is local. I know there are lots of workarounds. But in link I provided, the premise was using sqlite function to index and read a jason document's field. like so: sqlite> insert into t values(json('{"d":"42"}')); sqlite> select * from t WHERE d = 42; {"d":"42"}|42 Thanks Sean, I'm happy you found the help you needed with your email problem. On Thu, Aug 11, 2022 at 11:37 AM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > How was you accessing the database? Is it locally based? > > The ones I access are stored on a web host server with a cPanel. I have my > own php I POST my sql request to and receive JSON back. I then use > JSONtoArray or, recommended, JsonImport encapsulated in a ‘try’ structure > to convert the data. > > To tell the database to respond with json is not done at the LC end but > must either be set up in the DB itself or, as in my case, whatever is the > medium for the data, PHP for me. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 11 Aug 2022, at 16:16, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Folks, > > > > I have a question about Livecode's SQLite implementation. > > > > Looking at the official SQLite specs there seem to be json related > > functions. > > > > https://www.sqlite.org/json1.html > > > > but none of them seem to work using Livecode's driver. > > I was under the impression we had a full implementation > > > > I was interested in implementing a relatively new feature where you can > > index and query json documents and read the keys directly. > > > > https://dgl.cx/2020/06/sqlite-json-support > > > > I guess, if this is true, is there any documentation about which features > > of sqlite are implemented and which are not? > > > > TIA, > > -- > > Tom Glod > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Thu Aug 11 19:27:52 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 11 Aug 2022 23:27:52 +0000 Subject: mobileControl placeholderText? Message-ID: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> Is there a method to add placeholderText to a native mobile control field? So, if the fields' text is empty, it will show a string in gray. Like a Password field that when empty displays "Enter password here". Dan From bobsneidar at iotecdigital.com Thu Aug 11 19:42:02 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Aug 2022 23:42:02 +0000 Subject: mobileControl placeholderText? In-Reply-To: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> References: <4CD9D73F-02F7-44BC-BF7F-E71980DBBFB1@clearvisiontech.com> Message-ID: I see a similar thing when I have a pulldown menu without a label. It will display the menu button name by default. What I will do then is set the label to some prompt or else a space. It's pretty annoying to have to do that though. Bob S > On Aug 11, 2022, at 16:27 , Dan Friedman via use-livecode wrote: > > Is there a method to add placeholderText to a native mobile control field? So, if the fields' text is empty, it will show a string in gray. Like a Password field that when empty displays "Enter password here". > > Dan From phil at pdslabs.net Thu Aug 11 21:35:18 2022 From: phil at pdslabs.net (Phil Davis) Date: Thu, 11 Aug 2022 18:35:18 -0700 Subject: Images and arrays... In-Reply-To: References: Message-ID: Hi Paul, sorry I'm so late to the party. I think the best you can do is to capture & then reuse all the properties of the target image. I created a stack and imported an image. Then I ran this button script to make an exact replica of image 1. It worked: on mouseUp     put the properties of img 1 into tPropsA -- could be saved for later use     lock screen     create image     set the properties of img 2 to tPropsA     set the left of img 2 to the right of img 1 + 30     unlock screen end mouseUp Hope this helps - Phil Davis On 7/5/22 2:20 PM, Paul Dupuis via use-livecode wrote: > I am drawing a blank: > > If I have the following code: > >                   export snapshot from rect tRect of player > "mediaConvert" of stack "libHrAPI" to tImage as PNG >                   put tImage into pRefArray[tRef] > > The actual image (not a reference, such as a long ID) is placed in the > tRefArray[tRef] array element > > However, if I have a variable tImageID that contains a reference to an > image such as > > image id 10328 of card id 10001 of stack "X" > > How do I get that actual Image stored in the array? > > put tImageID into pRefArray[tRef] -- results in the array element > storing the long ID > > put (tImageID) into pRefArray[tRef] -- also results in the array > element storing the long ID. I thought the () might for the long ID to > be evaluated to an actual image > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From mark at livecode.com Fri Aug 12 00:56:51 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 12 Aug 2022 05:56:51 +0100 Subject: Livecode SQLite In-Reply-To: References: Message-ID: On 2022-08-11 16:16, Tom Glod via use-livecode wrote: > I was interested in implementing a relatively new feature where you can > index and query json documents and read the keys directly. > > https://dgl.cx/2020/06/sqlite-json-support > > I guess, if this is true, is there any documentation about which > features > of sqlite are implemented and which are not? The version of SQLite is currently 3.34 built with FTS3, FTS3_PARANTHESIS, FTS4, FTS5, RTREE and JSON1 options. So the JSON features (at least as far as those included in 3.34) should be included - perhaps the queries you are trying rely on features (perhaps not JSON related) included in more recent versions? If you file a bug report with what examples of what isn't working, then we'll look into updating to the latest version of the library. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From selander at tkf.att.ne.jp Fri Aug 12 07:27:46 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 12 Aug 2022 20:27:46 +0900 Subject: Server globals Message-ID: As always, appreciate everyone's help. Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? Thanks. Tim Selander Tokyo, Japan From matthias_livecode_150811 at m-r-d.de Fri Aug 12 08:26:45 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 12 Aug 2022 14:26:45 +0200 Subject: Server globals In-Reply-To: References: Message-ID: Hi Tim, does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. Regards, Matthias > Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : > > As always, appreciate everyone's help. > > Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. > > All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? > > Thanks. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Fri Aug 12 09:18:26 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 12 Aug 2022 22:18:26 +0900 Subject: Server globals In-Reply-To: References: Message-ID: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... Anyway, thanks for the info; no global variables, but file saves look like they'll work! Tim On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > Hi Tim, > > does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? > > I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. > > > If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. > > Regards, > Matthias > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >> >> As always, appreciate everyone's help. >> >> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >> >> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Fri Aug 12 09:39:07 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 12 Aug 2022 15:39:07 +0200 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <20CD4267-A735-4430-B50D-2BA3729F25FC@m-r-d.de> Hi Tim, the maximum size of a cookie is 4096 bytes. I am using Sitelok from Vibralogix on one site for a membership list. I've integrated it in a site i created with Rapidweaver. I am also using Livecode Server scripts on that site for several tasks including form processing. The good thing is that i can add my Livecode Server scripts to my Rapidweaver pages, either the whole script or only an include statement that includes the script. I just need to tell Rapidweaver to store that page with file extension .lc instead of .html. I also had a look at Reviginiter. Looks so powerful, but i have not enough time in a row to get used with it. So i have to stay with my Rapidweaver/Livecode server script solutions. Regards, Matthias > Am 12.08.2022 um 15:18 schrieb Tim Selander via use-livecode : > > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. > > It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... > > Anyway, thanks for the info; no global variables, but file saves look like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? >> I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. >> If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. >> Regards, >> Matthias >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.clavel at gmail.com Fri Aug 12 12:39:04 2022 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Fri, 12 Aug 2022 18:39:04 +0200 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: Hi Tim, You can also use localStorage for user specific data at the browser level : In your .lc script on the server : to store and retrieve data Regards, JC Le ven. 12 août 2022 à 15:19, Tim Selander via use-livecode < use-livecode at lists.runrev.com> a écrit : > Hi Matthias, > > It is user specific, but I just tried the saving to a text file > on the server -- very fast. Got the user IP from $_Server, and > used that in the filename for easy later retrieval. How much data > can a cookie hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up > with some kind of pagination system. I'm probably trying to > re-invent the wheel -- badly. > > It's a simple membership list, with a few hundred records. Only > want to show 30 on the page at a time. I wonder if anyone has a > LC sample for doing that. I tried Ralph Bitter's Revigniter but > just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the > CURSOR feature. But know nothing about avoiding injection > attacks, so may fall back to using a .csv for the datafile. I've > done that for all my other projects.... > > Anyway, thanks for the info; no global variables, but file saves > look like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > > Hi Tim, > > > > does the variable have a user specific value or a value, that changes > from time to time, but is the same for all users? > > > > I've done something some time ago and used a text file on the server > which stored that value. In my case the value was not user specific so it > was an easy task. > > > > > > If the variable is user specific, why don't you use a cookies for that? > That will grant that the value is available at all pages in the same > domain. > > > > Regards, > > Matthias > > > > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> As always, appreciate everyone's help. > >> > >> Have made several little projects using LC Server on the on-rev.com > host. For the first time, I would like a global variable -- that is a > variable that would retain it's value even if the page is re-loaded. Or if > a user goes to another .lc page/file in the domain. > >> > >> All my playing around, and Googling around, has been for nought. Is > there a way to hang on to a bit of data was you move around pages in the > same domain? > >> > >> Thanks. > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From rdimola at evergreeninfo.net Fri Aug 12 13:18:43 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 12 Aug 2022 13:18:43 -0400 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <004b01d8ae6f$95f146d0$c1d3d470$@net> Using the IP can fail if more than one user is on the same IP via a router using NAT. The Browser local storage is a better solution. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tim Selander via use-livecode Sent: Friday, August 12, 2022 9:18 AM To: use-livecode at lists.runrev.com Cc: Tim Selander Subject: Re: Server globals Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very fast. Got the user IP from $_Server, and used that in the filename for easy later retrieval. How much data can a cookie hold? Guess I'll test that. One of the reasons I'm fussing with this is I'm trying to come up with some kind of pagination system. I'm probably trying to re-invent the wheel -- badly. It's a simple membership list, with a few hundred records. Only want to show 30 on the page at a time. I wonder if anyone has a LC sample for doing that. I tried Ralph Bitter's Revigniter but just can't wrap my head around it. Using MySQL for testing, so could try to figure out using the CURSOR feature. But know nothing about avoiding injection attacks, so may fall back to using a .csv for the datafile. I've done that for all my other projects.... Anyway, thanks for the info; no global variables, but file saves look like they'll work! Tim On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > Hi Tim, > > does the variable have a user specific value or a value, that changes from time to time, but is the same for all users? > > I've done something some time ago and used a text file on the server which stored that value. In my case the value was not user specific so it was an easy task. > > > If the variable is user specific, why don't you use a cookies for that? That will grant that the value is available at all pages in the same domain. > > Regards, > Matthias > > >> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : >> >> As always, appreciate everyone's help. >> >> Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in the domain. >> >> All my playing around, and Googling around, has been for nought. Is there a way to hang on to a bit of data was you move around pages in the same domain? >> >> Thanks. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Fri Aug 12 19:04:18 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 13 Aug 2022 08:04:18 +0900 Subject: Server globals In-Reply-To: <004b01d8ae6f$95f146d0$c1d3d470$@net> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <004b01d8ae6f$95f146d0$c1d3d470$@net> Message-ID: <3bf1f6bf-60ad-d2ae-1fe1-a216875a8d6d@tkf.att.ne.jp> Ah! Big problem I hadn't thought of -- thank you!! I'll try the local storage script Jacques offered. Many thanks. Tim On 2022.08.13 2:18, Ralph DiMola via use-livecode wrote: > Using the IP can fail if more than one user is on the same IP via a router > using NAT. The Browser local storage is a better solution. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Tim Selander via use-livecode > Sent: Friday, August 12, 2022 9:18 AM > To: use-livecode at lists.runrev.com > Cc: Tim Selander > Subject: Re: Server globals > > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the > server -- very fast. Got the user IP from $_Server, and used that in the > filename for easy later retrieval. How much data can a cookie hold? Guess > I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with some > kind of pagination system. I'm probably trying to re-invent the wheel -- > badly. > > It's a simple membership list, with a few hundred records. Only want to show > 30 on the page at a time. I wonder if anyone has a LC sample for doing that. > I tried Ralph Bitter's Revigniter but just can't wrap my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR > feature. But know nothing about avoiding injection attacks, so may fall back > to using a .csv for the datafile. I've done that for all my other > projects.... > > Anyway, thanks for the info; no global variables, but file saves look like > they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> >> does the variable have a user specific value or a value, that changes from > time to time, but is the same for all users? >> >> I've done something some time ago and used a text file on the server which > stored that value. In my case the value was not user specific so it was an > easy task. >> >> >> If the variable is user specific, why don't you use a cookies for that? > That will grant that the value is available at all pages in the same > domain. >> >> Regards, >> Matthias >> >> >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode > : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com host. > For the first time, I would like a global variable -- that is a variable > that would retain it's value even if the page is re-loaded. Or if a user > goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is there > a way to hang on to a bit of data was you move around pages in the same > domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Fri Aug 12 19:36:34 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 13 Aug 2022 00:36:34 +0100 Subject: Server globals In-Reply-To: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> Message-ID: <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> Hi Tim, I think there are many easy ways to do this - and many not-so-easy ones too. IMO, easiest for something simple like this is to just use the url. See tweedly.net/page_by_url.txt for the code, or try it out at tweedly.net/page_by_url.lc (or try tweedly.net/page_by_url.lc?row=14 ) You can do something very similar using a cookie, with the 'row' value stored in the cookie each time (remember to "put cookie ..." before *any* other output.) Or by using the cookie to hold the name of a file in which you store this kind of info. This is necessary if you need to store a lot of data - if there is not already a cookie, create a filename using something like uuid(), and store the file name in it - then retrieve the cookie, and read or write the file. Alex. On 12/08/2022 14:18, Tim Selander via use-livecode wrote: > Hi Matthias, > > It is user specific, but I just tried the saving to a text file on the > server -- very fast. Got the user IP from $_Server, and used that in > the filename for easy later retrieval. How much data can a cookie > hold? Guess I'll test that. > > One of the reasons I'm fussing with this is I'm trying to come up with > some kind of pagination system. I'm probably trying to re-invent the > wheel -- badly. > > It's a simple membership list, with a few hundred records. Only want > to show 30 on the page at a time. I wonder if anyone has a LC sample > for doing that. I tried Ralph Bitter's Revigniter but just can't wrap > my head around it. > > Using MySQL for testing, so could try to figure out using the CURSOR > feature. But know nothing about avoiding injection attacks, so may > fall back to using  a .csv for the datafile. I've done that for all my > other projects.... > > Anyway, thanks for the info; no global variables, but file saves look > like they'll work! > > Tim > > On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >> Hi Tim, >> >> does the variable have a user specific value or a value, that changes >> from time to time, but is the same for all users? >> >> I've done something some time ago and used a text file on the server >> which stored that value. In my case the value was not user specific >> so it was an easy task. >> >> >> If the variable is user specific, why don't you use a  cookies for >> that? That will grant that the value is available  at all pages in >> the same domain. >> >> Regards, >> Matthias >> >> >>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode >>> : >>> >>> As always, appreciate everyone's help. >>> >>> Have made several little projects using LC Server on the on-rev.com >>> host. For the first time, I would like a global variable -- that is >>> a variable that would retain it's value even if the page is >>> re-loaded. Or if a user goes to another .lc page/file in the domain. >>> >>> All my playing around, and Googling around, has been for nought. Is >>> there a way to hang on to a bit of data was you move around pages in >>> the same domain? >>> >>> Thanks. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Aug 12 19:37:36 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Aug 2022 23:37:36 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? Message-ID: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Hi all. Very odd, I thought this worked. I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? MacOS 10.15.7 LC 9.6.9 rc1 Bob S From selander at tkf.att.ne.jp Sat Aug 13 08:52:58 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 13 Aug 2022 21:52:58 +0900 Subject: Server globals In-Reply-To: <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> Message-ID: <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> Alex, Went to your page, and wow, that is exactly what I was trying to do. I'm still trying to figure out exactly how you do it, but I'm headed in the right direction. Thanks! Tim On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: > Hi Tim, > > I think there are many easy ways to do this - and many > not-so-easy ones too. > > IMO, easiest for something simple like this is to just use the url. > > See tweedly.net/page_by_url.txt for the code, or try it out at > tweedly.net/page_by_url.lc > > (or try tweedly.net/page_by_url.lc?row=14 ) > > You can do something very similar using a cookie, with the 'row' > value stored in the cookie each time (remember to "put cookie > ..." before *any* other output.) > > Or by using the cookie to hold the name of a file in which you > store this kind of info. This is necessary if you need to store a > lot of data - if there is not already a cookie, create a filename > using something like uuid(), and store the file name in it - then > retrieve the cookie, and read or write the file. > > Alex. > > On 12/08/2022 14:18, Tim Selander via use-livecode wrote: >> Hi Matthias, >> >> It is user specific, but I just tried the saving to a text file >> on the server -- very fast. Got the user IP from $_Server, and >> used that in the filename for easy later retrieval. How much >> data can a cookie hold? Guess I'll test that. >> >> One of the reasons I'm fussing with this is I'm trying to come >> up with some kind of pagination system. I'm probably trying to >> re-invent the wheel -- badly. >> >> It's a simple membership list, with a few hundred records. Only >> want to show 30 on the page at a time. I wonder if anyone has a >> LC sample for doing that. I tried Ralph Bitter's Revigniter but >> just can't wrap my head around it. >> >> Using MySQL for testing, so could try to figure out using the >> CURSOR feature. But know nothing about avoiding injection >> attacks, so may fall back to using  a .csv for the datafile. >> I've done that for all my other projects.... >> >> Anyway, thanks for the info; no global variables, but file >> saves look like they'll work! >> >> Tim >> >> On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: >>> Hi Tim, >>> >>> does the variable have a user specific value or a value, that >>> changes from time to time, but is the same for all users? >>> >>> I've done something some time ago and used a text file on the >>> server which stored that value. In my case the value was not >>> user specific so it was an easy task. >>> >>> >>> If the variable is user specific, why don't you use a  cookies >>> for that? That will grant that the value is available  at all >>> pages in the same domain. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode >>>> : >>>> >>>> As always, appreciate everyone's help. >>>> >>>> Have made several little projects using LC Server on the >>>> on-rev.com host. For the first time, I would like a global >>>> variable -- that is a variable that would retain it's value >>>> even if the page is re-loaded. Or if a user goes to another >>>> .lc page/file in the domain. >>>> >>>> All my playing around, and Googling around, has been for >>>> nought. Is there a way to hang on to a bit of data was you >>>> move around pages in the same domain? >>>> >>>> Thanks. >>>> >>>> Tim Selander >>>> Tokyo, Japan >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sat Aug 13 14:49:26 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 13 Aug 2022 14:49:26 -0400 Subject: Server globals In-Reply-To: <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> References: <81d60127-fcdf-afbf-3c9c-70cb3a2041f1@tkf.att.ne.jp> <463d1a63-a944-a549-8ee0-8ff584a303e5@tweedly.net> <3f3ecf2d-a360-18d0-6d8d-c1da9d889ab0@tkf.att.ne.jp> Message-ID: With LC thinking that they want to emphasize web apps, more, the complications with server probably also need some effort. On Sat, Aug 13, 2022 at 8:54 AM Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Alex, > > Went to your page, and wow, that is exactly what I was trying to > do. I'm still trying to figure out exactly how you do it, but I'm > headed in the right direction. > > Thanks! > > Tim > > On 2022.08.13 8:36, Alex Tweedly via use-livecode wrote: > > Hi Tim, > > > > I think there are many easy ways to do this - and many > > not-so-easy ones too. > > > > IMO, easiest for something simple like this is to just use the url. > > > > See tweedly.net/page_by_url.txt for the code, or try it out at > > tweedly.net/page_by_url.lc > > > > (or try tweedly.net/page_by_url.lc?row=14 ) > > > > You can do something very similar using a cookie, with the 'row' > > value stored in the cookie each time (remember to "put cookie > > ..." before *any* other output.) > > > > Or by using the cookie to hold the name of a file in which you > > store this kind of info. This is necessary if you need to store a > > lot of data - if there is not already a cookie, create a filename > > using something like uuid(), and store the file name in it - then > > retrieve the cookie, and read or write the file. > > > > Alex. > > > > On 12/08/2022 14:18, Tim Selander via use-livecode wrote: > >> Hi Matthias, > >> > >> It is user specific, but I just tried the saving to a text file > >> on the server -- very fast. Got the user IP from $_Server, and > >> used that in the filename for easy later retrieval. How much > >> data can a cookie hold? Guess I'll test that. > >> > >> One of the reasons I'm fussing with this is I'm trying to come > >> up with some kind of pagination system. I'm probably trying to > >> re-invent the wheel -- badly. > >> > >> It's a simple membership list, with a few hundred records. Only > >> want to show 30 on the page at a time. I wonder if anyone has a > >> LC sample for doing that. I tried Ralph Bitter's Revigniter but > >> just can't wrap my head around it. > >> > >> Using MySQL for testing, so could try to figure out using the > >> CURSOR feature. But know nothing about avoiding injection > >> attacks, so may fall back to using a .csv for the datafile. > >> I've done that for all my other projects.... > >> > >> Anyway, thanks for the info; no global variables, but file > >> saves look like they'll work! > >> > >> Tim > >> > >> On 2022.08.12 21:26, matthias rebbe via use-livecode wrote: > >>> Hi Tim, > >>> > >>> does the variable have a user specific value or a value, that > >>> changes from time to time, but is the same for all users? > >>> > >>> I've done something some time ago and used a text file on the > >>> server which stored that value. In my case the value was not > >>> user specific so it was an easy task. > >>> > >>> > >>> If the variable is user specific, why don't you use a cookies > >>> for that? That will grant that the value is available at all > >>> pages in the same domain. > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>>> Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode > >>>> : > >>>> > >>>> As always, appreciate everyone's help. > >>>> > >>>> Have made several little projects using LC Server on the > >>>> on-rev.com host. For the first time, I would like a global > >>>> variable -- that is a variable that would retain it's value > >>>> even if the page is re-loaded. Or if a user goes to another > >>>> .lc page/file in the domain. > >>>> > >>>> All my playing around, and Googling around, has been for > >>>> nought. Is there a way to hang on to a bit of data was you > >>>> move around pages in the same domain? > >>>> > >>>> Thanks. > >>>> > >>>> Tim Selander > >>>> Tokyo, Japan > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at 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." From andreas.bergendal at gmail.com Sat Aug 13 15:24:59 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 13 Aug 2022 21:24:59 +0200 Subject: A web app launcher with responsive design Message-ID: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Friends, I have done wonderful things with LC10 web deployment! I’m excited to share with you the fruits of this week's extensive research and testing! TL;DR: Try this: https://wheninspace.com/portal/ Long version: I wanted to do two things: 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) I have accomplished both! You can see and test the result here: https://wheninspace.com/portal/ Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) /Andreas From colinholgate at gmail.com Sat Aug 13 16:59:05 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 13 Aug 2022 14:59:05 -0600 Subject: Running installer on Windows 10 Message-ID: <35C01E39-3C91-43E9-A3F8-ACDDCCDF7FD9@gmail.com> I am testing a stack on some different systems, and on Mac M1, Mac Intel, Intel i7 PC with Windows 10, and an Intel Celeron N5095 with Windows 11, no problems. On an Intel Celeron N3450, Windows 10, nothing happens when opening the LiveCode 9.6.8 x86-64 installer, or if I open a standalone app that I made. When using run as admin, the initial “are you sure” screen appears, but then after that nothing happens. What could be different between a Celeron N5095 and a Celeron N3450, that would account for why LiveCode applications don’t open? I see from this post: https://forums.unrealengine.com/t/epic-games-launcher-does-not-open/420387 that some software might not like an Intel HD Graphics 500, but would that be a reason for the installer to fail silently? I worked around the issue for now by saving the stack as v7. The 7.1.3 installer works ok. From tom at makeshyft.com Sat Aug 13 17:23:48 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Aug 2022 17:23:48 -0400 Subject: Livecode SQLite In-Reply-To: References: Message-ID: Hey Mark, I'm using very simple examples to run it, so I don't think its my query, but you are eight I shouldreport this. This would be really great to have. Esp since almost everything is json these days. I will report it in the next few days. Thanks, On Fri, Aug 12, 2022 at 12:57 AM Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2022-08-11 16:16, Tom Glod via use-livecode wrote: > > I was interested in implementing a relatively new feature where you can > > index and query json documents and read the keys directly. > > > > https://dgl.cx/2020/06/sqlite-json-support > > > > I guess, if this is true, is there any documentation about which > > features > > of sqlite are implemented and which are not? > > The version of SQLite is currently 3.34 built with FTS3, > FTS3_PARANTHESIS, FTS4, FTS5, RTREE and JSON1 options. > > So the JSON features (at least as far as those included in 3.34) should > be included - perhaps the queries you are trying rely on features > (perhaps not JSON related) included in more recent versions? > > If you file a bug report with what examples of what isn't working, then > we'll look into updating to the latest version of the library. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From marksmithhfx at gmail.com Sat Aug 13 17:39:57 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 13 Aug 2022 22:39:57 +0100 Subject: A web app launcher with responsive design In-Reply-To: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: Congratulations Andreas and thanks for sharing. I haven’t done any work with the new LC HTML5 engine but I was really impressed with the speed of loading it on my new M1 Pro — about 3-4 seconds on first download and then a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the first download but again very quick (a second or two) on subsequent loads. It looks like you’ve got a lot of the tech working with objects and screens and the adaptive resizing. When I do get around to getting into this (and it looks very enticing) I’ll know where to go for help :) Mark > On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode wrote: > > Friends, I have done wonderful things with LC10 web deployment! > > I’m excited to share with you the fruits of this week's extensive research and testing! > > TL;DR: > Try this: https://wheninspace.com/portal/ > > Long version: > > I wanted to do two things: > > 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. > > 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) > > I have accomplished both! > You can see and test the result here: > https://wheninspace.com/portal/ > > Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). > > The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. > > When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. > > As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! > > I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Aug 13 20:06:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Aug 2022 20:06:10 -0400 Subject: A web app launcher with responsive design In-Reply-To: References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: Hey Andreas, thanks for sharing, cool example of responsive design. I thought the HTML5/javascript export was dead, and WASM would be used instead. It could be my own confusion about terminology being used. Can someone clarify this for me? Thanks, Tom On Sat, Aug 13, 2022 at 5:41 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Congratulations Andreas and thanks for sharing. I haven’t done any work > with the new LC HTML5 engine but I was really impressed with the speed of > loading it on my new M1 Pro — about 3-4 seconds on first download and then > a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the > first download but again very quick (a second or two) on subsequent loads. > It looks like you’ve got a lot of the tech working with objects and screens > and the adaptive resizing. When I do get around to getting into this (and > it looks very enticing) I’ll know where to go for help :) > > Mark > > > > On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Friends, I have done wonderful things with LC10 web deployment! > > > > I’m excited to share with you the fruits of this week's extensive > research and testing! > > > > TL;DR: > > Try this: https://wheninspace.com/portal/ < > https://wheninspace.com/portal/> > > > > Long version: > > > > I wanted to do two things: > > > > 1) Like we often do with desktop standalones: Create a minimal > launcher/splash stack as standalone, which only does one thing - open an > external stack that does everything else. This way I can then update > individual stacks, without having to build a new standalone each time. > > > > 2) Get the resizing of the browser window to trigger the resize of the > stacks and all the responsive design therein, and make it look good on both > desktop and mobile. (Refining the example from the mothership, ”Meeting > space”.) > > > > I have accomplished both! > > You can see and test the result here: > > https://wheninspace.com/portal/ > > > > Please try it both in desktop browsers (resizing the browser to various > sizes) and mobile browsers (both portrait and landscape orientation). > > > > The standalone consists of a minimal launch stack that just acts as > event listening agent (even after closing itself) and opens the Portal > stack which is an external LC stack. The Portal stack then has buttons for > opening additional external LC stacks. > > > > When the launcher stack receives a resize signal from the browser (from > the JavaScript in the html file), it dispatches ”resizeEvent” with the > width/height values to the topStack, which can subsequently rearrange its > stack rect and content accordingly. > > > > As a bonus, I also demonstrate the possibility to show several stacks in > the same browser window! > > > > I find the LC web deployment option a true game-changer! A new world is > opening! Let’s build it! :) > > > > /Andreas > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Sat Aug 13 20:16:23 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 14 Aug 2022 01:16:23 +0100 Subject: A web app launcher with responsive design In-Reply-To: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: > Friends, I have done wonderful things with LC10 web deployment! > > Im excited to share with you the fruits of this week's extensive research and testing! > Wow. Thanks Andreas. Resize, etc. work well for me on Safari, but fail badly on Chrome browser (details not included) - all build-for-web attempts fail on this version of Chrome.  (which it says is up-to-date). However, the way I read your email ( "...excited to share with you the fruits of this week's..."), I think ui intend to make this code available for the rest of us to use. But, I cant see a link, or a way to get access to the source. Please tell me I'm not over-interpreting your words. Please say that you have, or will, publish the text of the stacks involved. Many thanks again, Alex. From marksmithhfx at gmail.com Sun Aug 14 00:13:30 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 14 Aug 2022 05:13:30 +0100 Subject: A web app launcher with responsive design In-Reply-To: References: Message-ID: <546FC399-35F0-4C51-9F3D-9637E9AB10D8@gmail.com> Hi Tom, Andreas didn’t mention what the platform was in his message so I just googled “LC web deployment” and it turned up this… https://lessons.livecode.com/m/4071/l/800867-how-do-i-put-my-first-app-on-the-web However, since you mentioned WASM I looked it up and you are correct, LC 10 (which Andreas was using) is using Web Assembly not HTML5. Sent from my iPhone > On Aug 14, 2022, at 1:07 AM, Tom Glod via use-livecode wrote: > > Hey Andreas, thanks for sharing, cool example of responsive design. > > I thought the HTML5/javascript export was dead, and WASM would be used > instead. > It could be my own confusion about terminology being used. > Can someone clarify this for me? > > Thanks, > > Tom > > >> On Sat, Aug 13, 2022 at 5:41 PM Mark Smith via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Congratulations Andreas and thanks for sharing. I haven’t done any work >> with the new LC HTML5 engine but I was really impressed with the speed of >> loading it on my new M1 Pro — about 3-4 seconds on first download and then >> a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the >> first download but again very quick (a second or two) on subsequent loads. >> It looks like you’ve got a lot of the tech working with objects and screens >> and the adaptive resizing. When I do get around to getting into this (and >> it looks very enticing) I’ll know where to go for help :) >> >> Mark >> >> >>> On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Friends, I have done wonderful things with LC10 web deployment! >>> >>> I’m excited to share with you the fruits of this week's extensive >> research and testing! >>> >>> TL;DR: >>> Try this: https://wheninspace.com/portal/ < >> https://wheninspace.com/portal/> >>> >>> Long version: >>> >>> I wanted to do two things: >>> >>> 1) Like we often do with desktop standalones: Create a minimal >> launcher/splash stack as standalone, which only does one thing - open an >> external stack that does everything else. This way I can then update >> individual stacks, without having to build a new standalone each time. >>> >>> 2) Get the resizing of the browser window to trigger the resize of the >> stacks and all the responsive design therein, and make it look good on both >> desktop and mobile. (Refining the example from the mothership, ”Meeting >> space”.) >>> >>> I have accomplished both! >>> You can see and test the result here: >>> https://wheninspace.com/portal/ >>> >>> Please try it both in desktop browsers (resizing the browser to various >> sizes) and mobile browsers (both portrait and landscape orientation). >>> >>> The standalone consists of a minimal launch stack that just acts as >> event listening agent (even after closing itself) and opens the Portal >> stack which is an external LC stack. The Portal stack then has buttons for >> opening additional external LC stacks. >>> >>> When the launcher stack receives a resize signal from the browser (from >> the JavaScript in the html file), it dispatches ”resizeEvent” with the >> width/height values to the topStack, which can subsequently rearrange its >> stack rect and content accordingly. >>> >>> As a bonus, I also demonstrate the possibility to show several stacks in >> the same browser window! >>> >>> I find the LC web deployment option a true game-changer! A new world is >> opening! Let’s build it! :) >>> >>> /Andreas >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sun Aug 14 00:50:56 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 13 Aug 2022 21:50:56 -0700 Subject: A web app launcher with responsive design In-Reply-To: <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> <9958affd-92f5-e62f-bc53-4f3d0cd462b4@tweedly.net> Message-ID: <928b85a7-db56-32ae-b896-28428631cfcf@sonic.net> On 8/13/22 17:16, Alex Tweedly via use-livecode wrote: > > On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: >> Friends, I have done wonderful things with LC10 web deployment! >> >> Im excited to share with you the fruits of this week's extensive >> research and testing! >> > Wow. Thanks Andreas. > > Resize, etc. work well for me on Safari, but fail badly on Chrome > browser (details not included) - all build-for-web attempts fail on this > version of Chrome.  (which it says is up-to-date). OTOH, it's working fine for me on Chrome. Go figger. -- Mark Wieder ahsoftware at gmail.com From andreas.bergendal at gmail.com Sun Aug 14 06:47:16 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sun, 14 Aug 2022 12:47:16 +0200 Subject: A web app launcher with responsive design In-Reply-To: References: <7CB3161B-4245-4529-8FE7-716DEFB4A6D5@gmail.com> Message-ID: <6F651EAA-8405-47B3-B8CA-868758401EFE@gmail.com> Hi all, Thanks for your feedback on this first test version. It is made with LC 10 dp 4 which indeed uses the wasm tech and not the old html5 tech. And don’t worry - I wouldn’t have half the knowledge I have in LC coding if it weren’t for the generous sharing on this list and in the forum. Being able to make a small contribution to this knowledge bank is my pleasure. Here’s a link to a zip file with all the stacks used in the example, plus the index.html file (with I use to replace the standalone.html file produced by the standalone maker): https://wheninspace.com/portal/LC_wasm_example_package.zip Note that the links used in the scripts to open stacks all point to my server/domain (obviously) , so if you want to experiment with your copy you’ll need to have a server to put them on and change the links accordingly. It will not work by using the Test deployment (at least not out-of-the-box). I do all testing live on the server. Note the order in which the stacks fire up: LCweblauncher.livecode (which becomes standalone.zip when built) -> uses WISwebLauncherLib.livecodescript -> opens WISwebPortal.livecode -> opens the other stacks. I’m sure there's room for vast improvement to all this, and I believe there will also be more support for natively handling some things in coming LC10 versions. But the future looks promising! :) /Andreas > 13 aug. 2022 kl. 23:39 skrev Mark Smith : > > Congratulations Andreas and thanks for sharing. I haven’t done any work with the new LC HTML5 engine but I was really impressed with the speed of loading it on my new M1 Pro — about 3-4 seconds on first download and then a second or so thereafter. On my iPhone 12 not so fast… more like 30 on the first download but again very quick (a second or two) on subsequent loads. It looks like you’ve got a lot of the tech working with objects and screens and the adaptive resizing. When I do get around to getting into this (and it looks very enticing) I’ll know where to go for help :) > > Mark > > >> On 13 Aug 2022, at 8:24 pm, Andreas Bergendal via use-livecode wrote: >> >> Friends, I have done wonderful things with LC10 web deployment! >> >> I’m excited to share with you the fruits of this week's extensive research and testing! >> >> TL;DR: >> Try this: https://wheninspace.com/portal/ >> >> Long version: >> >> I wanted to do two things: >> >> 1) Like we often do with desktop standalones: Create a minimal launcher/splash stack as standalone, which only does one thing - open an external stack that does everything else. This way I can then update individual stacks, without having to build a new standalone each time. >> >> 2) Get the resizing of the browser window to trigger the resize of the stacks and all the responsive design therein, and make it look good on both desktop and mobile. (Refining the example from the mothership, ”Meeting space”.) >> >> I have accomplished both! >> You can see and test the result here: >> https://wheninspace.com/portal/ >> >> Please try it both in desktop browsers (resizing the browser to various sizes) and mobile browsers (both portrait and landscape orientation). >> >> The standalone consists of a minimal launch stack that just acts as event listening agent (even after closing itself) and opens the Portal stack which is an external LC stack. The Portal stack then has buttons for opening additional external LC stacks. >> >> When the launcher stack receives a resize signal from the browser (from the JavaScript in the html file), it dispatches ”resizeEvent” with the width/height values to the topStack, which can subsequently rearrange its stack rect and content accordingly. >> >> As a bonus, I also demonstrate the possibility to show several stacks in the same browser window! >> >> I find the LC web deployment option a true game-changer! A new world is opening! Let’s build it! :) >> >> /Andreas From jiml at netrin.com Sun Aug 14 16:02:47 2022 From: jiml at netrin.com (Jim Lambert) Date: Sun, 14 Aug 2022 13:02:47 -0700 Subject: A web app launcher with responsive design In-Reply-To: References: Message-ID: <7A474F6E-24C3-45FC-8CBB-020C6DB25DCF@netrin.com> Andreas, Very nice! Thanks, Jim Lambert From selander at tkf.att.ne.jp Mon Aug 15 08:58:25 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 15 Aug 2022 21:58:25 +0900 Subject: More Server Silliness Message-ID: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> With Alex and everyone's help, I got the global vs cookies, etc., sorted out and am happily paginating away with my little membership web site. With Kenji's help, I got automatic address fill-in from Japanese zip codes. However, I was looking at LiveCode's server samples (serversamples.livecode.com/index.lc) and thought, gee, the Ajax filtering looks pretty neat. So I set off to make that work, and failed. I'd give up on it, but after wasting THIS much time on it, I gotta bring it to you all for a little input and hopefully another bail-out. Just for testing, I made two new files. The first with the code LC provides at https://serversamples.livecode.com/display-file.lc?filename=ajax-simple.lc and the second from step 3 of the ajax sample page, https://serversamples.livecode.com/ajax.lc. Changed only the bits needed to pull data from my database. File one, ajax-simple.lc, lists my data and an input box just like the sample page. But it sends no info via GET to the second file, filter.lc. If I manually put the GET info in the URL,(filter.lc?search_term=John, I get the filtered data I expect, but in the filter.lc window -- the data is not returned to File 1, ajax-simple.lc. Has anyone using LC Server gotten that ajax sample to work?? Many thanks, Tim Selander From heather at livecode.com Mon Aug 15 09:55:24 2022 From: heather at livecode.com (Heather Laine) Date: Mon, 15 Aug 2022 14:55:24 +0100 Subject: [blog] Power Tools Message-ID: Dear List Folks, Just dropping a note to draw your attention to a fine blog post by Mr Mark Wieder: https://livecode.com/power-tools/ Enjoy! Warm Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From selander at tkf.att.ne.jp Mon Aug 15 11:10:36 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 16 Aug 2022 00:10:36 +0900 Subject: More Server Silliness -- Nevermind In-Reply-To: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> References: <1549e269-38ea-5c03-06fc-344990ba3b65@tkf.att.ne.jp> Message-ID: <4eb3b4c4-5a5d-0fb8-e00b-d5787cf861fb@tkf.att.ne.jp> Using Firefox developer tools, found out jquery was not loading property. Hangs head in shame at rookie mistake... Still not working properly, but continue to poke at it. Tim Selander On 2022.08.15 21:58, Tim Selander via use-livecode wrote: > With Alex and everyone's help, I got the global vs cookies, etc., > sorted out and am happily paginating away with my little > membership web site. > > With Kenji's help, I got automatic address fill-in from Japanese > zip codes. > > However, I was looking at LiveCode's server samples > (serversamples.livecode.com/index.lc) and thought, gee, the Ajax > filtering looks pretty neat. > > So I set off to make that work, and failed. I'd give up on it, > but after wasting THIS much time on it, I gotta bring it to you > all for a little input and hopefully another bail-out. > > Just for testing, I made two new files. The first with the code > LC provides at > https://serversamples.livecode.com/display-file.lc?filename=ajax-simple.lc > and the second from step 3 of the ajax sample page, > https://serversamples.livecode.com/ajax.lc. > > Changed only the bits needed to pull data from my database. File > one, ajax-simple.lc, lists my data and an input box just like the > sample page. But it sends no info via GET to the second file, > filter.lc. If I manually put the GET info in the > URL,(filter.lc?search_term=John, I get the filtered data I > expect, but in the filter.lc window -- the data is not returned > to File 1, ajax-simple.lc. > > Has anyone using LC Server gotten that ajax sample to work?? > > Many thanks, > > Tim Selander > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From craig at starfirelighting.com Mon Aug 15 14:00:37 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 15 Aug 2022 14:00:37 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Message-ID: <24EBA058-E6F8-417B-8B94-AEFCCDE3E717@starfirelighting.com> Hi. I am missing something. Make a popup menu button. Ina mouseUp handler in another button: on mouseUp click at the loc of btn 1 end mouseUp Once the menu is open, the up and down arrow keys navigate among the menuItems. Craig > On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: > > Hi all. Very odd, I thought this worked. > > I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? > > MacOS 10.15.7 LC 9.6.9 rc1 > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Mon Aug 15 14:03:00 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 15 Aug 2022 14:03:00 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> Message-ID: <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. Craig > On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: > > Hi all. Very odd, I thought this worked. > > I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? > > MacOS 10.15.7 LC 9.6.9 rc1 > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 14:29:20 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 14:29:20 -0400 Subject: Polygrid sorting Message-ID: So, I bought the Summer Bundle. Yes, it is a good deal. In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. From paul at researchware.com Mon Aug 15 15:34:39 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 15:34:39 -0400 Subject: Polygrid sorting (problems) In-Reply-To: References: Message-ID: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimited, WITHOUT the column headers, but ONLY the visible rows. So, what to use for sorting all the data in a PolyGrid by a particular column? The tsvData of widget X (and csvData, and Text) doesn't seem to work. The all seems to only get the visible data (rows). Only the pgData of widget return the whole dataset of the PolyGrid. Is this the way these properties are supposed to work? If that is how text, csvData, and tsvData are supposed to work (returning only the visible rows), then the sort example in the PolyGrid documentation require updating otherwise these properties require updating! On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application > uses a Datagrid to display customer research data. The columns headers > are text and the left most column ROWs are test and all other cells > are numbers. Some customers can have quite large data sets and I have > been running into the number of columns (ad a default width of 100px > per column) exceeding a GROUPs 32,767px width maximum (about 327-328 > columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this > limit. I have a "test" stack (for Datagrid testing) I converted to the > Polygrid and can easily generate 1000 columns x 1000 rows of data and > it works. > > So I guess the answer to bug > https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, > user column resizing (built into the Polygrid - Yea!) and column > sorting (NOT built into the Polygrid - Boo!). So, does anyone have > some column sort code for the Polygrid they have written that they > might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left > column (or the left N columns) to be locked/frozen, so they remain > visible when the Polygrid is scrolled horizontally. See > https://quality.livecode.com/show_bug.cgi?id=23880. If you might > benefit from this enhancement, please follow the bug or add a comment > to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Mon Aug 15 16:01:34 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 15 Aug 2022 21:01:34 +0100 Subject: Polygrid sorting In-Reply-To: References: Message-ID: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Hi Paul, I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. Cheers, Mark > On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: > > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. > > So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:10:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:10:49 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. Now I have to go try it on macOS? On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > >> On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: >> >> So, I bought the Summer Bundle. Yes, it is a good deal. >> >> In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. >> >> I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. >> >> So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >> >> On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? >> >> Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:12:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:12:51 -0400 Subject: Polygrid sorting In-Reply-To: References: Message-ID: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> So I see that the Summer Bundle of widgets in the store has a note that says "Latest update 1.0.19: 11 August 2022" However, the Download button says "Version 1.0.0". Does anyone know how to update the widget set to 1.0.19 or how to update a single widget? On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > So, I bought the Summer Bundle. Yes, it is a good deal. > > In my case it was primarily for the Polygrid widget. Our application > uses a Datagrid to display customer research data. The columns headers > are text and the left most column ROWs are test and all other cells > are numbers. Some customers can have quite large data sets and I have > been running into the number of columns (ad a default width of 100px > per column) exceeding a GROUPs 32,767px width maximum (about 327-328 > columns). At this point the Datagrid just fails - no data is displayed. > > I can now attest that a Polygrid (under LC 9.6.8) does not have this > limit. I have a "test" stack (for Datagrid testing) I converted to the > Polygrid and can easily generate 1000 columns x 1000 rows of data and > it works. > > So I guess the answer to bug > https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" > > On that note, the Datagrid has 2 features I use in this specific case, > user column resizing (built into the Polygrid - Yea!) and column > sorting (NOT built into the Polygrid - Boo!). So, does anyone have > some column sort code for the Polygrid they have written that they > might be willing to share? > > Also, I have filled a Polygrid enhancement request to allow the left > column (or the left N columns) to be locked/frozen, so they remain > visible when the Polygrid is scrolled horizontally. See > https://quality.livecode.com/show_bug.cgi?id=23880. If you might > benefit from this enhancement, please follow the bug or add a comment > to that effect. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 16:33:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:33:31 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: <9f310ee2-3a16-de25-c4e5-7c108440a38d@researchware.com> I just tested on macOS Mojave (10.14) on an Intel MacBook Pro and the PolyGrid and my sample stack work as expected. Tried 10, 100, and 500 columns/rows. Now I have to find the MacBook Air with Monterey and see... 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > From paul at researchware.com Mon Aug 15 16:49:47 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 16:49:47 -0400 Subject: Polygrid sorting In-Reply-To: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: FYI, I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: > Hi Paul, > > I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). Its just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. > > I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. > > Cheers, > Mark > From ahsoftware at sonic.net Mon Aug 15 16:55:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 13:55:33 -0700 Subject: Polygrid sorting In-Reply-To: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> References: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> Message-ID: On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: > So I see that the Summer Bundle of widgets in the store has a note that > says "Latest update 1.0.19: 11 August 2022" > > However, the Download button says "Version 1.0.0". Does anyone know how > to update the widget set to 1.0.19 or how to update a single widget? Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 version is always the most recent. From a July 27 comment from Steven Crighton on https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572 For the moment you have to update the new widgets manually. To do this, first log in to your LiveCode account. In the left hand navigation make your way to Products > thirdparty. Scroll down this list to find LiveCode Enhancements and download that bundle. Inside the bundle folder there is a widgetpackinstaller.livecode file If you want to update everything in your bundle in one go I recommend using that. Simply open that stack and click the install button. Note DataView will now be PolyList after you have updated. I updated once and looks like I'll have to again. -- -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 15 17:02:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 17:02:30 -0400 Subject: Polygrid sorting In-Reply-To: References: <2d8ff1a2-2f92-6874-cac0-2e568f39f7ce@researchware.com> Message-ID: On 8/15/2022 4:55 PM, Mark Wieder via use-livecode wrote: > On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: >> So I see that the Summer Bundle of widgets in the store has a note >> that says "Latest update 1.0.19: 11 August 2022" >> >> However, the Download button says "Version 1.0.0". Does anyone know >> how to update the widget set to 1.0.19 or how to update a single widget? > > Yeah. The versioning is wonky and annoying. Apparently the 1.0.0 > version is always the most recent. > > From a July 27 comment from Steven Crighton on > https://livecode.com/polylist-widget-in-the-spotlight/#comment-129572 > > For the moment you have to update the new widgets manually. To do > this, first log in to your LiveCode account. In the left hand > navigation make your way to Products > thirdparty. Scroll down this > list to find LiveCode Enhancements and download that bundle. Inside > the bundle folder there is a widgetpackinstaller.livecode file If > you want to update everything in your bundle in one go I recommend > using that. Simply open that stack and click the install button. Note > DataView will now be PolyList after you have updated. > > I updated once and looks like I'll have to again. > Thank you Mark! (and Steven) From bobsneidar at iotecdigital.com Mon Aug 15 18:03:57 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 22:03:57 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> Message-ID: <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. Bob S > On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: > > Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. > > Craig > >> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. Very odd, I thought this worked. >> >> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >> >> MacOS 10.15.7 LC 9.6.9 rc1 >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 15 18:16:45 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 22:16:45 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> Message-ID: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. Bob S > On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: > > Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. > > When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. > > Bob S > > >> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >> >> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >> >> Craig >> >>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>> >>> Hi all. Very odd, I thought this worked. >>> >>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>> >>> MacOS 10.15.7 LC 9.6.9 rc1 >>> >>> Bob S >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Mon Aug 15 19:22:15 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Aug 2022 00:22:15 +0100 Subject: Polygrid sorting (problems) In-Reply-To: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> Message-ID: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: > So there is an example of sorting in the PolyGrid documentation under > the entry for the MESSAGE "headerClick" and under the entry to the > PROPERTY "text" (and in 'the text of me') > > The example code only sort the visible rows as "the text of widget X" > returns the data of PolyGrid X as tab delimited, WITHOUT the column > headers, but ONLY the visible rows. > I'm using (I think) the latest version (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. Both "the text and "the pgtext" return the entire grid (without headers). I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. And come to think of it - why did they need to invent a new property name "pgText" ?  It seems to be a synonym for "the text", so would it not have been better to just use that ?  Full consistency with many other controls, no added "mental clutter", and "the text" colours nicely in the script editor, so more obvious if you mistype it. Alex. From alex at tweedly.net Mon Aug 15 19:25:03 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Aug 2022 00:25:03 +0100 Subject: Sorting [was: Polygrid sorting] Message-ID: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. I'd like to be able to say  - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. Would that be a reasonable enhancement request ? Would "natural" be a reasonable suggested name ? Alex. From bobsneidar at iotecdigital.com Mon Aug 15 19:30:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 23:30:09 +0000 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: <5130FDB3-F9D2-4CCB-B890-ECCD45745967@iotecdigital.com> I think they are trying to be consistent with datagrid terminology, perhaps thinking that a tabular data object has become a new class of objects. Bob S > On Aug 15, 2022, at 16:22 , Alex Tweedly via use-livecode wrote: > > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimited, WITHOUT the column headers, but ONLY the visible rows. >> > I'm using (I think) the latest version (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. > > Both "the text and "the pgtext" return the entire grid (without headers). > > I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. > > And come to think of it - why did they need to invent a new property name "pgText" ? It seems to be a synonym for "the text", so would it not have been better to just use that ? Full consistency with many other controls, no added "mental clutter", and "the text" colours nicely in the script editor, so more obvious if you mistype it. > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 15 19:35:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 15 Aug 2022 23:35:28 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> Message-ID: Datagrids have this feature, so yes, I would expect there to be some way to specify what kind of sort you want to do. But it would have to be on a per column basis. But if you are sorting the text yourself, you can use the syntax: sort lines of tText by item n of each. I don't think any assumptions should be made by the engine as to what kind of data each column contains. I worked with an accounting system many years ago which had numeric invoice numbers, or so it seemed. Once you created a credit memo, it prepended R to the invoice number. Bob S > On Aug 15, 2022, at 16:25 , Alex Tweedly via use-livecode wrote: > > So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. > > I'd like to be able to say > > - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. > > Would that be a reasonable enhancement request ? > > Would "natural" be a reasonable suggested name ? > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Aug 15 19:43:12 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 16:43:12 -0700 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: > I haven't tried csvdata or tsvdata (they're not listed in the > dictionary, so I'd tend to avoid them if possible. I do see tsvData in the dictionary, but I'm getting weird errors thrown from the widget when I try to use it. May still be experimental. There aren't any examples and the source isn't available. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 15 19:46:38 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:46:38 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> Message-ID: <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Perhaps some expansion of the column "pgContentTypeofColumn" property? The current possible values are: text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement Allowing the addition of 'numeric' and 'datetime' would at least allow a mapping to sorts although sort support 'international' (perhaps should be the default for a polygrid column of type "text" and "binary". I am also not sure how svg-iconname, imagedata, imagefile, and color should sort. Perhaps svg-iconname should sort as "text". Bolean can sort as "text" since ascending puts "false" first and descending puts "true" first. On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote: > So it occurred to me, while playing with sorting by columns, that it > might be nice to have an additional "sortType" available. > > I'd like to be able to say > >  - if all the 'things' being sorted on are numbers, then sort numeric, > otherwise sort alphabetical. > > Would that be a reasonable enhancement request ? > > Would "natural" be a reasonable suggested name ? > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 15 19:51:33 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:51:33 -0400 Subject: Polygrid sorting (problems) In-Reply-To: <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under >> the entry for the MESSAGE "headerClick" and under the entry to the >> PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" >> returns the data of PolyGrid X as tab delimited, WITHOUT the column >> headers, but ONLY the visible rows. >> > I'm using (I think) the latest version > (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at all. > Okay, a widget ignorant question: How do you tell what version of a widget you have installed? (i.e where/how do you see com.livecode.widget.polygrid.1.1.1) From paul at researchware.com Mon Aug 15 19:59:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 15 Aug 2022 19:59:01 -0400 Subject: Polygrid sorting (problems) In-Reply-To: <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> <137ebad2-86de-5ead-8921-dac56cc3c9ec@researchware.com> Message-ID: <0fe233f8-3a70-3be7-9e10-691b65e8e305@researchware.com> On 8/15/2022 7:51 PM, Paul Dupuis via use-livecode wrote: > On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: >> >> On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >>> So there is an example of sorting in the PolyGrid documentation >>> under the entry for the MESSAGE "headerClick" and under the entry to >>> the PROPERTY "text" (and in 'the text of me') >>> >>> The example code only sort the visible rows as "the text of widget >>> X" returns the data of PolyGrid X as tab delimited, WITHOUT the >>> column headers, but ONLY the visible rows. >>> >> I'm using (I think) the latest version >> (com.livecode.widget.polygrid.1.1.1) and I don't see that problem at >> all. >> > > Okay, a widget ignorant question: How do you tell what version of a > widget you have installed? (i.e where/how do you see > com.livecode.widget.polygrid.1.1.1) Never mind. It is in the file name, com.livecode.widget.polygrid.1.1.1.lce Also, FYI, regarding you note that: Both "the text and "the pgtext" return the entire grid (without headers). I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. Under the dictionary entry for "polygrid", I see the csvData and tsvData properties listed. The "text" property and the pgData property, but NO entry for pgText. It would appear, if the .lce file name is correct, that I am at the same version, 1.1.1. I am on Windows 10, under LC 9.6.8 From ahsoftware at sonic.net Mon Aug 15 20:12:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 15 Aug 2022 17:12:37 -0700 Subject: Polygrid sorting (problems) In-Reply-To: References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <604bd606-eba0-79b0-4090-d777bc4e8aa5@tweedly.net> Message-ID: On 8/15/22 16:43, Mark Wieder via use-livecode wrote: > On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: > >> I haven't tried csvdata or tsvdata (they're not listed in the >> dictionary, so I'd tend to avoid them if possible. > > I do see tsvData in the dictionary, but I'm getting weird errors thrown > from the widget when I try to use it. May still be experimental. There > aren't any examples and the source isn't available. Correcting myself, I do see examples in the enhancements folder, they just aren't installed. There's also a Plugins/Templates/Default folder for various things, but I'm not sure what I'm supposed to do with those, if anything. If I use just the examples in the folder then the I can manipulate the tsvData and it works. But if I try to generate my own I end up throwing weird errors. -- Mark Wieder ahsoftware at gmail.com From marksmithhfx at gmail.com Tue Aug 16 04:33:49 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 16 Aug 2022 09:33:49 +0100 Subject: Polygrid sorting In-Reply-To: References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> Message-ID: Hi Paul, My bad. I don’t have the polygrid widget installed. I bought the summer bundle but haven’t had time to install or play with it. I will try this afternoon and send feedback later. Mark > On 15 Aug 2022, at 9:49 pm, Paul Dupuis via use-livecode wrote: > > FYI, > > I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. > > > On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: >> Hi Paul, >> >> I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. >> >> I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. >> >> Cheers, >> Mark >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Aug 16 07:33:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 16 Aug 2022 13:33:20 +0200 Subject: Separate app for iPad and iPhone? Message-ID: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Hi all, after wondering why on earth my former Android stack did not scale to fit an iPad screen, I finally found that there is a separate menu item for "iPad" in the "Standalone Application Setting". 8-) In (a LOT) earlier versions there was one entry for iPhone AND iPad. Does that mean that we need to build two separate app for iPad and iPhone and publish both to the app store nowadays? Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Tue Aug 16 08:11:07 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 16 Aug 2022 15:11:07 +0300 Subject: Separate app for iPad and iPhone? In-Reply-To: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> References: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Message-ID: Hello Klaus, There is also an option for both ("iPod, iPhone and iPad") Cheers, Panos -- On Tue, 16 Aug 2022 at 14:34, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > after wondering why on earth my former Android stack did not scale > to fit an iPad screen, I finally found that there is a separate menu item > for "iPad" in the "Standalone Application Setting". 8-) > In (a LOT) earlier versions there was one entry for iPhone AND iPad. > > Does that mean that we need to build two separate app for iPad and iPhone > and publish both to the app store nowadays? > > Thanks for any hint! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Tue Aug 16 08:17:57 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 16 Aug 2022 14:17:57 +0200 Subject: Separate app for iPad and iPhone? In-Reply-To: References: <77286ACB-5125-4D17-9A2D-DCA55514C443@major-k.de> Message-ID: Hi Panos, > Am 16.08.2022 um 14:11 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > There is also an option for both ("iPod, iPhone and iPad") oh, yeah, sorry, it is very hot over here in germany... 8-) > Cheers, > Panos > -- > > On Tue, 16 Aug 2022 at 14:34, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> after wondering why on earth my former Android stack did not scale >> to fit an iPad screen, I finally found that there is a separate menu item >> for "iPad" in the "Standalone Application Setting". 8-) >> In (a LOT) earlier versions there was one entry for iPhone AND iPad. >> >> Does that mean that we need to build two separate app for iPad and iPhone >> and publish both to the app store nowadays? Best Klaus > -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From craig at starfirelighting.com Tue Aug 16 08:55:13 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 16 Aug 2022 08:55:13 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> Message-ID: <6E29CF66-888B-45D5-82CA-25F7B5F1B71D@starfirelighting.com> Yes, the combo box does not return the “selected” menuItem. Likely something to do with its compound nature. > On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode wrote: > > I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. > > Bob S > > >> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: >> >> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. >> >> When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. >> >> Bob S >> >> >>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >>> >>> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >>> >>> Craig >>> >>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> Hi all. Very odd, I thought this worked. >>>> >>>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>>> >>>> MacOS 10.15.7 LC 9.6.9 rc1 >>>> >>>> Bob S >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Tue Aug 16 08:55:48 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 16 Aug 2022 08:55:48 -0400 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> Message-ID: <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Bob. You can always roll your own, Craig > On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode wrote: > > I should also mention that menuPick IS getting triggered, but if I use spacebar or return to select, the parameter for which item got picked is empty. If I click then the parameter is NOT empty it's the item I clicked. > > Bob S > > >> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode wrote: >> >> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and those work as advertized. >> >> When I click to expand a combo box menu, it I get the list of items, and if I click an item, it correctly selects that item. If however I use the arrow keys to hilite an item then use the space bar or return to select the hilited item, the hilited item is NOT selected, it retains it's previous label. >> >> Bob S >> >> >>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode wrote: >>> >>> Hi, I was not complete. Once the arrow keys have found the menuItem of interest, clicking Enter or Return executes the menuPick handler. >>> >>> Craig >>> >>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> Hi all. Very odd, I thought this worked. >>>> >>>> I am programmatically popping up a menu, then I want to be able to jse the arrow keys to traverse the selections available. If I click any of the choices, the menuPick handler gets the choice as the first parameter. If however I use the spacebar or the enterKey to select a choice, the parameter is empty in menuPick! That isn't right, is it?? >>>> >>>> MacOS 10.15.7 LC 9.6.9 rc1 >>>> >>>> Bob S >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Tue Aug 16 09:18:30 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 16 Aug 2022 14:18:30 +0100 Subject: Polygrid sorting In-Reply-To: <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> References: <94E40C36-74A8-485A-B829-E49118656D2A@gmail.com> <304471d6-fcd0-2157-fd49-845f83d8315c@researchware.com> Message-ID: <32D3639F-A2C6-42F2-A9FE-00E6D60E628A@gmail.com> I downloaded and installed the widget, it works (very well) now :) > On 15 Aug 2022, at 9:10 pm, Paul Dupuis via use-livecode wrote: > > Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. > > Now I have to go try it on macOS? > > > > On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: >> Hi Paul, >> >> I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my laptop (apple silicon M1) I tried it on an Intel MacBook Pro and got the same result. >> >> I am a big fan of being able to lock top and left-most column/rows of any grid and would happily endorse your request. >> >> Cheers, >> Mark >> >>> On 15 Aug 2022, at 7:29 pm, Paul Dupuis via use-livecode wrote: >>> >>> So, I bought the Summer Bundle. Yes, it is a good deal. >>> >>> In my case it was primarily for the Polygrid widget. Our application uses a Datagrid to display customer research data. The columns headers are text and the left most column ROWs are test and all other cells are numbers. Some customers can have quite large data sets and I have been running into the number of columns (ad a default width of 100px per column) exceeding a GROUPs 32,767px width maximum (about 327-328 columns). At this point the Datagrid just fails - no data is displayed. >>> >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this limit. I have a "test" stack (for Datagrid testing) I converted to the Polygrid and can easily generate 1000 columns x 1000 rows of data and it works. >>> >>> So I guess the answer to bug https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >>> >>> On that note, the Datagrid has 2 features I use in this specific case, user column resizing (built into the Polygrid - Yea!) and column sorting (NOT built into the Polygrid - Boo!). So, does anyone have some column sort code for the Polygrid they have written that they might be willing to share? >>> >>> Also, I have filled a Polygrid enhancement request to allow the left column (or the left N columns) to be locked/frozen, so they remain visible when the Polygrid is scrolled horizontally. See https://quality.livecode.com/show_bug.cgi?id=23880. If you might benefit from this enhancement, please follow the bug or add a comment to that effect. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 16 11:08:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Aug 2022 15:08:15 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Message-ID: Thanks Craig for confirming, I will put in an enhancement request FWIW. Bob S > On Aug 16, 2022, at 05:55 , Craig Newman via use-livecode wrote: > > Bob. > > You can always roll your own, > > Craig From bobsneidar at iotecdigital.com Tue Aug 16 11:19:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Aug 2022 15:19:55 +0000 Subject: Shouldn't space or enter in a menu select the hilited item? In-Reply-To: References: <70A75B95-A73F-448C-86FA-E1BB2FB9731C@iotecdigital.com> <12842B27-1D43-4A12-8C8D-47426821E70A@starfirelighting.com> <005E7EDA-5EEA-474F-A7F7-E190C5767F82@iotecdigital.com> <1CB05C5D-C279-4972-939B-D273D4058A76@iotecdigital.com> <8B587310-68C0-4A59-84C2-946C856636E4@starfirelighting.com> Message-ID: <96DA5143-E316-4D46-B0E1-B2F47CA12432@iotecdigital.com> Bug 23884 Bob S On Aug 16, 2022, at 08:08 , Bob Sneidar > wrote: Thanks Craig for confirming, I will put in an enhancement request FWIW. Bob S On Aug 16, 2022, at 05:55 , Craig Newman via use-livecode > wrote: Bob. You can always roll your own, Craig From paul at researchware.com Wed Aug 17 13:38:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 13:38:50 -0400 Subject: the effective width of a stack? Message-ID: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> I can across some old code where I an referring to if (the effective width of stack X > someValue) then This code produces no errors and works. However, I was just trying to look up 'effective width' to see exactly what it was doing in the Livecode 9.6.8 Dictionary and struck out! Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not listed as an inherited property that 'effective' can be used with. Under 'width' it is not listed. If I look at the entry to the 'stack' object, I find 'width' but that just takes me to the entry for 'width' Am I imagining something, OR is there such a thing as 'effective width' and if so, where the heck is it documented? PS. I thought the width of a stack (or window) vs the effective width was teh difference between the inner dimensions of the stack (the card size) and the size  of the stack with borders and titlebar (outer dimensions). I forget which is which and, again, can not find it documented! Also, I thought that contrary to the Dictionary entry to the 'effective' keyword, you could SET the 'effective width' of a stack/window to change the size of the outer dimensions(?) I'd appreciate any pointers to where effective width or effective height of a stack is documented. From bobsneidar at iotecdigital.com Wed Aug 17 13:45:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 17 Aug 2022 17:45:24 +0000 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: The effective keyword can be used with the following inherited properties : • backgroundColor property • backgroundPattern property • backgroundPixel property • bottomColor property • bottomPattern property • bottomPixel property • focusColor property • focusPattern property • focusPixel property • foregroundColor property • foregroundPattern property • foregroundPixel property • hiliteColor property • hilitePattern property • hilitePixel property • topColor property • topPattern property • topPixel property • shadowColor property • shadowPattern property • shadowPixel property • textFont property • textHeight property • textSize property • textStyle property • filename of stack property • rectangle property • layerMode property I don't see "width" there. You have to use rect then do the math. Bob S > On Aug 17, 2022, at 10:38 , Paul Dupuis via use-livecode wrote: > > I can across some old code where I an referring to > > if (the effective width of stack X > someValue) then > > This code produces no errors and works. However, I was just trying to look up 'effective width' to see exactly what it was doing in the Livecode 9.6.8 Dictionary and struck out! From ahsoftware at sonic.net Wed Aug 17 13:58:58 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 17 Aug 2022 10:58:58 -0700 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> On 8/17/22 10:38, Paul Dupuis via use-livecode wrote: > I'd appreciate any pointers to where effective width or effective height > of a stack is documented. You can't use "effective" with custom properties either. https://quality.livecode.com/show_bug.cgi?id=23557 You *can* set the effective rect of a stack, although you may not get the result you expect. https://quality.livecode.com/show_bug.cgi?id=16305 -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Aug 17 14:09:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 17 Aug 2022 18:09:21 +0000 Subject: the effective width of a stack? In-Reply-To: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> Message-ID: I think this is why some time ago when I was trying to save and restore the position of windows I ran into the creeping window issue where the top of the window kept creepign up each time I opened it. Bob S > On Aug 17, 2022, at 10:58 , Mark Wieder via use-livecode wrote: > > You *can* set the effective rect of a stack, although you may not get the result you expect. > https://quality.livecode.com/show_bug.cgi?id=16305 > > -- > Mark Wieder > ahsoftware at gmail.com From dougr at telus.net Wed Aug 17 14:45:36 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Wed, 17 Aug 2022 11:45:36 -0700 Subject: issue related to Print.PrintSupport.Source.dll Message-ID: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> There was a flurry of discussions on the LC forum https://forums.livecode.com/viewtopic.php?f=9 &t=36870&start=45) in April to July regarding errors occurring involving Print.PrintSupport.Source.dll. I will post on the forum as well but was wondering if anyone (including the Mothership) has had similar problems and if solution(s) have been found. The forum discussions seems to have ended with "some" possible solutions but, in my reading, nothing definitive. Like the discussions on the forum *some* of my clients are experiencing this error but MANY are not. weird. Douglas Ruisaard From paul at researchware.com Wed Aug 17 15:46:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 15:46:08 -0400 Subject: the effective width of a stack? In-Reply-To: <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> <14f892ba-ed9e-1958-9e34-0c1d7e432881@sonic.net> Message-ID: On 8/17/2022 1:58 PM, Mark Wieder via use-livecode wrote: > On 8/17/22 10:38, Paul Dupuis via use-livecode wrote: > >> I'd appreciate any pointers to where effective width or effective >> height of a stack is documented. > > You can't use "effective" with custom properties either. > https://quality.livecode.com/show_bug.cgi?id=23557 > > You *can* set the effective rect of a stack, although you may not get > the result you expect. > https://quality.livecode.com/show_bug.cgi?id=16305 > I now remember bug 16305. Mark entered it based on a list discussion where I reported it. Hence my comments on it. I now use Panos's workaround (in fact my code base is riddled with "work-arounds"), but there seem to be a (limited) consensus that on Windows 10, the effective rect should only factor in VISIBLE border elements, not INVISIBLE ones. I still wish they would fix it. That all said, where is effective width/heigh/rect of a stack/window documented in the Dictionary? The 'effective rect' and other 'effective' dimension properties of a stack/window are important for multiple window positioning, resizing, alignment, and more and should be in teh Dictionary. ALSO, as the 1 exception to the "you can not SET 'effective' things rule, that should definitely be documented. I'll file a documentation bug report, but I don't want to file one just to find out I looked under the 'wrong' place. Paul Dupuis Researchware From paul at researchware.com Wed Aug 17 15:51:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 15:51:51 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> Message-ID: <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> BTW the problem of: the text of widget X the csvData of widget X the tsvData of widget X AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) the pgText of widget X ALL not returning the full data for a PolyGrid widget is a confirmed bug: See https://quality.livecode.com/show_bug.cgi?id=23886 On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: > So there is an example of sorting in the PolyGrid documentation under > the entry for the MESSAGE "headerClick" and under the entry to the > PROPERTY "text" (and in 'the text of me') > > The example code only sort the visible rows as "the text of widget X" > returns the data of PolyGrid X as tab delimited, WITHOUT the column > headers, but ONLY the visible rows. > > So, what to use for sorting all the data in a PolyGrid by a particular > column? > > The tsvData of widget X (and csvData, and Text) doesn't seem to work. > The all seems to only get the visible data (rows). Only the pgData of > widget return the whole dataset of the PolyGrid. Is this the way these > properties are supposed to work? > > If that is how text, csvData, and tsvData are supposed to work > (returning only the visible rows), then the sort example in the > PolyGrid documentation require updating otherwise these properties > require updating! > > > > On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >> So, I bought the Summer Bundle. Yes, it is a good deal. >> >> In my case it was primarily for the Polygrid widget. Our application >> uses a Datagrid to display customer research data. The columns >> headers are text and the left most column ROWs are test and all other >> cells are numbers. Some customers can have quite large data sets and >> I have been running into the number of columns (ad a default width of >> 100px per column) exceeding a GROUPs 32,767px width maximum (about >> 327-328 columns). At this point the Datagrid just fails - no data is >> displayed. >> >> I can now attest that a Polygrid (under LC 9.6.8) does not have this >> limit. I have a "test" stack (for Datagrid testing) I converted to >> the Polygrid and can easily generate 1000 columns x 1000 rows of data >> and it works. >> >> So I guess the answer to bug >> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the PolyGrid" >> >> On that note, the Datagrid has 2 features I use in this specific >> case, user column resizing (built into the Polygrid - Yea!) and >> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >> have some column sort code for the Polygrid they have written that >> they might be willing to share? >> >> Also, I have filled a Polygrid enhancement request to allow the left >> column (or the left N columns) to be locked/frozen, so they remain >> visible when the Polygrid is scrolled horizontally. See >> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >> benefit from this enhancement, please follow the bug or add a comment >> to that effect. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Aug 17 17:52:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 17 Aug 2022 17:52:08 -0400 Subject: the effective width of a stack? In-Reply-To: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> References: <5fe0f420-2869-e8a5-027e-e926becf42d1@researchware.com> Message-ID: On 8/17/2022 1:38 PM, Paul Dupuis via use-livecode wrote: > I can across some old code where I an referring to > > if (the effective width of stack X > someValue) then > > This code produces no errors and works. However, I was just trying to > look up 'effective width' to see exactly what it was doing in the > Livecode 9.6.8 Dictionary and struck out! > > Under the 'effective' entry in the 9.6.8 Dictionary, 'width' is not > listed as an inherited property that 'effective' can be used with. > Under 'width' it is not listed. If I look at the entry to the 'stack' > object, I find 'width' but that just takes me to the entry for 'width' > > Am I imagining something, OR is there such a thing as 'effective > width' and if so, where the heck is it documented? > > PS. I thought the width of a stack (or window) vs the effective width > was teh difference between the inner dimensions of the stack (the card > size) and the size  of the stack with borders and titlebar (outer > dimensions). I forget which is which and, again, can not find it > documented! Also, I thought that contrary to the Dictionary entry to > the 'effective' keyword, you could SET the 'effective width' of a > stack/window to change the size of the outer dimensions(?) > > I'd appreciate any pointers to where effective width or effective > height of a stack is documented. So testing shows that (in LC 9.6.8 at any rate) the following STACK properties can use the effective keyword: height width rect (or rectangle) left right top bottom topLeft topRight bottomLeft bottomRight and, indeed, the different between the property and the effective property is the property (inside dimensions) and effective property (outside dimensions) The "effective" keyword is ONLY documented with the rect/rectangle property in the Dictionary and not for any other dimensional properties, even though they work as expected (well except for Window 10: https://quality.livecode.com/show_bug.cgi?id=16305) It also appears (from testing) that you can set the effective rect (as documented in the rect Dictionary entry) and set the effective width or the effective height (not documented in the Dictionary). I have not yet tried setting the "effective" form of the remaining dimensional properties (top, left, topLeft, etc.) From jacque at hyperactivesw.com Wed Aug 17 18:02:38 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 17 Aug 2022 17:02:38 -0500 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> Message-ID: 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 customers have a different printer, try that OEM driver. We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. On 8/17/22 1:45 PM, Douglas A. Ruisaard via use-livecode wrote: > There was a flurry of discussions on the LC forum > https://forums.livecode.com/viewtopic.php?f=9 > > &t=36870&start=45) in April to July regarding errors occurring involving > Print.PrintSupport.Source.dll. > > > > I will post on the forum as well but was wondering if anyone (including the > Mothership) has had similar problems and if solution(s) have been found. > The forum discussions seems to have ended with "some" possible solutions > but, in my reading, nothing definitive. Like the discussions on the forum > *some* of my clients are experiencing this error but MANY are not. weird. > > > > Douglas Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Wed Aug 17 19:27:46 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 17 Aug 2022 16:27:46 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> Message-ID: <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > We had one instance where the user didn't have a printer at all, but > just deleting the Epson driver fixed it. \_()_/ -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Wed Aug 17 21:02:37 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 17 Aug 2022 21:02:37 -0400 Subject: i wonder what other widgets i'm missing Message-ID: I bought the megabundle and installed the widgets. Then I started checking out the signature widget, and discover that some of you have been using it for four years. I didn't even know it existed before today, and I have a Business license (I also had not been aware of the polylist/polygrids before the megabundle) So now I'm wondering a) what other widgets i'm missing b) since the widget store is kind of sparse, if there are other places to look for LC toys, especially widgets? -- 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." From MikeKerner at roadrunner.com Thu Aug 18 10:42:48 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 10:42:48 -0400 Subject: polylist toys Message-ID: fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" example that I can trigger an error just by opening it and tapping "populate" can anyone else confirm? -- 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." From bobsneidar at iotecdigital.com Thu Aug 18 11:28:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Aug 2022 15:28:20 +0000 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> Message-ID: <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> Not unheard of. Some years back we discovered that if the HP Universal Print Driver had been installed, Toshiba drivers would not work at all. We had to uninstall the HP Universal Driver and replace it with the model-specific driver. Bob S > On Aug 17, 2022, at 16:27 , Mark Wieder via use-livecode wrote: > > On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > >> We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. > > ¯\_(ツ)_/¯ > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Aug 18 11:48:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 08:48:02 -0700 Subject: polylist toys In-Reply-To: References: Message-ID: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> On 8/18/22 07:42, Mike Kerner via use-livecode wrote: > fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" > example that I can trigger an error just by opening it and tapping > "populate" > can anyone else confirm? > Yep. The polylist continually throws ridiculous errors at me. (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). And that's at line 2791 (unable to get image geometry) but the source is locked so there's nothing more to do. Also, the versioning thing is out of hand. I just downloaded version 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was a fix in the new version. So I now have v1.0.21 of the enhancements packaged in a 1.0.0 zip file, and I see that half a dozen extensions have been updated since the last time I downloaded 1.0.0. And there was no notification that anything had been updated/fixed/whatever. If it hadn't been for the comment Panos put into bugzilla how is anyone supposed to know that things have been updated? -- Mark Wieder ahsoftware at gmail.com From steven.crighton at livecode.com Thu Aug 18 12:34:08 2022 From: steven.crighton at livecode.com (Steven Crighton) Date: Thu, 18 Aug 2022 17:34:08 +0100 Subject: polylist toys Message-ID: Hi Mike, I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. Can you let me know what the error was? I would say just to double check that are you are using the most recent version. I understand that we need to make some improvements regarding the notification of updates on these new widgets and we will do that. In the meantime we have implemented a last updated date in the my account area, so it’s well worth checking in on that from time to time to see if there is a new update available. Thanks Steven From ahsoftware at sonic.net Thu Aug 18 12:55:55 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 09:55:55 -0700 Subject: polylist toys In-Reply-To: References: Message-ID: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> On 8/18/22 09:34, Steven Crighton via use-livecode wrote: > Hi Mike, > > I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. > > Can you let me know what the error was? > See my previous email. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Aug 18 13:27:22 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:27:22 -0400 Subject: polylist toys In-Reply-To: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> References: <0c12a2c5-25e3-9e01-141a-d37c79629c67@sonic.net> Message-ID: Steven, I also emailed Panos: I think it would be good to have a few of the LCG22/23 sessions cover some of the widgets. The documentation is kind-of thin, and I'm already stacking questions like: * polygrid/list vs. datagrid * much of the discussion is regarding web deployment, but at least for me, mobile is the important platform, so there should be more discussion about that * is there widget source somewhere, or are we going to have to rfq LC if we would like to request some enhancements? example: for the power button, maybe instead of a border at the edge, i'd like to be able to inset it. On Thu, Aug 18, 2022 at 12:57 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/18/22 09:34, Steven Crighton via use-livecode wrote: > > Hi Mike, > > > > I just tested the lazy load example and hit populate and clicked around > etc and could not trigger an error. > > > > Can you let me know what the error was? > > > > See my previous email. > > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From brian at milby7.com Thu Aug 18 13:34:19 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 18 Aug 2022 13:34:19 -0400 Subject: polylist toys In-Reply-To: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: I just rename the zip file when I download it :) But yes, only way to know currently is to log in and check the version/date. Sent from my iPhone > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode wrote: > > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: >> fiddling with polylist examples, and i noticed in the "lazyLoadOnlineImage" >> example that I can trigger an error just by opening it and tapping >> "populate" >> can anyone else confirm? > > Yep. The polylist continually throws ridiculous errors at me. > (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). And that's at line 2791 (unable to get image geometry) but the source is locked so there's nothing more to do. > > Also, the versioning thing is out of hand. I just downloaded version 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was a fix in the new version. So I now have v1.0.21 of the enhancements packaged in a 1.0.0 zip file, and I see that half a dozen extensions have been updated since the last time I downloaded 1.0.0. And there was no notification that anything had been updated/fixed/whatever. If it hadn't been for the comment Panos put into bugzilla how is anyone supposed to know that things have been updated? > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 18 13:36:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:36:06 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: I am not aware of a place to check the version/date. I received a link for the download, and I don't see the download as a separate item in my account On Thu, Aug 18, 2022 at 1:35 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I just rename the zip file when I download it :) > > But yes, only way to know currently is to log in and check the > version/date. > > Sent from my iPhone > > > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: > >> fiddling with polylist examples, and i noticed in the > "lazyLoadOnlineImage" > >> example that I can trigger an error just by opening it and tapping > >> "populate" > >> can anyone else confirm? > > > > Yep. The polylist continually throws ridiculous errors at me. > > > (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). > And that's at line 2791 (unable to get image geometry) but the source is > locked so there's nothing more to do. > > > > Also, the versioning thing is out of hand. I just downloaded version > 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was > a fix in the new version. So I now have v1.0.21 of the enhancements > packaged in a 1.0.0 zip file, and I see that half a dozen extensions have > been updated since the last time I downloaded 1.0.0. And there was no > notification that anything had been updated/fixed/whatever. If it hadn't > been for the comment Panos put into bugzilla how is anyone supposed to know > that things have been updated? > > > > -- > > Mark Wieder > > ahsoftware at gmail.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 18 13:40:18 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 13:40:18 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: after hitting the link, again, I got 1_0_21 The error is the same: executing at 1:39:25 PM LCB Error Unable to get image geometry. Object PolyList LCB File E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb LCB Line 2791 On Thu, Aug 18, 2022 at 1:36 PM Mike Kerner wrote: > I am not aware of a place to check the version/date. I received a link for > the download, and I don't see the download as a separate item in my account > > On Thu, Aug 18, 2022 at 1:35 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I just rename the zip file when I download it :) >> >> But yes, only way to know currently is to log in and check the >> version/date. >> >> Sent from my iPhone >> >> > On Aug 18, 2022, at 11:49 AM, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > On 8/18/22 07:42, Mike Kerner via use-livecode wrote: >> >> fiddling with polylist examples, and i noticed in the >> "lazyLoadOnlineImage" >> >> example that I can trigger an error just by opening it and tapping >> >> "populate" >> >> can anyone else confirm? >> > >> > Yep. The polylist continually throws ridiculous errors at me. >> > >> (=E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb). >> And that's at line 2791 (unable to get image geometry) but the source is >> locked so there's nothing more to do. >> > >> > Also, the versioning thing is out of hand. I just downloaded version >> 1.0.0 of the bundle (again!) because I got a bugzilla notice that there was >> a fix in the new version. So I now have v1.0.21 of the enhancements >> packaged in a 1.0.0 zip file, and I see that half a dozen extensions have >> been updated since the last time I downloaded 1.0.0. And there was no >> notification that anything had been updated/fixed/whatever. If it hadn't >> been for the comment Panos put into bugzilla how is anyone supposed to know >> that things have been updated? >> > >> > -- >> > Mark Wieder >> > ahsoftware at gmail.com >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at 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." > -- 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." From ahsoftware at sonic.net Thu Aug 18 13:51:18 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 10:51:18 -0700 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: <3a207b28-ab58-b090-1564-7b3c29bc1ccc@sonic.net> On 8/18/22 10:36, Mike Kerner via use-livecode wrote: > I am not aware of a place to check the version/date. I received a link for > the download, and I don't see the download as a separate item in my account It's hidden under "Third Party". Scroll down and there's something like "livecode enhancements". Then you download it, unzip it into a folder, launch the IDE, and open the widgetpackinstaller stack and click Install. Ignore (Purge) the errors about multiple stacks with the same name. When it's done a button (!) appears that says "Complete". Clicking it doesn't do anything useful. I don't know what happens if an error occurs. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Aug 18 13:53:05 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 18 Aug 2022 10:53:05 -0700 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: On 8/18/22 10:40, Mike Kerner via use-livecode wrote: > after hitting the link, again, I got 1_0_21 > The error is the same: > > executing at 1:39:25 PM > > LCB Error Unable to get image geometry. > > Object PolyList > > LCB File > E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb > > LCB Line 2791 Yep. That's what I get as well. Not sure why there's a pointer to someone's Windows system. I'm guessing that gets bound in when the lcb file is generated by the build process. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Aug 18 14:02:47 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 14:02:47 -0400 Subject: polylist toys In-Reply-To: References: <2b80b8a7-6658-2d6b-61fe-2d649167bb81@sonic.net> Message-ID: oh, that's right, it's in "third party". i just hit the download link in the megabundle email, again. 21 is the latest, according to the site, which is what i just tried, a little bit ago. On Thu, Aug 18, 2022 at 1:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/18/22 10:40, Mike Kerner via use-livecode wrote: > > after hitting the link, again, I got 1_0_21 > > The error is the same: > > > > executing at 1:39:25 PM > > > > LCB Error Unable to get image geometry. > > > > Object PolyList > > > > LCB File > > > E:/Projects/GitHub/LiveCode-LTD/summer-mega-bundle/src/PolyList/PolyList.lcb > > > > LCB Line 2791 > > Yep. That's what I get as well. Not sure why there's a pointer to > someone's Windows system. I'm guessing that gets bound in when the lcb > file is generated by the build process. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From dougr at telus.net Thu Aug 18 14:18:25 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Thu, 18 Aug 2022 11:18:25 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> Message-ID: <02a101d8b32e$e8478b60$b8d6a220$@telus.net> I VERY much appreciate the feedback … it helps not to feel isolated with a virtually unsolvable issue which affects one’s credibility with clients. It is somewhat strange that this does seem to implicate LC to some degree, though. A version of my code which (probably) used whatever LC version was fairly current in 2013 (I should, but don’t, keep track of what version of LC I use for various releases of my applications) DOES NOT exhibit this issue on the very same installations which are experiencing the error. I would have used LC v 9.1 to produce the standalone which is *VERY* occasionally exhibiting this issue. So … apparently … sometime along the way, LC changes seem to have “promoted” the potential for this error. I’ve told the customers that I cannot possible fix something which I cannot reproduce. I’ve also insinuated that even if LC *does* discover and fix the underlying issue, that I *WILL NOT* re-issue a new version with the VAST majority of 5,000+ installations NOT experiencing a problem … citing the amount of regression testing which would be mandated as a part of such a revision. Again, thanks for the responses… this group is ALWAYS awesome in its support and knowledge! Douglas Ruisaard Trilogy Software (250) 573-3935 -----Original Message----- From: use-livecode On Behalf Of Bob Sneidar via use-livecode Sent: Thursday, August 18, 2022 8:28 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: issue related to Print.PrintSupport.Source.dll Not unheard of. Some years back we discovered that if the HP Universal Print Driver had been installed, Toshiba drivers would not work at all. We had to uninstall the HP Universal Driver and replace it with the model-specific driver. Bob S > On Aug 17, 2022, at 16:27 , Mark Wieder via use-livecode wrote: > > On 8/17/22 15:02, J. Landman Gay via use-livecode wrote: > >> We had one instance where the user didn't have a printer at all, but just deleting the Epson driver fixed it. > > ¯\_(ツ)_/¯ > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bduck at mac.com Thu Aug 18 14:27:25 2022 From: bduck at mac.com (Brian K. Duck) Date: Thu, 18 Aug 2022 14:27:25 -0400 Subject: Fall 2022 xAPI Cohort Starts in Two Weeks! Message-ID: Join us for the LIVE kickoff web session on September 1st Starting on September 1st, every Thursday for 12 weeks, xAPI Cohort live web sessions will take place from 2:00 - 3:00 pm Eastern (US) Time. We will be sharing the link to the Virtual Classroom in an upcoming email so keep an eye on your inbox! Our first session will introduce xAPI and the xAPI Cohort. We'll talk about the projects you can take on, how to join a team, and what makes a project group successful. Please don’t feel overwhelmed if you’re not quite ready to brainstorm projects yet. To join, or Explore the xAPI Cohort website. https://xapicohort.com/ In past cohorts, we had a team work with LiveCode to build a sample stack for sending xAPI requests to a server. In there any interest in helping to update the project for LiveCode 10? Brian Duck From andreas.bergendal at gmail.com Thu Aug 18 14:49:57 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Thu, 18 Aug 2022 20:49:57 +0200 Subject: A web app launcher with responsive design Message-ID: <09E684DF-5A79-4BA4-BDD7-FF931C24A7F2@gmail.com> I have now redesigned the portal page and made it much more responsive and also with clearer sections for the example stacks: https://wheninspace.com/portal/ (You may need to clear the browser cache, or open the link in a private browser window if it looks the same as before.) I've also updated the download package and put a link to it from the portal stack. From matthias_livecode_150811 at m-r-d.de Thu Aug 18 15:04:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 18 Aug 2022 21:04:55 +0200 Subject: i wonder what other widgets i'm missing In-Reply-To: References: Message-ID: Normally the release notes of every Livecode version contains also information about newly added widgets. Regarding the PolyGrid and PolyList widgets. They were first released with the Megabundle. They were not available before. The original developer posted a year or so ago in the Livecode FB group about Polygrid and posted also a link to an sample stack with preview version of the PolyGrid widget. The release of the widget was promised for weeks later, but that never did happen. On Mac you can find all in Livecode included widgets in the application bundle under /contents/Tools/Extensions Sometimes widgets from Livecode community members are offered in the LC forums. A nice one btw is the gauge widget from Bernd Niggemann https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge Regards, Matthias > Am 18.08.2022 um 03:02 schrieb Mike Kerner via use-livecode : > > I bought the megabundle and installed the widgets. > Then I started checking out the signature widget, and discover that some of > you have been using it for four years. I didn't even know it existed before > today, and I have a Business license (I also had not been aware of the > polylist/polygrids before the megabundle) > So now I'm wondering > a) what other widgets i'm missing > b) since the widget store is kind of sparse, if there are other places to > look for LC toys, especially widgets? > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Aug 18 15:13:36 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 18 Aug 2022 14:13:36 -0500 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: <02a101d8b32e$e8478b60$b8d6a220$@telus.net> References: <059601d8b269$8a8aebe0$9fa0c3a0$@telus.net> <52cef82a-8d8e-223e-c6e0-0d54d0daf146@sonic.net> <34168E63-E3FF-4D62-ADB4-BB2CC54108EF@iotecdigital.com> <02a101d8b32e$e8478b60$b8d6a220$@telus.net> Message-ID: <74e73415-4abe-46fc-19d2-ea7dd72da873@hyperactivesw.com> On 8/18/22 1:18 PM, Douglas A. Ruisaard via use-livecode wrote: > I VERY much appreciate the feedback … it helps not to feel isolated with a virtually unsolvable issue which affects one’s credibility with clients. There is more info in the bug report: For us the problem did not show up until users installed Windows 11, and the drivers that ship with that conflict with LC, while the OEM driver does not. If Win 10 users are having the same issue, it may be that they got an update which updated the older drivers. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Aug 18 15:52:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 18 Aug 2022 14:52:57 -0500 Subject: A few issues with web apps Message-ID: I have just created my first web deployment and I'm *very* impressed. I didn't need to change any of the original scripts, the only changes were for visual elements that were different when run in a browser. Aside from appearance, the scripts ran flawlessly. On desktop it's great in all three browsers I tested on. But I ran into issues when running in mobile browsers on Android. Does anyone know how to fix these things: 1. Editable fields fail with both SwiftKey and GBoard keyboards, though they fail in different ways. The cursor is misaligned on GBoard, I can't type spaces in SwiftKey, and it is impossible to drag-select text in either one. Do I need an Android native field? Right now I'm just using LC fields. 2. The slider widget does not allow dragging the round indicator button. I can tap the bar to get an approximate setting but fine tuning with the slider button is impossible. Rather than slide, the whole web canvas moves instead. 3. I have some scrolling fields and the default Motif scrollbar looks awful. How do I implement a native browser scroller? Should I use the scripts I use for mobile devices? What's the best way to implement scrolling fields? All in all, everything else works, which is really quite incredible. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Thu Aug 18 16:02:43 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 16:02:43 -0400 Subject: i wonder what other widgets i'm missing In-Reply-To: References: Message-ID: what is curious is the signature widget, at least according to one of the threads i was reading, was out in since 2019, but it never showed up in the list of widgets in my tools palette. reading the thread, it seemed that some people had access to it, then. On Thu, Aug 18, 2022 at 3:06 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Normally the release notes of every Livecode version contains also > information about newly added widgets. > > Regarding the PolyGrid and PolyList widgets. They were first released with > the Megabundle. They were not available before. > The original developer posted a year or so ago in the Livecode FB group > about Polygrid and posted also a link to an sample stack with preview > version of the PolyGrid widget. > The release of the widget was promised for weeks later, but that never > did happen. > > On Mac you can find all in Livecode included widgets in the application > bundle under /contents/Tools/Extensions > Sometimes widgets from Livecode community members are offered in the LC > forums. A nice one btw is the gauge widget from Bernd Niggemann > https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge < > https://forums.livecode.com/viewtopic.php?f=93&t=29348&hilit=gauge> > > Regards, > Matthias > > > > > Am 18.08.2022 um 03:02 schrieb Mike Kerner via use-livecode < > use-livecode at lists.runrev.com>: > > > > I bought the megabundle and installed the widgets. > > Then I started checking out the signature widget, and discover that some > of > > you have been using it for four years. I didn't even know it existed > before > > today, and I have a Business license (I also had not been aware of the > > polylist/polygrids before the megabundle) > > So now I'm wondering > > a) what other widgets i'm missing > > b) since the widget store is kind of sparse, if there are other places to > > look for LC toys, especially widgets? > > > > -- > > 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 at 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 at 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." From steven.crighton at livecode.com Thu Aug 18 16:19:42 2022 From: steven.crighton at livecode.com (Steven Crighton) Date: Thu, 18 Aug 2022 21:19:42 +0100 Subject: polylist toys In-Reply-To: References: Message-ID: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> Hi Mike I see the issue now. If you were to load this in the latest LiveCode 10 DP you would not get that error (this is why I was not seeing it earlier). LiveCode 10 has an LCB feature that is required for this specific error not to occur. That LCB feature is not present in any LC9 version Steven From MikeKerner at roadrunner.com Thu Aug 18 16:29:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 16:29:06 -0400 Subject: polylist toys In-Reply-To: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> References: <087E1D1D-B0D0-4956-A20C-DE679F99871C@livecode.com> Message-ID: confirmed. 10 fixes it. On Thu, Aug 18, 2022 at 4:20 PM Steven Crighton via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike > > I see the issue now. If you were to load this in the latest LiveCode 10 DP > you would not get that error (this is why I was not seeing it earlier). > > LiveCode 10 has an LCB feature that is required for this specific error > not to occur. That LCB feature is not present in any LC9 version > > Steven > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From zryip.theslug at gmail.com Thu Aug 18 18:02:51 2022 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 19 Aug 2022 00:02:51 +0200 Subject: [ANN] 1-D Barcode generator Widget 1.0 is looking for Testers Message-ID: Dear LiveCode Users: It has been a long time since I've come with something really new. So, I'm pleased to announce our first widget generating one-dimensional barcodes. Here is the list of the barcodes styles supported: - Code39 - Code128A, Code128B, Code128C - EAN8, EAN13 - UPC-A, UPC-E - ITF As usual to ensure the best quality possible before a final release, we need some help for testing this widget outside of our development environment. Ideally we will be happy to send a beta version to users interested to help. If you have some interest in this new widget and would like to help, feel free to drop me a note. Some more informations about this barcode generator widget are available here: https://www.aslugontheroad.com/41-barcode-generator-widget-1-0-0-ready-for-a-beta-test Best Regards, -- Zryip TheSlug http://www.aslugontheroad.com From alex at tweedly.net Thu Aug 18 18:13:13 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 18 Aug 2022 23:13:13 +0100 Subject: polylist toys In-Reply-To: References: Message-ID: On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > Hi Mike, > > I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. As already confirmed, that problem is fixed in 10. However, the lazy load example still contains bugs due to race conditions, some of which I described in some forum post somewhere (Boy do I hate the forums! Surely there's some way to check what posts I have done myself). Thinking about it more, there are other race conditions which are perhaps more obscure, but more serious. I know it's only an example, and maybe can't be expected to be bulletproof, but as an example of how to do Lazy Loading it is (IMHO) really too naive and simplistic. People expect to take those examples and just use them. The obvious race conditions are: 1. if multiple entries reference the same image, then there is a chance the earlier ones never get properly updated (sURLToIndex[pURL] will have been overwritten by the next call to onlineImage before the image value gets set). 2. if the user (or anything else) resets the dataContent of the widget while there are outstanding "load URL"s, then when the downloadComplete is triggered, it will set the image value for some random new item to the image of the earlier one. 3. And if the one which was wrongly set in case 2 above also happens to be a URL that occurs multiple time (i.e. case 1 above), then that wrongly set image will remain "forever". Alex. From ambassador at fourthworld.com Thu Aug 18 18:25:47 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 18 Aug 2022 15:25:47 -0700 Subject: issue related to Print.PrintSupport.Source.dll In-Reply-To: References: Message-ID: 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 customers have a different printer, try > that OEM driver. The Read Me that came with MetaCard included: "MetaCard is very good at exposing bugs in drivers." It used to annoy me that Raney would ask me to make sure I was using the latest driver available from the manufacturer of whatever device I was having trouble with (displays, printers, etc.). I'd say, "But it doesn't happen with any other software!" And he'd say, "Please check the driver version, and if a newer one doesn't fix it let me know." In nearly every such case since I had that exchange with him in 1999, he was right. Always check driver versions. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu Aug 18 18:29:23 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 18 Aug 2022 15:29:23 -0700 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: References: Message-ID: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> 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 World Systems From skiplondon at gmail.com Thu Aug 18 18:38:39 2022 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 18 Aug 2022 18:38:39 -0400 Subject: Livecode / Github Message-ID: Greetings! Been a while since I have been on this list. Working on a new project and wondering if the backing up of Livecode files to Github was ever implemented and created. I know there was talk of it at one time. I apologize if it has been in place for a while and I am just out of the loop. Actually, I HOPE that is the case! Regards, SKIP From mkoob at rogers.com Thu Aug 18 18:49:32 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 18 Aug 2022 18:49:32 -0400 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> References: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> Message-ID: <2070B206-989F-4155-9A92-1A0688B0C9EA@rogers.com> Hi Richard As far as others here are three I know of. There is the Tree View widget in LiveCode that gives you a hierarchical list. There is an explanation of that widget here: https://livecode.fandom.com/wiki/Tree_view_widget There is a third party product DataTree. https://www.nativesoft.net/products/datatree/ Levure has its own version of the DataGrid, the DataView https://github.com/trevordevore/levurehelper-dataview https://github.com/trevordevore/dataview_demo Martin > On Aug 18, 2022, at 6:29 PM, Richard Gaskin via use-livecode wrote: > > > 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 World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 18 18:50:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 18:50:22 -0400 Subject: Comparison chart for DataGrid, PolyList, PolyGrid, list fields.... In-Reply-To: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> References: <9bd49760-3f8a-a19a-8c44-907fb0c849fc@fourthworld.com> Message-ID: <0176da5b-374a-78c4-c671-59865221f578@researchware.com> On 8/18/2022 6:29 PM, Richard Gaskin via use-livecode wrote: > > 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? > No list, but I did discover one reason for choosing PolyGrid over DataGrid recently. Large number of columns (such as user generated research data). The DataGrid is a group and so is limited to a total width of all columns of 32767px, or about 327 columns at the default of 100px per column. Exceed this and the data stops displaying. I have tested PolyGrid with 1000 columns without issue. The Datagrid column limit can also be an issue if you are close to the limit and the user resizes 1 or more columns to exceed the total pixel limit (assuming you have column resizing turned on, which it is by default) From mkoob at rogers.com Thu Aug 18 19:03:38 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 18 Aug 2022 19:03:38 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> Hi SKIP Welcome back to the list! There is Levure which I knew of as a third party application framework created by Trevor DeVore but I just did a search for it and I see it now on the LiveCode website described as an App Collaboration Framework. https://livecode.com/products/livecode-platform/levure/ So it must have at some point migrated to the mother ship. I haven’t used it but I have considered migrating my application to it. It works with version control systems as long as you follow its recommendations about how to organize your code into behaviours that are stored in script only stacks which are just text files that a version control system can read (These are somewhat new so depending on when you last used LiveCode they may be new to you.) This was an enhancement that has enabled the use of version control for scripts in a project. It is the binary stacks that versions control systems can’t track so in Levure those are just used for user interface. Hope this helps. Martin > On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode wrote: > > Greetings! > > Been a while since I have been on this list. Working on a new project and > wondering if the backing up of Livecode files to Github was ever > implemented and created. I know there was talk of it at one time. > > I apologize if it has been in place for a while and I am just out of the > loop. Actually, I HOPE that is the case! > > Regards, > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 18 19:20:02 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 19:20:02 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> Message-ID: <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> All, Bug 23886 has been fixed with the latest release of the Summer Bundle widget sets. Download from the store. On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: > BTW the problem of: > the text of widget X > the csvData of widget X > the tsvData of widget X > AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) > the pgText of widget X > ALL not returning the full data for a PolyGrid widget is a confirmed bug: > > See https://quality.livecode.com/show_bug.cgi?id=23886 > > > > On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: >> So there is an example of sorting in the PolyGrid documentation under >> the entry for the MESSAGE "headerClick" and under the entry to the >> PROPERTY "text" (and in 'the text of me') >> >> The example code only sort the visible rows as "the text of widget X" >> returns the data of PolyGrid X as tab delimited, WITHOUT the column >> headers, but ONLY the visible rows. >> >> So, what to use for sorting all the data in a PolyGrid by a >> particular column? >> >> The tsvData of widget X (and csvData, and Text) doesn't seem to work. >> The all seems to only get the visible data (rows). Only the pgData of >> widget return the whole dataset of the PolyGrid. Is this the way >> these properties are supposed to work? >> >> If that is how text, csvData, and tsvData are supposed to work >> (returning only the visible rows), then the sort example in the >> PolyGrid documentation require updating otherwise these properties >> require updating! >> >> >> >> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >>> So, I bought the Summer Bundle. Yes, it is a good deal. >>> >>> In my case it was primarily for the Polygrid widget. Our application >>> uses a Datagrid to display customer research data. The columns >>> headers are text and the left most column ROWs are test and all >>> other cells are numbers. Some customers can have quite large data >>> sets and I have been running into the number of columns (ad a >>> default width of 100px per column) exceeding a GROUPs 32,767px width >>> maximum (about 327-328 columns). At this point the Datagrid just >>> fails - no data is displayed. >>> >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this >>> limit. I have a "test" stack (for Datagrid testing) I converted to >>> the Polygrid and can easily generate 1000 columns x 1000 rows of >>> data and it works. >>> >>> So I guess the answer to bug >>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the >>> PolyGrid" >>> >>> On that note, the Datagrid has 2 features I use in this specific >>> case, user column resizing (built into the Polygrid - Yea!) and >>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >>> have some column sort code for the Polygrid they have written that >>> they might be willing to share? >>> >>> Also, I have filled a Polygrid enhancement request to allow the left >>> column (or the left N columns) to be locked/frozen, so they remain >>> visible when the Polygrid is scrolled horizontally. See >>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >>> benefit from this enhancement, please follow the bug or add a >>> comment to that effect. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Thu Aug 18 19:32:56 2022 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 19 Aug 2022 00:32:56 +0100 Subject: Polylist widget Lazy Loading images example. [was Re: polylist toys] In-Reply-To: References: Message-ID: <56c60308-313d-4518-049a-707e448299b0@tweedly.net> On 18/08/2022 23:13, Alex Tweedly via use-livecode wrote: > > However, the lazy load example still contains bugs due to race conditions Solution: replace the card script with the following .... should fix all the race conditions I can see. > local sURLToIndex > > on onlineImage pIndex, pURL >    put  pIndex &CR after sURLToIndex[pURL] >    load URL pURL  with message "downloadComplete" > end onlineImage > > on downloadComplete pURL, pSatus >   local tURL >   repeat for each line L in sURLToIndex[pURL] >      set the itemPointer of widget "PolyList" to L >      set the subItemPointer of widget "PolyList" to "url" >      put the subitemContent of widget "PolyList" into tURL >      if tURL = pURL then -- still the right URL >         set the subItemPointer of widget "PolyList" to "image" >         set the subitemContent of widget "PolyList" to URL pURL >      end if >   end repeat >   put empty into sURLToIndex[pURL] > end downloadComplete And in the real world, add in cache aging, limit on number of entries, limit on total cache size in bytes, ... Alex. > > 1. if multiple entries reference the same image, then there is a > chance the earlier ones never get properly updated (sURLToIndex[pURL] > will have been overwritten by the next call to onlineImage before the > image value gets set). > > 2. if the user (or anything else) resets the dataContent of the widget > while there are outstanding "load URL"s, then when the > downloadComplete is triggered, it will set the image value for some > random new item to the image of the earlier one. > > 3. And if the one which was wrongly set in case 2 above also happens > to be a URL that occurs multiple time (i.e. case 1 above), then that > wrongly set image will remain "forever". > > From MikeKerner at roadrunner.com Thu Aug 18 20:31:49 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 20:31:49 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> Message-ID: which version is that? 21? On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > All, > > Bug 23886 has been fixed with the latest release of the Summer Bundle > widget sets. Download from the store. > > On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: > > BTW the problem of: > > the text of widget X > > the csvData of widget X > > the tsvData of widget X > > AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) > > the pgText of widget X > > ALL not returning the full data for a PolyGrid widget is a confirmed bug: > > > > See https://quality.livecode.com/show_bug.cgi?id=23886 > > > > > > > > On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: > >> So there is an example of sorting in the PolyGrid documentation under > >> the entry for the MESSAGE "headerClick" and under the entry to the > >> PROPERTY "text" (and in 'the text of me') > >> > >> The example code only sort the visible rows as "the text of widget X" > >> returns the data of PolyGrid X as tab delimited, WITHOUT the column > >> headers, but ONLY the visible rows. > >> > >> So, what to use for sorting all the data in a PolyGrid by a > >> particular column? > >> > >> The tsvData of widget X (and csvData, and Text) doesn't seem to work. > >> The all seems to only get the visible data (rows). Only the pgData of > >> widget return the whole dataset of the PolyGrid. Is this the way > >> these properties are supposed to work? > >> > >> If that is how text, csvData, and tsvData are supposed to work > >> (returning only the visible rows), then the sort example in the > >> PolyGrid documentation require updating otherwise these properties > >> require updating! > >> > >> > >> > >> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: > >>> So, I bought the Summer Bundle. Yes, it is a good deal. > >>> > >>> In my case it was primarily for the Polygrid widget. Our application > >>> uses a Datagrid to display customer research data. The columns > >>> headers are text and the left most column ROWs are test and all > >>> other cells are numbers. Some customers can have quite large data > >>> sets and I have been running into the number of columns (ad a > >>> default width of 100px per column) exceeding a GROUPs 32,767px width > >>> maximum (about 327-328 columns). At this point the Datagrid just > >>> fails - no data is displayed. > >>> > >>> I can now attest that a Polygrid (under LC 9.6.8) does not have this > >>> limit. I have a "test" stack (for Datagrid testing) I converted to > >>> the Polygrid and can easily generate 1000 columns x 1000 rows of > >>> data and it works. > >>> > >>> So I guess the answer to bug > >>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the > >>> PolyGrid" > >>> > >>> On that note, the Datagrid has 2 features I use in this specific > >>> case, user column resizing (built into the Polygrid - Yea!) and > >>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone > >>> have some column sort code for the Polygrid they have written that > >>> they might be willing to share? > >>> > >>> Also, I have filled a Polygrid enhancement request to allow the left > >>> column (or the left N columns) to be locked/frozen, so they remain > >>> visible when the Polygrid is scrolled horizontally. See > >>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might > >>> benefit from this enhancement, please follow the bug or add a > >>> comment to that effect. > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 18 20:39:31 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 18 Aug 2022 20:39:31 -0400 Subject: Livecode / Github In-Reply-To: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> References: <43CFC7B4-A77B-4970-9567-03FB3CC9835D@rogers.com> Message-ID: Hey Skip, long time... I don't know if you were around when script-only-stack behaviors came into being, but you can now rip all of the code out of your stacks and happily use vc/git. The stacks themselves are still binary (although several of us have been messing with dumping that paradigm completely, it's less practical than I would have hoped, as of today). Navigator will export every script in a project into behavior stacks, and Monte wrote a stack called "Scriptifier", if memory serves. It's embedded in the LC bundle, and it does the same thing, namely extracting all the scripts out of a project and putting them into .livecodescript text files. Levure is great. I have used it with every project I've worked on for several years, BUT you don't have to use it to go this route. On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi SKIP > > Welcome back to the list! > > There is Levure which I knew of as a third party application framework > created by Trevor DeVore but I just did a search for it and I see it now on > the LiveCode website described as an App Collaboration Framework. > https://livecode.com/products/livecode-platform/levure/ < > https://livecode.com/products/livecode-platform/levure/> So it must have > at some point migrated to the mother ship. > > I haven’t used it but I have considered migrating my application to it. > It works with version control systems as long as you follow its > recommendations about how to organize your code into behaviours that are > stored in script only stacks which are just text files that a version > control system can read (These are somewhat new so depending on when you > last used LiveCode they may be new to you.) This was an enhancement that > has enabled the use of version control for scripts in a project. It is the > binary stacks that versions control systems can’t track so in Levure those > are just used for user interface. > > Hope this helps. > > Martin > > > > On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Greetings! > > > > Been a while since I have been on this list. Working on a new project > and > > wondering if the backing up of Livecode files to Github was ever > > implemented and created. I know there was talk of it at one time. > > > > I apologize if it has been in place for a while and I am just out of the > > loop. Actually, I HOPE that is the case! > > > > Regards, > > > > SKIP > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From paul at researchware.com Thu Aug 18 20:53:12 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 18 Aug 2022 20:53:12 -0400 Subject: AW: Polygrid sorting (problems) In-Reply-To: References: <4bf5092d-5a4c-d27d-d6fb-a9245c6ba728@researchware.com> <7196ee9c-c1a7-2b8e-df50-33fb48aed57a@researchware.com> <88f81dd8-9aa5-bc87-3993-85100d2a1b13@researchware.com> Message-ID: <651a0a20-7bdf-46b0-771d-a45a24687835@researchware.com> Yes, Livecode enhancements bundle 1_0_21 (with PolyGrid 1.1.3) On 8/18/2022 8:31 PM, Mike Kerner via use-livecode wrote: > which version is that? 21? > > On Thu, Aug 18, 2022 at 7:21 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> All, >> >> Bug 23886 has been fixed with the latest release of the Summer Bundle >> widget sets. Download from the store. >> >> On 8/17/2022 3:51 PM, Paul Dupuis via use-livecode wrote: >>> BTW the problem of: >>> the text of widget X >>> the csvData of widget X >>> the tsvData of widget X >>> AND (not in the Livecode 9.6.8 Dictionary for PolyGrid 1.1.1) >>> the pgText of widget X >>> ALL not returning the full data for a PolyGrid widget is a confirmed bug: >>> >>> See https://quality.livecode.com/show_bug.cgi?id=23886 >>> >>> >>> >>> On 8/15/2022 3:34 PM, Paul Dupuis via use-livecode wrote: >>>> So there is an example of sorting in the PolyGrid documentation under >>>> the entry for the MESSAGE "headerClick" and under the entry to the >>>> PROPERTY "text" (and in 'the text of me') >>>> >>>> The example code only sort the visible rows as "the text of widget X" >>>> returns the data of PolyGrid X as tab delimited, WITHOUT the column >>>> headers, but ONLY the visible rows. >>>> >>>> So, what to use for sorting all the data in a PolyGrid by a >>>> particular column? >>>> >>>> The tsvData of widget X (and csvData, and Text) doesn't seem to work. >>>> The all seems to only get the visible data (rows). Only the pgData of >>>> widget return the whole dataset of the PolyGrid. Is this the way >>>> these properties are supposed to work? >>>> >>>> If that is how text, csvData, and tsvData are supposed to work >>>> (returning only the visible rows), then the sort example in the >>>> PolyGrid documentation require updating otherwise these properties >>>> require updating! >>>> >>>> >>>> >>>> On 8/15/2022 2:29 PM, Paul Dupuis via use-livecode wrote: >>>>> So, I bought the Summer Bundle. Yes, it is a good deal. >>>>> >>>>> In my case it was primarily for the Polygrid widget. Our application >>>>> uses a Datagrid to display customer research data. The columns >>>>> headers are text and the left most column ROWs are test and all >>>>> other cells are numbers. Some customers can have quite large data >>>>> sets and I have been running into the number of columns (ad a >>>>> default width of 100px per column) exceeding a GROUPs 32,767px width >>>>> maximum (about 327-328 columns). At this point the Datagrid just >>>>> fails - no data is displayed. >>>>> >>>>> I can now attest that a Polygrid (under LC 9.6.8) does not have this >>>>> limit. I have a "test" stack (for Datagrid testing) I converted to >>>>> the Polygrid and can easily generate 1000 columns x 1000 rows of >>>>> data and it works. >>>>> >>>>> So I guess the answer to bug >>>>> https://quality.livecode.com/show_bug.cgi?id=23875 is "Use the >>>>> PolyGrid" >>>>> >>>>> On that note, the Datagrid has 2 features I use in this specific >>>>> case, user column resizing (built into the Polygrid - Yea!) and >>>>> column sorting (NOT built into the Polygrid - Boo!). So, does anyone >>>>> have some column sort code for the Polygrid they have written that >>>>> they might be willing to share? >>>>> >>>>> Also, I have filled a Polygrid enhancement request to allow the left >>>>> column (or the left N columns) to be locked/frozen, so they remain >>>>> visible when the Polygrid is scrolled horizontally. See >>>>> https://quality.livecode.com/show_bug.cgi?id=23880. If you might >>>>> benefit from this enhancement, please follow the bug or add a >>>>> comment to that effect. >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From sean at pidigital.co.uk Fri Aug 19 01:04:55 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 19 Aug 2022 06:04:55 +0100 Subject: Livecode / Github In-Reply-To: References: Message-ID: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> I tried scriptifier and it broke stuff so just be careful with it and check its output. Sean > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode wrote: > > Hey Skip, long time... > I don't know if you were around when script-only-stack behaviors came into > being, but you can now rip all of the code out of your stacks and happily > use vc/git. The stacks themselves are still binary (although several of us > have been messing with dumping that paradigm completely, it's less > practical than I would have hoped, as of today). > Navigator will export every script in a project into behavior stacks, and > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded > in the LC bundle, and it does the same thing, namely extracting all the > scripts out of a project and putting them into .livecodescript text files. > Levure is great. I have used it with every project I've worked on for > several years, BUT you don't have to use it to go this route. > >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi SKIP >> >> Welcome back to the list! >> >> There is Levure which I knew of as a third party application framework >> created by Trevor DeVore but I just did a search for it and I see it now on >> the LiveCode website described as an App Collaboration Framework. >> https://livecode.com/products/livecode-platform/levure/ < >> https://livecode.com/products/livecode-platform/levure/> So it must have >> at some point migrated to the mother ship. >> >> I haven’t used it but I have considered migrating my application to it. >> It works with version control systems as long as you follow its >> recommendations about how to organize your code into behaviours that are >> stored in script only stacks which are just text files that a version >> control system can read (These are somewhat new so depending on when you >> last used LiveCode they may be new to you.) This was an enhancement that >> has enabled the use of version control for scripts in a project. It is the >> binary stacks that versions control systems can’t track so in Levure those >> are just used for user interface. >> >> Hope this helps. >> >> Martin >> >> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Greetings! >>> >>> Been a while since I have been on this list. Working on a new project >> and >>> wondering if the backing up of Livecode files to Github was ever >>> implemented and created. I know there was talk of it at one time. >>> >>> I apologize if it has been in place for a while and I am just out of the >>> loop. Actually, I HOPE that is the case! >>> >>> Regards, >>> >>> SKIP >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andreas.bergendal at gmail.com Fri Aug 19 03:39:27 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 09:39:27 +0200 Subject: A few issues with web apps Message-ID: <52A0C209-091B-48AE-969B-50D59E8A2D9A@gmail.com> Hi Jacque, 1. I can’t test on Android, but I doubt an Android native field would solve the problem here, as the platform is Web, thus not really natively Android. The LC web engine doesn’t seem to know where it is running, apart from "in a browser”… But do try putting an Android native field in your test stack and see what happens. I’ll test an iOS field and see what I get. 2. I confirm the slider widget/object looks and functions horribly on iOS and macOS too. See next point. 3. Motif makes most standard LC objects look horrible, but the mothership has promised to get rid of that in future releases (please hurry! :). As to getting scrollers to work, some js seems necessary - see the excellent work by Kangaroo in the forum: https://forums.livecode.com/viewtopic.php?f=120&t=36957 Hopefully that solution can be applied to sliders too. Again, I doubt the native mobile scroller would work, because platform = web. Actually, my next step is anyway to test scroller stuff in my portal - I’ll make sure to try not just fields but also the slider. I’ll be back! :) /Andreas From andreas.bergendal at gmail.com Fri Aug 19 08:52:24 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 14:52:24 +0200 Subject: A few issues with web apps Message-ID: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> Bah, I can only get Kangaroo’s scroller trigger to work if deployed in a separate standalone. No matter how I try to integrate the code in my portal, it just doesn’t trigger. In any case, the code that works in desktop web browsers doesn't work in mobile browsers, so there is still a problem to solve there. Hoping for the mothership to fix (in-field wheel/touch) scrolling natively in coming dp’s… I mean, clicking/touching the actual scrollbar of a field always works, but in a desktop browser you want the mouse wheel scroll to work in fields (Kangaroo’s script does that, sometimes...), and on mobile touching/dragging over a field should scroll it (still unsolved). From merakosp at gmail.com Fri Aug 19 08:55:03 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 15:55:03 +0300 Subject: polylist toys In-Reply-To: References: Message-ID: Hello, Thank you all for the useful comments. I *think* the LCB feature in LC 10 Steven mentioned is the "is valid" operator, that returns a boolean value indicating whether or not the image data is valid. Also, note that in the upcoming releases of LC 10 we will add syntax for checking if a file/directory exists, so we could check not only image validity but also image existence in the first place. BTW, we have found a workaround for allowing this stack (lazy image example) to work in LC 9 as well. The updated bundle will probably appear in your account area in the next couple of days. Kind regards, Panos -- On Fri, 19 Aug 2022 at 01:13, Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > > On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > > Hi Mike, > > > > I just tested the lazy load example and hit populate and clicked around > etc and could not trigger an error. > > As already confirmed, that problem is fixed in 10. > > However, the lazy load example still contains bugs due to race > conditions, some of which I described in some forum post somewhere (Boy > do I hate the forums! Surely there's some way to check what posts I have > done myself). > > Thinking about it more, there are other race conditions which are > perhaps more obscure, but more serious. I know it's only an example, and > maybe can't be expected to be bulletproof, but as an example of how to > do Lazy Loading it is (IMHO) really too naive and simplistic. People > expect to take those examples and just use them. > > The obvious race conditions are: > > 1. if multiple entries reference the same image, then there is a chance > the earlier ones never get properly updated (sURLToIndex[pURL] will have > been overwritten by the next call to onlineImage before the image value > gets set). > > 2. if the user (or anything else) resets the dataContent of the widget > while there are outstanding "load URL"s, then when the downloadComplete > is triggered, it will set the image value for some random new item to > the image of the earlier one. > > 3. And if the one which was wrongly set in case 2 above also happens to > be a URL that occurs multiple time (i.e. case 1 above), then that > wrongly set image will remain "forever". > > Alex. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri Aug 19 08:58:19 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 15:58:19 +0300 Subject: A few issues with web apps In-Reply-To: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> References: <03BDE187-324D-42A6-BEC4-1B37D4D59A9D@gmail.com> Message-ID: Hello Andreas, To use Kangaroo's sample stack as is ( https://forums.livecode.com/viewtopic.php?f=120&t=36957) you have to tweak the custom standalone.html that is included in the Copy Files section and replace "" at line 213 with the correct version of LC 10 you're using, I guess in this case "" Cheers, Panos -- On Fri, 19 Aug 2022 at 15:53, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Bah, I can only get Kangaroo’s scroller trigger to work if deployed in a > separate standalone. No matter how I try to integrate the code in my > portal, it just doesn’t trigger. > > In any case, the code that works in desktop web browsers doesn't work in > mobile browsers, so there is still a problem to solve there. Hoping for the > mothership to fix (in-field wheel/touch) scrolling natively in coming dp’s… > > I mean, clicking/touching the actual scrollbar of a field always works, > but in a desktop browser you want the mouse wheel scroll to work in fields > (Kangaroo’s script does that, sometimes...), and on mobile > touching/dragging over a field should scroll it (still unsolved). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andreas.bergendal at gmail.com Fri Aug 19 09:21:15 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Fri, 19 Aug 2022 15:21:15 +0200 Subject: A few issues with web apps Message-ID: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Thanks for the hint, Panos - that is useful to mention for those who want to try it. However, that is not my problem - I’ve already done that! Kangaroo’s stack works as advertised, as is (with dp-4 mod): https://wheninspace.com/test/WebScrollField.html But when I try to use the code, either like in the original, where it is inserted by an LC script in preOpenStack, or by extracting the actual js and putting it into the html file beforehand, it just doesn’t trigger. I get no error message, js or LC, it just does nothing. Actually, it was the same with the ”Meeting space” demo, which has a slightly different scroll wheel script. At first, I took both the resize js and the scroll js from there, but only the resize part works for me. It’s strange since my portal solution apparently catches resize events and passes them on to topStack, but fails to catch/pass scroll events… /Andreas From MikeKerner at roadrunner.com Fri Aug 19 10:41:36 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 19 Aug 2022 10:41:36 -0400 Subject: polylist toys In-Reply-To: References: Message-ID: while we're on the topic, i was just having a conversation off-list and it reminded me: we really should do another lcb class. i looked at lcb a couple of times, messed with it, and then said "meh", and moved on. On Fri, Aug 19, 2022 at 8:56 AM panagiotis m via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > Thank you all for the useful comments. > > I *think* the LCB feature in LC 10 Steven mentioned is the "is > valid" operator, that returns a boolean value indicating whether or not the > image data is valid. > Also, note that in the upcoming releases of LC 10 we will add syntax for > checking if a file/directory exists, so we could check not only image > validity but also image existence in the first place. > > BTW, we have found a workaround for allowing this stack (lazy image > example) to work in LC 9 as well. The updated bundle will probably appear > in your account area in the next couple of days. > > Kind regards, > Panos > -- > > On Fri, 19 Aug 2022 at 01:13, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: > > > Hi Mike, > > > > > > I just tested the lazy load example and hit populate and clicked around > > etc and could not trigger an error. > > > > As already confirmed, that problem is fixed in 10. > > > > However, the lazy load example still contains bugs due to race > > conditions, some of which I described in some forum post somewhere (Boy > > do I hate the forums! Surely there's some way to check what posts I have > > done myself). > > > > Thinking about it more, there are other race conditions which are > > perhaps more obscure, but more serious. I know it's only an example, and > > maybe can't be expected to be bulletproof, but as an example of how to > > do Lazy Loading it is (IMHO) really too naive and simplistic. People > > expect to take those examples and just use them. > > > > The obvious race conditions are: > > > > 1. if multiple entries reference the same image, then there is a chance > > the earlier ones never get properly updated (sURLToIndex[pURL] will have > > been overwritten by the next call to onlineImage before the image value > > gets set). > > > > 2. if the user (or anything else) resets the dataContent of the widget > > while there are outstanding "load URL"s, then when the downloadComplete > > is triggered, it will set the image value for some random new item to > > the image of the earlier one. > > > > 3. And if the one which was wrongly set in case 2 above also happens to > > be a URL that occurs multiple time (i.e. case 1 above), then that > > wrongly set image will remain "forever". > > > > Alex. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From merakosp at gmail.com Fri Aug 19 11:00:41 2022 From: merakosp at gmail.com (panagiotis m) Date: Fri, 19 Aug 2022 18:00:41 +0300 Subject: A few issues with web apps In-Reply-To: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> References: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Message-ID: Hello all, BTW, I just wrote a lesson on how to scroll a LC text field on Web using : https://lessons.livecode.com/m/2592/l/1595736-scrolling-a-livecode-text-field-on-web-using-javascript Cheers, Panos -- On Fri, 19 Aug 2022 at 16:22, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for the hint, Panos - that is useful to mention for those who want > to try it. > However, that is not my problem - I’ve already done that! > > Kangaroo’s stack works as advertised, as is (with dp-4 mod): > https://wheninspace.com/test/WebScrollField.html < > https://wheninspace.com/test/WebScrollField.html> > > But when I try to use the code, either like in the original, where it is > inserted by an LC script in preOpenStack, or by extracting the actual js > and putting it into the html file beforehand, it just doesn’t trigger. I > get no error message, js or LC, it just does nothing. > > Actually, it was the same with the ”Meeting space” demo, which has a > slightly different scroll wheel script. At first, I took both the resize js > and the scroll js from there, but only the resize part works for me. It’s > strange since my portal solution apparently catches resize events and > passes them on to topStack, but fails to catch/pass scroll events… > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Aug 19 11:16:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 19 Aug 2022 10:16:55 -0500 Subject: A few issues with web apps In-Reply-To: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> References: <22040071-8E44-4E6E-9380-A9DC2D87BE62@gmail.com> Message-ID: <182b6adba58.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I just tried the kangaroo example on your web site using my Android tablet. It behaves just like my slider widget. I can tap in the scrollbar to get the field scroll to jump but the indicator can't be moved. When I try, the whole canvas moves instead. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 19, 2022 8:23:25 AM Andreas Bergendal via use-livecode wrote: > Thanks for the hint, Panos - that is useful to mention for those who want > to try it. > However, that is not my problem - Ive already done that! > > Kangaroos stack works as advertised, as is (with dp-4 mod): > https://wheninspace.com/test/WebScrollField.html > > > But when I try to use the code, either like in the original, where it is > inserted by an LC script in preOpenStack, or by extracting the actual js > and putting it into the html file beforehand, it just doesnt trigger. I > get no error message, js or LC, it just does nothing. > > Actually, it was the same with the Meeting space demo, which has a > slightly different scroll wheel script. At first, I took both the resize js > and the scroll js from there, but only the resize part works for me. Its > strange since my portal solution apparently catches resize events and > passes them on to topStack, but fails to catch/pass scroll events > > /Andreas > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Aug 19 13:16:37 2022 From: alex at tweedly.net (Tweedly) Date: Fri, 19 Aug 2022 18:16:37 +0100 Subject: A few issues with web apps In-Reply-To: References: Message-ID: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> > On 19 Aug 2022, at 16:01, panagiotis m via use-livecode wrote: > > Hello all, > > BTW, I just wrote a lesson on how to scroll a LC text field on Web using > : >> Thank you. But at the risk of sounding ungrateful - please don’t. Please just make basic functionality like resizing, scrolling, etc. Work properly and nicely out of the box. Alex. From paul at researchware.com Fri Aug 19 17:09:39 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 17:09:39 -0400 Subject: Livecode performance problem Message-ID: I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) I need to combine the data - frequently - into a form that look like: For the number of lines in the set of fields. Currently I do this as follows: put empty into vCombined put fld A into v1 put fld B into v2 put fld C into v3 put fld D into v4 repeat with i=1 to the number of lines in v1   put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined end repeat I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) Thank you for any pointers in advance, Paul Dupuis Researchware From bobsneidar at iotecdigital.com Fri Aug 19 18:07:52 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Aug 2022 22:07:52 +0000 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Off the top of my head: split v1 by tab split v2 by tab split v3 by tab split v4 by tab put the keys of v1 into tKeyList sort tKeyList ascending numeric repeat for each line tKey in tKeyList put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & v4 [tKey] & cr after tCombined end repeat Not sure if this will be faster, but every time you refer to a line of a string the engine has to parse out where that line is from the beginning. Parsing times will increase exponentially (is that the right term?) the more lines you are parsing in both the source strings AND the destination string. But arrays are indexed memory locations so the engine knows exactly where every bit of text is. And putting something after a string does not have to parse to find the end, the engine knows where that is in memory. It might be even faster though if you build an array as output and then use the combine command to convert it all at once to a string. I am assuming of course that splitting does not put lines of text in random order in the array. Arrays can be dicey that way. Bob S > On Aug 19, 2022, at 14:09 , Paul Dupuis via use-livecode wrote: > > I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > > > For the number of lines in the set of fields. Currently I do this as follows: > > put empty into vCombined > put fld A into v1 > put fld B into v2 > put fld C into v3 > put fld D into v4 > repeat with i=1 to the number of lines in v1 > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined > end repeat > > I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop > > My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? > > This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) > > Thank you for any pointers in advance, > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 19 18:13:04 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 19 Aug 2022 18:13:04 -0400 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <2C1E62C0-0048-4841-AC72-6BFAC56C9A35@milby7.com> First optimization would be to put … & cr after vCombined and then delete the trailing from when done. Sent from my iPhone > On Aug 19, 2022, at 5:11 PM, Paul Dupuis via use-livecode wrote: > > I have a set of fields, call them A, B, C, and D. Each has the same number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > > > For the number of lines in the set of fields. Currently I do this as follows: > > put empty into vCombined > put fld A into v1 > put fld B into v2 > put fld C into v3 > put fld D into v4 > repeat with i=1 to the number of lines in v1 > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& line i of v4 into line i of vCombined > end repeat > > I put the field contents into variable before the loop to combine them as my understanding is variable access is faster than field access in a loop > > My question to the Hivemind is: Is there a noticeably faster way to covert these field to the tab delimited structure as show above than the code above? > > This current takes about 20 seconds for 2000 lines or about a second per 100 lines (very roughly, I was not using a timer in my code, just my wristwatch seconds in the IDE debugger between breakpoints) > > Thank you for any pointers in advance, > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 19 18:25:48 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 19 Aug 2022 18:25:48 -0400 Subject: Livecode performance problem In-Reply-To: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: Based on what Bob said, here is my version of that handler: on mouseUp local tA, tB, tC, tD, tAll, tStart, tEnd put fld "A" into tA put fld "B" into tB put fld "C" into tC put fld "D" into tD -- put the milliseconds into tStart split tA by cr split tB by cr split tC by cr split tD by cr repeat with i=1 to the number of lines of the keys of tA put i & tab & tA[i] & tab & tB[i] & tab & tC[i] & tab & tD[i] & cr after tAll end repeat delete the last char of tAll put the milliseconds into tEnd put (tEnd - tStart) & cr & tAll into fld "result" end mouseUp I used very short lines, but this way was 3/4ms; my initial method was 6/7ms; your original method was 15/16ms. On Fri, Aug 19, 2022 at 6:09 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Off the top of my head: > > split v1 by tab > split v2 by tab > split v3 by tab > split v4 by tab > > put the keys of v1 into tKeyList > sort tKeyList ascending numeric > > repeat for each line tKey in tKeyList > put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & > v4 [tKey] & cr after tCombined > end repeat > > Not sure if this will be faster, but every time you refer to a line of a > string the engine has to parse out where that line is from the beginning. > Parsing times will increase exponentially (is that the right term?) the > more lines you are parsing in both the source strings AND the destination > string. > > But arrays are indexed memory locations so the engine knows exactly where > every bit of text is. And putting something after a string does not have to > parse to find the end, the engine knows where that is in memory. It might > be even faster though if you build an array as output and then use the > combine command to convert it all at once to a string. > > I am assuming of course that splitting does not put lines of text in > random order in the array. Arrays can be dicey that way. > > Bob S > > > > > On Aug 19, 2022, at 14:09 , Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have a set of fields, call them A, B, C, and D. Each has the same > number of lines. Each field has different text (per line) > > > > I need to combine the data - frequently - into a form that look like: > > > > C> > > > > For the number of lines in the set of fields. Currently I do this as > follows: > > > > put empty into vCombined > > put fld A into v1 > > put fld B into v2 > > put fld C into v3 > > put fld D into v4 > > repeat with i=1 to the number of lines in v1 > > put i &tab& line i of v1 &tab& line i of v2 &tab& line i of v3 &tab& > line i of v4 into line i of vCombined > > end repeat > > > > I put the field contents into variable before the loop to combine them > as my understanding is variable access is faster than field access in a loop > > > > My question to the Hivemind is: Is there a noticeably faster way to > covert these field to the tab delimited structure as show above than the > code above? > > > > This current takes about 20 seconds for 2000 lines or about a second per > 100 lines (very roughly, I was not using a timer in my code, just my > wristwatch seconds in the IDE debugger between breakpoints) > > > > Thank you for any pointers in advance, > > > > Paul Dupuis > > Researchware > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Fri Aug 19 18:32:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 15:32:37 -0700 Subject: Livecode performance problem In-Reply-To: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: On 8/19/22 15:07, Bob Sneidar via use-livecode wrote: > Off the top of my head: > > split v1 by tab > split v2 by tab > split v3 by tab > split v4 by tab > > put the keys of v1 into tKeyList > sort tKeyList ascending numeric > > repeat for each line tKey in tKeyList > put tKey & tab & v1 [tKey] & tab & v2 [tKey] & tab & v3 [tKey] & tab & v4 [tKey] & cr after tCombined > end repeat > > Not sure if this will be faster, but every time you refer to a line of a string the engine has to parse out where that line is from the beginning. It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with original code: 320 ms array version: 21 ms put empty into vCombined put fld "A" into v1 put fld "B" into v2 put fld "C" into v3 put fld "D" into v4 split v1 by cr split v2 by cr split v3 by cr split v4 by cr put 1 into i repeat for each element tLine in v1 put i&tab&v1[i]&tab&v2[i]&tab&v3[i]&tab&v4[i]&tab&cr after vCombined add 1 to i end repeat -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Aug 19 19:03:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Aug 2022 23:03:22 +0000 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. That is my understanding at least. Bob S On Aug 19, 2022, at 15:32 , Mark Wieder via use-livecode > wrote: It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with From alex at tweedly.net Fri Aug 19 19:31:00 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:31:00 +0100 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: On 19/08/2022 23:32, Mark Wieder via use-livecode wrote: > > It is indeed faster. Here's what I came up with. I'm not sure why 2000 > lines of text in four fields should take that long, I came up with > > original code: 320 ms > array version: 21 ms > >    put empty into vCombined >    put fld "A" into v1 >    put fld "B" into v2 >    put fld "C" into v3 >    put fld "D" into v4 >    split v1 by cr >    split v2 by cr >    split v3 by cr >    split v4 by cr >    put 1 into i >    repeat for each element tLine in v1 >       put i&tab&v1[i]&tab&v2[i]&tab&v3[i]&tab&v4[i]&tab&cr after > vCombined >       add 1 to i >    end repeat which is already quick enough that any further improvement is mainly academic. But for the record: "repeat for each line " is very efficient for a single variable, o you can avoid one of the four 'split's, and use the line variable to count your loop. >    --   split v1 by cr >    split v2 by cr >    split v3 by cr >    split v4 by cr >    put 1 into i >    repeat for each line tLine in v1 >       put i&tab& tLine &tab& v2[i] &tab& v3[i] &tab& v4[i] & cr after > vCombined >       add 1 to i >    end repeat > to trim about another 15% off the time (for my sample data, 24ms down to 20ms.) (and if you know that one of the four fields typically contains much more text (i.e. longer lines) than the others, you would choose it to not be split). Alex. From ahsoftware at sonic.net Fri Aug 19 19:40:56 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 16:40:56 -0700 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: > to trim about another 15% off the time (for my sample data, 24ms down to > 20ms.) Nice. Note, of course, that we're all going on the assumption that all four fields contain the same number of lines. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Aug 19 19:42:31 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 19 Aug 2022 16:42:31 -0700 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <0e4818fe-4eb3-7d92-b786-aaf55324d931@sonic.net> On 8/19/22 16:03, Bob Sneidar via use-livecode wrote: > It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. My tests were based on 2174 lines of text in each field. Got nowhere near 20 seconds. Or even one. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Fri Aug 19 19:46:54 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:46:54 +0100 Subject: Livecode performance problem In-Reply-To: References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> Message-ID: <03b5bb40-b79a-87d2-3eeb-590fd13d5b63@tweedly.net> On 20/08/2022 00:03, Bob Sneidar via use-livecode wrote: > It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan takes each time, and the more text per line the exponentially more time it takes. Multiply that by 4 times plus the combinination of all of them as the code progresses *4 for the output string and you have the makings of a mountain that keeps getting steeper the higher you go. Yes, for all the input strings. For the output string, it's just a "put ... after ...", so there is no need to count or scan the output string; LC already keeps (effectively) a pointer to the end of a string, and optimizes the straightforward extension at the end of a string. Alex. From paul at researchware.com Fri Aug 19 19:50:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 19:50:50 -0400 Subject: Livecode performance problem In-Reply-To: <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> Message-ID: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote: > On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: > >> to trim about another 15% off the time (for my sample data, 24ms down >> to 20ms.) > > Nice. > Note, of course, that we're all going on the assumption that all four > fields contain the same number of lines. > > Thank you all for the example of improving performance over my clunky code. Yes, all the fields contain the same number of lines. 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. So a user driven action of: 1) Add a line (or a few) to the fields 2) repackage data and run a few procedures 3) User repeats starting at step 1 Can become very slow as the number of lines in the fields gets large - as you all have noted! Thank you all again! From alex at tweedly.net Fri Aug 19 19:53:34 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 00:53:34 +0100 Subject: The use-livecode list. Message-ID: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> I've had a pretty shitty day. A variety of things have happened, or not happened, that made it not one of the good days. So I was not happy, and rather grumpy. (My apologies to Panos for being ungracious in an earlier post - it was meant to be a plea for completeness of the product in preference to more work-arounds - but it came across wrongly. Sorry, Panos). And then, the use-list comes up with a nice, tight, well-defined problem to tackle - and now I can end my day on a puzzle-solving high note, rather than dragging myself off to bed on a downbeat. Thanks again, use-list !! Alex. From paul at researchware.com Fri Aug 19 20:14:19 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 19 Aug 2022 20:14:19 -0400 Subject: The use-livecode list. In-Reply-To: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> References: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> Message-ID: <0b143678-234d-5a3e-ef2b-1940327537f5@researchware.com> No, THANK YOU! On 8/19/2022 7:53 PM, Alex Tweedly via use-livecode wrote: > I've had a pretty shitty day. A variety of things have happened, or > not happened, that made it not one of the good days. > > So I was not happy, and rather grumpy. (My apologies to Panos for > being ungracious in an earlier post - it was meant to be a plea for > completeness of the product in preference to more work-arounds - but > it came across wrongly. Sorry, Panos). > > And then, the use-list comes up with a nice, tight, well-defined > problem to tackle - and now I can end my day on a puzzle-solving high > note, rather than dragging myself off to bed on a downbeat. > > Thanks again, use-list !! > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 19 20:43:17 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 19 Aug 2022 19:43:17 -0500 Subject: The use-livecode list. In-Reply-To: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> References: <5cb8b3fc-7d7d-0abb-729e-008278097d19@tweedly.net> Message-ID: <182b8b44088.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> We did it just for you because we've all been there. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 19, 2022 6:54:47 PM Alex Tweedly via use-livecode wrote: > I've had a pretty shitty day. A variety of things have happened, or not > happened, that made it not one of the good days. > > So I was not happy, and rather grumpy. (My apologies to Panos for being > ungracious in an earlier post - it was meant to be a plea for > completeness of the product in preference to more work-arounds - but it > came across wrongly. Sorry, Panos). > > And then, the use-list comes up with a nice, tight, well-defined problem > to tackle - and now I can end my day on a puzzle-solving high note, > rather than dragging myself off to bed on a downbeat. > > Thanks again, use-list !! > > Alex. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at livecode.com Sat Aug 20 04:22:35 2022 From: kevin at livecode.com (Kevin Miller) Date: Sat, 20 Aug 2022 09:22:35 +0100 Subject: A few issues with web apps In-Reply-To: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> References: <3A71F07E-2984-4797-AA82-3F9B63999504@tweedly.net> Message-ID: Don't worry the goal is for zero workarounds by the time we're ready to ship GM. These things are just there to keep you going in the mean time. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself On 19/08/2022, 18:16, "use-livecode on behalf of Tweedly via use-livecode" wrote: > On 19 Aug 2022, at 16:01, panagiotis m via use-livecode wrote: > > Hello all, > > BTW, I just wrote a lesson on how to scroll a LC text field on Web using > : >> Thank you. But at the risk of sounding ungrateful - please don’t. Please just make basic functionality like resizing, scrolling, etc. Work properly and nicely out of the box. Alex. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dfe4 at cornell.edu Sat Aug 20 13:45:38 2022 From: dfe4 at cornell.edu (David Epstein) Date: Sat, 20 Aug 2022 13:45:38 -0400 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> I didn’t text the speed, but why not put fld A into x[1] put fld B into x[2] put fld C into x[3] put fld D into x[4] combine x by column return x > > I have a set of fields, call them A, B, C, and D. Each has the same > number of lines. Each field has different text (per line) > > I need to combine the data - frequently - into a form that look like: > > C> From alex at tweedly.net Sat Aug 20 17:59:47 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 20 Aug 2022 22:59:47 +0100 Subject: Livecode performance problem In-Reply-To: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> References: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> Message-ID: <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> I can't answer for anyone else, but for me - because I never thought about it :-) Combine by column - never used it before, so never thought of it. It's significantly faster, roughly 40% improvement over the previous best. Note, the spec requires that each line begins with the line number, so you need to add something like: >    local tmp >    repeat with i = 1 to the number of lines in g1 >       put i &CR after tmp >    end repeat >    put tmp into x[1] > >    put g1 into x[2] >    put g2 into x[3] >    put g3 into x[4] >    put g4 into x[5] and finish off with    combine x by column    put cr after x to fully match the earlier results. Alex. On 20/08/2022 18:45, David Epstein via use-livecode wrote: > I didnt text the speed, but why not > > put fld A into x[1] > put fld B into x[2] > put fld C into x[3] > put fld D into x[4] > combine x by column > return x > >> I have a set of fields, call them A, B, C, and D. Each has the same >> number of lines. Each field has different text (per line) >> >> I need to combine the data - frequently - into a form that look like: >> >> > C> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Aug 20 18:54:30 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 20 Aug 2022 17:54:30 -0500 Subject: A few issues with web apps In-Reply-To: References: Message-ID: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> On 8/18/22 2:52 PM, I wrote: > All in all, everything else works, which is really quite incredible. When I accidentally started replying to Andreas privately instead of to the list (I should pay more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for being so polite about it. So here you go: On desktop browsers, everything works great. On mobile it works pretty well except for text entry and a minor display issue. On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses don't always insert entries. I didn't test on iOS. I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. It tracks the mouse movement and scrolls the field accordingly. That works on desktop but doesn't work on mobile. This matches the behavior of anything draggable: the slider widget button, the buttons in the Population example that use "grab", and the LC field scroller thumb. On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" substack should be bold but displays as plain. On the other hand, the substack does display correctly layered over the mainstack. I had wondered if it would work, and it does. I know this will all get fixed so I'm not worried. This is just an example of where we're at right now for anyone curious. Overall, web deployment is very impressive. I was surprised at how good it is even in an unfinished state. BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened without error. Kudos to Mark Waddingham's attention to backward compatibility. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Aug 20 21:14:46 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 20 Aug 2022 21:14:46 -0400 Subject: Livecode performance problem In-Reply-To: <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> References: <04A45A17-EA75-4FC3-AA91-C32AD0BB2057@cornell.edu> <556a05c7-a854-9826-7802-dde16e670739@tweedly.net> Message-ID: <5a8ff08e-86c7-2c36-c70e-706e31680360@researchware.com> Thank you! The prior solutions have dramatically reduced the time - the WHOLE analytics process in its entirety because of the slowness of my old code was taking HOURS (like 6-10) - and is now down to 30-35 minutes with the prior solutions. I can't wait to tr the combine by columns method to see how much more (40%! WOW!) it reduced the overall process time further! On 8/20/2022 5:59 PM, Alex Tweedly via use-livecode wrote: > I can't answer for anyone else, but for me - because I never thought > about it :-) > > Combine by column - never used it before, so never thought of it. > > It's significantly faster, roughly 40% improvement over the previous > best. > > Note, the spec requires that each line begins with the line number, so > you need to add something like: > >>    local tmp >>    repeat with i = 1 to the number of lines in g1 >>       put i &CR after tmp >>    end repeat >>    put tmp into x[1] >> >>    put g1 into x[2] >>    put g2 into x[3] >>    put g3 into x[4] >>    put g4 into x[5] > and finish off with > >    combine x by column >    put cr after x > > to fully match the earlier results. > > Alex. > > On 20/08/2022 18:45, David Epstein via use-livecode wrote: >> I didnt text the speed, but why not >> >> put fld A into x[1] >> put fld B into x[2] >> put fld C into x[3] >> put fld D into x[4] >> combine x by column >> return x >> >>> I have a set of fields, call them A, B, C, and D. Each has the same >>> number of lines. Each field has different text (per line) >>> >>> I need to combine the data - frequently - into a form that look like: >>> >>> >> C> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Sat Aug 20 21:43:04 2022 From: dochawk at gmail.com (doc hawk) Date: Sat, 20 Aug 2022 18:43:04 -0700 Subject: Livecode performance problem In-Reply-To: References: Message-ID: <8C1C8F20-658A-4D49-A456-1623F36FBF30@gmail.com> Short version: inserting between is a much slower process than after, as the entire field/string/whatever from the post of insertion has to be moved or otherwise handled. From MikeKerner at roadrunner.com Sun Aug 21 08:45:12 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 08:45:12 -0400 Subject: addIcon issue Message-ID: I have an svg widget that draws correctly, so I'm trying to add it to the library, but addIcon does not seem to be working. After calling addIcon, I try to search for the icon, but it does not appear in the icon picker, and adding it by name does not work, either. Here's the line: get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0 l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18 a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) -- 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." From MikeKerner at roadrunner.com Sun Aug 21 09:26:04 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 09:26:04 -0400 Subject: powerbutton (megabundle) is FUN Message-ID: I bought the megabundle, unsure what to expect from the stuff that comes with it. polylist/polygrid look like they are going to be great. as a tmControls nerd, i'm spoiled for gret-looking buttons with more options to customize them and get them to do all sorts of marvelous things. i think i'm about to switch to powerbutton. these have all the customization options and a few more to boot and they respond faster, because they are widgets instead of groups. this is an underrated widget. -- 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." From prothero at earthlearningsolutions.org Sun Aug 21 11:08:15 2022 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sun, 21 Aug 2022 08:08:15 -0700 Subject: A few issues with web apps In-Reply-To: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> References: <04917201-7c01-8edb-f72f-d4335a1f3a2c@hyperactivesw.com> Message-ID: <973017A5-22AD-4D45-8D46-25983EF0C9DD@earthlearningsolutions.org> Jacqueline, Thanks for the great status report on Livecode web deployment. From my perspective, it's finally starting to look promising. The first thing I noticed was the speed of bringing up the first page. I'm looking forward to working with the web deployment when it gets far enough in its development. Best, Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Aug 20, 2022, at 3:56 PM, J. Landman Gay via use-livecode wrote: > > On 8/18/22 2:52 PM, I wrote: >> All in all, everything else works, which is really quite incredible. > > When I accidentally started replying to Andreas privately instead of to the list (I should pay more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for being so polite about it. > > So here you go: > > > > On desktop browsers, everything works great. On mobile it works pretty well except for text entry and a minor display issue. > > On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses don't always insert entries. I didn't test on iOS. > > I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. It tracks the mouse movement and scrolls the field accordingly. That works on desktop but doesn't work on mobile. This matches the behavior of anything draggable: the slider widget button, the buttons in the Population example that use "grab", and the LC field scroller thumb. > > On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" substack should be bold but displays as plain. On the other hand, the substack does display correctly layered over the mainstack. I had wondered if it would work, and it does. > > I know this will all get fixed so I'm not worried. This is just an example of where we're at right now for anyone curious. Overall, web deployment is very impressive. I was surprised at how good it is even in an unfinished state. > > BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened without error. Kudos to Mark Waddingham's attention to backward compatibility. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Aug 21 13:20:27 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 21 Aug 2022 12:20:27 -0500 Subject: addIcon issue In-Reply-To: References: Message-ID: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't think you can add to the default icon family. The docs say that if you haven't specified a family then the icon goes into one named "custom". So see what you get when you run iconFamilies() and if "custom" is in there then set the family using setCurrentIconFamily("custom"). If you prefer, you can create your own family with its own name with addIconFamily. In any case you have to set the current family before you can use its icons. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode wrote: > I have an svg widget that draws correctly, so I'm trying to add it to the > library, but addIcon does not seem to be working. > After calling addIcon, I try to search for the icon, but it does not appear > in the icon picker, and adding it by name does not work, either. > Here's the line: > get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0 > l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18 > a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0 > 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Aug 21 13:56:38 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 13:56:38 -0400 Subject: addIcon issue In-Reply-To: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <182c16b8b78.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: reading through the library, it appears that you are correct - you cannot add to the default family. changing the family using setCurrentIconFamily("custom") does cause the picker to show those icons. if i want to select one for assignment to a widget, is that the only way to do it? entering custom/test does not seem to work. instead i have to set the family and then choose the icon On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't think you can add to the default icon family. The docs say that if > you haven't specified a family then the icon goes into one named "custom". > So see what you get when you run iconFamilies() and if "custom" is in > there > then set the family using setCurrentIconFamily("custom"). > > If you prefer, you can create your own family with its own name with > addIconFamily. In any case you have to set the current family before you > can use its icons. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode > wrote: > > > I have an svg widget that draws correctly, so I'm trying to add it to the > > library, but addIcon does not seem to be working. > > After calling addIcon, I try to search for the icon, but it does not > appear > > in the icon picker, and adding it by name does not work, either. > > Here's the line: > > get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 > 1.41,0 > > l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h > 18 > > a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A > 5,5 0 > > 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > > > > > > -- > > 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 at 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 at 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." From brian at milby7.com Sun Aug 21 14:41:36 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 21 Aug 2022 14:41:36 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon families. You should be able to set the icon using just the short name. The icon svg library will check the current library first and then cycle through all loaded families looking for a match. If there is a collision then you don’t know which one will get used (probably the current family and then the rest in order of creation). Here is a version with a large number of icons included: https://milby.us/lc/SvgIconTool.zip I worked on the family code and doubt much has changed since the source was closed. Version number matches GitHub in the rc1 of 9.6.9 currently. Thanks, Brian Sent from my iPhone > On Aug 21, 2022, at 1:58 PM, Mike Kerner via use-livecode wrote: > > reading through the library, it appears that you are correct - you cannot > add to the default family. > changing the family using setCurrentIconFamily("custom") does cause the > picker to show those icons. if i want to select one for assignment to a > widget, is that the only way to do it? entering custom/test does not seem > to work. instead i have to set the family and then choose the icon > >> On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I don't think you can add to the default icon family. The docs say that if >> you haven't specified a family then the icon goes into one named "custom". >> So see what you get when you run iconFamilies() and if "custom" is in >> there >> then set the family using setCurrentIconFamily("custom"). >> >> If you prefer, you can create your own family with its own name with >> addIconFamily. In any case you have to set the current family before you >> can use its icons. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode >> wrote: >> >>> I have an svg widget that draws correctly, so I'm trying to add it to the >>> library, but addIcon does not seem to be working. >>> After calling addIcon, I try to search for the icon, but it does not >> appear >>> in the icon picker, and adding it by name does not work, either. >>> Here's the line: >>> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 >> 1.41,0 >>> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h >> 18 >>> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A >> 5,5 0 >>> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) >>> >>> >>> -- >>> 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sun Aug 21 14:58:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 21 Aug 2022 20:58:16 +0200 Subject: Livecode Builder -how t write to a file? Message-ID: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Hi. From time to time and when time allows i am trying to get used to with Livecode Builder. For debugging i would like my lcb script to write some debug code to a file, but i really do not see how this can be done. I found the experimental com.livecode.file module and the operator 'the filecontents of file...', but unfortunately no script example. Does anyone know, if and how i can write some data to an external file on hard disk in LCB? Regards, Matthias From MikeKerner at roadrunner.com Sun Aug 21 16:30:09 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 21 Aug 2022 16:30:09 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: thanks, brian, i'll have a look. i was reading through the library and the filter code. ralph proposed adding a family menu (or a means for either specifying the family or showing all families) to the filter. i think that would be a good idea. On Sun, Aug 21, 2022 at 2:42 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon > families. You should be able to set the icon using just the short name. > The icon svg library will check the current library first and then cycle > through all loaded families looking for a match. If there is a collision > then you don’t know which one will get used (probably the current family > and then the rest in order of creation). > > Here is a version with a large number of icons included: > https://milby.us/lc/SvgIconTool.zip > > I worked on the family code and doubt much has changed since the source > was closed. Version number matches GitHub in the rc1 of 9.6.9 currently. > > Thanks, > Brian > > Sent from my iPhone > > > On Aug 21, 2022, at 1:58 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > reading through the library, it appears that you are correct - you > cannot > > add to the default family. > > changing the family using setCurrentIconFamily("custom") does cause the > > picker to show those icons. if i want to select one for assignment to a > > widget, is that the only way to do it? entering custom/test does not seem > > to work. instead i have to set the family and then choose the icon > > > >> On Sun, Aug 21, 2022 at 1:21 PM J. Landman Gay via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> I don't think you can add to the default icon family. The docs say that > if > >> you haven't specified a family then the icon goes into one named > "custom". > >> So see what you get when you run iconFamilies() and if "custom" is in > >> there > >> then set the family using setCurrentIconFamily("custom"). > >> > >> If you prefer, you can create your own family with its own name with > >> addIconFamily. In any case you have to set the current family before you > >> can use its icons. > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode > >> wrote: > >> > >>> I have an svg widget that draws correctly, so I'm trying to add it to > the > >>> library, but addIcon does not seem to be working. > >>> After calling addIcon, I try to search for the icon, but it does not > >> appear > >>> in the icon picker, and adding it by name does not work, either. > >>> Here's the line: > >>> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 > >> 1.41,0 > >>> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 > h > >> 18 > >>> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A > >> 5,5 0 > >>> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0) > >>> > >>> > >>> -- > >>> 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 at 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 at 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 at 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 at 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." From marksmithhfx at gmail.com Sun Aug 21 17:36:28 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 21 Aug 2022 22:36:28 +0100 Subject: Livecode performance problem In-Reply-To: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> References: <68DC59EA-3206-4A23-8BB3-D35ECDB86619@iotecdigital.com> <3c565e25-2696-b1cb-2589-55c5df7db0d0@sonic.net> <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> Message-ID: Wow, what a great example. I decided to work through the various suggestions just so I could get a better grip on some of LC’s more sophisticated data handling commands. My original run using Paul’s example was 8 seconds (2000 lines per field, 1100 chars per line) Applying Brian’s simple suggestions of using “after” instead of “into” cut that in half (4 seconds) Splitting the lines and using an array drove the time down to 23 milliseconds. Amazing! Between those 2 that's 8000 msec -> 23 msec or about 350 times faster. I will definitely pay more attention to “split” in future. Great discussion. Mark > On 20 Aug 2022, at 12:50 am, Paul Dupuis via use-livecode wrote: > > On 8/19/2022 7:40 PM, Mark Wieder via use-livecode wrote: >> On 8/19/22 16:31, Alex Tweedly via use-livecode wrote: >> >>> to trim about another 15% off the time (for my sample data, 24ms down to 20ms.) >> >> Nice. >> Note, of course, that we're all going on the assumption that all four fields contain the same number of lines. >> >> > > Thank you all for the example of improving performance over my clunky code. > > Yes, all the fields contain the same number of lines. > > 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. > > So a user driven action of: > > 1) Add a line (or a few) to the fields > 2) repackage data and run a few procedures > 3) User repeats starting at step 1 > > Can become very slow as the number of lines in the fields gets large - as you all have noted! > > Thank you all again! > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From zryip.theslug at gmail.com Sun Aug 21 18:38:17 2022 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 22 Aug 2022 00:38:17 +0200 Subject: Livecode Builder -how t write to a file? In-Reply-To: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> References: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Message-ID: Dear Matthias, I do not have the answer but a possible workaround. For debugging purposes I'm using the post message. In LCB add this handler: private handler throwWidgetError(in pError as String) returns nothing post "catchWidgetError" with [pError] end handler Call it by using: throwWidgetError("Something to log") And catch it by adding this handler into the card script where you test your widget: *command* catchWidgetError pTheError * put* pTheError & cr after msg *end* catchWidgetError This might be verbose as the message box will take the focus, and the widget will refresh, so logging in a file instead of the message box would be a possibility. *command* catchWidgetError pTheError * write *pTheError to file "xxx" *end* catchWidgetError On Sun, 21 Aug 2022 at 20:59, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > From time to time and when time allows i am trying to get used to with > Livecode Builder. > For debugging i would like my lcb script to write some debug code to a > file, but i really do not see how this can be done. > I found the experimental com.livecode.file module and the operator 'the > filecontents of file...', but unfortunately no script example. > > Does anyone know, if and how i can write some data to an external file on > hard disk in LCB? > > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Zryip TheSlug http://www.aslugontheroad.com From ambassador at fourthworld.com Sun Aug 21 21:28:36 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 21 Aug 2022 18:28:36 -0700 Subject: Livecode performance problem In-Reply-To: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> References: <049a6def-606b-365a-46e7-5f06117b8e11@researchware.com> Message-ID: <8bc119d6-1455-f6f0-000b-ba149b88b00a@fourthworld.com> 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. > > So a user driven action of: > > 1) Add a line (or a few) to the fields > 2) repackage data and run a few procedures > 3) User repeats starting at step 1 > > Can become very slow as the number of lines in the fields gets large > - as you all have noted! I'd just bite the bullet and replace those columnar fields with one delimited field. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Mon Aug 22 18:45:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 23 Aug 2022 00:45:34 +0200 Subject: Livecode Builder -how t write to a file? In-Reply-To: References: <9D894134-797F-4426-9FF1-9DEFAC1E1FC8@m-r-d.de> Message-ID: <5E7A5A08-0B06-46D4-8A97-74F057C834D5@m-r-d.de> Thanks Zryip, i think that is a good workaround. ;) Thanks. Regards, Matthias > Am 22.08.2022 um 00:38 schrieb zryip theSlug via use-livecode : > > Dear Matthias, > > I do not have the answer but a possible workaround. > > For debugging purposes I'm using the post message. > > In LCB add this handler: > private handler throwWidgetError(in pError as String) returns nothing > post "catchWidgetError" with [pError] > end handler > > Call it by using: > throwWidgetError("Something to log") > > And catch it by adding this handler into the card script where you test > your widget: > > *command* catchWidgetError pTheError > * put* pTheError & cr after msg > *end* catchWidgetError > > This might be verbose as the message box will take the focus, and the > widget will refresh, so logging in a file instead of the message box would > be a possibility. > > *command* catchWidgetError pTheError > * write *pTheError to file "xxx" > *end* catchWidgetError > > On Sun, 21 Aug 2022 at 20:59, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi. >> >> From time to time and when time allows i am trying to get used to with >> Livecode Builder. >> For debugging i would like my lcb script to write some debug code to a >> file, but i really do not see how this can be done. >> I found the experimental com.livecode.file module and the operator 'the >> filecontents of file...', but unfortunately no script example. >> >> Does anyone know, if and how i can write some data to an external file on >> hard disk in LCB? >> >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Zryip TheSlug > http://www.aslugontheroad.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From francois.chaplais at mines-paristech.fr Tue Aug 23 10:31:46 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Tue, 23 Aug 2022 16:31:46 +0200 Subject: case sensitivity of the keys in an associative array Message-ID: Dear list From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. For instance, I may define theArray[« Ddt »] If I define now theArray[« ddt »] this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) Is this behavior confirmed? Best regards François From alex at tweedly.net Tue Aug 23 10:45:22 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 23 Aug 2022 15:45:22 +0100 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: Not quite. It is dependent on the value of "casesensitive". If you do set the casesensitve to true then the keys are different (i.e. Ddt  would NOT replace the existing value for ddt) but if it is false (which it would be by default) thne DDt and ddt are teh same. [Only tested on 10.0.0 DP4 - but I think that's how it's always been] Alex. > on mouseup >    local tA >    put 1 into tA["a"] >    put "1" && the keys of tA &CR after msg >    set the casesensitive to true >    put 2 into tA["A"] >    put "2" && tA["a"] && the keys of tA &CR after msg > end mouseup On 23/08/2022 15:31, francois.chaplais via use-livecode wrote: > Dear list > > From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. > > For instance, I may define > theArray[ Ddt ] > > If I define now > theArray[ ddt ] > > this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) > > Is this behavior confirmed? > > Best regards > Franois > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Aug 23 10:46:46 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 23 Aug 2022 16:46:46 +0200 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: Bonjour François, > Am 23.08.2022 um 16:31 schrieb francois.chaplais via use-livecode : > > Dear list > > From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. > > For instance, I may define > theArray[« Ddt »] > > If I define now > theArray[« ddt »] > > this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) > > Is this behavior confirmed? yes, taht is correct bahvior! But you can force case sensitivity in LC: ... set the casesensitive to TRUE answer theArray[« Ddt »] ## -> NADA! answer theArray[« ddt »] ## Will do what you want. ... > Best regards > François Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From francois.chaplais at mines-paristech.fr Tue Aug 23 11:00:35 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Tue, 23 Aug 2022 17:00:35 +0200 Subject: case sensitivity of the keys in an associative array In-Reply-To: References: Message-ID: <897B0044-96B7-40EF-8BC9-8A7E11BE5DAD@mines-paristech.fr> Thanks to you all! This list is a treasury. Chers, François > Le 23 août 2022 à 16:46, Klaus major-k via use-livecode a écrit : > > Bonjour François, > >> Am 23.08.2022 um 16:31 schrieb francois.chaplais via use-livecode : >> >> Dear list >> >> From my current work on a LiveCode project, it seems that the keys of an associative array are not case sensitive. >> >> For instance, I may define >> theArray[« Ddt »] >> >> If I define now >> theArray[« ddt »] >> >> this entry replaces the previous one (forgive apple mail which replaces my double quotes by french double quotes) >> >> Is this behavior confirmed? > > yes, taht is correct bahvior! > > But you can force case sensitivity in LC: > ... > set the casesensitive to TRUE > answer theArray[« Ddt »] > ## -> NADA! > > answer theArray[« ddt »] > ## Will do what you want. > ... > >> Best regards >> François > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 24 23:22:25 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 24 Aug 2022 23:22:25 -0400 Subject: Svg Icon Tool Message-ID: Greetings list! A few years ago I published a tool that allowed easy creation of the Icon Families that I had been working on to integrate into the IDE. (The code had been started, but users had no way to leverage the planned capability at the time.) At that time I simply posted it to Sample Stacks and a copy on my web server with more icons. I had been wanting to get it onto GitHub for quite some time, but never got around to it. In another thread I mentioned the tool and Mike asked if it was available on GitHub. That was just the sort of thing I needed to get it posted. (Thanks Mike!) https://github.com/bwmilby/SvgIconTool The most significant change that I've made with this version is that it will keep the icon families and prefs stored as separate files instead of inside the stack. This will make things much easier since plugins start as a palette and you have to toplevel it to save (which is no longer necessary). If you use the previous version, you only really need to worry about any custom families that you imported. All of the ones that I provided earlier are available in the repository and can be loaded in bulk by dragging them onto the library card. I welcome feedback and bug reports on the GitHub repository. Thanks and have a blessed day! Brian Milby From matthias_livecode_150811 at m-r-d.de Thu Aug 25 07:06:31 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 13:06:31 +0200 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Thank you very much for this great tool. Maybe you add some information to the readme.md what files/folders from the zip have to be copied to the plugins folder. Regards, Matthias > Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode : > > Greetings list! > > A few years ago I published a tool that allowed easy creation of the Icon > Families that I had been working on to integrate into the IDE. (The code > had been started, but users had no way to leverage the planned capability > at the time.) At that time I simply posted it to Sample Stacks and a copy > on my web server with more icons. > > I had been wanting to get it onto GitHub for quite some time, but never got > around to it. In another thread I mentioned the tool and Mike asked if it > was available on GitHub. That was just the sort of thing I needed to get > it posted. (Thanks Mike!) > > https://github.com/bwmilby/SvgIconTool > > The most significant change that I've made with this version is that it > will keep the icon families and prefs stored as separate files instead of > inside the stack. This will make things much easier since plugins start as > a palette and you have to toplevel it to save (which is no longer > necessary). If you use the previous version, you only really need to worry > about any custom families that you imported. All of the ones that I > provided earlier are available in the repository and can be loaded in bulk > by dragging them onto the library card. > > I welcome feedback and bug reports on the GitHub repository. > > Thanks and have a blessed day! > Brian Milby > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Thu Aug 25 07:36:42 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Aug 2022 07:36:42 -0400 Subject: Svg Icon Tool In-Reply-To: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: You are welcome! Good idea. Just one file needs to be copied (SvgIconTool.livecode) to install. If you ran it once and imported families, then you can copy or move the milby.us folder to retain the settings (I actually link that folder so I can run as a plug-in or from the repo and use the same settings.) Thanks, Brian > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode wrote: > > Thank you very much for this great tool. > > Maybe you add some information to the readme.md what files/folders from the zip have to be copied to the plugins folder. > > Regards, > Matthias > > >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode : >> >> Greetings list! >> >> A few years ago I published a tool that allowed easy creation of the Icon >> Families that I had been working on to integrate into the IDE. (The code >> had been started, but users had no way to leverage the planned capability >> at the time.) At that time I simply posted it to Sample Stacks and a copy >> on my web server with more icons. >> >> I had been wanting to get it onto GitHub for quite some time, but never got >> around to it. In another thread I mentioned the tool and Mike asked if it >> was available on GitHub. That was just the sort of thing I needed to get >> it posted. (Thanks Mike!) >> >> https://github.com/bwmilby/SvgIconTool >> >> The most significant change that I've made with this version is that it >> will keep the icon families and prefs stored as separate files instead of >> inside the stack. This will make things much easier since plugins start as >> a palette and you have to toplevel it to save (which is no longer >> necessary). If you use the previous version, you only really need to worry >> about any custom families that you imported. All of the ones that I >> provided earlier are available in the repository and can be loaded in bulk >> by dragging them onto the library card. >> >> I welcome feedback and bug reports on the GitHub repository. >> >> Thanks and have a blessed day! >> Brian Milby >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 09:16:05 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 09:16:05 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: Hey, man, if it's that easy to get you to do something, then * Make the tree widget better * Make the NavBar better Boom. Hero me. On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > You are welcome! > > Good idea. Just one file needs to be copied (SvgIconTool.livecode) to > install. If you ran it once and imported families, then you can copy or > move the milby.us folder to retain the settings (I actually link that > folder so I can run as a plug-in or from the repo and use the same > settings.) > > Thanks, > Brian > > > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Thank you very much for this great tool. > > > > Maybe you add some information to the readme.md what files/folders from > the zip have to be copied to the plugins folder. > > > > Regards, > > Matthias > > > > > >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Greetings list! > >> > >> A few years ago I published a tool that allowed easy creation of the > Icon > >> Families that I had been working on to integrate into the IDE. (The > code > >> had been started, but users had no way to leverage the planned > capability > >> at the time.) At that time I simply posted it to Sample Stacks and a > copy > >> on my web server with more icons. > >> > >> I had been wanting to get it onto GitHub for quite some time, but never > got > >> around to it. In another thread I mentioned the tool and Mike asked if > it > >> was available on GitHub. That was just the sort of thing I needed to > get > >> it posted. (Thanks Mike!) > >> > >> https://github.com/bwmilby/SvgIconTool > >> > >> The most significant change that I've made with this version is that it > >> will keep the icon families and prefs stored as separate files instead > of > >> inside the stack. This will make things much easier since plugins > start as > >> a palette and you have to toplevel it to save (which is no longer > >> necessary). If you use the previous version, you only really need to > worry > >> about any custom families that you imported. All of the ones that I > >> provided earlier are available in the repository and can be loaded in > bulk > >> by dragging them onto the library card. > >> > >> I welcome feedback and bug reports on the GitHub repository. > >> > >> Thanks and have a blessed day! > >> Brian Milby > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From MikeKerner at roadrunner.com Thu Aug 25 09:19:05 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 09:19:05 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: Although, as long as we're having this discussion, the navBar is higher priority, so hit that, first. On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner wrote: > Hey, man, if it's that easy to get you to do something, then > * Make the tree widget better > * Make the NavBar better > Boom. Hero me. > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You are welcome! >> >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) to >> install. If you ran it once and imported families, then you can copy or >> move the milby.us folder to retain the settings (I actually link that >> folder so I can run as a plug-in or from the repo and use the same >> settings.) >> >> Thanks, >> Brian >> >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Thank you very much for this great tool. >> > >> > Maybe you add some information to the readme.md what files/folders from >> the zip have to be copied to the plugins folder. >> > >> > Regards, >> > Matthias >> > >> > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Greetings list! >> >> >> >> A few years ago I published a tool that allowed easy creation of the >> Icon >> >> Families that I had been working on to integrate into the IDE. (The >> code >> >> had been started, but users had no way to leverage the planned >> capability >> >> at the time.) At that time I simply posted it to Sample Stacks and a >> copy >> >> on my web server with more icons. >> >> >> >> I had been wanting to get it onto GitHub for quite some time, but >> never got >> >> around to it. In another thread I mentioned the tool and Mike asked >> if it >> >> was available on GitHub. That was just the sort of thing I needed to >> get >> >> it posted. (Thanks Mike!) >> >> >> >> https://github.com/bwmilby/SvgIconTool >> >> >> >> The most significant change that I've made with this version is that it >> >> will keep the icon families and prefs stored as separate files instead >> of >> >> inside the stack. This will make things much easier since plugins >> start as >> >> a palette and you have to toplevel it to save (which is no longer >> >> necessary). If you use the previous version, you only really need to >> worry >> >> about any custom families that you imported. All of the ones that I >> >> provided earlier are available in the repository and can be loaded in >> bulk >> >> by dragging them onto the library card. >> >> >> >> I welcome feedback and bug reports on the GitHub repository. >> >> >> >> Thanks and have a blessed day! >> >> Brian Milby >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 at 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." > -- 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." From MikeKerner at roadrunner.com Thu Aug 25 10:21:00 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 10:21:00 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Message-ID: it will probably be faster and more flexible to have your database do your soriting for you, though. On Mon, Aug 15, 2022 at 7:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Perhaps some expansion of the column "pgContentTypeofColumn" property? > The current possible values are: > text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement > Allowing the addition of 'numeric' and 'datetime' would at least allow a > mapping to sorts although sort support 'international' (perhaps should > be the default for a polygrid column of type "text" and "binary". I am > also not sure how svg-iconname, imagedata, imagefile, and color should > sort. Perhaps svg-iconname should sort as "text". Bolean can sort as > "text" since ascending puts "false" first and descending puts "true" first. > > > On 8/15/2022 7:25 PM, Alex Tweedly via use-livecode wrote: > > So it occurred to me, while playing with sorting by columns, that it > > might be nice to have an additional "sortType" available. > > > > I'd like to be able to say > > > > - if all the 'things' being sorted on are numbers, then sort numeric, > > otherwise sort alphabetical. > > > > Would that be a reasonable enhancement request ? > > > > Would "natural" be a reasonable suggested name ? > > > > Alex. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From bobsneidar at iotecdigital.com Thu Aug 25 11:02:39 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:02:39 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> Message-ID: <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> +1 if the source is a dabs, sort during query. Bob S On Aug 25, 2022, at 07:21 , Mike Kerner via use-livecode > wrote: it will probably be faster and more flexible to have your database do your soriting for you, though. On Mon, Aug 15, 2022 at 7:47 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: Perhaps some expansion of the column "pgContentTypeofColumn" property? The current possible values are: text|svg-lcname|imagedata|imagefile|color|boolean|autoincrement Allowing the addition of 'numeric' and 'datetime' would at least allow a mapping to sorts although sort support 'international' (perhaps should be the default for a polygrid column of type "text" and "binary". I am also not sure how svg-iconname, imagedata, imagefile, and color should sort. Perhaps svg-iconname should sort as "text". Bolean can sort as "text" since ascending puts "false" first and descending puts "true" first. From bobsneidar at iotecdigital.com Thu Aug 25 11:17:44 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:17:44 +0000 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> Message-ID: <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> Not sure how that happened. If the source is a DATABASE... On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode > wrote: +1 if the source is a dabs, sort during query. Bob S From bobsneidar at iotecdigital.com Thu Aug 25 11:25:25 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 15:25:25 +0000 Subject: BN Guides Message-ID: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. Bob S From matthias_livecode_150811 at m-r-d.de Thu Aug 25 11:33:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 17:33:59 +0200 Subject: BN Guides In-Reply-To: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> Bernd Niggemann wrote it. > Am 25.08.2022 um 17:25 schrieb Bob Sneidar via use-livecode : > > Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Aug 25 11:38:15 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 25 Aug 2022 11:38:15 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> Message-ID: <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> So what if you use the column headers on a PolyGrid (or whatever) to give the user a UI for sorting by column (adding, or not, sort arrows to the header labels). Is it still more efficient to re-query the database with the new, user chosen, sort order and repopulate the PolyGrid? Or more efficient to just resort the data already populated into the grid in the desired order the user has chosen? I suspect this later is the more efficient case unless you are sure you have a fast network and server with low latency and no competition for bandwidth. As always, people's use-cases for these widgets vary widely. That is why the more versatile a widget is the often (but not always) the better it is. On 8/25/2022 11:17 AM, Bob Sneidar via use-livecode wrote: > Not sure how that happened. If the source is a DATABASE... > > On Aug 25, 2022, at 08:02 , Bob Sneidar via use-livecode > wrote: > > +1 if the source is a dabs, sort during query. > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Aug 25 11:45:42 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 25 Aug 2022 17:45:42 +0200 Subject: BN Guides In-Reply-To: <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> Message-ID: <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> Forgot to place the link to the forum where he announced it. https://forums.livecode.com/viewtopic.php?f=4&t=31920 Matthias > Am 25.08.2022 um 17:33 schrieb matthias rebbe via use-livecode : > > Bernd Niggemann wrote it. > >> Am 25.08.2022 um 17:25 schrieb Bob Sneidar via use-livecode : >> >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. When I double-click an object in Navigator to open it's script, I get t he BNGuides script instead. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 11:57:35 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 11:57:35 -0400 Subject: Sorting [was: Polygrid sorting] In-Reply-To: <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> References: <99ac10ee-60a1-ab16-f47e-72a709af317e@tweedly.net> <97843037-9ab0-804c-640c-13dc5599bcbf@researchware.com> <2B3CD906-B4C8-4390-BF55-54288FD6D907@iotecdigital.com> <4CA40921-F84A-48BA-AF8D-29E2D4DDDE38@iotecdigital.com> <5457f16e-c91e-5c6b-6922-1993272670fe@researchware.com> Message-ID: oh, i love this topic. this onion is so, so thick. since you are throwing in the curveball of on-demand column sorting, i have several suggestions (and these are just my suggestions): the obvious one is to use one of the bajillion ways that LC can sort, right? grab the data (if you don't already have the data in a container that you're using to populate the widget), sort it, put it back the less obvious is to do what i end up doing in many of my apps (because everything i write, now, is mobile), and that is have a local sqlite or mysql db. keep all the data that you retrieve from the server in there, and use the local copy as the data source. i do that because i can't guarantee network connectivity, but i want my apps to run, anyway. in that case, my sorting is still done in my db - my local cache. plus, if my app exits, crashes, loses the focus, device reboots, etc., i want it to come back in exactly the state it was in when it left, which is something that's easy to do with a local db. then there's using the local command line, because every OS has a sort routine you can call. From bobsneidar at iotecdigital.com Thu Aug 25 12:15:29 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 16:15:29 +0000 Subject: BN Guides In-Reply-To: <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> Message-ID: <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> Unfortunately I am unable to login to the forums (again) as the saved password I have for it no longer works. Also, if I ask for the activation link to be resent, both emails I would have used along with the only user name I use for everything (slylabs13), results in Account Not Found. Submitting a password reset on either of the two emails never sends a password reset email. Trying to register from scratch with slylabs13 as the user name generates an error that the user name is already in use! I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. So far, I am unusually calm. Normally I'd be cursing and swearing by now. :-) Bob S On Aug 25, 2022, at 08:45 , matthias rebbe via use-livecode > wrote: Forgot to place the link to the forum where he announced it. https://forums.livecode.com/viewtopic.php?f=4&t=31920 Matthias From bobsneidar at iotecdigital.com Thu Aug 25 12:17:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 16:17:30 +0000 Subject: BN Guides In-Reply-To: <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> <1756B864-8B98-407C-B48F-587D16BF059C@m-r-d.de> <8D0EEE28-0269-4D46-9F5F-0FB7979F29B1@m-r-d.de> <87B52679-F392-4074-A923-2A8BB8D07776@iotecdigital.com> Message-ID: I found the link to the Board Administrator. The board administrator link has been disabled. LOL! Bob S On Aug 25, 2022, at 09:15 , Bob Sneidar via use-livecode > wrote: I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. From alex at tweedly.net Thu Aug 25 12:39:36 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 25 Aug 2022 17:39:36 +0100 Subject: BN Guides In-Reply-To: References: Message-ID: <7B163A35-88EF-4869-879E-30515F094AA3@tweedly.net> Bob, Just email Heather- she can do everything ! Probably the support @ livecode.com address would be more correct than her directly. Alex Sent from my iPhone > On 25 Aug 2022, at 17:18, Bob Sneidar via use-livecode wrote: > > I found the link to the Board Administrator. The board administrator link has been disabled. LOL! > > Bob S > > > On Aug 25, 2022, at 09:15 , Bob Sneidar via use-livecode > wrote: > > I am then advised to contact the administrator, but there is no link I can find on the forums page for an administrator. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 25 13:10:57 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 17:10:57 +0000 Subject: Exclude Keywords from Auto-Complete Message-ID: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> Hi all. I just submitted an enhancement request to create a new global property of keywords to exclude from the SE Auto-Complete feature. The reason is, whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if I hit tab to reformat the script or to move to the next parameter of an auto-complete suggestion, it replaces "me" with the first mergeDeploy suggestion. There are other scenarios I've run into as well. Also, I looked in the SE preferences for auto-complete, but did not find an entry. There is one for Auto Format, but that enables/disables the auto-indent feature. Hopefully they are not both enabled/disabled by that one check box. https://quality.livecode.com/show_bug.cgi?id=23900 Bob S From rdimola at evergreeninfo.net Thu Aug 25 13:24:09 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 25 Aug 2022 13:24:09 -0400 Subject: Exclude Keywords from Auto-Complete In-Reply-To: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> References: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> Message-ID: <003c01d8b8a7$7f667560$7e336020$@net> In the edit=>options of the SE there is an option to turn autocomplete On/Off. There is also edit=>Autocomplete Snippet Manager. I have not used it but it looks interesting. It may solve your problem with the "alternate" option? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Thursday, August 25, 2022 1:11 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Exclude Keywords from Auto-Complete Hi all. I just submitted an enhancement request to create a new global property of keywords to exclude from the SE Auto-Complete feature. The reason is, whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if I hit tab to reformat the script or to move to the next parameter of an auto-complete suggestion, it replaces "me" with the first mergeDeploy suggestion. There are other scenarios I've run into as well. Also, I looked in the SE preferences for auto-complete, but did not find an entry. There is one for Auto Format, but that enables/disables the auto-indent feature. Hopefully they are not both enabled/disabled by that one check box. https://quality.livecode.com/show_bug.cgi?id=23900 Bob S _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 25 13:47:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Aug 2022 17:47:15 +0000 Subject: Exclude Keywords from Auto-Complete In-Reply-To: <003c01d8b8a7$7f667560$7e336020$@net> References: <1D996715-EFE2-430C-83DF-D2C78B508265@iotecdigital.com> <003c01d8b8a7$7f667560$7e336020$@net> Message-ID: Thanks Ralph, that looks interesting. I see: if ${condition:expression} then ${-- true code:statement} else # ${condition} {-- false code:statement} end if # ${condition} Not sure how to use that but I will research. Thanks. Bob S > On Aug 25, 2022, at 10:24 , Ralph DiMola via use-livecode wrote: > > In the edit=>options of the SE there is an option to turn autocomplete > On/Off. There is also edit=>Autocomplete Snippet Manager. I have not used it > but it looks interesting. It may solve your problem with the "alternate" > option? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Bob Sneidar via use-livecode > Sent: Thursday, August 25, 2022 1:11 PM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Exclude Keywords from Auto-Complete > > Hi all. > > I just submitted an enhancement request to create a new global property of > keywords to exclude from the SE Auto-Complete feature. The reason is, > whenever I type "of me" in the SE, I get suggestions for mergeDeploy, and if > I hit tab to reformat the script or to move to the next parameter of an > auto-complete suggestion, it replaces "me" with the first mergeDeploy > suggestion. There are other scenarios I've run into as well. > > Also, I looked in the SE preferences for auto-complete, but did not find an > entry. There is one for Auto Format, but that enables/disables the > auto-indent feature. Hopefully they are not both enabled/disabled by that > one check box. > > https://quality.livecode.com/show_bug.cgi?id=23900 > > Bob S From rdimola at evergreeninfo.net Thu Aug 25 14:38:20 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 25 Aug 2022 14:38:20 -0400 Subject: Svg Icon Tool In-Reply-To: References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> Message-ID: <004001d8b8b1$dcaeb930$960c2b90$@net> Mike, I have used my own version of the navbar widget for years. I added an option to enlarge/vertically justify the icon if there is no label and eliminated the "new item" thingy. I think the stock widget already lets you select the zero option. I added that back before the stock widget let you do it. What changes/enhancements are you looking for? I also have LCS routines to store the navbar options as a custom property array. I have handlers to add/delete/change option text and icons via script for a contextual UI. They are not documented or polished but if there is any interest I will look into it. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Thursday, August 25, 2022 9:19 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: Svg Icon Tool Although, as long as we're having this discussion, the navBar is higher priority, so hit that, first. On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner wrote: > Hey, man, if it's that easy to get you to do something, then > * Make the tree widget better > * Make the NavBar better > Boom. Hero me. > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You are welcome! >> >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) >> to install. If you ran it once and imported families, then you can >> copy or move the milby.us folder to retain the settings (I actually >> link that folder so I can run as a plug-in or from the repo and use >> the same >> settings.) >> >> Thanks, >> Brian >> >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Thank you very much for this great tool. >> > >> > Maybe you add some information to the readme.md what files/folders >> > from >> the zip have to be copied to the plugins folder. >> > >> > Regards, >> > Matthias >> > >> > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Greetings list! >> >> >> >> A few years ago I published a tool that allowed easy creation of >> >> the >> Icon >> >> Families that I had been working on to integrate into the IDE. >> >> (The >> code >> >> had been started, but users had no way to leverage the planned >> capability >> >> at the time.) At that time I simply posted it to Sample Stacks >> >> and a >> copy >> >> on my web server with more icons. >> >> >> >> I had been wanting to get it onto GitHub for quite some time, but >> never got >> >> around to it. In another thread I mentioned the tool and Mike >> >> asked >> if it >> >> was available on GitHub. That was just the sort of thing I needed >> >> to >> get >> >> it posted. (Thanks Mike!) >> >> >> >> https://github.com/bwmilby/SvgIconTool >> >> >> >> The most significant change that I've made with this version is >> >> that it will keep the icon families and prefs stored as separate >> >> files instead >> of >> >> inside the stack. This will make things much easier since plugins >> start as >> >> a palette and you have to toplevel it to save (which is no longer >> >> necessary). If you use the previous version, you only really need >> >> to >> worry >> >> about any custom families that you imported. All of the ones that >> >> I provided earlier are available in the repository and can be >> >> loaded in >> bulk >> >> by dragging them onto the library card. >> >> >> >> I welcome feedback and bug reports on the GitHub repository. >> >> >> >> Thanks and have a blessed day! >> >> Brian Milby >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 at 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." > -- 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Aug 25 14:46:39 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 25 Aug 2022 14:46:39 -0400 Subject: Svg Icon Tool In-Reply-To: <004001d8b8b1$dcaeb930$960c2b90$@net> References: <11ACB0FB-09A5-454C-836E-0B6CB2DAC0F7@m-r-d.de> <004001d8b8b1$dcaeb930$960c2b90$@net> Message-ID: the two things that are glaring, imho are * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) - someone taps on a selection. i do a check, throw up a "nope", and nothing changes. this one is preventing me from moving off of the tmControls navbar. * autowidth to the card width. but there are several others, as well https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 listen, i get it. i need to re-learn lcb and actually use it. but i also have force powers, so i know that someone is going to do these things, before i do, and then i won't have to. On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike, > I have used my own version of the navbar widget for years. I added an > option to enlarge/vertically justify the icon if there is no label and > eliminated the "new item" thingy. I think the stock widget already lets you > select the zero option. I added that back before the stock widget let you > do it. What changes/enhancements are you looking for? > > I also have LCS routines to store the navbar options as a custom property > array. I have handlers to add/delete/change option text and icons via > script for a contextual UI. They are not documented or polished but if > there is any interest I will look into it. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Mike Kerner via use-livecode > Sent: Thursday, August 25, 2022 9:19 AM > To: How to use LiveCode > Cc: Mike Kerner > Subject: Re: Svg Icon Tool > > Although, as long as we're having this discussion, the navBar is higher > priority, so hit that, first. > > On Thu, Aug 25, 2022 at 9:16 AM Mike Kerner > wrote: > > > Hey, man, if it's that easy to get you to do something, then > > * Make the tree widget better > > * Make the NavBar better > > Boom. Hero me. > > > > On Thu, Aug 25, 2022 at 7:37 AM Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> You are welcome! > >> > >> Good idea. Just one file needs to be copied (SvgIconTool.livecode) > >> to install. If you ran it once and imported families, then you can > >> copy or move the milby.us folder to retain the settings (I actually > >> link that folder so I can run as a plug-in or from the repo and use > >> the same > >> settings.) > >> > >> Thanks, > >> Brian > >> > >> > On Aug 25, 2022, at 7:07 AM, matthias rebbe via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > > >> > Thank you very much for this great tool. > >> > > >> > Maybe you add some information to the readme.md what files/folders > >> > from > >> the zip have to be copied to the plugins folder. > >> > > >> > Regards, > >> > Matthias > >> > > >> > > >> >> Am 25.08.2022 um 05:22 schrieb Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com>: > >> >> > >> >> Greetings list! > >> >> > >> >> A few years ago I published a tool that allowed easy creation of > >> >> the > >> Icon > >> >> Families that I had been working on to integrate into the IDE. > >> >> (The > >> code > >> >> had been started, but users had no way to leverage the planned > >> capability > >> >> at the time.) At that time I simply posted it to Sample Stacks > >> >> and a > >> copy > >> >> on my web server with more icons. > >> >> > >> >> I had been wanting to get it onto GitHub for quite some time, but > >> never got > >> >> around to it. In another thread I mentioned the tool and Mike > >> >> asked > >> if it > >> >> was available on GitHub. That was just the sort of thing I needed > >> >> to > >> get > >> >> it posted. (Thanks Mike!) > >> >> > >> >> https://github.com/bwmilby/SvgIconTool > >> >> > >> >> The most significant change that I've made with this version is > >> >> that it will keep the icon families and prefs stored as separate > >> >> files instead > >> of > >> >> inside the stack. This will make things much easier since plugins > >> start as > >> >> a palette and you have to toplevel it to save (which is no longer > >> >> necessary). If you use the previous version, you only really need > >> >> to > >> worry > >> >> about any custom families that you imported. All of the ones that > >> >> I provided earlier are available in the repository and can be > >> >> loaded in > >> bulk > >> >> by dragging them onto the library card. > >> >> > >> >> I welcome feedback and bug reports on the GitHub repository. > >> >> > >> >> Thanks and have a blessed day! > >> >> Brian Milby > >> >> _______________________________________________ > >> >> use-livecode mailing list > >> >> use-livecode at 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 at 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 at 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." > > > > > -- > 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 at 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 at 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." From brian at milby7.com Thu Aug 25 17:47:34 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Aug 2022 17:47:34 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> I think what we probably need is simply: set the hilitedItemSilently of widget 1 to 1 Or set the hilitedItemWithoutMessage of widget 1 to 1 This would allow more elegant solutions to many of the raised issues. Thanks, Brian Sent from my iPhone > On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode wrote: > > the two things that are glaring, imho are > * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) - > someone taps on a selection. i do a check, throw up a "nope", and nothing > changes. this one is preventing me from moving off of the tmControls navbar. > * autowidth to the card width. > but there are several others, as well > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > listen, i get it. i need to re-learn lcb and actually use it. > but i also have force powers, so i know that someone is going to do these > things, before i do, and then i won't have to. > >> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Mike, >> I have used my own version of the navbar widget for years. I added an >> option to enlarge/vertically justify the icon if there is no label and >> eliminated the "new item" thingy. I think the stock widget already lets you >> select the zero option. I added that back before the stock widget let you >> do it. What changes/enhancements are you looking for? >> >> I also have LCS routines to store the navbar options as a custom property >> array. I have handlers to add/delete/change option text and icons via >> script for a contextual UI. They are not documented or polished but if >> there is any interest I will look into it. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> From MikeKerner at roadrunner.com Fri Aug 26 09:01:04 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 09:01:04 -0400 Subject: Svg Icon Tool In-Reply-To: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> References: <7808C04E-821A-4FA6-A1BE-59696DEC3D98@milby7.com> Message-ID: i don't think so. i want to be able to be able to intercept the touch/click, and decide what to do. sometimes i want to ignore it. sometimes i want to throw up an error and not switch. sometimes i want to do something else, first. On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > > I think what we probably need is simply: > > set the hilitedItemSilently of widget 1 to 1 > Or > set the hilitedItemWithoutMessage of widget 1 to 1 > > This would allow more elegant solutions to many of the raised issues. > > Thanks, > Brian > > > Sent from my iPhone > > > On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > the two things that are glaring, imho are > > * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) > - > > someone taps on a selection. i do a check, throw up a "nope", and nothing > > changes. this one is preventing me from moving off of the tmControls > navbar. > > * autowidth to the card width. > > but there are several others, as well > > > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > > listen, i get it. i need to re-learn lcb and actually use it. > > but i also have force powers, so i know that someone is going to do these > > things, before i do, and then i won't have to. > > > >> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Mike, > >> I have used my own version of the navbar widget for years. I added an > >> option to enlarge/vertically justify the icon if there is no label and > >> eliminated the "new item" thingy. I think the stock widget already lets > you > >> select the zero option. I added that back before the stock widget let > you > >> do it. What changes/enhancements are you looking for? > >> > >> I also have LCS routines to store the navbar options as a custom > property > >> array. I have handlers to add/delete/change option text and icons via > >> script for a contextual UI. They are not documented or polished but if > >> there is any interest I will look into it. > >> > >> Ralph DiMola > >> IT Director > >> Evergreen Information Services > >> rdimola at evergreeninfo.net > >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From brian at milby7.com Fri Aug 26 09:22:48 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 09:22:48 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: The silent update would allow that to happen in the hilitechanged handler. I don’t know how you would implement a pre… message. How would the widget know whether to proceed or not? The two messages would fire almost simultaneously. There also isn’t any way to tell the widget to cancel the highlight action, which would be needed. A mouseDown message may work but would still need a way to cancel the highlight. I think the silent change is the most seamless way to accomplish this task. In general I think that normal mouse messages should be passed from widgets - even if they add specialized functionality with additional messages. I don’t think they would solve this issue on their own though. (I also did some work in this widget to add the nothing and multiple selections) > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode wrote: > > i don't think so. i want to be able to be able to intercept the > touch/click, and decide what to do. sometimes i want to ignore it. > sometimes i want to throw up an error and not switch. sometimes i want to > do something else, first. > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> >> I think what we probably need is simply: >> >> set the hilitedItemSilently of widget 1 to 1 >> Or >> set the hilitedItemWithoutMessage of widget 1 to 1 >> >> This would allow more elegant solutions to many of the raised issues. >> >> Thanks, >> Brian >> >> >> Sent from my iPhone >> >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> the two things that are glaring, imho are >>> * [preHiliteChanged](https://quality.livecode.com/show_bug.cgi?id=23207) >> - >>> someone taps on a selection. i do a check, throw up a "nope", and nothing >>> changes. this one is preventing me from moving off of the tmControls >> navbar. >>> * autowidth to the card width. >>> but there are several others, as well >>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>> listen, i get it. i need to re-learn lcb and actually use it. >>> but i also have force powers, so i know that someone is going to do these >>> things, before i do, and then i won't have to. >>> >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Mike, >>>> I have used my own version of the navbar widget for years. I added an >>>> option to enlarge/vertically justify the icon if there is no label and >>>> eliminated the "new item" thingy. I think the stock widget already lets >> you >>>> select the zero option. I added that back before the stock widget let >> you >>>> do it. What changes/enhancements are you looking for? >>>> >>>> I also have LCS routines to store the navbar options as a custom >> property >>>> array. I have handlers to add/delete/change option text and icons via >>>> script for a contextual UI. They are not documented or polished but if >>>> there is any interest I will look into it. >>>> >>>> Ralph DiMola >>>> IT Director >>>> Evergreen Information Services >>>> rdimola at evergreeninfo.net >>>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 09:27:14 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 09:27:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: you would have a property for autohilite, and if that is false, the developer would be responsible for setting the hilite. that's the way it's implemented with other controls. On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > The silent update would allow that to happen in the hilitechanged handler. > > I don’t know how you would implement a pre… message. How would the widget > know whether to proceed or not? The two messages would fire almost > simultaneously. There also isn’t any way to tell the widget to cancel the > highlight action, which would be needed. > > A mouseDown message may work but would still need a way to cancel the > highlight. I think the silent change is the most seamless way to > accomplish this task. > > In general I think that normal mouse messages should be passed from > widgets - even if they add specialized functionality with additional > messages. I don’t think they would solve this issue on their own though. > > (I also did some work in this widget to add the nothing and multiple > selections) > > > > > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > i don't think so. i want to be able to be able to intercept the > > touch/click, and decide what to do. sometimes i want to ignore it. > > sometimes i want to throw up an error and not switch. sometimes i want to > > do something else, first. > > > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > >> I think what we probably need is simply: > >> > >> set the hilitedItemSilently of widget 1 to 1 > >> Or > >> set the hilitedItemWithoutMessage of widget 1 to 1 > >> > >> This would allow more elegant solutions to many of the raised issues. > >> > >> Thanks, > >> Brian > >> > >> > >> Sent from my iPhone > >> > >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> the two things that are glaring, imho are > >>> * [preHiliteChanged]( > https://quality.livecode.com/show_bug.cgi?id=23207) > >> - > >>> someone taps on a selection. i do a check, throw up a "nope", and > nothing > >>> changes. this one is preventing me from moving off of the tmControls > >> navbar. > >>> * autowidth to the card width. > >>> but there are several others, as well > >>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > >>> listen, i get it. i need to re-learn lcb and actually use it. > >>> but i also have force powers, so i know that someone is going to do > these > >>> things, before i do, and then i won't have to. > >>> > >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Mike, > >>>> I have used my own version of the navbar widget for years. I added an > >>>> option to enlarge/vertically justify the icon if there is no label and > >>>> eliminated the "new item" thingy. I think the stock widget already > lets > >> you > >>>> select the zero option. I added that back before the stock widget let > >> you > >>>> do it. What changes/enhancements are you looking for? > >>>> > >>>> I also have LCS routines to store the navbar options as a custom > >> property > >>>> array. I have handlers to add/delete/change option text and icons via > >>>> script for a contextual UI. They are not documented or polished but if > >>>> there is any interest I will look into it. > >>>> > >>>> Ralph DiMola > >>>> IT Director > >>>> Evergreen Information Services > >>>> rdimola at evergreeninfo.net > >>>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From rdimola at evergreeninfo.net Fri Aug 26 09:41:46 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 09:41:46 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <002a01d8b951$98eedc70$cacc9550$@net> Do widgets even have the capability to send a message and have it return back to the widget if it is "Pass"ed in the spirit of "Pre" messages? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Friday, August 26, 2022 9:27 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: Svg Icon Tool you would have a property for autohilite, and if that is false, the developer would be responsible for setting the hilite. that's the way it's implemented with other controls. On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > The silent update would allow that to happen in the hilitechanged handler. > > I don’t know how you would implement a pre… message. How would the > widget know whether to proceed or not? The two messages would fire > almost simultaneously. There also isn’t any way to tell the widget to > cancel the highlight action, which would be needed. > > A mouseDown message may work but would still need a way to cancel the > highlight. I think the silent change is the most seamless way to > accomplish this task. > > In general I think that normal mouse messages should be passed from > widgets - even if they add specialized functionality with additional > messages. I don’t think they would solve this issue on their own though. > > (I also did some work in this widget to add the nothing and multiple > selections) > > > > > On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > i don't think so. i want to be able to be able to intercept the > > touch/click, and decide what to do. sometimes i want to ignore it. > > sometimes i want to throw up an error and not switch. sometimes i > > want to do something else, first. > > > >> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > >> I think what we probably need is simply: > >> > >> set the hilitedItemSilently of widget 1 to 1 Or set the > >> hilitedItemWithoutMessage of widget 1 to 1 > >> > >> This would allow more elegant solutions to many of the raised issues. > >> > >> Thanks, > >> Brian > >> > >> > >> Sent from my iPhone > >> > >>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> the two things that are glaring, imho are > >>> * [preHiliteChanged]( > https://quality.livecode.com/show_bug.cgi?id=23207) > >> - > >>> someone taps on a selection. i do a check, throw up a "nope", and > nothing > >>> changes. this one is preventing me from moving off of the > >>> tmControls > >> navbar. > >>> * autowidth to the card width. > >>> but there are several others, as well > >>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar& > list_id=105904 > >>> listen, i get it. i need to re-learn lcb and actually use it. > >>> but i also have force powers, so i know that someone is going to > >>> do > these > >>> things, before i do, and then i won't have to. > >>> > >>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Mike, > >>>> I have used my own version of the navbar widget for years. I > >>>> added an option to enlarge/vertically justify the icon if there > >>>> is no label and eliminated the "new item" thingy. I think the > >>>> stock widget already > lets > >> you > >>>> select the zero option. I added that back before the stock widget > >>>> let > >> you > >>>> do it. What changes/enhancements are you looking for? > >>>> > >>>> I also have LCS routines to store the navbar options as a custom > >> property > >>>> array. I have handlers to add/delete/change option text and icons > >>>> via script for a contextual UI. They are not documented or > >>>> polished but if there is any interest I will look into it. > >>>> > >>>> Ralph DiMola > >>>> IT Director > >>>> Evergreen Information Services > >>>> rdimola at evergreeninfo.net > >>>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 26 10:13:14 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 10:13:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: Ok, then we need a full spec on how this would work. It is not just the addition of a message. To get what you are desiring, it would be most consistent to just add the mouse messages and the autoHilite property. I would still want the silent option since that works most in the grain of the current functionality. In your use case, you wouldn’t even use the hiliteChanged message. You would just act based on the mouseUp after your checks. From a UI perspective, I think it makes more sense for the object to highlight on the touch and then revert on the mouseUp if not permitted. > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode wrote: > > you would have a property for autohilite, and if that is false, the > developer would be responsible for setting the hilite. that's the way it's > implemented with other controls. > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> The silent update would allow that to happen in the hilitechanged handler. >> >> I don’t know how you would implement a pre… message. How would the widget >> know whether to proceed or not? The two messages would fire almost >> simultaneously. There also isn’t any way to tell the widget to cancel the >> highlight action, which would be needed. >> >> A mouseDown message may work but would still need a way to cancel the >> highlight. I think the silent change is the most seamless way to >> accomplish this task. >> >> In general I think that normal mouse messages should be passed from >> widgets - even if they add specialized functionality with additional >> messages. I don’t think they would solve this issue on their own though. >> >> (I also did some work in this widget to add the nothing and multiple >> selections) >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> i don't think so. i want to be able to be able to intercept the >>> touch/click, and decide what to do. sometimes i want to ignore it. >>> sometimes i want to throw up an error and not switch. sometimes i want to >>> do something else, first. >>> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> I think what we probably need is simply: >>>> >>>> set the hilitedItemSilently of widget 1 to 1 >>>> Or >>>> set the hilitedItemWithoutMessage of widget 1 to 1 >>>> >>>> This would allow more elegant solutions to many of the raised issues. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> Sent from my iPhone >>>> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> the two things that are glaring, imho are >>>>> * [preHiliteChanged]( >> https://quality.livecode.com/show_bug.cgi?id=23207) >>>> - >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> nothing >>>>> changes. this one is preventing me from moving off of the tmControls >>>> navbar. >>>>> * autowidth to the card width. >>>>> but there are several others, as well >>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>> but i also have force powers, so i know that someone is going to do >> these >>>>> things, before i do, and then i won't have to. >>>>> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Mike, >>>>>> I have used my own version of the navbar widget for years. I added an >>>>>> option to enlarge/vertically justify the icon if there is no label and >>>>>> eliminated the "new item" thingy. I think the stock widget already >> lets >>>> you >>>>>> select the zero option. I added that back before the stock widget let >>>> you >>>>>> do it. What changes/enhancements are you looking for? >>>>>> >>>>>> I also have LCS routines to store the navbar options as a custom >>>> property >>>>>> array. I have handlers to add/delete/change option text and icons via >>>>>> script for a contextual UI. They are not documented or polished but if >>>>>> there is any interest I will look into it. >>>>>> >>>>>> Ralph DiMola >>>>>> IT Director >>>>>> Evergreen Information Services >>>>>> rdimola at evergreeninfo.net >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 10:28:45 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 10:28:45 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: correct, the hiliteChanged message is superfluous in this scenario, and the developer would just manage the touch/mouse messages i disagree that flipping the hilite to one and then back is better. the hilite is an indicator of state. if the state is not allowed to change, then the hilite should not change. in the current operation, the user hits a selection. the hilite changes. at this point, there aren't any good options. if we switch cards, then do the test, tell the user that the selection is not allowed, then switch back, they get this jerky transition, and we have to restore the previous state. if we do not make the transition, then they get the hilite changing, then they get rejected, and then we have to switch the hilite back to what it was, before. On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Ok, then we need a full spec on how this would work. It is not just the > addition of a message. > > To get what you are desiring, it would be most consistent to just add the > mouse messages and the autoHilite property. > > I would still want the silent option since that works most in the grain of > the current functionality. > > In your use case, you wouldn’t even use the hiliteChanged message. You > would just act based on the mouseUp after your checks. > > From a UI perspective, I think it makes more sense for the object to > highlight on the touch and then revert on the mouseUp if not permitted. > > > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > you would have a property for autohilite, and if that is false, the > > developer would be responsible for setting the hilite. that's the way > it's > > implemented with other controls. > > > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> The silent update would allow that to happen in the hilitechanged > handler. > >> > >> I don’t know how you would implement a pre… message. How would the > widget > >> know whether to proceed or not? The two messages would fire almost > >> simultaneously. There also isn’t any way to tell the widget to cancel > the > >> highlight action, which would be needed. > >> > >> A mouseDown message may work but would still need a way to cancel the > >> highlight. I think the silent change is the most seamless way to > >> accomplish this task. > >> > >> In general I think that normal mouse messages should be passed from > >> widgets - even if they add specialized functionality with additional > >> messages. I don’t think they would solve this issue on their own > though. > >> > >> (I also did some work in this widget to add the nothing and multiple > >> selections) > >> > >> > >> > >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> i don't think so. i want to be able to be able to intercept the > >>> touch/click, and decide what to do. sometimes i want to ignore it. > >>> sometimes i want to throw up an error and not switch. sometimes i want > to > >>> do something else, first. > >>> > >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> > >>>> I think what we probably need is simply: > >>>> > >>>> set the hilitedItemSilently of widget 1 to 1 > >>>> Or > >>>> set the hilitedItemWithoutMessage of widget 1 to 1 > >>>> > >>>> This would allow more elegant solutions to many of the raised issues. > >>>> > >>>> Thanks, > >>>> Brian > >>>> > >>>> > >>>> Sent from my iPhone > >>>> > >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>> the two things that are glaring, imho are > >>>>> * [preHiliteChanged]( > >> https://quality.livecode.com/show_bug.cgi?id=23207) > >>>> - > >>>>> someone taps on a selection. i do a check, throw up a "nope", and > >> nothing > >>>>> changes. this one is preventing me from moving off of the tmControls > >>>> navbar. > >>>>> * autowidth to the card width. > >>>>> but there are several others, as well > >>>>> > >>>> > >> > https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 > >>>>> listen, i get it. i need to re-learn lcb and actually use it. > >>>>> but i also have force powers, so i know that someone is going to do > >> these > >>>>> things, before i do, and then i won't have to. > >>>>> > >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < > >>>>>> use-livecode at lists.runrev.com> wrote: > >>>>>> > >>>>>> Mike, > >>>>>> I have used my own version of the navbar widget for years. I added > an > >>>>>> option to enlarge/vertically justify the icon if there is no label > and > >>>>>> eliminated the "new item" thingy. I think the stock widget already > >> lets > >>>> you > >>>>>> select the zero option. I added that back before the stock widget > let > >>>> you > >>>>>> do it. What changes/enhancements are you looking for? > >>>>>> > >>>>>> I also have LCS routines to store the navbar options as a custom > >>>> property > >>>>>> array. I have handlers to add/delete/change option text and icons > via > >>>>>> script for a contextual UI. They are not documented or polished but > if > >>>>>> there is any interest I will look into it. > >>>>>> > >>>>>> Ralph DiMola > >>>>>> IT Director > >>>>>> Evergreen Information Services > >>>>>> rdimola at evergreeninfo.net > >>>>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at 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." From MikeKerner at roadrunner.com Fri Aug 26 10:34:24 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 10:34:24 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: i could see, for someone who wants it to behave the way it behaves now, that retaining the current behavior and adding to it would be better. the control can work both ways, a manual mode and an automagical mode. On Fri, Aug 26, 2022 at 10:28 AM Mike Kerner wrote: > correct, the hiliteChanged message is superfluous in this scenario, and > the developer would just manage the touch/mouse messages > i disagree that flipping the hilite to one and then back is better. the > hilite is an indicator of state. if the state is not allowed to change, > then the hilite should not change. > in the current operation, the user hits a selection. the hilite changes. > at this point, there aren't any good options. if we switch cards, then do > the test, tell the user that the selection is not allowed, then switch > back, they get this jerky transition, and we have to restore the previous > state. if we do not make the transition, then they get the hilite changing, > then they get rejected, and then we have to switch the hilite back to what > it was, before. > > On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Ok, then we need a full spec on how this would work. It is not just the >> addition of a message. >> >> To get what you are desiring, it would be most consistent to just add the >> mouse messages and the autoHilite property. >> >> I would still want the silent option since that works most in the grain >> of the current functionality. >> >> In your use case, you wouldn’t even use the hiliteChanged message. You >> would just act based on the mouseUp after your checks. >> >> From a UI perspective, I think it makes more sense for the object to >> highlight on the touch and then revert on the mouseUp if not permitted. >> >> > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > you would have a property for autohilite, and if that is false, the >> > developer would be responsible for setting the hilite. that's the way >> it's >> > implemented with other controls. >> > >> >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >> The silent update would allow that to happen in the hilitechanged >> handler. >> >> >> >> I don’t know how you would implement a pre… message. How would the >> widget >> >> know whether to proceed or not? The two messages would fire almost >> >> simultaneously. There also isn’t any way to tell the widget to cancel >> the >> >> highlight action, which would be needed. >> >> >> >> A mouseDown message may work but would still need a way to cancel the >> >> highlight. I think the silent change is the most seamless way to >> >> accomplish this task. >> >> >> >> In general I think that normal mouse messages should be passed from >> >> widgets - even if they add specialized functionality with additional >> >> messages. I don’t think they would solve this issue on their own >> though. >> >> >> >> (I also did some work in this widget to add the nothing and multiple >> >> selections) >> >> >> >> >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> i don't think so. i want to be able to be able to intercept the >> >>> touch/click, and decide what to do. sometimes i want to ignore it. >> >>> sometimes i want to throw up an error and not switch. sometimes i >> want to >> >>> do something else, first. >> >>> >> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >> >>>> use-livecode at lists.runrev.com> wrote: >> >>>> >> >>>> >> >>>> I think what we probably need is simply: >> >>>> >> >>>> set the hilitedItemSilently of widget 1 to 1 >> >>>> Or >> >>>> set the hilitedItemWithoutMessage of widget 1 to 1 >> >>>> >> >>>> This would allow more elegant solutions to many of the raised issues. >> >>>> >> >>>> Thanks, >> >>>> Brian >> >>>> >> >>>> >> >>>> Sent from my iPhone >> >>>> >> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >> >>>> use-livecode at lists.runrev.com> wrote: >> >>>>> >> >>>>> the two things that are glaring, imho are >> >>>>> * [preHiliteChanged]( >> >> https://quality.livecode.com/show_bug.cgi?id=23207) >> >>>> - >> >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> >> nothing >> >>>>> changes. this one is preventing me from moving off of the tmControls >> >>>> navbar. >> >>>>> * autowidth to the card width. >> >>>>> but there are several others, as well >> >>>>> >> >>>> >> >> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >> >>>>> listen, i get it. i need to re-learn lcb and actually use it. >> >>>>> but i also have force powers, so i know that someone is going to do >> >> these >> >>>>> things, before i do, and then i won't have to. >> >>>>> >> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >> >>>>>> use-livecode at lists.runrev.com> wrote: >> >>>>>> >> >>>>>> Mike, >> >>>>>> I have used my own version of the navbar widget for years. I added >> an >> >>>>>> option to enlarge/vertically justify the icon if there is no label >> and >> >>>>>> eliminated the "new item" thingy. I think the stock widget already >> >> lets >> >>>> you >> >>>>>> select the zero option. I added that back before the stock widget >> let >> >>>> you >> >>>>>> do it. What changes/enhancements are you looking for? >> >>>>>> >> >>>>>> I also have LCS routines to store the navbar options as a custom >> >>>> property >> >>>>>> array. I have handlers to add/delete/change option text and icons >> via >> >>>>>> script for a contextual UI. They are not documented or polished >> but if >> >>>>>> there is any interest I will look into it. >> >>>>>> >> >>>>>> Ralph DiMola >> >>>>>> IT Director >> >>>>>> Evergreen Information Services >> >>>>>> rdimola at evergreeninfo.net >> >>>>>> >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode at 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 at 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 at 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 at 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 at 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." > -- 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." From brian at milby7.com Fri Aug 26 10:58:14 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 10:58:14 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <7785DB46-5657-4588-AF98-96549AA153C9@milby7.com> Speaking from a phone UI context, I would think that when you touch an object that it would highlight to register the touch. If you drag off the object, then the touch is cancelled. When you release, then the validity is tested. If the touch is valid, then the object would retain the highlight (or if you had different colors for touch/selected it would change) and the follow on actions would take place. If not valid, the highlight would be reverted to previous state without any change in the current card. All of this can be scripted currently but you have to add your own tests to the hiliteChanged message and guard against causing a loop. I’ll set up a repo for this widget so it can be worked based on the GPL code. > On Aug 26, 2022, at 10:30 AM, Mike Kerner via use-livecode wrote: > > correct, the hiliteChanged message is superfluous in this scenario, and the > developer would just manage the touch/mouse messages > i disagree that flipping the hilite to one and then back is better. the > hilite is an indicator of state. if the state is not allowed to change, > then the hilite should not change. > in the current operation, the user hits a selection. the hilite changes. at > this point, there aren't any good options. if we switch cards, then do the > test, tell the user that the selection is not allowed, then switch back, > they get this jerky transition, and we have to restore the previous state. > if we do not make the transition, then they get the hilite changing, then > they get rejected, and then we have to switch the hilite back to what it > was, before. > >> On Fri, Aug 26, 2022 at 10:14 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Ok, then we need a full spec on how this would work. It is not just the >> addition of a message. >> >> To get what you are desiring, it would be most consistent to just add the >> mouse messages and the autoHilite property. >> >> I would still want the silent option since that works most in the grain of >> the current functionality. >> >> In your use case, you wouldn’t even use the hiliteChanged message. You >> would just act based on the mouseUp after your checks. >> >> From a UI perspective, I think it makes more sense for the object to >> highlight on the touch and then revert on the mouseUp if not permitted. >> >>> On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> you would have a property for autohilite, and if that is false, the >>> developer would be responsible for setting the hilite. that's the way >> it's >>> implemented with other controls. >>> >>>> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> The silent update would allow that to happen in the hilitechanged >> handler. >>>> >>>> I don’t know how you would implement a pre… message. How would the >> widget >>>> know whether to proceed or not? The two messages would fire almost >>>> simultaneously. There also isn’t any way to tell the widget to cancel >> the >>>> highlight action, which would be needed. >>>> >>>> A mouseDown message may work but would still need a way to cancel the >>>> highlight. I think the silent change is the most seamless way to >>>> accomplish this task. >>>> >>>> In general I think that normal mouse messages should be passed from >>>> widgets - even if they add specialized functionality with additional >>>> messages. I don’t think they would solve this issue on their own >> though. >>>> >>>> (I also did some work in this widget to add the nothing and multiple >>>> selections) >>>> >>>> >>>> >>>>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> i don't think so. i want to be able to be able to intercept the >>>>> touch/click, and decide what to do. sometimes i want to ignore it. >>>>> sometimes i want to throw up an error and not switch. sometimes i want >> to >>>>> do something else, first. >>>>> >>>>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> >>>>>> I think what we probably need is simply: >>>>>> >>>>>> set the hilitedItemSilently of widget 1 to 1 >>>>>> Or >>>>>> set the hilitedItemWithoutMessage of widget 1 to 1 >>>>>> >>>>>> This would allow more elegant solutions to many of the raised issues. >>>>>> >>>>>> Thanks, >>>>>> Brian >>>>>> >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> the two things that are glaring, imho are >>>>>>> * [preHiliteChanged]( >>>> https://quality.livecode.com/show_bug.cgi?id=23207) >>>>>> - >>>>>>> someone taps on a selection. i do a check, throw up a "nope", and >>>> nothing >>>>>>> changes. this one is preventing me from moving off of the tmControls >>>>>> navbar. >>>>>>> * autowidth to the card width. >>>>>>> but there are several others, as well >>>>>>> >>>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar&list_id=105904 >>>>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>>>> but i also have force powers, so i know that someone is going to do >>>> these >>>>>>> things, before i do, and then i won't have to. >>>>>>> >>>>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Mike, >>>>>>>> I have used my own version of the navbar widget for years. I added >> an >>>>>>>> option to enlarge/vertically justify the icon if there is no label >> and >>>>>>>> eliminated the "new item" thingy. I think the stock widget already >>>> lets >>>>>> you >>>>>>>> select the zero option. I added that back before the stock widget >> let >>>>>> you >>>>>>>> do it. What changes/enhancements are you looking for? >>>>>>>> >>>>>>>> I also have LCS routines to store the navbar options as a custom >>>>>> property >>>>>>>> array. I have handlers to add/delete/change option text and icons >> via >>>>>>>> script for a contextual UI. They are not documented or polished but >> if >>>>>>>> there is any interest I will look into it. >>>>>>>> >>>>>>>> Ralph DiMola >>>>>>>> IT Director >>>>>>>> Evergreen Information Services >>>>>>>> rdimola at evergreeninfo.net >>>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Aug 26 11:54:27 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 11:54:27 -0400 Subject: Svg Icon Tool In-Reply-To: References: Message-ID: <003c01d8b964$22059910$6610cb30$@net> What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 26, 2022 10:13 AM To: How to use LiveCode Cc: Brian Milby Subject: Re: Svg Icon Tool Ok, then we need a full spec on how this would work. It is not just the addition of a message. To get what you are desiring, it would be most consistent to just add the mouse messages and the autoHilite property. I would still want the silent option since that works most in the grain of the current functionality. In your use case, you wouldn’t even use the hiliteChanged message. You would just act based on the mouseUp after your checks. >From a UI perspective, I think it makes more sense for the object to highlight on the touch and then revert on the mouseUp if not permitted. > On Aug 26, 2022, at 9:28 AM, Mike Kerner via use-livecode wrote: > > you would have a property for autohilite, and if that is false, the > developer would be responsible for setting the hilite. that's the way > it's implemented with other controls. > >> On Fri, Aug 26, 2022 at 9:23 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> The silent update would allow that to happen in the hilitechanged handler. >> >> I don’t know how you would implement a pre… message. How would the >> widget know whether to proceed or not? The two messages would fire >> almost simultaneously. There also isn’t any way to tell the widget >> to cancel the highlight action, which would be needed. >> >> A mouseDown message may work but would still need a way to cancel the >> highlight. I think the silent change is the most seamless way to >> accomplish this task. >> >> In general I think that normal mouse messages should be passed from >> widgets - even if they add specialized functionality with additional >> messages. I don’t think they would solve this issue on their own though. >> >> (I also did some work in this widget to add the nothing and multiple >> selections) >> >> >> >>> On Aug 26, 2022, at 9:03 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> i don't think so. i want to be able to be able to intercept the >>> touch/click, and decide what to do. sometimes i want to ignore it. >>> sometimes i want to throw up an error and not switch. sometimes i >>> want to do something else, first. >>> >>>> On Thu, Aug 25, 2022 at 5:48 PM Brian Milby via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> I think what we probably need is simply: >>>> >>>> set the hilitedItemSilently of widget 1 to 1 Or set the >>>> hilitedItemWithoutMessage of widget 1 to 1 >>>> >>>> This would allow more elegant solutions to many of the raised issues. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> Sent from my iPhone >>>> >>>>> On Aug 25, 2022, at 2:48 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> the two things that are glaring, imho are >>>>> * [preHiliteChanged]( >> https://quality.livecode.com/show_bug.cgi?id=23207) >>>> - >>>>> someone taps on a selection. i do a check, throw up a "nope", and >> nothing >>>>> changes. this one is preventing me from moving off of the >>>>> tmControls >>>> navbar. >>>>> * autowidth to the card width. >>>>> but there are several others, as well >>>>> >>>> >> https://quality.livecode.com/buglist.cgi?quicksearch=navigation%20bar >> &list_id=105904 >>>>> listen, i get it. i need to re-learn lcb and actually use it. >>>>> but i also have force powers, so i know that someone is going to >>>>> do >> these >>>>> things, before i do, and then i won't have to. >>>>> >>>>>> On Thu, Aug 25, 2022 at 2:39 PM Ralph DiMola via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Mike, >>>>>> I have used my own version of the navbar widget for years. I >>>>>> added an option to enlarge/vertically justify the icon if there >>>>>> is no label and eliminated the "new item" thingy. I think the >>>>>> stock widget already >> lets >>>> you >>>>>> select the zero option. I added that back before the stock widget >>>>>> let >>>> you >>>>>> do it. What changes/enhancements are you looking for? >>>>>> >>>>>> I also have LCS routines to store the navbar options as a custom >>>> property >>>>>> array. I have handlers to add/delete/change option text and icons >>>>>> via script for a contextual UI. They are not documented or >>>>>> polished but if there is any interest I will look into it. >>>>>> >>>>>> Ralph DiMola >>>>>> IT Director >>>>>> Evergreen Information Services >>>>>> rdimola at evergreeninfo.net >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Aug 26 13:13:00 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 26 Aug 2022 13:13:00 -0400 Subject: Svg Icon Tool In-Reply-To: <003c01d8b964$22059910$6610cb30$@net> References: <003c01d8b964$22059910$6610cb30$@net> Message-ID: <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> I think that if auto highlight is disabled then hiliteChanged would never get triggered. Having the back end highlight change without it visually changing would probably lead to confusion. > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode wrote: > > What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Fri Aug 26 15:25:15 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 26 Aug 2022 15:25:15 -0400 Subject: Svg Icon Tool In-Reply-To: <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> Message-ID: <006101d8b981$94e1dee0$bea59ca0$@net> I looked at the code and an auto hilite property could be added and the hiliteing could be disabled. It would be confusing but it would be allow one to control the hilite. I'm going to try it for laughs. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode Sent: Friday, August 26, 2022 1:13 PM To: How to use LiveCode Cc: Brian Milby Subject: Re: Svg Icon Tool I think that if auto highlight is disabled then hiliteChanged would never get triggered. Having the back end highlight change without it visually changing would probably lead to confusion. > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode wrote: > > What if the widget had a property to disable the auto hilite on click and when the hiliteChanged message arrives you can set(or not) the hilite as appropriate via setting a widget property? A pre-message would be cleaner but this is not horrible. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Aug 26 16:08:08 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 16:08:08 -0400 Subject: Svg Icon Tool In-Reply-To: <006101d8b981$94e1dee0$bea59ca0$@net> References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: i decided, yesterday, to go through the lcb lessons, again, because of this issue (and wanting to deal with a couple of things in the iconPicker). hopefully it'll be done and released before i finish the course, because Stephen said that he's going to have a new version of powerButton out in the morning, which will hopefully cause me to forget about this while i play with that. On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I looked at the code and an auto hilite property could be added and the > hiliteing could be disabled. It would be confusing but it would be allow > one to control the hilite. I'm going to try it for laughs. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Brian Milby via use-livecode > Sent: Friday, August 26, 2022 1:13 PM > To: How to use LiveCode > Cc: Brian Milby > Subject: Re: Svg Icon Tool > > I think that if auto highlight is disabled then hiliteChanged would never > get triggered. Having the back end highlight change without it visually > changing would probably lead to confusion. > > > > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > What if the widget had a property to disable the auto hilite on click > and when the hiliteChanged message arrives you can set(or not) the hilite > as appropriate via setting a widget property? A pre-message would be > cleaner but this is not horrible. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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." From Bernd.Niggemann at uni-wh.de Fri Aug 26 16:25:08 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 26 Aug 2022 20:25:08 +0000 Subject: BN Guides Message-ID: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> Hi Bob, There is an alternative for guide right now https://livecodeshare.runrev.com/stack/1002/DevGuides-Plugin-Installer and 10.0.0 DP4 has guides built-in. They look and work really well. I will not develop bnGuides further since starting LC 10 they will be part of the IDE. I liked the idea to push the concept of behaviors for guides. But maybe a bit too far. Nevertheless the version of bnGuides Matthias linked to in the Forum is one version step ahead of the one in Livecodeshare/Sample Stacks. Kind regards Bernd From MikeKerner at roadrunner.com Fri Aug 26 16:50:59 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Aug 2022 16:50:59 -0400 Subject: Svg Icon Tool In-Reply-To: References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: sorry - STEVEN On Fri, Aug 26, 2022 at 4:08 PM Mike Kerner wrote: > i decided, yesterday, to go through the lcb lessons, again, because of > this issue (and wanting to deal with a couple of things in the iconPicker). > hopefully it'll be done and released before i finish the course, because > Stephen said that he's going to have a new version of powerButton out in > the morning, which will hopefully cause me to forget about this while i > play with that. > > On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I looked at the code and an auto hilite property could be added and the >> hiliteing could be disabled. It would be confusing but it would be allow >> one to control the hilite. I'm going to try it for laughs. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf Of Brian Milby via use-livecode >> Sent: Friday, August 26, 2022 1:13 PM >> To: How to use LiveCode >> Cc: Brian Milby >> Subject: Re: Svg Icon Tool >> >> I think that if auto highlight is disabled then hiliteChanged would never >> get triggered. Having the back end highlight change without it visually >> changing would probably lead to confusion. >> >> >> > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > What if the widget had a property to disable the auto hilite on click >> and when the hiliteChanged message arrives you can set(or not) the hilite >> as appropriate via setting a widget property? A pre-message would be >> cleaner but this is not horrible. >> > >> > Ralph DiMola >> > IT Director >> > Evergreen Information Services >> > rdimola at evergreeninfo.net >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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." > -- 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." From bobsneidar at iotecdigital.com Fri Aug 26 17:00:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 26 Aug 2022 21:00:20 +0000 Subject: BN Guides In-Reply-To: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> References: <19A751CC-F617-4659-A6D8-C79FA0DE3CE0@uni-wh.de> Message-ID: Works great. Thanks. Bob S On Aug 26, 2022, at 13:25 , Niggemann, Bernd via use-livecode > wrote: Hi Bob, There is an alternative for guide right now https://livecodeshare.runrev.com/stack/1002/DevGuides-Plugin-Installer and 10.0.0 DP4 has guides built-in. They look and work really well. I will not develop bnGuides further since starting LC 10 they will be part of the IDE. I liked the idea to push the concept of behaviors for guides. But maybe a bit too far. Nevertheless the version of bnGuides Matthias linked to in the Forum is one version step ahead of the one in Livecodeshare/Sample Stacks. Kind regards Bernd From bobcole at earthlink.net Fri Aug 26 17:10:31 2022 From: bobcole at earthlink.net (Bob Cole) Date: Fri, 26 Aug 2022 16:10:31 -0500 Subject: addIcon issue In-Reply-To: References: Message-ID: I added the test icon to the custom icon library. Now I want to delete it. In the Dictionary for Icon SVG Library, I see there is a way to delete an entire icon family: deleteIconFamily(pFamily) Is there a way to remove just one icon from a family? Bob From MikeKerner at roadrunner.com Sun Aug 28 11:10:12 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 11:10:12 -0400 Subject: addIcon issue In-Reply-To: References: Message-ID: * icon operations are temporary (as soon as you quit LC and relaunch it, the icons and families you add go away) * there is no deleteIcon code in the icon api * the icon api is in /Contents/Tools/Extensions/com.livecode.library.iconsvg/iconsvg.lcb On Fri, Aug 26, 2022 at 5:11 PM Bob Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > I added the test icon to the custom icon library. Now I want to delete it. > In the Dictionary for Icon SVG Library, I see there is a way to delete an > entire icon family: deleteIconFamily(pFamily) > Is there a way to remove just one icon from a family? > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sun Aug 28 12:58:27 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 12:58:27 -0400 Subject: lcb missing manual Message-ID: things for lcb that are supposedly documented, but i can't find: * editor types (e.g. com.livecode.pi.number) * other metadata definitions for properties, widgets, etc.) -- 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." From richmondmathewson at gmail.com Sun Aug 28 13:05:32 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 28 Aug 2022 18:05:32 +0100 Subject: lcb missing manual In-Reply-To: References: Message-ID: It would be good were there full documentation for LCB, and, preferably with some sort of thematic search so, unlike the LiveCode dictionary one did not have to flounder around so much working out what to search for. On Sun, 28 Aug 2022, 18:00 Mike Kerner via use-livecode, < use-livecode at lists.runrev.com> wrote: > things for lcb that are supposedly documented, but i can't find: > * editor types (e.g. com.livecode.pi.number) > * other metadata definitions for properties, widgets, etc.) > > -- > 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Sun Aug 28 13:17:54 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 28 Aug 2022 10:17:54 -0700 Subject: lcb missing manual In-Reply-To: References: Message-ID: On 8/28/22 09:58, Mike Kerner via use-livecode wrote: > things for lcb that are supposedly documented, but i can't find: > * editor types (e.g. com.livecode.pi.number) > * other metadata definitions for properties, widgets, etc.) ...things that we use in LCS but aren't available in LCB: colornames switch statements etc. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Sun Aug 28 13:35:19 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 10:35:19 -0700 Subject: Livecode / Github In-Reply-To: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> References: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> Message-ID: The same applies to the code in Navigator. I wrote it about five years ago when I was preparing to transform Navigator itself to use script behaviors. Always work on a copy. That said, it worked fine for Navigator, and no one has ever told me it broke anything. gc On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > I tried scriptifier and it broke stuff so just be careful with it and > check its output. > > Sean > > > > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hey Skip, long time... > > I don't know if you were around when script-only-stack behaviors came > into > > being, but you can now rip all of the code out of your stacks and happily > > use vc/git. The stacks themselves are still binary (although several of > us > > have been messing with dumping that paradigm completely, it's less > > practical than I would have hoped, as of today). > > Navigator will export every script in a project into behavior stacks, and > > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded > > in the LC bundle, and it does the same thing, namely extracting all the > > scripts out of a project and putting them into .livecodescript text > files. > > Levure is great. I have used it with every project I've worked on for > > several years, BUT you don't have to use it to go this route. > > > >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Hi SKIP > >> > >> Welcome back to the list! > >> > >> There is Levure which I knew of as a third party application framework > >> created by Trevor DeVore but I just did a search for it and I see it > now on > >> the LiveCode website described as an App Collaboration Framework. > >> https://livecode.com/products/livecode-platform/levure/ < > >> https://livecode.com/products/livecode-platform/levure/> So it must > have > >> at some point migrated to the mother ship. > >> > >> I haven’t used it but I have considered migrating my application to it. > >> It works with version control systems as long as you follow its > >> recommendations about how to organize your code into behaviours that are > >> stored in script only stacks which are just text files that a version > >> control system can read (These are somewhat new so depending on when you > >> last used LiveCode they may be new to you.) This was an enhancement > that > >> has enabled the use of version control for scripts in a project. It is > the > >> binary stacks that versions control systems can’t track so in Levure > those > >> are just used for user interface. > >> > >> Hope this helps. > >> > >> Martin > >> > >> > >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Greetings! > >>> > >>> Been a while since I have been on this list. Working on a new project > >> and > >>> wondering if the backing up of Livecode files to Github was ever > >>> implemented and created. I know there was talk of it at one time. > >>> > >>> I apologize if it has been in place for a while and I am just out of > the > >>> loop. Actually, I HOPE that is the case! > >>> > >>> Regards, > >>> > >>> SKIP > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Sun Aug 28 13:38:06 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 10:38:06 -0700 Subject: BN Guides In-Reply-To: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: Where are the BN guides? I'd be curious to see how this is happening. As I recall, Navigator is designed to dive through whatever behaviors are set regardless of how deep the rabbit hole goes to find the actual behavior, but I haven't looked at that part of the code in years. gc On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Who wrote BN Guides? Very cool, but there is a conflict with Navigator. > When I double-click an object in Navigator to open it's script, I get t he > BNGuides script instead. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Sun Aug 28 14:06:39 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 14:06:39 -0400 Subject: lcb missing manual In-Reply-To: References: Message-ID: the lcb documentation, especially in the api widget is ungreat. the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. On Sun, Aug 28, 2022 at 1:18 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/28/22 09:58, Mike Kerner via use-livecode wrote: > > things for lcb that are supposedly documented, but i can't find: > > * editor types (e.g. com.livecode.pi.number) > > * other metadata definitions for properties, widgets, etc.) > > ...things that we use in LCS but aren't available in LCB: > colornames > switch statements > etc. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From ahsoftware at sonic.net Sun Aug 28 14:25:59 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 28 Aug 2022 11:25:59 -0700 Subject: lcb missing manual In-Reply-To: References: Message-ID: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> On 8/28/22 11:06, Mike Kerner wrote: > the lcb documentation, especially in the api widget is ungreat. > the good news is that as long as there is an oss repo version of LC, you > can hunt for some of the information that is missing. AND, at least for > now, you can still find much of it in the LC application > example: as i was hunting, i found a bunch of editors, but none of them > seem to be documented anywhere obvious. Yep - I find most of my documentation by digging. The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Sun Aug 28 15:05:44 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 28 Aug 2022 21:05:44 +0200 Subject: BN Guides In-Reply-To: References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: Geoff, you can find the most current version here https://forums.livecode.com/viewtopic.php?f=4&t=31920 Regards, Matthias > Am 28.08.2022 um 19:38 schrieb Geoff Canyon via use-livecode >: > > Where are the BN guides? I'd be curious to see how this is happening. As I > recall, Navigator is designed to dive through whatever behaviors are set > regardless of how deep the rabbit hole goes to find the actual behavior, > but I haven't looked at that part of the code in years. > > gc > > On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. >> When I double-click an object in Navigator to open it's script, I get t he >> BNGuides script instead. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sun Aug 28 15:29:27 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Aug 2022 12:29:27 -0700 Subject: Livecode / Github In-Reply-To: References: <9860AEA8-BA22-4047-986E-A904AAB6AD47@pidigital.co.uk> Message-ID: To be clear: if anyone wants to try Navigator's export to script behaviors function -- work on a copy, and I'd love feedback. On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon wrote: > The same applies to the code in Navigator. I wrote it about five years ago > when I was preparing to transform Navigator itself to use script behaviors. > > Always work on a copy. > > That said, it worked fine for Navigator, and no one has ever told me it > broke anything. > > gc > > On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I tried scriptifier and it broke stuff so just be careful with it and >> check its output. >> >> Sean >> >> >> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Hey Skip, long time... >> > I don't know if you were around when script-only-stack behaviors came >> into >> > being, but you can now rip all of the code out of your stacks and >> happily >> > use vc/git. The stacks themselves are still binary (although several of >> us >> > have been messing with dumping that paradigm completely, it's less >> > practical than I would have hoped, as of today). >> > Navigator will export every script in a project into behavior stacks, >> and >> > Monte wrote a stack called "Scriptifier", if memory serves. It's >> embedded >> > in the LC bundle, and it does the same thing, namely extracting all the >> > scripts out of a project and putting them into .livecodescript text >> files. >> > Levure is great. I have used it with every project I've worked on for >> > several years, BUT you don't have to use it to go this route. >> > >> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >> Hi SKIP >> >> >> >> Welcome back to the list! >> >> >> >> There is Levure which I knew of as a third party application framework >> >> created by Trevor DeVore but I just did a search for it and I see it >> now on >> >> the LiveCode website described as an App Collaboration Framework. >> >> https://livecode.com/products/livecode-platform/levure/ < >> >> https://livecode.com/products/livecode-platform/levure/> So it must >> have >> >> at some point migrated to the mother ship. >> >> >> >> I haven’t used it but I have considered migrating my application to it. >> >> It works with version control systems as long as you follow its >> >> recommendations about how to organize your code into behaviours that >> are >> >> stored in script only stacks which are just text files that a version >> >> control system can read (These are somewhat new so depending on when >> you >> >> last used LiveCode they may be new to you.) This was an enhancement >> that >> >> has enabled the use of version control for scripts in a project. It is >> the >> >> binary stacks that versions control systems can’t track so in Levure >> those >> >> are just used for user interface. >> >> >> >> Hope this helps. >> >> >> >> Martin >> >> >> >> >> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> Greetings! >> >>> >> >>> Been a while since I have been on this list. Working on a new project >> >> and >> >>> wondering if the backing up of Livecode files to Github was ever >> >>> implemented and created. I know there was talk of it at one time. >> >>> >> >>> I apologize if it has been in place for a while and I am just out of >> the >> >>> loop. Actually, I HOPE that is the case! >> >>> >> >>> Regards, >> >>> >> >>> SKIP >> >>> _______________________________________________ >> >>> use-livecode mailing list >> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From neville.smythe at optusnet.com.au Sun Aug 28 19:04:49 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 29 Aug 2022 09:04:49 +1000 Subject: SVG Icon tool query Message-ID: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> Many thanks to Brian for sharing the fantastic collection of icons included in this tool. Can I enquire as to the copyright status of the images? Neville From MikeKerner at roadrunner.com Sun Aug 28 19:18:43 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 19:18:43 -0400 Subject: SVG Icon tool query In-Reply-To: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> References: <2CE89FAF-15FB-4AF0-B486-CC2575B911B5@optusnet.com.au> Message-ID: I looked at the source that Brian says he used in his repo ( https://github.com/leungwensen/svg-icon). I don't see any copyright listed on that site, but it has all of the libraries linked to it...but then at least the first one (Ant) doesn't seem to have any license listed anywhere, either. On Sun, Aug 28, 2022 at 7:06 PM Neville Smythe via use-livecode < use-livecode at lists.runrev.com> wrote: > Many thanks to Brian for sharing the fantastic collection of icons > included in this tool. Can I enquire as to the copyright status of the > images? > > Neville > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sun Aug 28 19:22:06 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 28 Aug 2022 19:22:06 -0400 Subject: Svg Icon Tool In-Reply-To: References: <003c01d8b964$22059910$6610cb30$@net> <90227B15-2B5C-48FB-B695-35C440F3DAA9@milby7.com> <006101d8b981$94e1dee0$bea59ca0$@net> Message-ID: Interesting: Steven/LC also made a cool demo of the polyList for displaying the svg icon families and icons that are currently in LC. It's called "SVGIconList", and it uses a total of... 23 lines of code. On Fri, Aug 26, 2022 at 4:50 PM Mike Kerner wrote: > sorry - STEVEN > > On Fri, Aug 26, 2022 at 4:08 PM Mike Kerner > wrote: > >> i decided, yesterday, to go through the lcb lessons, again, because of >> this issue (and wanting to deal with a couple of things in the iconPicker). >> hopefully it'll be done and released before i finish the course, because >> Stephen said that he's going to have a new version of powerButton out in >> the morning, which will hopefully cause me to forget about this while i >> play with that. >> >> On Fri, Aug 26, 2022 at 3:26 PM Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I looked at the code and an auto hilite property could be added and the >>> hiliteing could be disabled. It would be confusing but it would be allow >>> one to control the hilite. I'm going to try it for laughs. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>> Behalf Of Brian Milby via use-livecode >>> Sent: Friday, August 26, 2022 1:13 PM >>> To: How to use LiveCode >>> Cc: Brian Milby >>> Subject: Re: Svg Icon Tool >>> >>> I think that if auto highlight is disabled then hiliteChanged would >>> never get triggered. Having the back end highlight change without it >>> visually changing would probably lead to confusion. >>> >>> >>> > On Aug 26, 2022, at 11:55 AM, Ralph DiMola via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> > >>> > What if the widget had a property to disable the auto hilite on click >>> and when the hiliteChanged message arrives you can set(or not) the hilite >>> as appropriate via setting a widget property? A pre-message would be >>> cleaner but this is not horrible. >>> > >>> > Ralph DiMola >>> > IT Director >>> > Evergreen Information Services >>> > rdimola at evergreeninfo.net >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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." >> > > > -- > 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." > -- 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." From sean at pidigital.co.uk Sun Aug 28 21:30:15 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 29 Aug 2022 02:30:15 +0100 Subject: Livecode / Github In-Reply-To: References: Message-ID: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> It will be good to see, once available, how using the new SmartCrumbs add on will help with this. All objects in JSON form and then use stack scripts (and htmlText, AudioClip and VideoClip data) in your GitHub repository. This is something I really want to start implementing. Sean > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > >  > To be clear: if anyone wants to try Navigator's export to script behaviors function -- work on a copy, and I'd love feedback. > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon wrote: >> The same applies to the code in Navigator. I wrote it about five years ago when I was preparing to transform Navigator itself to use script behaviors. >> >> Always work on a copy. >> >> That said, it worked fine for Navigator, and no one has ever told me it broke anything. >> >> gc >> >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode wrote: >>> I tried scriptifier and it broke stuff so just be careful with it and check its output. >>> >>> Sean >>> >>> >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode wrote: >>> > >>> > Hey Skip, long time... >>> > I don't know if you were around when script-only-stack behaviors came into >>> > being, but you can now rip all of the code out of your stacks and happily >>> > use vc/git. The stacks themselves are still binary (although several of us >>> > have been messing with dumping that paradigm completely, it's less >>> > practical than I would have hoped, as of today). >>> > Navigator will export every script in a project into behavior stacks, and >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's embedded >>> > in the LC bundle, and it does the same thing, namely extracting all the >>> > scripts out of a project and putting them into .livecodescript text files. >>> > Levure is great. I have used it with every project I've worked on for >>> > several years, BUT you don't have to use it to go this route. >>> > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < >>> >> use-livecode at lists.runrev.com> wrote: >>> >> >>> >> Hi SKIP >>> >> >>> >> Welcome back to the list! >>> >> >>> >> There is Levure which I knew of as a third party application framework >>> >> created by Trevor DeVore but I just did a search for it and I see it now on >>> >> the LiveCode website described as an App Collaboration Framework. >>> >> https://livecode.com/products/livecode-platform/levure/ < >>> >> https://livecode.com/products/livecode-platform/levure/> So it must have >>> >> at some point migrated to the mother ship. >>> >> >>> >> I haven’t used it but I have considered migrating my application to it. >>> >> It works with version control systems as long as you follow its >>> >> recommendations about how to organize your code into behaviours that are >>> >> stored in script only stacks which are just text files that a version >>> >> control system can read (These are somewhat new so depending on when you >>> >> last used LiveCode they may be new to you.) This was an enhancement that >>> >> has enabled the use of version control for scripts in a project. It is the >>> >> binary stacks that versions control systems can’t track so in Levure those >>> >> are just used for user interface. >>> >> >>> >> Hope this helps. >>> >> >>> >> Martin >>> >> >>> >> >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < >>> >> use-livecode at lists.runrev.com> wrote: >>> >>> >>> >>> Greetings! >>> >>> >>> >>> Been a while since I have been on this list. Working on a new project >>> >> and >>> >>> wondering if the backing up of Livecode files to Github was ever >>> >>> implemented and created. I know there was talk of it at one time. >>> >>> >>> >>> I apologize if it has been in place for a while and I am just out of the >>> >>> loop. Actually, I HOPE that is the case! >>> >>> >>> >>> Regards, >>> >>> >>> >>> SKIP >>> >>> _______________________________________________ >>> >>> use-livecode mailing list >>> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sun Aug 28 23:45:07 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 28 Aug 2022 23:45:07 -0400 Subject: Livecode / Github In-Reply-To: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: If you want to see what the JSON export looks like for a fairly small stack, you can view this: https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json Unfortunately you will need to download and view it with something that understands the CR line ending since GitHub doesn't. That repo has both ScriptTracker exports and SmartCrumbs exports of the stack. The former is designed with two things in mind: allowing changes in the scripts that are part of a binary stack to be tracked and allowing the editing of those scripts in an external editor (I like Atom for the linting, have not tried the newer option). The latter looks to be a way to completely decompose a stack into mostly text files (images being one exception) that can be tracked (and in theory changes merged together I'm guessing). Since the JSON file is keyed off of the GUIDs of each object, it really doesn't lend itself to human inspection. Assuming line endings are sane (probably would work for Windows and definitely will work for Linux), Git should easily be able to track the changes. Whether someone could easily discern which object was being touched is another matter (which would be necessary to merge changes together). On Sun, Aug 28, 2022 at 9:31 PM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > It will be good to see, once available, how using the new SmartCrumbs add > on will help with this. All objects in JSON form and then use stack scripts > (and htmlText, AudioClip and VideoClip data) in your GitHub repository. > This is something I really want to start implementing. > > Sean > > > > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > > > >  > > To be clear: if anyone wants to try Navigator's export to script > behaviors function -- work on a copy, and I'd love feedback. > > > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon > wrote: > >> The same applies to the code in Navigator. I wrote it about five years > ago when I was preparing to transform Navigator itself to use script > behaviors. > >> > >> Always work on a copy. > >> > >> That said, it worked fine for Navigator, and no one has ever told me it > broke anything. > >> > >> gc > >> > >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> I tried scriptifier and it broke stuff so just be careful with it and > check its output. > >>> > >>> Sean > >>> > >>> > >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > > >>> > Hey Skip, long time... > >>> > I don't know if you were around when script-only-stack behaviors > came into > >>> > being, but you can now rip all of the code out of your stacks and > happily > >>> > use vc/git. The stacks themselves are still binary (although several > of us > >>> > have been messing with dumping that paradigm completely, it's less > >>> > practical than I would have hoped, as of today). > >>> > Navigator will export every script in a project into behavior > stacks, and > >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's > embedded > >>> > in the LC bundle, and it does the same thing, namely extracting all > the > >>> > scripts out of a project and putting them into .livecodescript text > files. > >>> > Levure is great. I have used it with every project I've worked on for > >>> > several years, BUT you don't have to use it to go this route. > >>> > > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > >>> >> use-livecode at lists.runrev.com> wrote: > >>> >> > >>> >> Hi SKIP > >>> >> > >>> >> Welcome back to the list! > >>> >> > >>> >> There is Levure which I knew of as a third party application > framework > >>> >> created by Trevor DeVore but I just did a search for it and I see > it now on > >>> >> the LiveCode website described as an App Collaboration Framework. > >>> >> https://livecode.com/products/livecode-platform/levure/ < > >>> >> https://livecode.com/products/livecode-platform/levure/> So it > must have > >>> >> at some point migrated to the mother ship. > >>> >> > >>> >> I haven’t used it but I have considered migrating my application to > it. > >>> >> It works with version control systems as long as you follow its > >>> >> recommendations about how to organize your code into behaviours > that are > >>> >> stored in script only stacks which are just text files that a > version > >>> >> control system can read (These are somewhat new so depending on > when you > >>> >> last used LiveCode they may be new to you.) This was an > enhancement that > >>> >> has enabled the use of version control for scripts in a project. It > is the > >>> >> binary stacks that versions control systems can’t track so in > Levure those > >>> >> are just used for user interface. > >>> >> > >>> >> Hope this helps. > >>> >> > >>> >> Martin > >>> >> > >>> >> > >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > >>> >> use-livecode at lists.runrev.com> wrote: > >>> >>> > >>> >>> Greetings! > >>> >>> > >>> >>> Been a while since I have been on this list. Working on a new > project > >>> >> and > >>> >>> wondering if the backing up of Livecode files to Github was ever > >>> >>> implemented and created. I know there was talk of it at one time. > >>> >>> > >>> >>> I apologize if it has been in place for a while and I am just out > of the > >>> >>> loop. Actually, I HOPE that is the case! > >>> >>> > >>> >>> Regards, > >>> >>> > >>> >>> SKIP > >>> >>> _______________________________________________ > >>> >>> use-livecode mailing list > >>> >>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Aug 29 09:04:57 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 29 Aug 2022 09:04:57 -0400 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: I would love for us to get to a place where we could have it both ways. On Sun, Aug 28, 2022 at 11:46 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > If you want to see what the JSON export looks like for a fairly small > stack, you can view this: > > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > Unfortunately you will need to download and view it with something that > understands the CR line ending since GitHub doesn't. That repo has both > ScriptTracker exports and SmartCrumbs exports of the stack. The former is > designed with two things in mind: allowing changes in the scripts that are > part of a binary stack to be tracked and allowing the editing of those > scripts in an external editor (I like Atom for the linting, have not tried > the newer option). The latter looks to be a way to completely decompose a > stack into mostly text files (images being one exception) that can be > tracked (and in theory changes merged together I'm guessing). > > Since the JSON file is keyed off of the GUIDs of each object, it really > doesn't lend itself to human inspection. Assuming line endings are sane > (probably would work for Windows and definitely will work for Linux), Git > should easily be able to track the changes. Whether someone could easily > discern which object was being touched is another matter (which would be > necessary to merge changes together). > > On Sun, Aug 28, 2022 at 9:31 PM Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > It will be good to see, once available, how using the new SmartCrumbs add > > on will help with this. All objects in JSON form and then use stack > scripts > > (and htmlText, AudioClip and VideoClip data) in your GitHub repository. > > This is something I really want to start implementing. > > > > Sean > > > > > > > On 28 Aug 2022, at 20:29, Geoff Canyon wrote: > > > > > >  > > > To be clear: if anyone wants to try Navigator's export to script > > behaviors function -- work on a copy, and I'd love feedback. > > > > > >> On Sun, Aug 28, 2022 at 10:35 AM Geoff Canyon > > wrote: > > >> The same applies to the code in Navigator. I wrote it about five years > > ago when I was preparing to transform Navigator itself to use script > > behaviors. > > >> > > >> Always work on a copy. > > >> > > >> That said, it worked fine for Navigator, and no one has ever told me > it > > broke anything. > > >> > > >> gc > > >> > > >>> On Thu, Aug 18, 2022 at 10:06 PM Pi Digital via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> I tried scriptifier and it broke stuff so just be careful with it and > > check its output. > > >>> > > >>> Sean > > >>> > > >>> > > >>> > On 19 Aug 2022, at 01:39, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > > >>> > Hey Skip, long time... > > >>> > I don't know if you were around when script-only-stack behaviors > > came into > > >>> > being, but you can now rip all of the code out of your stacks and > > happily > > >>> > use vc/git. The stacks themselves are still binary (although > several > > of us > > >>> > have been messing with dumping that paradigm completely, it's less > > >>> > practical than I would have hoped, as of today). > > >>> > Navigator will export every script in a project into behavior > > stacks, and > > >>> > Monte wrote a stack called "Scriptifier", if memory serves. It's > > embedded > > >>> > in the LC bundle, and it does the same thing, namely extracting all > > the > > >>> > scripts out of a project and putting them into .livecodescript text > > files. > > >>> > Levure is great. I have used it with every project I've worked on > for > > >>> > several years, BUT you don't have to use it to go this route. > > >>> > > > >>> >> On Thu, Aug 18, 2022 at 7:04 PM Martin Koob via use-livecode < > > >>> >> use-livecode at lists.runrev.com> wrote: > > >>> >> > > >>> >> Hi SKIP > > >>> >> > > >>> >> Welcome back to the list! > > >>> >> > > >>> >> There is Levure which I knew of as a third party application > > framework > > >>> >> created by Trevor DeVore but I just did a search for it and I see > > it now on > > >>> >> the LiveCode website described as an App Collaboration Framework. > > >>> >> https://livecode.com/products/livecode-platform/levure/ < > > >>> >> https://livecode.com/products/livecode-platform/levure/> So it > > must have > > >>> >> at some point migrated to the mother ship. > > >>> >> > > >>> >> I haven’t used it but I have considered migrating my application > to > > it. > > >>> >> It works with version control systems as long as you follow its > > >>> >> recommendations about how to organize your code into behaviours > > that are > > >>> >> stored in script only stacks which are just text files that a > > version > > >>> >> control system can read (These are somewhat new so depending on > > when you > > >>> >> last used LiveCode they may be new to you.) This was an > > enhancement that > > >>> >> has enabled the use of version control for scripts in a project. > It > > is the > > >>> >> binary stacks that versions control systems can’t track so in > > Levure those > > >>> >> are just used for user interface. > > >>> >> > > >>> >> Hope this helps. > > >>> >> > > >>> >> Martin > > >>> >> > > >>> >> > > >>> >>> On Aug 18, 2022, at 6:38 PM, Skip Kimpel via use-livecode < > > >>> >> use-livecode at lists.runrev.com> wrote: > > >>> >>> > > >>> >>> Greetings! > > >>> >>> > > >>> >>> Been a while since I have been on this list. Working on a new > > project > > >>> >> and > > >>> >>> wondering if the backing up of Livecode files to Github was ever > > >>> >>> implemented and created. I know there was talk of it at one > time. > > >>> >>> > > >>> >>> I apologize if it has been in place for a while and I am just out > > of the > > >>> >>> loop. Actually, I HOPE that is the case! > > >>> >>> > > >>> >>> Regards, > > >>> >>> > > >>> >>> SKIP > > >>> >>> _______________________________________________ > > >>> >>> use-livecode mailing list > > >>> >>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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." From gcanyon at gmail.com Mon Aug 29 11:26:58 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 29 Aug 2022 08:26:58 -0700 Subject: BN Guides In-Reply-To: References: <2B813B89-5BA5-4C48-8B36-35BBE9344B07@iotecdigital.com> Message-ID: 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. Navigator out of the box assumes that behaviors are what you're interested in when you double-click to edit a script, so if BN Guides has assigned a behavior, it opens the script BN Guides assigns as the behavior. If I'm right and the assignment of behaviors is supposed to be the case only while you're dragging, then simply deselecting the dragged controls should correct this. If there's an issue with BN Guides, or you want to be *sure* to open the control's script, and not a behavior, you can: 1. In Navigator Preferences, you can choose what to do on double-click -- and double-click with many modifier keys. If all of your scripts are in the actual controls, then select "Edit Script" for "Double-click" instead of the default " 2. Right-click a command-bar and select "Edit Script" as the action for that command bar, and then click it to edit the control's script. At some point I considered updating the script menu to display all the controls in the behavior chain. Anyone feel free to let me know if that's a necessary thing. gc On Sun, Aug 28, 2022 at 12:06 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Geoff, > > you can find the most current version here > > https://forums.livecode.com/viewtopic.php?f=4&t=31920 < > https://forums.livecode.com/viewtopic.php?f=4&t=31920> > > > Regards, > Matthias > > > > Am 28.08.2022 um 19:38 schrieb Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com >: > > > > Where are the BN guides? I'd be curious to see how this is happening. As > I > > recall, Navigator is designed to dive through whatever behaviors are set > > regardless of how deep the rabbit hole goes to find the actual behavior, > > but I haven't looked at that part of the code in years. > > > > gc > > > > On Thu, Aug 25, 2022 at 8:26 AM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com > > wrote: > > > >> Who wrote BN Guides? Very cool, but there is a conflict with Navigator. > >> When I double-click an object in Navigator to open it's script, I get t > he > >> BNGuides script instead. > >> > >> Bob S > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Aug 29 13:29:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 10:29:37 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: On 8/28/22 20:45, Brian Milby via use-livecode wrote: > If you want to see what the JSON export looks like for a fairly small > stack, you can view this: > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > Unfortunately you will need to download and view it with something that > understands the CR line ending since GitHub doesn't. That repo has both > ScriptTracker exports and SmartCrumbs exports of the stack. The former is > designed with two things in mind: allowing changes in the scripts that are > part of a binary stack to be tracked and allowing the editing of those > scripts in an external editor (I like Atom for the linting, have not tried > the newer option). The latter looks to be a way to completely decompose a > stack into mostly text files (images being one exception) that can be > tracked (and in theory changes merged together I'm guessing). OK - I just tried out smartcrumbs to check it out. Not quite sure what's going on here. Outsmarted by smartcrumbs. According to the lesson you just drag this onto a stack. Nope. Click the "Export Stack" button. Stack flickers. Did anything happen? According to the dictionary there's an scGetPathLog(). Maybe that will give me a clue. /My LiveCode/SmartCrumbsVCW/logs//2022-08-29 Eh? What's this "/My LiveCode" thing? I don't have one of those. And why is it trying to store that off my root directory? Let's try that one again. "Recursion limit reached" I'll try scExportStack from the message box. It gives "can't find handler" OK - back to real work. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Mon Aug 29 13:53:26 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 29 Aug 2022 13:53:26 -0400 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: I used Magic Palette to do the export. It should create the folder structure next to the stack file that was the topstack in the IDE. I have not looked at the lesson though. On Mon, Aug 29, 2022 at 1:31 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/28/22 20:45, Brian Milby via use-livecode wrote: > > If you want to see what the JSON export looks like for a fairly small > > stack, you can view this: > > > https://github.com/bwmilby/SvgIconTool/blob/main/smartcrumbs/SvgIconTool.livecode.sc/stackFileProperties.json > > > > Unfortunately you will need to download and view it with something that > > understands the CR line ending since GitHub doesn't. That repo has both > > ScriptTracker exports and SmartCrumbs exports of the stack. The former > is > > designed with two things in mind: allowing changes in the scripts that > are > > part of a binary stack to be tracked and allowing the editing of those > > scripts in an external editor (I like Atom for the linting, have not > tried > > the newer option). The latter looks to be a way to completely decompose > a > > stack into mostly text files (images being one exception) that can be > > tracked (and in theory changes merged together I'm guessing). > > OK - I just tried out smartcrumbs to check it out. Not quite sure what's > going on here. Outsmarted by smartcrumbs. > > According to the lesson you just drag this onto a stack. > Nope. > Click the "Export Stack" button. > Stack flickers. > Did anything happen? > According to the dictionary there's an scGetPathLog(). > Maybe that will give me a clue. > /My LiveCode/SmartCrumbsVCW/logs//2022-08-29 > Eh? > What's this "/My LiveCode" thing? I don't have one of those. > And why is it trying to store that off my root directory? > Let's try that one again. > "Recursion limit reached" > I'll try scExportStack from the message box. > It gives "can't find handler" > > OK - back to real work. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Aug 29 15:06:24 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 12:06:24 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> Message-ID: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> On 8/29/22 10:53, Brian Milby via use-livecode wrote: > I used Magic Palette to do the export. It should create the folder > structure next to the stack file that was the topstack in the IDE. Ah. OK - So I had to look up the filename of the stack first. Would have been nice if the nonexistent log file told me that. > I have not looked at the lesson though. Not missing anything there. I've just been going by the dictionary entries. But now I've opened the guide.md file and see more, although the formatting is wonky. Gotta love the fact that the TOC entry is "Unknown". Looks like it was rushed out the door. -- -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Mon Aug 29 15:22:31 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 29 Aug 2022 20:22:31 +0100 Subject: Livecode / Github In-Reply-To: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> References: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> Look at the guide in the guide section of the dictionary app. It formats okay (although I’m going through and rewriting the grammar to send for an update). Thanks Brian for the heads up on MagicPallet. I hadn’t looked to see what that was for yet. It’s all early stages yet but it’s looking very promising. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 29 Aug 2022, at 20:06, Mark Wieder via use-livecode wrote: > > On 8/29/22 10:53, Brian Milby via use-livecode wrote: >> I used Magic Palette to do the export. It should create the folder >> structure next to the stack file that was the topstack in the IDE. > > Ah. OK - So I had to look up the filename of the stack first. > Would have been nice if the nonexistent log file told me that. > >> I have not looked at the lesson though. > > Not missing anything there. > I've just been going by the dictionary entries. > But now I've opened the guide.md file and see more, although the formatting is wonky. Gotta love the fact that the TOC entry is "Unknown". Looks like it was rushed out the door. > > -- > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Aug 29 15:37:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 12:37:02 -0700 Subject: Livecode / Github In-Reply-To: <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> References: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <69E24074-BEF2-4381-B2CC-82CC370A0322@pidigital.co.uk> Message-ID: <8dcbb283-4907-b69a-5e89-46cfb451fb81@sonic.net> On 8/29/22 12:22, Pi Digital via use-livecode wrote: > Look at the guide in the guide section of the dictionary app. It formats okay (although Im going through and rewriting the grammar to send for an update). Thanks, Sean. Yeah - that does format much better in a browser. -- Mark Wieder ahsoftware at gmail.com From gregg.podnar at gmail.com Mon Aug 29 16:38:26 2022 From: gregg.podnar at gmail.com (Gregg) Date: Mon, 29 Aug 2022 16:38:26 -0400 Subject: Why is Livecode not on this list? Message-ID: https://spectrum.ieee.org/top-programming-languages-2022 From ambassador at fourthworld.com Mon Aug 29 16:51:16 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 13:51:16 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: 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 intrusive as altering an object's behavior property for something this transient. But Bernd does good work, so I'm curious: why this approach and not a frontScript? -- Richard Gaskin Fourth World Systems From ambassador at fourthworld.com Mon Aug 29 16:55:36 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 13:55:36 -0700 Subject: Why is Livecode not on this list? In-Reply-To: References: Message-ID: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> 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, where LC has only been in the top 50 a few times over the years I've been tracking it, but is often in the bottom 50 (out of hundreds of languages not so bad): https://www.tiobe.com/tiobe-index/ -- Richard Gaskin Fourth World Systems From richmondmathewson at gmail.com Mon Aug 29 17:15:04 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 29 Aug 2022 22:15:04 +0100 Subject: Why is Livecode not on this list? In-Reply-To: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> References: <9da4504f-ba77-e5c3-4dff-35520079e94d@fourthworld.com> Message-ID: Personally, My 'take' on LiveCode is that, generally, it is ideal for boutique programming, for specific free-standing applications. It is also excellent for teaching children programming concepts in a relatively digestable way without dumbing programming down in the way block-coding efforts such as Scratch do. As such, there will always be very few advertisements for LiveCode programmers. That should not, in any way, devalue LiveCode. On Mon, 29 Aug 2022, 21:56 Richard Gaskin via use-livecode, < use-livecode at lists.runrev.com> wrote: > 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, where LC has > only been in the top 50 a few times over the years I've been tracking > it, but is often in the bottom 50 (out of hundreds of languages not so > bad): > > https://www.tiobe.com/tiobe-index/ > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Mon Aug 29 17:36:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Aug 2022 17:36:01 -0400 Subject: the script of with line numbers? Message-ID: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript   put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. From jacque at hyperactivesw.com Mon Aug 29 17:50:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 29 Aug 2022 16:50:53 -0500 Subject: the script of with line numbers? In-Reply-To: References: Message-ID: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: > Is there a way (an existing function or command in the language or IDE) to get the script of an > object WITH the line numbers as you see them in the IDE script editor? > > OR > > Do I just have to do something like: > > put the script of tObject into tScript > repeat with i=1 to the number of lines in tScript >   put i &space before line i of tScript > end repeat > > Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Aug 29 17:55:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 21:55:00 +0000 Subject: the script of with line numbers? In-Reply-To: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> References: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> Message-ID: Maybe marginally better: ... sort it by word 1 of each Bob S On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode > wrote: On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Aug 29 17:55:42 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 21:55:42 +0000 Subject: the script of with line numbers? In-Reply-To: References: <5a84a1e9-7623-3a12-1bd1-8a69f8029b05@hyperactivesw.com> Message-ID: <94DD7BBC-C054-4B62-AEE6-9757D2C9750F@iotecdigital.com> Correction: sort it numeric by word 1 of each Bob S On Aug 29, 2022, at 14:55 , Bob Sneidar > wrote: Maybe marginally better: ... sort it by word 1 of each Bob S On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode > wrote: On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? OR Do I just have to do something like: put the script of tObject into tScript repeat with i=1 to the number of lines in tScript put i &space before line i of tScript end repeat Any secret IDE or LCS knowledge welcome. Thank you in advance. How about: get the script of split it by cr combine it by cr and tab sort it numeric -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Bernd.Niggemann at uni-wh.de Mon Aug 29 18:25:29 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 29 Aug 2022 22:25:29 +0000 Subject: BN Guides Message-ID: <3160207C-1B51-4F13-818C-1DDDD0F8D9ED@uni-wh.de> > Richard Gaskin via use-livecode Mon, 29 Aug 2022 13:53:13 -0700 > > 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 intrusive as altering an object's behavior property for something this transient. > > But Bernd does good work, so I'm curious: why this approach and not a frontScript? Actually I was experimenting and wanted to use behaviors dynamically at the time when I wrote this. A proof of principle if you want. It worked surprisingly well. That is why I sticked to behaviors. After fixing some edge cases it even removes the behaviors correctly... At the time there were no guides available for LC. But as of LC 10 Guidelines will be part of the IDE and that looks and works really well. (LC uses a backScript) Kind regards Bernd From ahsoftware at sonic.net Mon Aug 29 18:58:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 15:58:41 -0700 Subject: the script of with line numbers? In-Reply-To: References: Message-ID: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: > Is there a way (an existing function or command in the language or IDE) > to get the script of an object WITH the line numbers as you see them in > the IDE script editor? While some clever solutions have been posted, I gotta ask WHY? -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Aug 29 19:10:27 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 23:10:27 +0000 Subject: the script of with line numbers? In-Reply-To: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> Message-ID: <937A8FE2-4A88-495F-AE16-8466665E3956@iotecdigital.com> That question always reminds me of Mathesar when he discoveres that Commander Peter Quincy Taggert has been lying all along. :-) Bob S On Aug 29, 2022, at 15:58 , Mark Wieder via use-livecode > wrote: On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? While some clever solutions have been posted, I gotta ask WHY? -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Mon Aug 29 19:11:09 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Aug 2022 19:11:09 -0400 Subject: the script of with line numbers? In-Reply-To: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> Message-ID: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> On 8/29/2022 6:58 PM, Mark Wieder via use-livecode wrote: > On 8/29/22 14:36, Paul Dupuis via use-livecode wrote: >> Is there a way (an existing function or command in the language or >> IDE) to get the script of an object WITH the line numbers as you see >> them in the IDE script editor? > > While some clever solutions have been posted, I gotta ask WHY? > In our applications, we trap the script error dialog and replace the default with our own. That dialog lets customers send the executionContexts and some other debugging information to us to report an error (if one gets by quality/beta testing). So we get the executionContext that say "error such and such occurred at line 342 of some handler". The line number is the line of the whole script the handler is in. When we et the message and log the problem in our instance of Bugzilla, one of the 1st things is to look at the script and see what the line of code references actually says. It could reduce a trouble should step to include the line numbers programmatically in the error report. No a huge priority in the scheme of things, but a "nice to have" sort of thing. Does that answer the "why?" From bobsneidar at iotecdigital.com Mon Aug 29 19:18:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Aug 2022 23:18:34 +0000 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: <72224209-4337-4747-A52B-AA2DF2B5EBB3@iotecdigital.com> As long as Mathesar is happy, I'm happy. Bob S On Aug 29, 2022, at 16:11 , Paul Dupuis via use-livecode > wrote: No a huge priority in the scheme of things, but a "nice to have" sort of thing. Does that answer the "why?" From ahsoftware at sonic.net Mon Aug 29 19:19:40 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Aug 2022 16:19:40 -0700 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <5674863c-d58b-e35a-3cce-94e2dccef55a@sonic.net> <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: On 8/29/22 16:11, Paul Dupuis via use-livecode wrote: > It could reduce a trouble should step to include the line numbers > programmatically in the error report. > > No a huge priority in the scheme of things, but a "nice to have" sort of > thing. Does that answer the "why?" Somewhat. If you already have the line number from the error message, why not just grab that line of script? Or preface it with the line number you already have in your possession? But I find that the executionContexts gives me more information than just where the error occurred, since the actual problem may be farther up the line and it's only the end symptom that triggers the error. -- Mark Wieder ahsoftware at gmail.com From Bernd.Niggemann at uni-wh.de Mon Aug 29 19:22:19 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 29 Aug 2022 23:22:19 +0000 Subject: BN Guides Message-ID: <0CFB84B5-71D9-4F2D-AE86-67356B005FD8@uni-wh.de> > Richard Gaskin via use-livecode Mon, 29 Aug 2022 13:53:13 -0700 > so I'm curious: why this approach and not a frontScript? I thought about why I used behaviors a little more. What intrigued me was the idea that via a behavior a control was made aware of its neighbours. Be it a group or a control it knew where all the other objects were. Even dragged them along when needed. And it worked semi autonomously with a little help from "the owner of this me". I think that was my main fascination when using behaviors. It was a change of perspective from the central perspective to a decentralised perspective. Kind regards Bernd From ambassador at fourthworld.com Mon Aug 29 19:38:28 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 16:38:28 -0700 Subject: Why is Livecode not on this list? In-Reply-To: References: Message-ID: <9aa11f8f-1ba8-98de-1a9f-76277220a8d7@fourthworld.com> Richmond Mathewson wrote: > As such, there will always be very few advertisements for LiveCode > programmers. But still many good stories to tell. And apparently LC Ltd just hired a new Brand & Digital Marketing Lead, so I imagine we'll see those stories told. https://twitter.com/happymaan/status/1562801044132085762 -- Richard Gaskin Fourth World Systems From sean at pidigital.co.uk Mon Aug 29 23:49:21 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 30 Aug 2022 04:49:21 +0100 Subject: the script of with line numbers? In-Reply-To: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> References: <79897272-c615-c15c-854f-4d89f257c14d@researchware.com> Message-ID: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> Using The earlier example, you could use put theErrorLineNum into tLineNum put the script of stack “myScript” into tScript split tScript using cr logError tLineNum, tScript[tLineNum] Or something like that. Sean >>> Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor? >> >> While some clever solutions have been posted, I gotta ask WHY? >> > > In our applications, we trap the script error dialog and replace the default with our own. That dialog lets customers send the executionContexts and some other debugging information to us to report an error (if one gets by quality/beta testing). > > So we get the executionContext that say "error such and such occurred at line 342 of some handler". The line number is the line of the whole script the handler is in. > > When we et the message and log the problem in our instance of Bugzilla, one of the 1st things is to look at the script and see what the line of code references actually says. > > It could reduce a trouble should step to include the line numbers programmatically in the error report. From ambassador at fourthworld.com Tue Aug 30 01:14:05 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 29 Aug 2022 22:14:05 -0700 Subject: the script of with line numbers? In-Reply-To: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> References: <33A58CE1-30FF-4A10-8237-EF0F2C8949E2@pidigital.co.uk> Message-ID: <92952525-1fdf-6f86-3e09-9daf297eca3e@fourthworld.com> Another option: Automate it, replacing Bugzilla's web UI with LC Mod Ken Ray's RevZilla to retrieve support emails, reformat them however needed, tuck them in the DB, integrate the report display with things like double-clicking a line in the executtionContexts to open scripts, etc. http://www.sonsothunder.com/devres/livecode/downloads/RevZilla2.htm One-stop shopping for a fully integrated software support system. A similar approach could be used with Nextcloud's Deck APIs, or a wide range of other issue tracking systems, even Github. -- Richard Gaskin Fourth World Systems From gcanyon at gmail.com Tue Aug 30 03:45:04 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 00:45:04 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: He's also throwing controls into the stack to show guides for the alignment, and then disposing of those. So maybe in for a penny? If I were doing something like this I think I'd try: 1. A frontscript, as you say, or just setting up to receive IDE messages -- pretty sure there's an objectMoved IDE message or something like it. 2. Using stacks with the shape set as guides. But maybe my idea is out of date or impractical in some way. I experimented with some sort of auto-alignment code a long time ago. I have no memory of how far I got with it. gc On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > 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 > intrusive as altering an object's behavior property for something this > transient. > > But Bernd does good work, so I'm curious: why this approach and not a > frontScript? > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Aug 30 13:42:52 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 30 Aug 2022 10:42:52 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: I've fantasized about being able to paint directly to the window buffer without using an object, but having done that in C back in the day I enjoy the conveniences scripted objects bring. Your stack suggestion is intriguing, but how does it work in practice? I find the systemic overhead of dynamically reinstantiating windows to fit a changing shape makes things a bit less smooth than I'd prefer. Or are you suggesting a separate stack for each guide line? That would keep the performance up, but seems tedious to write. -- Richard Gaskin Fourth World Systems Geoff Canyon wrote: > He's also throwing controls into the stack to show guides for the > alignment, and then disposing of those. So maybe in for a penny? > > If I were doing something like this I think I'd try: > > 1. A frontscript, as you say, or just setting up to receive IDE messages -- > pretty sure there's an objectMoved IDE message or something like it. > 2. Using stacks with the shape set as guides. > > But maybe my idea is out of date or impractical in some way. I experimented > with some sort of auto-alignment code a long time ago. I have no memory of > how far I got with it. > > gc > > On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 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 >> intrusive as altering an object's behavior property for something this >> transient. >> >> But Bernd does good work, so I'm curious: why this approach and not a >> frontScript? >> >> -- >> Richard Gaskin >> Fourth World Systems From gcanyon at gmail.com Tue Aug 30 17:27:13 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 14:27:13 -0700 Subject: BN Guides In-Reply-To: References: Message-ID: <393ACC2F-9B6C-4FBE-9318-2B3E9C106F2B@gmail.com> 15(?) years ago I wrote an app that bounced a bunch of balls across the screen. Each was a shaped-stack. It has no trouble being pretty smooth even with twenty or so stacks, as I recall. It would be more than enough for guides, especially with the 100x hardware we have today. Positioning a stack is as simple as positioning a control, but for any translations to/from global coordinates. gc > On Aug 30, 2022, at 10:44 AM, Richard Gaskin via use-livecode wrote: > > I've fantasized about being able to paint directly to the window buffer without using an object, but having done that in C back in the day I enjoy the conveniences scripted objects bring. > > Your stack suggestion is intriguing, but how does it work in practice? > > I find the systemic overhead of dynamically reinstantiating windows to fit a changing shape makes things a bit less smooth than I'd prefer. > > Or are you suggesting a separate stack for each guide line? That would keep the performance up, but seems tedious to write. > > -- > Richard Gaskin > Fourth World Systems > > > > > Geoff Canyon wrote: >> He's also throwing controls into the stack to show guides for the >> alignment, and then disposing of those. So maybe in for a penny? >> If I were doing something like this I think I'd try: >> 1. A frontscript, as you say, or just setting up to receive IDE messages -- >> pretty sure there's an objectMoved IDE message or something like it. >> 2. Using stacks with the shape set as guides. >> But maybe my idea is out of date or impractical in some way. I experimented >> with some sort of auto-alignment code a long time ago. I have no memory of >> how far I got with it. >> gc >>> On Mon, Aug 29, 2022 at 1:52 PM Richard Gaskin via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> 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 >>> intrusive as altering an object's behavior property for something this >>> transient. >>> >>> But Bernd does good work, so I'm curious: why this approach and not a >>> frontScript? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Aug 30 17:30:36 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 30 Aug 2022 14:30:36 -0700 Subject: lcb missing manual In-Reply-To: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> References: <33692627-5f0a-25ff-c4a8-5664e460a7cb@sonic.net> Message-ID: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> Is there a page that discusses the pros of LCB? I looked and didn’t find it. I’m thinking of a simple list (I’m making this up because I didn’t find the page) — N times faster execution than LCS — interface with code libraries using simple hooks — bundle code and graphics together into widgets More? gc > On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode wrote: > > On 8/28/22 11:06, Mike Kerner wrote: >> the lcb documentation, especially in the api widget is ungreat. >> the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application >> example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. > > Yep - I find most of my documentation by digging. > > The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Aug 30 17:56:57 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 30 Aug 2022 17:56:57 -0400 Subject: lcb missing manual In-Reply-To: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> Message-ID: <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> LCB has been slower than LCS, but the advantage is that you can easily link to much faster compiler code. I’m not sure if that has changed any… I could pull out some code from a while back where we were doing some speed tests. Sent from my iPhone > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode wrote: > > Is there a page that discusses the pros of LCB? I looked and didn’t find it. > > I’m thinking of a simple list (I’m making this up because I didn’t find the page) > > — N times faster execution than LCS > — interface with code libraries using simple hooks > — bundle code and graphics together into widgets > > More? > > gc > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode wrote: >>> >>> On 8/28/22 11:06, Mike Kerner wrote: >>> the lcb documentation, especially in the api widget is ungreat. >>> the good news is that as long as there is an oss repo version of LC, you can hunt for some of the information that is missing. AND, at least for now, you can still find much of it in the LC application >>> example: as i was hunting, i found a bunch of editors, but none of them seem to be documented anywhere obvious. >> >> Yep - I find most of my documentation by digging. >> >> The lack of colornames just bit me earlier this week and I had to backpedal and code a list of a dozen color names as "R,G,B". Even the "#FFFFFF" format isn't accepted. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Aug 30 19:12:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Aug 2022 23:12:47 +0000 Subject: Standardize Font Appearance Message-ID: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Hi all. I'm at the point now where I want to clean up the appearance of all my projects across all platforms. For instance, I have a Time Calculator stack that calculates total time for any number of start/stop/lunch entries. I have heretofore left my field and label fonts at the default, which for MacOS is . But when I create a standalone for Windows, the size of that text is larger, and so any labels I have overflow the label and only show me part of the text. What I want to do is set up my environment so that whatever font I use in the MacOS uses, there is an identical font on the Windows side as well. I know there is a way to embed fonts in a project, but I don't really understand how that works. If I use a font that exists in both Mac and Windows, a common web font for instance, they do not look at all the same on both platforms. Verdana is a good example. I am not averse to purchasing a font family or two and statically setting my font, size and style for every object, so long as the Windows and MacOS look (reasonably) the same. Any ideas? Bob S From bobsneidar at iotecdigital.com Tue Aug 30 19:20:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Aug 2022 23:20:34 +0000 Subject: Standardize Font Appearance In-Reply-To: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. Bob S On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode > wrote: Hi all. I'm at the point now where I want to clean up the appearance of all my projects across all platforms. For instance, I have a Time Calculator stack that calculates total time for any number of start/stop/lunch entries. I have heretofore left my field and label fonts at the default, which for MacOS is . But when I create a standalone for Windows, the size of that text is larger, and so any labels I have overflow the label and only show me part of the text. What I want to do is set up my environment so that whatever font I use in the MacOS uses, there is an identical font on the Windows side as well. I know there is a way to embed fonts in a project, but I don't really understand how that works. If I use a font that exists in both Mac and Windows, a common web font for instance, they do not look at all the same on both platforms. Verdana is a good example. I am not averse to purchasing a font family or two and statically setting my font, size and style for every object, so long as the Windows and MacOS look (reasonably) the same. Any ideas? Bob S From tom at makeshyft.com Tue Aug 30 20:36:51 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 30 Aug 2022 20:36:51 -0400 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: THe only way to do this is to use google's web fonts and ship them with your project. It works well. To save you the trouble, Android requires the fonts to be in a "fonts" folder in the root folder of your projects. Or at least its what I read somewhere in the forums. Cheers Bob On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. > > Bob S > > > On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > Hi all. > > I'm at the point now where I want to clean up the appearance of all my > projects across all platforms. For instance, I have a Time Calculator stack > that calculates total time for any number of start/stop/lunch entries. I > have heretofore left my field and label fonts at the default, which for > MacOS is . But when I create a standalone for Windows, the > size of that text is larger, and so any labels I have overflow the label > and only show me part of the text. > > What I want to do is set up my environment so that whatever font I use in > the MacOS uses, there is an identical font on the Windows side as well. I > know there is a way to embed fonts in a project, but I don't really > understand how that works. > > If I use a font that exists in both Mac and Windows, a common web font for > instance, they do not look at all the same on both platforms. Verdana is a > good example. I am not averse to purchasing a font family or two and > statically setting my font, size and style for every object, so long as the > Windows and MacOS look (reasonably) the same. > > Any ideas? > > Bob S > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Aug 30 21:55:30 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 30 Aug 2022 20:55:30 -0500 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: <182f19c5250.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have an Android app that uses a custom font. I just dropped the ttf file into the Copy Files pane of standalone settings and issued "start using font file" in a preOpenStack handler. Seems to work fine. Easy too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 30, 2022 7:39:19 PM Tom Glod via use-livecode wrote: > THe only way to do this is to use google's web fonts and ship them with > your project. It works well. > To save you the trouble, Android requires the fonts to be in a "fonts" > folder in the root folder of your projects. > Or at least its what I read somewhere in the forums. > > Cheers Bob > > On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. >> >> Bob S >> >> >> On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> Hi all. >> >> I'm at the point now where I want to clean up the appearance of all my >> projects across all platforms. For instance, I have a Time Calculator stack >> that calculates total time for any number of start/stop/lunch entries. I >> have heretofore left my field and label fonts at the default, which for >> MacOS is . But when I create a standalone for Windows, the >> size of that text is larger, and so any labels I have overflow the label >> and only show me part of the text. >> >> What I want to do is set up my environment so that whatever font I use in >> the MacOS uses, there is an identical font on the Windows side as well. I >> know there is a way to embed fonts in a project, but I don't really >> understand how that works. >> >> If I use a font that exists in both Mac and Windows, a common web font for >> instance, they do not look at all the same on both platforms. Verdana is a >> good example. I am not averse to purchasing a font family or two and >> statically setting my font, size and style for every object, so long as the >> Windows and MacOS look (reasonably) the same. >> >> Any ideas? >> >> Bob S >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Aug 30 22:02:50 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 03:02:50 +0100 Subject: Livecode / Github In-Reply-To: <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: Hi Mark, When you said this, how did you use it to get it to work? I'm getting the same issues as you were. Thanks Sean On Mon, 29 Aug 2022 at 20:06, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > > Ah. OK - So I had to look up the filename of the stack first. > > From sean at pidigital.co.uk Tue Aug 30 22:36:06 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 03:36:06 +0100 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: Don't worry, it was password protected. I thought it had managed to remove the protection but the script I ran to remove it from the 97 stacks didn;t do it properly. So I did it again and then needed to restart LC first for it to fully recognise the protection removed. All good now. MainStack exported (it's massive so it took some time). just another 96 stacks to go. Looks like I'll set up an automation script. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On Wed, 31 Aug 2022 at 03:02, Sean Cole wrote: > Hi Mark, > > When you said this, how did you use it to get it to work? I'm getting the > same issues as you were. > > Thanks > Sean > > On Mon, 29 Aug 2022 at 20:06, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Ah. OK - So I had to look up the filename of the stack first. >> >> From ahsoftware at sonic.net Tue Aug 30 23:05:16 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 30 Aug 2022 20:05:16 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> Message-ID: <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> On 8/30/22 19:36, Sean Cole via use-livecode wrote: > just another 96 stacks to go. > Looks like I'll set up an automation script. Ouch! I think the library would do well to check the password status and allow entering and cacheing the password as necessary. Too bad it's closed source so we can't fix it. -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Wed Aug 31 06:00:41 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 11:00:41 +0100 Subject: Livecode / Github In-Reply-To: <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> Message-ID: Well, I had to leave it overnight to finish exporting as it was clear to take some time. This was for just the main stack, not my long list of stacks. Looking at the message box this morning, though, has a response Message execution error: Error description: Object: object does not have this property Hint: 'Object does not have this property' ?? What property? Thanks LC for giving me all the information I need to fix it [shrugs]. It hasn't created the JSON file in the main .sc folder so it must have abandoned the operation at some point. I'll give it another go now after a reset and to another faster drive to see if that improves things but with no other info to go on I have no idea what needs to be done. LC Team: :-) It would be REALLY handy if proper errors were thrown when one occurs that can help us easily understand what the issues are. Also, if prior to release documentation were gone through to make sure they are legible. And if plugins released actually work as described. :-) Sean On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/30/22 19:36, Sean Cole via use-livecode wrote: > > just another 96 stacks to go. > > Looks like I'll set up an automation script. > > Ouch! I think the library would do well to check the password status and > allow entering and cacheing the password as necessary. Too bad it's > closed source so we can't fix it. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Wed Aug 31 08:46:51 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 08:46:51 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. Thanks, Brian > On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: > > Well, I had to leave it overnight to finish exporting as it was clear to > take some time. This was for just the main stack, not my long list of > stacks. Looking at the message box this morning, though, has a response > > Message execution error: > Error description: Object: object does not have this property > Hint: > > 'Object does not have this property' ?? What property? Thanks LC for giving > me all the information I need to fix it [shrugs]. It hasn't created the > JSON file in the main .sc folder so it must have abandoned the operation at > some point. > > I'll give it another go now after a reset and to another faster drive to > see if that improves things but with no other info to go on I have no idea > what needs to be done. > > LC Team: :-) It would be REALLY handy if proper errors were thrown when one > occurs that can help us easily understand what the issues are. Also, if > prior to release documentation were gone through to make sure they are > legible. And if plugins released actually work as described. :-) > > Sean > > >> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>> just another 96 stacks to go. >>> Looks like I'll set up an automation script. >> >> Ouch! I think the library would do well to check the password status and >> allow entering and cacheing the password as necessary. Too bad it's >> closed source so we can't fix it. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Aug 31 08:53:09 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 31 Aug 2022 08:53:09 -0400 Subject: lcb missing manual In-Reply-To: <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> Message-ID: It would be interesting if lcb was slower, since it's supposed to be lower-level. The demo that Steven did, demonstrating the speed of populating a polyGrid (lcb widget) vs. a dataGrid (lcs group) was that it was much, much faster. On Tue, Aug 30, 2022 at 5:58 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > LCB has been slower than LCS, but the advantage is that you can easily > link to much faster compiler code. I’m not sure if that has changed any… I > could pull out some code from a while back where we were doing some speed > tests. > > Sent from my iPhone > > > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there a page that discusses the pros of LCB? I looked and didn’t > find it. > > > > I’m thinking of a simple list (I’m making this up because I didn’t find > the page) > > > > — N times faster execution than LCS > > — interface with code libraries using simple hooks > > — bundle code and graphics together into widgets > > > > More? > > > > gc > > > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> On 8/28/22 11:06, Mike Kerner wrote: > >>> the lcb documentation, especially in the api widget is ungreat. > >>> the good news is that as long as there is an oss repo version of LC, > you can hunt for some of the information that is missing. AND, at least for > now, you can still find much of it in the LC application > >>> example: as i was hunting, i found a bunch of editors, but none of > them seem to be documented anywhere obvious. > >> > >> Yep - I find most of my documentation by digging. > >> > >> The lack of colornames just bit me earlier this week and I had to > backpedal and code a list of a dozen color names as "R,G,B". Even the > "#FFFFFF" format isn't accepted. > >> > >> -- > >> Mark Wieder > >> ahsoftware at gmail.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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." From sean at pidigital.co.uk Wed Aug 31 10:26:15 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 15:26:15 +0100 Subject: lcb missing manual In-Reply-To: References: <816C27F1-2EFD-47F9-A507-46245A41158A@gmail.com> <69F805E3-DF6D-4403-BE3E-84CAB718344B@milby7.com> Message-ID: The subject of the dictionary has long been one of contention. One that I have often spoken up and been shouted down about (nb, I'm not making accusations or flames :) ). But I also understand the great amount of resources this would take to produce decent, up to date guides and indices of all the terms and libraries. LC's become quite the behemoth and I doubt any one individual could carry it out. Indeed, even a bunch of us during past HacktoberFests only achieved a percentage of it. The AI thing Kevin showed us some time ago showed promise. But I'm not sure how far off that is from seeing the light of day. Hopefully soon if I haven't already missed it. But, even so, a lot of the examples, language and syntax are out of date or incomplete so would still need some work. As someone who eats manuals and dictionaries for brunch I'd love to be part of the team to put it together as I have in the past. But I guess it would depend on LCL having the resources to put into it. I would hope they see it as important as we do. All the best On Wed, 31 Aug 2022 at 13:53, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > It would be interesting if lcb was slower, since it's supposed to be > lower-level. > The demo that Steven did, demonstrating the speed of populating a polyGrid > (lcb widget) vs. a dataGrid (lcs group) was that it was much, much faster. > > On Tue, Aug 30, 2022 at 5:58 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > LCB has been slower than LCS, but the advantage is that you can easily > > link to much faster compiler code. I’m not sure if that has changed > any… I > > could pull out some code from a while back where we were doing some speed > > tests. > > > > Sent from my iPhone > > > > > On Aug 30, 2022, at 5:31 PM, Geoff Canyon via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Is there a page that discusses the pros of LCB? I looked and didn’t > > find it. > > > > > > I’m thinking of a simple list (I’m making this up because I didn’t find > > the page) > > > > > > — N times faster execution than LCS > > > — interface with code libraries using simple hooks > > > — bundle code and graphics together into widgets > > > > > > More? > > > > > > gc > > > > > >>> On Aug 28, 2022, at 11:27 AM, Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > >>> On 8/28/22 11:06, Mike Kerner wrote: > > >>> the lcb documentation, especially in the api widget is ungreat. > > >>> the good news is that as long as there is an oss repo version of LC, > > you can hunt for some of the information that is missing. AND, at least > for > > now, you can still find much of it in the LC application > > >>> example: as i was hunting, i found a bunch of editors, but none of > > them seem to be documented anywhere obvious. > > >> > > >> Yep - I find most of my documentation by digging. > > >> > > >> The lack of colornames just bit me earlier this week and I had to > > backpedal and code a list of a dozen color names as "R,G,B". Even the > > "#FFFFFF" format isn't accepted. > > >> > > >> -- > > >> Mark Wieder > > >> ahsoftware at gmail.com > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Wed Aug 31 10:33:03 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 31 Aug 2022 15:33:03 +0100 Subject: Livecode / Github In-Reply-To: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> References: <6E98ACFE-F3E6-4C26-A1A7-57E9F139FAF5@milby7.com> Message-ID: It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: > > Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. > > Thanks, > Brian > >> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >> >> Well, I had to leave it overnight to finish exporting as it was clear to >> take some time. This was for just the main stack, not my long list of >> stacks. Looking at the message box this morning, though, has a response >> >> Message execution error: >> Error description: Object: object does not have this property >> Hint: >> >> 'Object does not have this property' ?? What property? Thanks LC for giving >> me all the information I need to fix it [shrugs]. It hasn't created the >> JSON file in the main .sc folder so it must have abandoned the operation at >> some point. >> >> I'll give it another go now after a reset and to another faster drive to >> see if that improves things but with no other info to go on I have no idea >> what needs to be done. >> >> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >> occurs that can help us easily understand what the issues are. Also, if >> prior to release documentation were gone through to make sure they are >> legible. And if plugins released actually work as described. :-) >> >> Sean >> >> >>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>> just another 96 stacks to go. >>>>> Looks like I'll set up an automation script. >>> >>> Ouch! I think the library would do well to check the password status and >>> allow entering and cacheing the password as necessary. Too bad it's >>> closed source so we can't fix it. >>> >>> -- >>> Mark Wieder >>> ahsoftware at gmail.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 31 10:37:08 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 10:37:08 -0400 Subject: Livecode / Github In-Reply-To: References: Message-ID: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> I’ll run it on my much smaller ScriptTracker stack (which has a couple substacks) and report my findings. Brian Milby brian at milby7.com > On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode wrote: > > It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. > > Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. > > I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > >> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: >> >> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. >> >> Thanks, >> Brian >> >>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >>> >>> Well, I had to leave it overnight to finish exporting as it was clear to >>> take some time. This was for just the main stack, not my long list of >>> stacks. Looking at the message box this morning, though, has a response >>> >>> Message execution error: >>> Error description: Object: object does not have this property >>> Hint: >>> >>> 'Object does not have this property' ?? What property? Thanks LC for giving >>> me all the information I need to fix it [shrugs]. It hasn't created the >>> JSON file in the main .sc folder so it must have abandoned the operation at >>> some point. >>> >>> I'll give it another go now after a reset and to another faster drive to >>> see if that improves things but with no other info to go on I have no idea >>> what needs to be done. >>> >>> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >>> occurs that can help us easily understand what the issues are. Also, if >>> prior to release documentation were gone through to make sure they are >>> legible. And if plugins released actually work as described. :-) >>> >>> Sean >>> >>> >>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>>> just another 96 stacks to go. >>>>>> Looks like I'll set up an automation script. >>>> >>>> Ouch! I think the library would do well to check the password status and >>>> allow entering and cacheing the password as necessary. Too bad it's >>>> closed source so we can't fix it. >>>> >>>> -- >>>> Mark Wieder >>>> ahsoftware at gmail.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Aug 31 10:48:02 2022 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Aug 2022 10:48:02 -0400 Subject: Livecode / Github In-Reply-To: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> Message-ID: <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> https://github.com/bwmilby/scriptTracker It appears that the JSON file does include all substacks. Brian Milby brian at milby7.com > On Aug 31, 2022, at 10:37 AM, Brian Milby wrote: > > I’ll run it on my much smaller ScriptTracker stack (which has a couple substacks) and report my findings. > > Brian Milby > brian at milby7.com > >> On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode wrote: >> >> It created a smartcrumbs folder which contained 1 .livecode.sc folder which contained 3 subfolders, medias, scripts and shareTexts. medias contained 1 images folder with 2,325 jpeg files. The scripts folder contained 22,006 livecodescript files. The sharedTexts folders contained 7,352 GUID ref’d folders with one or more html files as well as 7,462 separate html files. And that is all. >> >> Having tried again using the Export button from the magicPallet (which, because of the delay between pressing the button and it actually exporting, should have a spinner or something to show its working on it) I get the same result but this time with nothing in the message box or any log file. >> >> I’ll try again but from the message box. The guide definitely says it will create a json file in each .livecode.sc folder that contains information about other objects and substacks. It doesn’t say we need to export each substack individually. But the json file should hold info about all the other stuff as well. We’ll see. >> >> Sean Cole >> Pi Digital Productions Ltd >> >> eMail Ts & Cs >> >> >>>> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode wrote: >>> >>> Had it created any of the script or other objects? Curious whether it builds the JSON first or if it is done while exporting the other assets. >>> >>> Thanks, >>> Brian >>> >>>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode wrote: >>>> >>>> Well, I had to leave it overnight to finish exporting as it was clear to >>>> take some time. This was for just the main stack, not my long list of >>>> stacks. Looking at the message box this morning, though, has a response >>>> >>>> Message execution error: >>>> Error description: Object: object does not have this property >>>> Hint: >>>> >>>> 'Object does not have this property' ?? What property? Thanks LC for giving >>>> me all the information I need to fix it [shrugs]. It hasn't created the >>>> JSON file in the main .sc folder so it must have abandoned the operation at >>>> some point. >>>> >>>> I'll give it another go now after a reset and to another faster drive to >>>> see if that improves things but with no other info to go on I have no idea >>>> what needs to be done. >>>> >>>> LC Team: :-) It would be REALLY handy if proper errors were thrown when one >>>> occurs that can help us easily understand what the issues are. Also, if >>>> prior to release documentation were gone through to make sure they are >>>> legible. And if plugins released actually work as described. :-) >>>> >>>> Sean >>>> >>>> >>>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: >>>>>>> just another 96 stacks to go. >>>>>>> Looks like I'll set up an automation script. >>>>> >>>>> Ouch! I think the library would do well to check the password status and >>>>> allow entering and cacheing the password as necessary. Too bad it's >>>>> closed source so we can't fix it. >>>>> >>>>> -- >>>>> Mark Wieder >>>>> ahsoftware at gmail.com >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 31 10:58:01 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 31 Aug 2022 15:58:01 +0100 Subject: Livecode / Github In-Reply-To: <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> Message-ID: Thanks for the confirmation, Brian. I tried again from the message box. With a stack this large it takes about 10 seconds before the mainStack disappears for exporting and then reappears 1 min later. About 4-8 mins after that it truely finishes where it flashes up a white window for a moment then the error appears in the message box, same as before, object does not have this property. Because everything is handled using a GUID, I have no idea how far it has got nor which particular object is causing the problem. We'll find it eventually, I'm certain. Sean On Wed, 31 Aug 2022 at 15:48, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > https://github.com/bwmilby/scriptTracker > > It appears that the JSON file does include all substacks. > > Brian Milby > brian at milby7.com > > > On Aug 31, 2022, at 10:37 AM, Brian Milby wrote: > > > > I’ll run it on my much smaller ScriptTracker stack (which has a couple > substacks) and report my findings. > > > > Brian Milby > > brian at milby7.com > > > >> On Aug 31, 2022, at 10:34 AM, Pi Digital via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> It created a smartcrumbs folder which contained 1 .livecode.sc folder > which contained 3 subfolders, medias, scripts and shareTexts. medias > contained 1 images folder with 2,325 jpeg files. The scripts folder > contained 22,006 livecodescript files. The sharedTexts folders contained > 7,352 GUID ref’d folders with one or more html files as well as 7,462 > separate html files. And that is all. > >> > >> Having tried again using the Export button from the magicPallet (which, > because of the delay between pressing the button and it actually exporting, > should have a spinner or something to show its working on it) I get the > same result but this time with nothing in the message box or any log file. > >> > >> I’ll try again but from the message box. The guide definitely says it > will create a json file in each .livecode.sc folder that contains > information about other objects and substacks. It doesn’t say we need to > export each substack individually. But the json file should hold info about > all the other stuff as well. We’ll see. > >> > >> Sean Cole > >> Pi Digital Productions Ltd > >> > >> eMail Ts & Cs > >> > >> > >>>> On 31 Aug 2022, at 13:46, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Had it created any of the script or other objects? Curious whether > it builds the JSON first or if it is done while exporting the other assets. > >>> > >>> Thanks, > >>> Brian > >>> > >>>>> On Aug 31, 2022, at 6:02 AM, Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>>> > >>>> Well, I had to leave it overnight to finish exporting as it was > clear to > >>>> take some time. This was for just the main stack, not my long list of > >>>> stacks. Looking at the message box this morning, though, has a > response > >>>> > >>>> Message execution error: > >>>> Error description: Object: object does not have this property > >>>> Hint: > >>>> > >>>> 'Object does not have this property' ?? What property? Thanks LC for > giving > >>>> me all the information I need to fix it [shrugs]. It hasn't created > the > >>>> JSON file in the main .sc folder so it must have abandoned the > operation at > >>>> some point. > >>>> > >>>> I'll give it another go now after a reset and to another faster drive > to > >>>> see if that improves things but with no other info to go on I have no > idea > >>>> what needs to be done. > >>>> > >>>> LC Team: :-) It would be REALLY handy if proper errors were thrown > when one > >>>> occurs that can help us easily understand what the issues are. Also, > if > >>>> prior to release documentation were gone through to make sure they are > >>>> legible. And if plugins released actually work as described. :-) > >>>> > >>>> Sean > >>>> > >>>> > >>>>> On Wed, 31 Aug 2022 at 04:05, Mark Wieder via use-livecode < > >>>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>>>> On 8/30/22 19:36, Sean Cole via use-livecode wrote: > >>>>>>> just another 96 stacks to go. > >>>>>>> Looks like I'll set up an automation script. > >>>>> > >>>>> Ouch! I think the library would do well to check the password status > and > >>>>> allow entering and cacheing the password as necessary. Too bad it's > >>>>> closed source so we can't fix it. > >>>>> > >>>>> -- > >>>>> Mark Wieder > >>>>> ahsoftware at gmail.com > >>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Aug 31 11:17:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Aug 2022 15:17:59 +0000 Subject: Standardize Font Appearance In-Reply-To: References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> Message-ID: <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> Great idea! I looked for a download link for the fonts, but all I can find are github links to the source code (I don't want to have to build out all the fonts if that's what that is) and other sources for font downloaders and synchs. Is there anywhere I can just download the OTF files? Bob S > On Aug 30, 2022, at 17:36 , Tom Glod via use-livecode wrote: > > THe only way to do this is to use google's web fonts and ship them with > your project. It works well. > To save you the trouble, Android requires the fonts to be in a "fonts" > folder in the root folder of your projects. > Or at least its what I read somewhere in the forums. > > Cheers Bob > > On Tue, Aug 30, 2022 at 7:21 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hmmm spoke to soon. I see Start Using Font in the dictionary. I'll explore. >> >> Bob S >> >> >> On Aug 30, 2022, at 16:12 , Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> >> wrote: >> >> Hi all. >> >> I'm at the point now where I want to clean up the appearance of all my >> projects across all platforms. For instance, I have a Time Calculator stack >> that calculates total time for any number of start/stop/lunch entries. I >> have heretofore left my field and label fonts at the default, which for >> MacOS is . But when I create a standalone for Windows, the >> size of that text is larger, and so any labels I have overflow the label >> and only show me part of the text. >> >> What I want to do is set up my environment so that whatever font I use in >> the MacOS uses, there is an identical font on the Windows side as well. I >> know there is a way to embed fonts in a project, but I don't really >> understand how that works. >> >> If I use a font that exists in both Mac and Windows, a common web font for >> instance, they do not look at all the same on both platforms. Verdana is a >> good example. I am not averse to purchasing a font family or two and >> statically setting my font, size and style for every object, so long as the >> Windows and MacOS look (reasonably) the same. >> >> Any ideas? >> >> Bob S >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Aug 31 11:27:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Aug 2022 15:27:22 +0000 Subject: Standardize Font Appearance In-Reply-To: <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> References: <16B11823-3348-421C-95A3-A8CF2A7170CA@iotecdigital.com> <5C7E50AF-B53A-4ED6-AD7B-2841FBE4A9CD@iotecdigital.com> Message-ID: <97A503CE-34F0-4BA8-8CA8-C7E52E7A1364@iotecdigital.com> Okay I see there are a butt-ton of them and must be downloaded individually. They can be had at fonts.com. I already found one I like for my module headers! Bob S On Aug 31, 2022, at 08:17 , Bob Sneidar via use-livecode > wrote: Great idea! I looked for a download link for the fonts, but all I can find are github links to the source code (I don't want to have to build out all the fonts if that's what that is) and other sources for font downloaders and synchs. Is there anywhere I can just download the OTF files? Bob S From ahsoftware at sonic.net Wed Aug 31 12:11:02 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 31 Aug 2022 09:11:02 -0700 Subject: Livecode / Github In-Reply-To: References: <1F9327AF-F7BC-45B5-87B8-5E3463CBA5DF@milby7.com> <92124E94-C009-409F-8EA2-745C8B502C36@milby7.com> Message-ID: <426b5d44-e22c-851e-4119-f34e2940b3a2@sonic.net> On 8/31/22 07:58, Sean Cole via use-livecode wrote: > Thanks for the confirmation, Brian. > > I tried again from the message box. With a stack this large it takes about > 10 seconds before the mainStack disappears for exporting and then reappears > 1 min later. About 4-8 mins after that it truely finishes where it flashes > up a white window for a moment then the error appears in the message box, > same as before, object does not have this property. Because everything is > handled using a GUID, I have no idea how far it has got nor which > particular object is causing the problem. We'll find it eventually, I'm > certain. Was a log file created? scGetPathLog() No logs were created for me, but just a thought. https://quality.livecode.com/show_bug.cgi?id=23910 -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Wed Aug 31 12:13:32 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 31 Aug 2022 09:13:32 -0700 Subject: Livecode / Github In-Reply-To: References: <9ECE2480-BAAB-4E8A-B97D-70F2153A91C3@pidigital.co.uk> <8b549acf-8e33-a468-d7e8-3c1fa6ce7c34@sonic.net> <56eb98b4-b369-aefa-54d3-eb12f220b87c@sonic.net> Message-ID: <3ba1188d-59d4-c5d7-3f8e-262529b5ccfc@sonic.net> On 8/31/22 03:00, Sean Cole via use-livecode wrote: > LC Team: :-) It would be REALLY handy if proper errors were thrown when one > occurs that can help us easily understand what the issues are. Also, if > prior to release documentation were gone through to make sure they are > legible. And if plugins released actually work as described. :-) Actually, it's even worse. The result is empty if no error occurred and "* successful" if it worked. To me that seems backwards. https://quality.livecode.com/show_bug.cgi?id=23911 -- Mark Wieder ahsoftware at gmail.com