Re: LC-apps for HC

2018-11-30 Thread kee nethery via use-livecode
Livecode is a program for creating programs. MacPaint is a program for creating images that as far as I know ran on 68K macs. Not sure it ever ran on PPC Macs. Not sure if MacPaint images can import into Livecode. Asking if MacPaint works in LC doesn’t make sense to me. Kee > On Nov 30, 2018, at

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Brilliant - thanks for the analysis and syntax corrections, Ralf. That’s clarified more of the LCS / MVC ‘plumbing' and provided a worked example I can repeat as I start to build-out the app proper. Much appreciated Best, Keith > On 30 Nov 2018, at 22:56, Ralf Bitter via use-livecode > wro

Re: Insert a "Waiting/Busy" Icon Into Browser Widget

2018-11-30 Thread hh via use-livecode
The following works tested here on desktop, should work everywhere where the browser widget works. 1. Overlay browser widget "browser" with a browser widget "loader" (that displays a loading animation). 2. Load the slow loading url into widget "browser". 3. Hide widget "loader" by browserDocumen

Re: LiveCode Server

2018-11-30 Thread Richard Gaskin via use-livecode
Ralph DiMola wrote: > For my first web services I implementing the "start using" of library > stacks method back in the day. Like you I moved to "start using" of > script only library stacks. I'll just keep chugging along with "start > using"s. I'll keep include/require on the back shelf for now.

RE: LiveCode Server

2018-11-30 Thread Ralph DiMola via use-livecode
Thanks Alex, For my first web services I implementing the "start using" of library stacks method back in the day. Like you I moved to "start using" of script only library stacks. I'll just keep chugging along with "start using"s. I'll keep include/require on the back shelf for now... Thanks ag

Re: LC-apps for HC

2018-11-30 Thread Richard Gaskin via use-livecode
Ingar Roggen wrote: > But before that I would like to know if MacPaint works in LC. > Anybody know that? I doubt it. IIRC the format was directly dependent on QuickDraw - from Wikipedia: Applications using QuickDraw will still run under OS X 10.8 through macOS 10.12; however, the current

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Ralf Bitter via use-livecode
Hi Keith, seems that you have overlooked that your library handler is not a function, see line put somehandler() into gData["testlib"] in your controller. Furthermore don’t forget to adjust the name of your library initialisation handler to “rigRunInitialteslibConfig”. Ralf

Re: LC-apps for HC

2018-11-30 Thread Ingar Roggen via use-livecode
But before that I would like to know if MacPaint works in LC. Anybody know that? Sendt fra min iPhone > 30. nov. 2018 kl. 22:50 skrev Ingar Roggen via use-livecode > : > > I’ll look into it again, Devin. > >> 30. nov. 2018 kl. 20.10 skrev Devin Asay via use-livecode >> : >> >> The authoritat

Re: LC-apps for HC

2018-11-30 Thread Ingar Roggen via use-livecode
I’ll look into it again, Devin. > 30. nov. 2018 kl. 20.10 skrev Devin Asay via use-livecode > : > > The authoritative guide for converting HyperCard stacks to LiveCode is still > Jacque’s tutorial at > https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html > > Devin > > On Nov 30, 2018,

Re: LC-apps for HC

2018-11-30 Thread Ingar Roggen via use-livecode
I’ll use HC on the other side too, Kee! Ingar > 30. nov. 2018 kl. 20.13 skrev kee nethery via use-livecode > : > > And I thought I was the last hold-out using Hypercard. Sold all my PPC Mac > Minis. > > Kee nethery > ___ > use-livecode mailing list >

Re: LC-apps for HC

2018-11-30 Thread Ingar Roggen via use-livecode
Thank you, Bob > 30. nov. 2018 kl. 18.49 skrev Bob Sneidar via use-livecode > : > > I'll jump in here. > > Porting/opening Hypercard stacks is a convenience. The primary issue is that > Hypercard was optimized to index every text of every card in a stack to make > finding information easier.

Re: Setting hidden of lines very slow

2018-11-30 Thread Richard Gaskin via use-livecode
Kaveh wrote: > Now how many lines of JavaScript would that be? ;-) The equivalent of chunk expressions are ridiculously verbose in JS, but this one's not bad: getElementById("id").removeAttribute("style"); -- Richard Gaskin Fourth World Systems Software Design and Development for the Deskt

Re: LiveCode Server

2018-11-30 Thread Alex Tweedly via use-livecode
Hmmm I hesitated to reply earlier, just in case there are subtleties I might get wrong and mislead you - but here goes. include / require are essentially ways to include the text of the included file. Include will do that - and do it every time you use it so you could have a trivial nons

Re: Setting hidden of lines very slow

2018-11-30 Thread Geoff Canyon via use-livecode
Why do you need to simulate non-contiguous selections? Set the listBehavior, multipleHilites, and noncontiguousHilites of the field to true and then you can do things like: set the hilitedLines of fld 1 to 1,3,5 But to your original question, you should use: repeat for each line L in the htmlTex

Re: LC-apps for HC

2018-11-30 Thread kee nethery via use-livecode
And I thought I was the last hold-out using Hypercard. Sold all my PPC Mac Minis. Kee nethery ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://l

Re: LC-apps for HC

2018-11-30 Thread Devin Asay via use-livecode
The authoritative guide for converting HyperCard stacks to LiveCode is still Jacque’s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html Devin On Nov 30, 2018, at 10:02 AM, Ingar Roggen via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Hello, André, I hope you

Re: Setting hidden of lines very slow

2018-11-30 Thread Keith Clarke via use-livecode
In jQuery it’d be something like $j(‘div #id’).text(); selecting the field’s enclosing div by ID or class. Best, Keith > On 30 Nov 2018, at 17:43, Bob Sneidar via use-livecode > wrote: > > And how much would the Javascript training and certification cost be to learn > how to do it? ;-) > >

Re: LC-apps for HC

2018-11-30 Thread Bob Sneidar via use-livecode
I'll jump in here. Porting/opening Hypercard stacks is a convenience. The primary issue is that Hypercard was optimized to index every text of every card in a stack to make finding information easier. New records? New cards. Livecode? Not so much. In fact, not at all. There will be performanc

Re: Setting hidden of lines very slow

2018-11-30 Thread Bob Sneidar via use-livecode
And how much would the Javascript training and certification cost be to learn how to do it? ;-) Bob S > On Nov 30, 2018, at 09:17 , Kaveh Bazargan via use-livecode > wrote: > >> FWIW, the fastest way that I know to remove all text stylings from a field >> of text is this: >> >> put fld 1 in

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Thanks Ralf. Renaming the library got past that library load error. However, the view page is listing other errors, which may hint at other mistakes I’ve made. The key page markup is below - I’d appreciate any advice. ** The testlib.lc library conten

Insert a "Waiting/Busy" Icon Into Browser Widget

2018-11-30 Thread Sannyasin Brahmanathaswami via use-livecode
I watch with interest all of HH amazing thing he does the browser widget. Haven't had time to keep up. But I have a common use case that I can't figure out that possibly relates a) On mobile, let's say you have connectivity… It may not be fast at the moment, but it is it good enough for you to

Re: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
On Fri, 30 Nov 2018 at 17:12, Dan Friedman wrote: > Kaveh, > > Well, you learn something every day! I didn't know you could hide a line > of text. Pretty cool! > > Really nice. Working on speeding it up which will be great. > FWIW, the fastest way that I know to remove all text stylings from

Re: Setting hidden of lines very slow

2018-11-30 Thread Dan Friedman via use-livecode
Kaveh, Well, you learn something every day! I didn't know you could hide a line of text. Pretty cool! FWIW, the fastest way that I know to remove all text stylings from a field of text is this: put fld 1 into fld 1 -Dan On 11/30/18, 8:37 AM, "use-livecode on behalf of Kaveh Bazargan v

LC-apps for HC

2018-11-30 Thread Ingar Roggen via use-livecode
Hello, André, I hope you still remember that we met in Las Vegas. I still use HyperCard and wonder if it has become easier to port HC-stacks to LiveCode? Do you know if there are any apps for that? And if not, would it be difficult to write them? Regards Ingar Sendt fra min iPhone > 30. nov. 20

Re: LiveCode equivalent to 'cron' for automated background functions?

2018-11-30 Thread Sannyasin Brahmanathaswami via use-livecode
Been using LC scripts on the server for "like 20 years." But run on the cron of the server itself. Brahmanathaswami On 11/30/18, 2:37 AM, "use-livecode on behalf of Keith Clarke via use-livecode" wrote: Thanks Andre - good call. Following others’ reminders of the single-thread

Re: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
I am simulating a non-contiguous selection of text with a "Find all" button that sets the style of all found items of text. Then I want to inspect those "selections" only but showing the paras that contain them and hiding all other lines. So I have a full view and a "compact" view that the user ca

Re: Setting hidden of lines very slow

2018-11-30 Thread Glen Bojsza via use-livecode
I was wondering at what stage or how the lines get chosen to be hidden or not? ___ 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/m

LiveCode Server

2018-11-30 Thread Ralph DiMola via use-livecode
Ahh... I see that the revIgniter library is the way to go for my number 2 question and I am immersed in the docs. But I'm still wondering about my question # 1 (differences between "Include", "Require" and "Start using") I've been using LiveCode Server for a few years now with great success as var

Re: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
Did not know about textStyle which has opened a whole new world! Thank you so much for ruining my weekend Trevor. ;-) hh, I love the first solution, which shows the beauty of LiveCode. But the speed is the same as before... i will try htmltext too. A while since I worked with it. Thanks again.

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Ralf Bitter via use-livecode
Hi Keith, if you change the name of your library to Testlib.lc and if you adjust the name in your controller respectively all should work as expected. There is a naming convention for library files, i.e. camel case is not allowed, but it seems this is not mentioned in the user guide. Sorry for the

Re: Setting hidden of lines very slow

2018-11-30 Thread hh via use-livecode
If showing *only* lines with colored text means that all others are hidden then you could use: ... set hidden of line i of fld "text" to \ (the textcolor of line i of fld "text" is empty) ... Trevor's script would then read: ... put (tTextA[i]["runs"][1]["style"]["textcolor"] is empty) \

Re: Setting hidden of lines very slow

2018-11-30 Thread Trevor DeVore via use-livecode
On Fri, Nov 30, 2018 at 7:08 AM Kaveh Bazargan via use-livecode < use-livecode@lists.runrev.com> wrote: > But here is a follow-up: Now I want to hide all lines that have no text > style and only show lines with colored text. I use: > > repeat with i = 1 to the number of lines of fld 1 > if t

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Thanks Ralf (& Andre) for the responses. I have read the user guide and understood more than I expected, given my basic HTML + jQuery + CSS background! I’ve also been learning more as I build my app out using user guide worked examples where they exist. Thanks for the syntax for processing the

Re: Setting hidden of lines very slow

2018-11-30 Thread Andre Alves Garzia via use-livecode
Kaveh, I would work which lines should be shown and hidden inside a variable and then replace the whole field... On 30/11/2018 13:07, Kaveh Bazargan wrote: Yes Andre, that is the line that fixed it, in a split second :-) But here is a follow-up: Now I want to hide all lines that have no tex

Re: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
Yes Andre, that is the line that fixed it, in a split second :-) But here is a follow-up: Now I want to hide all lines that have no text style and only show lines with colored text. I use: repeat with i = 1 to the number of lines of fld 1 if the textcolor of line i of fld "text" is not empt

Re: LiveCode equivalent to 'cron' for automated background functions?

2018-11-30 Thread Keith Clarke via use-livecode
Thanks Andre - good call. Following others’ reminders of the single-threaded nature of LCS, I’m trying to rethink data flows as on-demand, to avoid all background tasks. Best, Keith > On 30 Nov 2018, at 12:10, Andre Alves Garzia via use-livecode > wrote: > > Keith, > > >> The examples in th

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Ralf Bitter via use-livecode
Hi Keith, in addition to Andre’s valuable tips I would like to comment that your approach should actually work, but be advised to make sure you include your custom library as described here: https://revigniter.com/userGuide/general/creating_libraries.html Furthermore you can leave yo

Re: Setting hidden of lines very slow

2018-11-30 Thread Andre Alves Garzia via use-livecode
There is another tip here in this thread about set the hidden of line 1 to -1 of field "the field" to false As a single command, it might be better. On 30/11/2018 12:07, Kaveh Bazargan via use-livecode wrote: Thank you guys. I am always embarrassed to ask here as I know the answer is a one lin

Re: LiveCode equivalent to 'cron' for automated background functions?

2018-11-30 Thread Andre Alves Garzia via use-livecode
Keith, The examples in the dictionary look potentially useful for a couple of lightweight activities I’d like to have ticking-over in the background on my LC Server, pending page visits. You shouldn't have the CGI engine hogging up like that, thats not how web stuff is supposed to work. Fi

Re: Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
Thank you guys. I am always embarrassed to ask here as I know the answer is a one liner!! And Andre the screen was locked already. :-) On Fri, 30 Nov 2018 at 11:56, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Andre, > > > Am 30.11.2018 um 12:48 schrieb Andre Alves

Re: Setting hidden of lines very slow

2018-11-30 Thread Andre Alves Garzia via use-livecode
Klaus, uhahuahuahuaahuauhahuhuahuahua it took me a while to notice. On 30/11/2018 11:56, Klaus major-k via use-livecode wrote: Hi Andre, Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via use-livecode : tied locking the screen first? tied AND locked? Andre, you are hardcore! :-D On 30

Re: Setting hidden of lines very slow

2018-11-30 Thread Klaus major-k via use-livecode
Hi Andre, > Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via use-livecode > : > > tied locking the screen first? tied AND locked? Andre, you are hardcore! :-D > On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote: >> I have a text field with some 3500 lines of text. I want to ensu

Re: Setting hidden of lines very slow

2018-11-30 Thread Andre Alves Garzia via use-livecode
tied locking the screen first? On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote: I have a text field with some 3500 lines of text. I want to ensure all lines are visible, as I have hidden some before. I use: repeat with i = 1 the number of lines of fld 1 set the hidden of line

Re: Setting hidden of lines very slow

2018-11-30 Thread Niggemann, Bernd via use-livecode
Try set the hidden of line 1 to - 1 of field 1 to false Kind regards Bernd From: Kaveh Bazargan I have a text field with some 3500 lines of text. I want to ensure all lines are visible, as I have hidden some before. I use: repeat with i = 1 the number of lines of fld 1 set the hidden o

Setting hidden of lines very slow

2018-11-30 Thread Kaveh Bazargan via use-livecode
I have a text field with some 3500 lines of text. I want to ensure all lines are visible, as I have hidden some before. I use: repeat with i = 1 the number of lines of fld 1 set the hidden of line i of fld 1 to false end repeat This is taking over 1 minute to complete. I have tried removing

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Andre Alves Garzia via use-livecode
Keith, RevIgniter is a normal LiveCode collection of libraries. Have you read the getting started guide at:   https://revigniter.com/userGuide/overview/getting_started.html It will walk you through the concepts of MVC and how they are used in RevIgniter. Basically your models are the stuff t

Re: Safari vs Browser Widget

2018-11-30 Thread Andre Alves Garzia via use-livecode
Dan, I am not expert in the widget but I do know quite a lot about browsers. Those APIs are restricted access API which usually require some sort of configuration on the browser library you're using when building your product, which is a convoluted way to say that LiveCode HQ proabably needs

Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Folks, I’m struggling to get my head around revIgniter / MVC concepts and map basic LC desktop concepts to the right places in LCS + revIgniter. (I’m still searching for a 'Rosetta Stone’ to translate between these two worlds!) My use case is to share public FAQs from specific pages designated