Re: Nested numeric lists that include number of parent list item
On Tue, Feb 11, 2020 at 11:03 PM Terry Judd via use-livecode < use-livecode@lists.runrev.com> wrote: > Yeah, this isn't helpful either, but while we're on the shortcomings of > ordered lists in Livecode if you render an alphabetically ordered list > using htmlText then it is rendered as lowercase irrespective of whether you > specify type='A' or type='a'. The only way to guarantee that it is right is > to explicitly set the listStyle to 'upper latin' (or whatever). That is good to know. I convert HTML from an outside source to a styledText array which I then assign to a field. Hopefully that isn’t affected by the same bug since the listStyle is part of the array. I’ll make sure and test that particular case though. -- Trevor DeVore ScreenSteps > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Nested numeric lists that include number of parent list item
Yeah, this isn't helpful either, but while we're on the shortcomings of ordered lists in Livecode if you render an alphabetically ordered list using htmlText then it is rendered as lowercase irrespective of whether you specify type='A' or type='a'. The only way to guarantee that it is right is to explicitly set the listStyle to 'upper latin' (or whatever). Terry... On 12/2/20, 3:13 pm, "use-livecode on behalf of Trevor DeVore via use-livecode" wrote: On Tue, Feb 11, 2020 at 7:11 PM Niggemann, Bernd via use-livecode < use-livecode@lists.runrev.com> wrote: > I am not aware that listStyle decimal can show other then 1. No further > sub numbering. > > However one could hack it. Although I know you are not particularly fond > of those hacks... > > The code assumes that the listStyle of a field is set (any) will be "skip" > afterwards and list depth is also set. > Thanks for the suggestion Bernd. I appreciate you taking the time. You are right though, I'm not particularly fond of hacks in the field control when the field is being used as a text editor (which is my use case). Here is the reason why. When writing a text editor it doesn't take long for the hacks to get out of hand and you end up with a control that becomes hard to add features to and hard to perform maintenance on. In addition, the field stops behaving or looking the way a user expects a text editor to work. For example, if I were to add the hack for displaying nested numeric lists I would need to add a hack for keeping track of other list styles the user might select elsewhere in the field. I would also have to deal with incorrect indentation for multi-line list items because the text would appear flush with the list numbers. Then I would need to add a hack to handle deletion of characters properly since the numbers are part of the actual text rather than an ornament that is added by the engine. There is this ripple effect which always makes me wish I hadn't implemented the hack :-) -- Trevor DeVore ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Nested numeric lists that include number of parent list item
On Tue, Feb 11, 2020 at 7:11 PM Niggemann, Bernd via use-livecode < use-livecode@lists.runrev.com> wrote: > I am not aware that listStyle decimal can show other then 1. No further > sub numbering. > > However one could hack it. Although I know you are not particularly fond > of those hacks... > > The code assumes that the listStyle of a field is set (any) will be "skip" > afterwards and list depth is also set. > Thanks for the suggestion Bernd. I appreciate you taking the time. You are right though, I'm not particularly fond of hacks in the field control when the field is being used as a text editor (which is my use case). Here is the reason why. When writing a text editor it doesn't take long for the hacks to get out of hand and you end up with a control that becomes hard to add features to and hard to perform maintenance on. In addition, the field stops behaving or looking the way a user expects a text editor to work. For example, if I were to add the hack for displaying nested numeric lists I would need to add a hack for keeping track of other list styles the user might select elsewhere in the field. I would also have to deal with incorrect indentation for multi-line list items because the text would appear flush with the list numbers. Then I would need to add a hack to handle deletion of characters properly since the numbers are part of the actual text rather than an ornament that is added by the engine. There is this ripple effect which always makes me wish I hadn't implemented the hack :-) -- Trevor DeVore ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Nested numeric lists that include number of parent list item
I am not aware that listStyle decimal can show other then 1. No further sub numbering. However one could hack it. Although I know you are not particularly fond of those hacks... The code assumes that the listStyle of a field is set (any) will be "skip" afterwards and list depth is also set. -- on mouseUp local tDepthValue, tTab, tDepth, tLastDepthValue local tIndex, tLeadingSpaces lock screen put space & space into tLeadingSpaces put numToCodePoint(9) into tTab -- not used put 0 into tDepthValue put 0 into tLastDepthValue set the listStyle of line 1 to -1 of field 1 to "skip" repeat with i = 1 to the number of lines of field 1 if line i of field 1 is empty then next repeat put the listDepth of line i of field 1 into tDepth add 1 to item tDepth of tDepthValue if tDepth < the number of items of tLastDepthValue then delete item tDepth + 1 to -1 of tDepthValue end if put tDepthValue into tIndex replace comma with "." in tIndex put "." after tIndex put tIndex & tLeadingSpaces before line i of field 1 put tDepthValue into tLastDepthValue end repeat end mouseUp to remove the hack - on mouseUp set the itemDelimiter to "." & space & space lock screen repeat with i = 1 to the number of lines of field 1 if the number of items of line i of field 1 > 1 then delete item 1 of line i of field 1 end if end repeat unlock screen end mouseUp - It prepends the text with a decimal index. I started with tab as separator but it does not look well. Now it is two spaces. One could use non-breaking spaces as separators. Kind regards Bernd >Trevor wrote >I would like to get the following output but I'm not seeing a property that >enables it. Am I missing something or is not possible using listStyle and >listDepth? >1. asdf ajsdf asf > 1.1. adsfasdfasdf > 1.1.1. asdfasdfasdf ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Nested numeric lists that include number of parent list item
Trevor. I am helping You?? I don't see anything in the dictionary about progressive indentation. Never used any of these, but it looks like you have to roll your own. Craig -Original Message- From: Trevor DeVore via use-livecode To: How to use LiveCode Cc: Trevor DeVore Sent: Tue, Feb 11, 2020 4:31 pm Subject: Nested numeric lists that include number of parent list item Hi all, I am working with nested lists in LiveCode using listStyle and listDepth. When using a "numeric" listStyle I get this output in a field: 1. asdf ajsdf asf 1. adsfasdfasdf 1. asdfasdfasdf I would like to get the following output but I'm not seeing a property that enables it. Am I missing something or is not possible using listStyle and listDepth? 1. asdf ajsdf asf 1.1. adsfasdfasdf 1.1.1. asdfasdfasdf -- Trevor DeVore ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Nested numeric lists that include number of parent list item
Hi all, I am working with nested lists in LiveCode using listStyle and listDepth. When using a "numeric" listStyle I get this output in a field: 1. asdf ajsdf asf 1. adsfasdfasdf 1. asdfasdfasdf I would like to get the following output but I'm not seeing a property that enables it. Am I missing something or is not possible using listStyle and listDepth? 1. asdf ajsdf asf 1.1. adsfasdfasdf 1.1.1. asdfasdfasdf -- Trevor DeVore ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HyperCard: the Myst story
Hi Graham, It might be easier to track down the copyright holder of the CD-ROM and offer to re-publish on a different platform. Copyrights on the design of the program/disc itself will definitely apply for a long time. We are re-configuring some of our earlier work HC into LiveCode as desktop applications. Some things can be, of course, done in as HTML 5. Copyright is always an issue, especially for licensed, recorded music. There is obviously a quite large body of great-quality CD-ROM content discs from the 1990-2000s that have slipped into the dustbin of history—no longer compatible with digital content delivery methods today—with no easy path to their revival. Authors and companies have moved on, licensing has expired, original files used to create the stuff are on old media (Zip drives) or have disappeared. But with effort, it can be done, and in LiveCode, of course! Peter Bogdanoff ArtsInteractive > On Feb 11, 2020, at 12:58 PM, Graham Samuel via use-livecode > wrote: > > That’s excellent information - I would still have to tackle any missed out > (obviously I haven’t checked yet) and presumably all the recordings of the > poet speaking which are much more recent than the composition dates (though I > don’t understand US copyright laws). And there’s Richard Wilbur’s essay… > (sigh). Would what one might call the “production design” of a CD-ROM (the > look, the graphics, the order of presentation etc) be subject to copyright? I > suppose it’s intellectual property. Sorry, this is getting OT. > > Graham > >> On 11 Feb 2020, at 15:49, dev via use-livecode >> wrote: >> >> https://publicdomain4u.com/as-of-january-1-2019-these-robert-frost-poems-are-public-domain/ >> >> >>> On Feb 11, 2020, at 2:56 AM, Graham Samuel via use-livecode >>> wrote: >>> >>> Personally I have a pet project to re-purpose a very elaborate CD-ROM about >>> Robert Frost, published by Henry Holt in 1997, but I can never get anyone >>> to talk to me about the copyright issues. >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Option menu in datagrid
You can also set the text of the button in a mouseDown handler in the button itself. This works well if you have more than one option menu and the options in one of them depends on the selections the user has made in another. The script will be similar to the one provided by Sri. Regards Tore Nilsen > 11. feb. 2020 kl. 19:15 skrev Marty Knapp via use-livecode > : > > Thanks Sri - I knew it had to be something simple! > > Marty > >> On Feb 11, 2020, at 9:26 AM, Sri via use-livecode >> wrote: >> >> "...* table-style datagrid and each row includes an option menu * >> >> *button"* >> >> >> I assume you mean that your DG table has a column that contains an option >> menu button (which, of course, appears in each row). >> >> Edit the default column behavior of the column that contains the option >> button. >> Edit the FillinData handler to include something like >> >> If conditionA then >> set the text of button 1 of me to the text of field "OptionText1" >> else >> set the text of button 1 of me to the text of field "OptionText2" >> end if >> >> Don't forget to refresh the data grid. >> >> Tested; works! >> >> Regards, >> Sri > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Option menu in datagrid
Thanks Sri - I knew it had to be something simple! Marty > On Feb 11, 2020, at 9:26 AM, Sri via use-livecode > wrote: > > "...* table-style datagrid and each row includes an option menu * > > *button"* > > > I assume you mean that your DG table has a column that contains an option > menu button (which, of course, appears in each row). > > Edit the default column behavior of the column that contains the option > button. > Edit the FillinData handler to include something like > > If conditionA then > set the text of button 1 of me to the text of field "OptionText1" > else > set the text of button 1 of me to the text of field "OptionText2" > end if > > Don't forget to refresh the data grid. > > Tested; works! > > Regards, > Sri ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HyperCard: the Myst story
That’s excellent information - I would still have to tackle any missed out (obviously I haven’t checked yet) and presumably all the recordings of the poet speaking which are much more recent than the composition dates (though I don’t understand US copyright laws). And there’s Richard Wilbur’s essay… (sigh). Would what one might call the “production design” of a CD-ROM (the look, the graphics, the order of presentation etc) be subject to copyright? I suppose it’s intellectual property. Sorry, this is getting OT. Graham > On 11 Feb 2020, at 15:49, dev via use-livecode > wrote: > > https://publicdomain4u.com/as-of-january-1-2019-these-robert-frost-poems-are-public-domain/ > > >> On Feb 11, 2020, at 2:56 AM, Graham Samuel via use-livecode >> wrote: >> >> Personally I have a pet project to re-purpose a very elaborate CD-ROM about >> Robert Frost, published by Henry Holt in 1997, but I can never get anyone to >> talk to me about the copyright issues. > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Option menu in datagrid
"...* table-style datagrid and each row includes an option menu * *button"* I assume you mean that your DG table has a column that contains an option menu button (which, of course, appears in each row). Edit the default column behavior of the column that contains the option button. Edit the FillinData handler to include something like If conditionA then set the text of button 1 of me to the text of field "OptionText1" else set the text of button 1 of me to the text of field "OptionText2" end if Don't forget to refresh the data grid. Tested; works! Regards, Sri ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HyperCard: the Myst story
I code among giants! Bob S > On Feb 10, 2020, at 21:07 , Colin Holgate via use-livecode > wrote: > > Thanks for that. Voyager did well in the list, 15 out of the 50. 10 of which > were in HyperCard. #1 I programmed on my own, and I also did some work on #4 > and #15. > > >> On Feb 10, 2020, at 3:53 PM, Alejandro Tejada via use-livecode >> wrote: >> >> Hi Colin, >> >> I found this Mac User magazine! >> https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf >> >> Al >> >> On Tue, Feb 4, 2020 at 9:21 PM >> Colin Holgate wrote: >>> In 1993 Mac User magazine had a review >>> of the top 50 CD-ROMs, and of those there >>> was an overall winner. >>> The A Hard Day’s Night CD-ROM I made >>> in HyperCard was the overall winner. >>> I was lucky that it was before Myst was >>> released. It would have easily won! >> _ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Remote Debugging Not Working -- Bug 22500 -
Hello Brahmanathaswami, Sorry for the late response. I have just replied to the bug report. BTW the remote debugger works as expected for me - but I am on MacOS Mojave now. Kind regards, Panos On Tue, 11 Feb 2020 at 17:03, Sannyasin Brahmanathaswami via use-livecode < use-livecode@lists.runrev.com> wrote: > I've been working on an update to my app. > Not, all of a sudden, in does not open on Android in a test done in > Catalina. > It crashes on startup > > I already reported in > > Bug 22500 (Dec 16, 2019) > > that the remoteDebugger was not working. > Panas left it with a "pending follow up" … but I did follow up with what > he wanted. > > Then bug was then "abandoned" in that state. > > Now I will have to do an "deep" analysis between a commit that was working > on Android on the current one which is not. I am using Git Hub, it is has > save me many times, but this level of analysis is new to me. > > Can anyone else confirm that remoteDebugger is, or is not, working for > them on Catalina? > > BR > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Remote Debugging Not Working -- Bug 22500 -
I've been working on an update to my app. Not, all of a sudden, in does not open on Android in a test done in Catalina. It crashes on startup I already reported in Bug 22500 (Dec 16, 2019) that the remoteDebugger was not working. Panas left it with a "pending follow up" … but I did follow up with what he wanted. Then bug was then "abandoned" in that state. Now I will have to do an "deep" analysis between a commit that was working on Android on the current one which is not. I am using Git Hub, it is has save me many times, but this level of analysis is new to me. Can anyone else confirm that remoteDebugger is, or is not, working for them on Catalina? BR ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HyperCard: the Myst story
https://publicdomain4u.com/as-of-january-1-2019-these-robert-frost-poems-are-public-domain/ > On Feb 11, 2020, at 2:56 AM, Graham Samuel via use-livecode > wrote: > > Personally I have a pet project to re-purpose a very elaborate CD-ROM about > Robert Frost, published by Henry Holt in 1997, but I can never get anyone to > talk to me about the copyright issues. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HyperCard: the Myst story
Bah, I can only claim #17. Raw C (not even C++) on the CD-ROM, but vast amounts of HyperCard used in the production process. Mind you, if Cosmic Osmo only got #29, I consider their rankings very suspect! On 11/02/2020 05:07, Colin Holgate via use-livecode wrote: Thanks for that. Voyager did well in the list, 15 out of the 50. 10 of which were in HyperCard. #1 I programmed on my own, and I also did some work on #4 and #15. On Feb 10, 2020, at 3:53 PM, Alejandro Tejada via use-livecode wrote: Hi Colin, I found this Mac User magazine! https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf Al On Tue, Feb 4, 2020 at 9:21 PM Colin Holgate wrote: In 1993 Mac User magazine had a review of the top 50 CD-ROMs, and of those there was an overall winner. The A Hard Day’s Night CD-ROM I made in HyperCard was the overall winner. I was lucky that it was before Myst was released. It would have easily won! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HyperCard: the Myst story
I liked those music CD-ROMs! There was an excellent one of a late Beethoven string quartet. I forget which one. Since this year is Beethoven’s 250th birthday, perhaps it’s time to think of another way of presenting this material! I’ve already been to several performances of these wonderful pieces in London, and it’s an endless task to appreciate them, certainly for a non-musician like me. Bring on the digital analysis! Personally I have a pet project to re-purpose a very elaborate CD-ROM about Robert Frost, published by Henry Holt in 1997, but I can never get anyone to talk to me about the copyright issues. A bit OT, I know… Graham > On 11 Feb 2020, at 08:35, Peter Bogdanoff via use-livecode > wrote: > > Colin was a monster programmer at Voyager! > > I myself worked on the Voyager music titles #9, 21, 37, 38, 39, producing the > first two, the Stravinsky and Mozart programs, and I’m still working with > Robert Winter, the author, after 30 years. All HyperCard with custom > Xcommands for music score animation and CD-ROM/video disc player control. > > Peter Bogdanoff > ArtsInteractive > > >> On Feb 11, 2020, at 12:07 AM, Colin Holgate via use-livecode >> wrote: >> >> Thanks for that. Voyager did well in the list, 15 out of the 50. 10 of which >> were in HyperCard. #1 I programmed on my own, and I also did some work on #4 >> and #15. >> >> >>> On Feb 10, 2020, at 3:53 PM, Alejandro Tejada via use-livecode >>> wrote: >>> >>> Hi Colin, >>> >>> I found this Mac User magazine! >>> https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf >>> >>> Al >>> >>> On Tue, Feb 4, 2020 at 9:21 PM >>> Colin Holgate wrote: In 1993 Mac User magazine had a review of the top 50 CD-ROMs, and of those there was an overall winner. The A Hard Day’s Night CD-ROM I made in HyperCard was the overall winner. I was lucky that it was before Myst was released. It would have easily won! >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode