From eriks at sisyph.us Wed Jan 1 01:05:53 2014 From: eriks at sisyph.us (Erik Schwartz) Date: Tue, 31 Dec 2013 22:05:53 -0800 Subject: Diesel out of fuel? In-Reply-To: References: Message-ID: Any news? It's been at least 9 hours and it still seems to be down. On Tue, Dec 31, 2013 at 6:30 PM, Mark Wieder wrote: > Jerry Jensen writes: > > > > > I can't access web sites or email from diesel. Anybody else? Support > ticket sent. > > He's dead, Jim. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- ============================================= eriks at sisyph.us http://sisyph.us (530) 213-ERIK http://twitter.com/eriks (530) 213-3745 http://www.linkedin.com/in/erikschwartz Archery stuff: http://barebow.tumblr.com/ ============================================= From rene.micout at numericable.com Wed Jan 1 08:50:09 2014 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 1 Jan 2014 14:50:09 +0100 Subject: ***SPAM***Re: Flow/wrap text into an irregular shape In-Reply-To: References: Message-ID: <7AC7551A-3EED-466E-94A3-E8E8C60AD431@numericable.com> BONNE ANN?E, BONNE SANT? !!! Le 31 d?c. 2013 ? 12:44, Thierry Douez a ?crit : >> 2013/12/30 Roger Eller : > >>> So, here are the two approaches we have thus far: >>> >>> https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt.livecode >>> >>> https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt_Thierry.livecode >>> >>> ~Roger >>> >>> >>> On Sun, Dec 29, 2013 at 11:25 AM, Thierry Douez wrote: >>> >>>> Here is a quick-and-dirty first attempt. >>>> >>>> The char version makes a perfect regular triangle, >>>> the word version works but could probably have to be tuned a bit more.. >>>> And I'm using measureText(..) available in LC 6.5. > > Ok, I've done the correction and calculate automatically the > number of lines of the field. I've added another button so we > can wrap by char or by word. I've already send to you the new stack > and it would be nice if you tell us when you put it on your dropbox. > > Happy new year Livecoders! > > BONNE ANNEE et MEILLEURS VOEUX 2014. > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lfredricks at proactive-intl.com Wed Jan 1 13:42:29 2014 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Wed, 1 Jan 2014 10:42:29 -0800 Subject: Happy New Year 2014 Everyone! Message-ID: Hello all, Hope everyone has a prosperous 2014! With all the positive improvements in LiveCode I think this is going to be one of our best years yet! Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From lvhdgc7 at gmail.com Wed Jan 1 14:30:46 2014 From: lvhdgc7 at gmail.com (tbodine) Date: Wed, 1 Jan 2014 11:30:46 -0800 (PST) Subject: Happy New Year 2014 Everyone! In-Reply-To: References: Message-ID: <1388604646218-4674232.post@n4.nabble.com> Yes, Happy 2014 to all! And thanks to all the smart, kind people on this list for helping me and others last year. In 2014, I am particularly looking forward to RunRev moving down the roadmap and, I hope, reaching the Multimedia stretch goal this year. Best to all! Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Happy-New-Year-2014-Everyone-tp4674231p4674232.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Wed Jan 1 14:51:14 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 1 Jan 2014 14:51:14 -0500 Subject: Happy New Year 2014 Everyone! In-Reply-To: <1388604646218-4674232.post@n4.nabble.com> References: <1388604646218-4674232.post@n4.nabble.com> Message-ID: There's no "'N, S, or A" in LiveCode. Let's keep it that way! Happy New Year to my LiveCode extended family! ~Roger From sc at sahores-conseil.com Wed Jan 1 15:18:03 2014 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 1 Jan 2014 21:18:03 +0100 Subject: Happy New Year 2014 Everyone! In-Reply-To: <1388604646218-4674232.post@n4.nabble.com> References: <1388604646218-4674232.post@n4.nabble.com> Message-ID: <6FF65940-960D-4885-B579-0DCB33C555F7@sahores-conseil.com> Happy 2014 to all, dear LC community and team friends but, please be aware that even when Kevin's gang will target successfully the multimedia stretch goal - hopefully this year ! -, LC won't include, at least in standard, the fantastic italian M2Tech Hiface DAC i discovered as connected to the home's HIFI config last week? http://www.whathifi.com/blog/m2tech-hiface-dac-hands-on-review To all those who feed daily jazz, classical, rock, baroque? i just can very highly recommend this little orange 10 grams magician. It should be able to represent the best upgrade your HIFI will ever receive to listen dematerialized music from iTunes and more. Test it against JazzAscona Radio or Jazz24 from KPLU "et vous m'en direz des nouvelles" ;D All the best to All, Pierre Le 1 janv. 2014 ? 20:30, tbodine a ?crit : > Yes, Happy 2014 to all! And thanks to all the smart, kind people on this list > for helping me and others last year. In 2014, I am particularly looking > forward to RunRev moving down the roadmap and, I hope, reaching the > Multimedia stretch goal this year. > > Best to all! > Tom Bodine > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Happy-New-Year-2014-Everyone-tp4674231p4674232.html > Sent from the Revolution - User mailing list archive at Nabble.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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From capellan2000 at gmail.com Wed Jan 1 15:51:26 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Jan 2014 12:51:26 -0800 (PST) Subject: Happy New Year 2014 Everyone! In-Reply-To: References: Message-ID: <1388609486459-4674235.post@n4.nabble.com> Lynn Fredricks-2 wrote > Hope everyone has a prosperous 2014! With all the positive improvements in > LiveCode I think this is going to be one of our best years yet! Happy New Year for each one of you! :) My recent 3 weeks have been complicated by an Asthma attack but still here I am. :) Keep Up your great good work in this platform! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Happy-New-Year-2014-Everyone-tp4674231p4674235.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Wed Jan 1 16:15:06 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Jan 2014 13:15:06 -0800 (PST) Subject: windowShape Lubuntu Linux and xcompmgr Message-ID: <1388610906419-4674236.post@n4.nabble.com> Hi all, Some weeks ago, I reported that windowShape was not working in my Lubuntu Linux setup. After looking around and testing many recipes, finally I found the program that works in my setup. The windowshape property was not working in Lubuntu Linux because it does not include, by default a composite manager. Tested XFCE without success, surely as a result of my inexperience with Lubuntu. Then, downloaded and installed xcompmgr from the Ubuntu repositories and found the commands that make it work. In the Lubuntu Menu, open: Preferences>Default applications for LXSession paste the following line within: Running applications --> Composite Manager xcompmgr -c -C -t-5 -l-5 -r4.2 -o.0 & and select Apply, then Reload and finally Autostart > true Now, LiveCode could apply the windowshape and the blendlevel to stacks running under Lubuntu Linux. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/windowShape-Lubuntu-Linux-and-xcompmgr-tp4674236.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Wed Jan 1 16:22:02 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Jan 2014 13:22:02 -0800 (PST) Subject: ***SPAM***Re: Flow/wrap text into an irregular shape In-Reply-To: <7AC7551A-3EED-466E-94A3-E8E8C60AD431@numericable.com> References: <7AC7551A-3EED-466E-94A3-E8E8C60AD431@numericable.com> Message-ID: <1388611322465-4674237.post@n4.nabble.com> Ren? Micout wrote > BONNE ANN?E, BONNE SANT? !!! Happy New Year 2014 for you and every LiveCode developer around the world! :D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Flow-wrap-text-into-an-irregular-shape-tp4674158p4674237.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Wed Jan 1 16:27:59 2014 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 01 Jan 2014 23:27:59 +0200 Subject: windowShape Lubuntu Linux and xcompmgr In-Reply-To: <1388610906419-4674236.post@n4.nabble.com> References: <1388610906419-4674236.post@n4.nabble.com> Message-ID: <52C4885F.9040106@gmail.com> On 01/01/14 23:15, Alejandro Tejada wrote: > Hi all, > > Some weeks ago, I reported that windowShape was > not working in my Lubuntu Linux setup. > > After looking around and testing many recipes, > finally I found the program that works in > my setup. > > The windowshape property was not working in > Lubuntu Linux because it does not include, by > default a composite manager. Compositing is essential for transparency and funny shapes. What your posting does tell us, which is a problem is that we cannot guarantee an end-user of a Linux system will have compositing set up. Richmond. > > Tested XFCE without success, surely as a result > of my inexperience with Lubuntu. > > Then, downloaded and installed xcompmgr > from the Ubuntu repositories and found > the commands that make it work. > > In the Lubuntu Menu, open: > Preferences>Default applications for LXSession > > paste the following line within: > Running applications --> Composite Manager > > xcompmgr -c -C -t-5 -l-5 -r4.2 -o.0 & > > and select Apply, then Reload and finally > Autostart > true > > Now, LiveCode could apply the windowshape > and the blendlevel to stacks running under > Lubuntu Linux. > > Al > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/windowShape-Lubuntu-Linux-and-xcompmgr-tp4674236.html > Sent from the Revolution - User mailing list archive at Nabble.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 capellan2000 at gmail.com Wed Jan 1 19:27:43 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Jan 2014 16:27:43 -0800 (PST) Subject: Flow/wrap text into an irregular shape--was briefly: use-livecode Digest, Vol 123, Issue 56, my mistake In-Reply-To: References: Message-ID: <1388622463164-4674239.post@n4.nabble.com> Jim Hurley-2 wrote > [snip] > I learned something I was unaware of. In RunRev v. 5.02 all the graphic > points had to be whole numbers. You could set the loc of a button, field, > graphic etc. to fractional numberers, but they were not allowed as graphic > points. I recall putting in a request to allow for full decimal point > precision in the graphic points, and, lo and behold, I see in LC v. 6.5.1 > that is indeed possible. > It wasn?t just a matter of precision, but if you unknowingly set a > fraction point among the grc points, the graphic didn?t display at all. So > I would go looking for a mistake in the code and it would sometimes take > me a while to realize is this quirk in RunRev at that time. > > Very happy to see that fix. Many thanks for pointing this really useful tip. A welcome addition to this old vector graphics experiment, as soon I found time to include it: http://runtime-revolution.278305.n4.nabble.com/ANN-penTool-0-3-2h-with-scalable-gradients-td4653241.html Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-Flow-wrap-text-into-an-irregular-shape-was-briefly-use-livecode-Digest-Vol-123-Issue-56-my-mistake-tp4674228p4674239.html Sent from the Revolution - User mailing list archive at Nabble.com. From pderocco at ix.netcom.com Thu Jan 2 11:35:07 2014 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Thu, 2 Jan 2014 08:35:07 -0800 Subject: Stopping accepting connections Message-ID: What's the opposite of "accept connections"? That is, how do I tell LC not to accept any more connections? I want to be able to place a limit on the number of connections accepted, by counting them and disabling further connections when that number is reached. And how do I (the server) know when the other end has broken a connection, if I'm not trying to send to the connection? Do I get some sort of message? -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From m.schonewille at economy-x-talk.com Thu Jan 2 11:49:50 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 02 Jan 2014 17:49:50 +0100 Subject: Stopping accepting connections In-Reply-To: References: Message-ID: <52C598AE.8080901@economy-x-talk.com> Hi Paul, Use the close socket command. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi Fill out this survey please http://livecodebeginner.economy-x-talk.com/survey/ On 1/2/2014 17:35, Paul D. DeRocco wrote: > What's the opposite of "accept connections"? That is, how do I tell LC not > to accept any more connections? I want to be able to place a limit on the > number of connections accepted, by counting them and disabling further > connections when that number is reached. > > And how do I (the server) know when the other end has broken a connection, > if I'm not trying to send to the connection? Do I get some sort of > message? > From dunbarx at aol.com Thu Jan 2 11:51:40 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 2 Jan 2014 11:51:40 -0500 (EST) Subject: Stopping accepting connections In-Reply-To: References: Message-ID: <8D0D5F20B2F8BB8-6BC-C71C@webmail-m208.sysops.aol.com> Paul. Do you mean to "close" a socket? Craig Newman -----Original Message----- From: Paul D. DeRocco To: LiveCode list Sent: Thu, Jan 2, 2014 11:35 am Subject: Stopping accepting connections What's the opposite of "accept connections"? That is, how do I tell LC not to accept any more connections? I want to be able to place a limit on the number of connections accepted, by counting them and disabling further connections when that number is reached. And how do I (the server) know when the other end has broken a connection, if I'm not trying to send to the connection? Do I get some sort of message? -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.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 pderocco at ix.netcom.com Thu Jan 2 12:55:47 2014 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Thu, 2 Jan 2014 09:55:47 -0800 Subject: Stopping accepting connections In-Reply-To: <8D0D5F20B2F8BB8-6BC-C71C@webmail-m208.sysops.aol.com> References: <8D0D5F20B2F8BB8-6BC-C71C@webmail-m208.sysops.aol.com> Message-ID: <43B5C95D34EE43088A1EFEDA29C7B8DE@PAULD> > > From: Paul D. DeRocco > > > > What's the opposite of "accept connections"? That is, how do > > I tell LC not > > to accept any more connections? I want to be able to place a > > limit on the > > number of connections accepted, by counting them and disabling further > > connections when that number is reached. > > > > And how do I (the server) know when the other end has broken > > a connection, > > if I'm not trying to send to the connection? Do I get some sort of > > message? > From: dunbarx at aol.com > > Do you mean to "close" a socket? No. A socket is automatically created when an incoming connection is accepted. I want to prevent the socket from being created in the first place, just as though I had never called "accept connections". I could just close any additional sockets that are created, beyond my numeric limit, but that's not the same thing as refusing the connection. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From m.schonewille at economy-x-talk.com Thu Jan 2 13:33:09 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 2 Jan 2014 19:33:09 +0100 Subject: Stopping accepting connections In-Reply-To: <43B5C95D34EE43088A1EFEDA29C7B8DE@PAULD> References: <8D0D5F20B2F8BB8-6BC-C71C@webmail-m208.sysops.aol.com> <43B5C95D34EE43088A1EFEDA29C7B8DE@PAULD> Message-ID: <7E33165C-2914-45F1-A0AF-721423FE87F7@economy-x-talk.com> Paul, When you close the socket that is accepting connections, the newly created sockets will stay open. close socket 8080 will stop accepting connections. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 2 jan. 2014 om 18:55 heeft "Paul D. DeRocco" het volgende geschreven: >>> From: Paul D. DeRocco >>> >>> What's the opposite of "accept connections"? That is, how do >>> I tell LC not >>> to accept any more connections? I want to be able to place a >>> limit on the >>> number of connections accepted, by counting them and disabling further >>> connections when that number is reached. >>> >>> And how do I (the server) know when the other end has broken >>> a connection, >>> if I'm not trying to send to the connection? Do I get some sort of >>> message? > >> From: dunbarx at aol.com >> >> Do you mean to "close" a socket? > > No. A socket is automatically created when an incoming connection is > accepted. I want to prevent the socket from being created in the first > place, just as though I had never called "accept connections". I could > just close any additional sockets that are created, beyond my numeric > limit, but that's not the same thing as refusing the connection. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.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 pderocco at ix.netcom.com Thu Jan 2 14:45:38 2014 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Thu, 2 Jan 2014 11:45:38 -0800 Subject: Stopping accepting connections In-Reply-To: <7E33165C-2914-45F1-A0AF-721423FE87F7@economy-x-talk.com> References: <8D0D5F20B2F8BB8-6BC-C71C@webmail-m208.sysops.aol.com><43B5C95D34EE43088A1EFEDA29C7B8DE@PAULD> <7E33165C-2914-45F1-A0AF-721423FE87F7@economy-x-talk.com> Message-ID: > From: Mark Schonewille > > When you close the socket that is accepting connections, the > newly created sockets will stay open. > > close socket 8080 > > will stop accepting connections. Thanks, I'll try that. But it seems odd. 8080 (which I assume is a typical port number) isn't really a socket, is it? -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From m.schonewille at economy-x-talk.com Thu Jan 2 14:51:34 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 2 Jan 2014 20:51:34 +0100 Subject: Stopping accepting connections In-Reply-To: References: <8D0D5F20B2F8BB8-6BC-C71C@webmail-m208.sysops.aol.com><43B5C95D34EE43088A1EFEDA29C7B8DE@PAULD> <7E33165C-2914-45F1-A0AF-721423FE87F7@economy-x-talk.com> Message-ID: <1DD2306B-DF3C-467E-89FA-FDAF931766D7@economy-x-talk.com> Hi Paul, 8080 is a typical port number (you can use whatever number is allowed by your operating system) but it is also a socket. When you accept connections on port 8080, a socket with name 8080 is created. The openSockets function will return this as the name of one of the open sockets. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 2 jan 2014, at 20:45, Paul D. DeRocco wrote: > > Thanks, I'll try that. But it seems odd. 8080 (which I assume is a typical > port number) isn't really a socket, is it? From pete at lcsql.com Thu Jan 2 15:19:06 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 2 Jan 2014 12:19:06 -0800 Subject: commandNames/functionNames Message-ID: I'm noticing a large number of commands/functions missing from the above properties. For example all the iphonexxx stuff and revEnvironmentxxx stuff. Not a big deal but is there some other property that includes them? Pete lcSQL Software From capellan2000 at gmail.com Thu Jan 2 18:21:06 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 2 Jan 2014 15:21:06 -0800 (PST) Subject: Format function on LiveCode 6.5.1 Message-ID: <1388704866023-4674248.post@n4.nabble.com> Hi All, Could you post your results of these code snippets? Write in the message box: put format("%04s",17) Write down the result and test this: put format("%04d",17) Post both results, your LiveCode version and your Operating System. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Format-function-on-LiveCode-6-5-1-tp4674248.html Sent from the Revolution - User mailing list archive at Nabble.com. From sc at sahores-conseil.com Thu Jan 2 18:38:09 2014 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 3 Jan 2014 00:38:09 +0100 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <1388704866023-4674248.post@n4.nabble.com> References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: Hi Al, Here is the results using an MBP running OS X 10.7.5 : Testing against LC 6.1.3 and LC 6.5.1 with same results in both cases : put format("%04s",17) --> 0017 put format("%04d",17) --> 0017 Hope your are definitively safe in about your recent Asthma crisis. Warm Regards, Pierre Le 3 janv. 2014 ? 00:21, Alejandro Tejada a ?crit : > Hi All, > > Could you post your results of these code snippets? > > Write in the message box: > put format("%04s",17) > Write down the result and test this: > put format("%04d",17) > > Post both results, your LiveCode version > and your Operating System. > > Thanks in advance! > > Al > > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Format-function-on-LiveCode-6-5-1-tp4674248.html > Sent from the Revolution - User mailing list archive at Nabble.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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From roger.e.eller at sealedair.com Thu Jan 2 18:50:25 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 2 Jan 2014 18:50:25 -0500 Subject: Flow/wrap text into an irregular shape In-Reply-To: References: Message-ID: Strangely, if the text size is made bigger, so it will fit into a larger triangle, the width of the "Fview" field must be kept small during re-flow. Then the width can be increased to match the width of the triangle. I am unsure why, but it works. Here is an example: https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt_bigger.livecode ~Roger On Tue, Dec 31, 2013 at 6:44 AM, Thierry Douez wrote: > > 2013/12/30 Roger Eller : > > >> So, here are the two approaches we have thus far: > >> > >> > https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt.livecode > >> > >> > https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt_Thierry.livecode > >> > >> ~Roger > >> > >> > >> On Sun, Dec 29, 2013 at 11:25 AM, Thierry Douez > wrote: > >> > >>> Here is a quick-and-dirty first attempt. > >>> > >>> The char version makes a perfect regular triangle, > >>> the word version works but could probably have to be tuned a bit more.. > >>> And I'm using measureText(..) available in LC 6.5. > > Ok, I've done the correction and calculate automatically the > number of lines of the field. I've added another button so we > can wrap by char or by word. I've already send to you the new stack > and it would be nice if you tell us when you put it on your dropbox. > > Happy new year Livecoders! > > BONNE ANNEE et MEILLEURS VOEUX 2014. > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Thu Jan 2 19:00:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 2 Jan 2014 16:00:48 -0800 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <1388704866023-4674248.post@n4.nabble.com> References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: The result was 0017 in both cases for me. LC 5.5.4, OSX 10.7.5 Pete lcSQL Software On Thu, Jan 2, 2014 at 3:21 PM, Alejandro Tejada wrote: > Hi All, > > Could you post your results of these code snippets? > > Write in the message box: > put format("%04s",17) > Write down the result and test this: > put format("%04d",17) > > Post both results, your LiveCode version > and your Operating System. > > Thanks in advance! > > Al > > > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Format-function-on-LiveCode-6-5-1-tp4674248.html > Sent from the Revolution - User mailing list archive at Nabble.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 mblivecode at harbourhosting.co.uk Thu Jan 2 19:29:54 2014 From: mblivecode at harbourhosting.co.uk (Martin Baxter) Date: Fri, 03 Jan 2014 00:29:54 +0000 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <1388704866023-4674248.post@n4.nabble.com> References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: <52C60482.6080706@harbourhosting.co.uk> Livecode 4.5 Ubuntu 10.0.4 put format("%04s",17) >> " 17" put format("%04d",17) >> "0017" Livecode 6.1 Ubuntu 10.0.4 put format("%04s",17) >> " 17" put format("%04d",17) >> "0017" Livecode 6.1 Debian 7.2 put format("%04s",17) >> " 17" put format("%04d",17) >> "0017" Livecode 6.5.1 Xubuntu 13.10 put format("%04s",17) >> " 17" put format("%04d",17) >> "0017" Martin Baxter On 02/01/14 23:21, Alejandro Tejada wrote: > Hi All, > > Could you post your results of these code snippets? > > Write in the message box: > put format("%04s",17) > Write down the result and test this: > put format("%04d",17) > > Post both results, your LiveCode version > and your Operating System. > > Thanks in advance! > > Al From brahma at hindu.org Thu Jan 2 21:02:32 2014 From: brahma at hindu.org (Brahmanathswami) Date: Thu, 02 Jan 2014 16:02:32 -1000 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <1388704866023-4674248.post@n4.nabble.com> References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: <52C61A38.2040409@hindu.org> Same result for both: 0017 Mac OS X 10.9 Mavericks LC: 6.5.1 Alejandro Tejada wrote: > Hi All, > > Could you post your results of these code snippets? > > Write in the message box: > put format("%04s",17) > Write down the result and test this: > put format("%04d",17) > > Post both results, your LiveCode version > and your Operating System. > > Thanks in advance! > > Al -- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com From mwieder at ahsoftware.net Thu Jan 2 22:04:30 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 2 Jan 2014 19:04:30 -0800 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <1388704866023-4674248.post@n4.nabble.com> References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: <0344796176.20140102190430@ahsoftware.net> Alejandro- Thursday, January 2, 2014, 3:21:06 PM, you wrote: > Hi All, > Could you post your results of these code snippets? > Write in the message box: > put format("%04s",17) > Write down the result and test this: > put format("%04d",17) > Post both results, your LiveCode version > and your Operating System. The documentation is a bit ambiguous on this, but I believe the linux implementation does the right thing (my results agree with Martin's, in that the result of 17 is padded with two leading spaces). The OSX implementation just seems wrong to me. >From the documentation: String: %[charLength]s The corresponding value is unchanged, except that if a charLength is specified, if the string is shorter than the charLength, enough leading spaces are added to make it charLength characters long. If the length of the string is equal to or greater than the charLength, it is unchanged. For example, the incantation %3s transforms "H" to " H". What are you wanting to happen here? -- -Mark Wieder ahsoftware at gmail.com From mwieder at ahsoftware.net Thu Jan 2 22:08:23 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 2 Jan 2014 19:08:23 -0800 Subject: commandNames/functionNames In-Reply-To: References: Message-ID: <82345029456.20140102190823@ahsoftware.net> Pete- Thursday, January 2, 2014, 12:19:06 PM, you wrote: > I'm noticing a large number of commands/functions missing from the above > properties. For example all the iphonexxx stuff and revEnvironmentxxx > stuff. The lists as they currently exist in the engine are just that: lists that have to be maintained by hand. Sometime in the future this mechanism may change and have some relation with the real world. But I think it's fairly low on the priority list. Hopefully soon all the iphonexxx stuff will become mobilexxx stuff, or most of it at any rate. -- -Mark Wieder ahsoftware at gmail.com From scott at tactilemedia.com Thu Jan 2 23:40:20 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 02 Jan 2014 20:40:20 -0800 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <0344796176.20140102190430@ahsoftware.net> References: <1388704866023-4674248.post@n4.nabble.com> <0344796176.20140102190430@ahsoftware.net> Message-ID: Hi Mark: On my end, I've been using the following "incantation" of format for years to pad numbers with zeros. I assume the entry in the Linux dictionary would show this, but on OSX/Win, it reads as follows: "If a zero is included immediately before the charLength parameter in any formatting incantation that allows padding, the resulting value is padded (if necessary) with zeroes instead of spaces. For example, the incantation %03s transforms H to 00H." So if a string is NOT being padded with 0's, perhaps this is a Linux bug? I believe this is where Alejandro's question came from. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 1/2/14 7:04 PM, "Mark Wieder" wrote: >Alejandro- > >Thursday, January 2, 2014, 3:21:06 PM, you wrote: > >> Hi All, > >> Could you post your results of these code snippets? > >> Write in the message box: >> put format("%04s",17) >> Write down the result and test this: >> put format("%04d",17) > >> Post both results, your LiveCode version >> and your Operating System. > >The documentation is a bit ambiguous on this, but I believe the linux >implementation does the right thing (my results agree with Martin's, >in that the result of 17 is padded with two leading spaces). The OSX >implementation just seems wrong to me. > >From the documentation: > >String: >%[charLength]s >The corresponding value is unchanged, except that if a charLength is >specified, if the string is shorter than the charLength, enough >leading spaces are added to make it charLength characters long. If the >length of the string is equal to or greater than the charLength, it is >unchanged. For example, the incantation %3s transforms "H" to " H". > >What are you wanting to happen here? > >-- >-Mark Wieder > ahsoftware at gmail.com From mwieder at ahsoftware.net Fri Jan 3 01:23:05 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 2 Jan 2014 22:23:05 -0800 Subject: Format function on LiveCode 6.5.1 In-Reply-To: References: <1388704866023-4674248.post@n4.nabble.com> <0344796176.20140102190430@ahsoftware.net> Message-ID: <48356711515.20140102222305@ahsoftware.net> Scott- Thursday, January 2, 2014, 8:40:20 PM, you wrote: > So if a string is NOT being padded with 0's, perhaps this is a Linux bug? You're right... I missed that hidden farther down in the docs. Well, it's documented that way, so I guess it should work that way. -- -Mark Wieder ahsoftware at gmail.com From dunbarx at aol.com Fri Jan 3 01:31:36 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 3 Jan 2014 01:31:36 -0500 (EST) Subject: Format function on LiveCode 6.5.1 In-Reply-To: <52C61A38.2040409@hindu.org> References: <1388704866023-4674248.post@n4.nabble.com> <52C61A38.2040409@hindu.org> Message-ID: <8D0D66496351DE7-A10-1079C@webmail-va015.sysops.aol.com> "0017" for both. MacBook Air 10.6.8 LC 6.5.1 Interestingly I thought there was some sort of trick involved, as I copied and pasted your text into a new field. What came over was a block of black opaque "text", that I could not do a thing with. Pasting individual lines into msg worked fine. I deleted the field and tried another. No issue at all, so I guess it was not you, but rather a glitch in LC itself. Craig -----Original Message----- From: Brahmanathswami To: How to use LiveCode Sent: Thu, Jan 2, 2014 9:03 pm Subject: Re: Format function on LiveCode 6.5.1 Same result for both: 0017 Mac OS X 10.9 Mavericks LC: 6.5.1 Alejandro Tejada wrote: > Hi All, > > Could you post your results of these code snippets? > > Write in the message box: > put format("%04s",17) > Write down the result and test this: > put format("%04d",17) > > Post both results, your LiveCode version > and your Operating System. > > Thanks in advance! > > Al -- Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.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 Fri Jan 3 02:10:28 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 03 Jan 2014 01:10:28 -0600 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <8D0D66496351DE7-A10-1079C@webmail-va015.sysops.aol.com> References: <1388704866023-4674248.post@n4.nabble.com> <52C61A38.2040409@hindu.org> <8D0D66496351DE7-A10-1079C@webmail-va015.sysops.aol.com> Message-ID: <52C66264.7030902@hyperactivesw.com> On 1/3/14 12:31 AM, dunbarx at aol.com wrote: > "0017" for both. MacBook Air 10.6.8 LC 6.5.1 > > > Interestingly I thought there was some sort of trick involved, as I > copied and pasted your text into a new field. What came over was a > block of black opaque "text", that I could not do a thing with. > Pasting individual lines into msg worked fine. I deleted the field > and tried another. No issue at all, so I guess it was not you, but > rather a glitch in LC itself. I see that if I paste or import binary text that uses Mac line endings (ascii 13) instead of Linux endings (ascii 10.) Basically all the lines overdraw each other. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From th.douez at gmail.com Fri Jan 3 04:11:15 2014 From: th.douez at gmail.com (Thierry Douez) Date: Fri, 3 Jan 2014 10:11:15 +0100 Subject: Flow/wrap text into an irregular shape In-Reply-To: References: Message-ID: 2014/1/3 Roger Eller : > Strangely, if the text size is made bigger, so it will fit into a larger > triangle, the width of the "Fview" field must be kept small during re-flow. > Then the width can be increased to match the width of the triangle. > I am unsure why, but it works. Hi Roger, If you change the text size of field "Fview" then you have to set the text size of field "Ftmp" accordingly. Those 2 fields need to have the same property values (font, size, margin,...) for my snippet of code to work. Therefore, if you are playing with font size, you could add 3 lines of code in the Viewtext handler to read those property of Fview and set them for Ftmp. HTH, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage From rene.micout at numericable.com Fri Jan 3 04:18:57 2014 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Fri, 3 Jan 2014 10:18:57 +0100 Subject: Happy New Year 2014 Everyone! In-Reply-To: References: Message-ID: <47971CF4-722C-4F40-A5F5-5B5AD08591E4@numericable.com> MERCI ! UNE BONNE ANN?E ET UNE BONNE SANT? ? TOUS ! Ren? Le 1 janv. 2014 ? 19:42, Lynn Fredricks a ?crit : > Hello all, > > Hope everyone has a prosperous 2014! With all the positive improvements in > LiveCode I think this is going to be one of our best years yet! > > Best regards, > > Lynn Fredricks > President > Paradigma Software > http://www.paradigmasoft.com > > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Jan 3 05:08:34 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 12:08:34 +0200 Subject: Format function on LiveCode 6.5.1 In-Reply-To: References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: <52C68C22.4010707@gmail.com> On 03/01/14 01:38, Pierre Sahores wrote: > Hi Al, > > Here is the results using an MBP running OS X 10.7.5 : > > Testing against LC 6.1.3 and LC 6.5.1 with same results in both cases : > > put format("%04s",17) --> 0017 > put format("%04d",17) --> 0017 > > Hope your are definitively safe in about your recent Asthma crisis. > > Warm Regards, > > Pierre > > Le 3 janv. 2014 ? 00:21, Alejandro Tejada a ?crit : > >> Hi All, >> >> Could you post your results of these code snippets? >> >> Write in the message box: >> put format("%04s",17) >> Write down the result and test this: >> put format("%04d",17) >> >> Post both results, your LiveCode version >> and your Operating System. >> >> Thanks in advance! >> >> Al >> >> >> Being one of those slobs who has, so far, only learnt the bits of Livecode he needs for his own ends I looked up 'format' for the first time; and very interesting it is too. However I wonder who write that bit of the documentation: "The valid incantations are as follows" I suddenly had a vision of the 3 witches in 'that' play by William Shakespeare standing round a computer . . . LOL. Richmond. From richmondmathewson at gmail.com Fri Jan 3 07:57:00 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 14:57:00 +0200 Subject: Poking around on the Supercard website Message-ID: <52C6B39C.3080805@gmail.com> 1. > *Additional Text Transcoding > *Setting and exporting the text of text fields have been expanded to > support the following file types:TEXT, RTF, RTFD, utxt, utf8, word_98, > word_xml, HTML, webarchive, and raw. Nothing else interested me in particular. Export to .doc (probably expecting a bit much) and .odf (especially the latter" Open Doc Format) would be a good thing, and how about plain, vanilla text? certainly exporting as RTFtext doesn't sit nicely with text editors on Windows and Linux. Richmond. From roger.e.eller at sealedair.com Fri Jan 3 08:07:56 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 3 Jan 2014 08:07:56 -0500 Subject: Flow/wrap text into an irregular shape In-Reply-To: References: Message-ID: I will modify the props of fld "Fview" and see what happens. Thanks! ~Roger On Jan 3, 2014 4:11 AM, "Thierry Douez" wrote: > 2014/1/3 Roger Eller : > > Strangely, if the text size is made bigger, so it will fit into a larger > > triangle, the width of the "Fview" field must be kept small during > re-flow. > > Then the width can be increased to match the width of the triangle. > > I am unsure why, but it works. > > > Hi Roger, > > If you change the text size of field "Fview" then you have to set > the text size of field "Ftmp" accordingly. > Those 2 fields need to have the same property values (font, size, > margin,...) > for my snippet of code to work. > Therefore, if you are playing with font size, you could add 3 lines of code > in the Viewtext handler to read those property of Fview and set them for > Ftmp. > > HTH, > > Thierry > > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Fri Jan 3 08:15:46 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 3 Jan 2014 08:15:46 -0500 Subject: Format function on LiveCode 6.5.1 In-Reply-To: <52C68C22.4010707@gmail.com> References: <1388704866023-4674248.post@n4.nabble.com> <52C68C22.4010707@gmail.com> Message-ID: "Any sufficiently advanced technology is indistinguishable from magic." http://en.wikipedia.org/wiki/Clarke's_three_laws ~Roger On Jan 3, 2014 5:09 AM, "Richmond" wrote: > > However I wonder who write that bit of the documentation: > > "The valid incantations are as follows" > > I suddenly had a vision of the 3 witches in 'that' play by William Shakespeare standing round > a computer . . . LOL. > > Richmond. > From roger.e.eller at sealedair.com Fri Jan 3 08:50:31 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 3 Jan 2014 08:50:31 -0500 Subject: Flow/wrap text into an irregular shape In-Reply-To: References: Message-ID: I meant "Ftmp". On Jan 3, 2014 8:07 AM, "Roger Eller" wrote: > I will modify the props of fld "Fview" and see what happens. Thanks! > > ~Roger > On Jan 3, 2014 4:11 AM, "Thierry Douez" wrote: > >> 2014/1/3 Roger Eller : >> > Strangely, if the text size is made bigger, so it will fit into a larger >> > triangle, the width of the "Fview" field must be kept small during >> re-flow. >> > Then the width can be increased to match the width of the triangle. >> > I am unsure why, but it works. >> >> >> Hi Roger, >> >> If you change the text size of field "Fview" then you have to set >> the text size of field "Ftmp" accordingly. >> Those 2 fields need to have the same property values (font, size, >> margin,...) >> for my snippet of code to work. >> Therefore, if you are playing with font size, you could add 3 lines of >> code >> in the Viewtext handler to read those property of Fview and set them for >> Ftmp. >> >> HTH, >> >> Thierry >> >> >> ------------------------------------------------ >> Thierry Douez - http://sunny-tdz.com >> Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From livfoss at mac.com Fri Jan 3 09:10:57 2014 From: livfoss at mac.com (Graham Samuel) Date: Fri, 03 Jan 2014 15:10:57 +0100 Subject: LC Dictionary - trivial but annoying Message-ID: <5710FF37-92FE-49A0-82ED-25DF8933A87F@mac.com> Since forever, I have found that when I open the LC Dictionary in the IDE by clicking on the toolbar button, I can't then immediately type into the Dictionary's search field, but have to click first somewhere in the result field. This despite the cursor flashing in the search field when the Dictionary opens. Does this happen to other people. If so I will report it as a (very low level) bug, as it looks unprofessional to me. Graham (using LC 6.5.1 on a Mac, but the problem was certainly already there in LC 5.x) From livfoss at mac.com Fri Jan 3 10:47:21 2014 From: livfoss at mac.com (Graham Samuel) Date: Fri, 03 Jan 2014 16:47:21 +0100 Subject: Is there a clever way to do subscripts in LC text? Message-ID: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> I'm having to show some simple mathematical expressions which involve subscripts (like say a little figure 2 below the line in an otherwise normal text); and in principle I'd like to have superscripts as well. As there's nothing in the Dictionary about this, I constructed my expressions (which luckily are static things) by creating a group of little fields and adjusting their vertical relationships. This seems very clunky and also doesn't work too well cross-platform since different fonts behave differently. Also if it wasn't static - I mean if I wanted my user to be able to write stuff like this - I have no idea how I'd do it. Is there a better way? TIA Graham From m.schonewille at economy-x-talk.com Fri Jan 3 11:00:48 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 03 Jan 2014 17:00:48 +0100 Subject: Is there a clever way to do subscripts in LC text? In-Reply-To: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> References: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> Message-ID: <52C6DEB0.4090801@economy-x-talk.com> Hi Graham, You can use the textShift property for subscript and superscript. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi Fill out this survey please http://livecodebeginner.economy-x-talk.com/survey/ On 1/3/2014 16:47, Graham Samuel wrote: > I'm having to show some simple mathematical expressions which involve subscripts (like say a little figure 2 below the line in an otherwise normal text); and in principle I'd like to have superscripts as well. > > As there's nothing in the Dictionary about this, I constructed my expressions (which luckily are static things) by creating a group of little fields and adjusting their vertical relationships. This seems very clunky and also doesn't work too well cross-platform since different fonts behave differently. Also if it wasn't static - I mean if I wanted my user to be able to write stuff like this - I have no idea how I'd do it. > > Is there a better way? > > TIA > > Graham From mwieder at ahsoftware.net Fri Jan 3 11:00:52 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 3 Jan 2014 08:00:52 -0800 Subject: Is there a clever way to do subscripts in LC text? In-Reply-To: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> References: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> Message-ID: <194391377448.20140103080052@ahsoftware.net> Graham- Friday, January 3, 2014, 7:47:21 AM, you wrote: > I'm having to show some simple mathematical expressions which > involve subscripts (like say a little figure 2 below the line in an > otherwise normal text); and in principle I'd like to have > superscripts as well. Look into the textshift property of chars. You can make it a positive or negative value for superscripts or subscripts. -- -Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Fri Jan 3 11:33:02 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 18:33:02 +0200 Subject: Is there a clever way to do subscripts in LC text? In-Reply-To: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> References: <87C7AF9F-209D-4E23-8D97-6E1471B44093@mac.com> Message-ID: <52C6E63E.5080905@gmail.com> On 03/01/14 17:47, Graham Samuel wrote: > I'm having to show some simple mathematical expressions which involve subscripts (like say a little figure 2 below the line in an otherwise normal text); and in principle I'd like to have superscripts as well. > > As there's nothing in the Dictionary about this, I constructed my expressions (which luckily are static things) by creating a group of little fields and adjusting their vertical relationships. This seems very clunky and also doesn't work too well cross-platform since different fonts behave differently. Also if it wasn't static - I mean if I wanted my user to be able to write stuff like this - I have no idea how I'd do it. > > Is there a better way? > > TIA > > Graham > _______________________________________________ > NO . . . but there's an incredibly "unclever" way to do it . . . I just typed a sentence into a fld and selected part of it and went to the 'Text' item in the menuBar and set it to subscript, and then another bit of text to superscript. Lovely job. HOWEVER I suspect you are wanting to know how to do that code-wise and that is "a right pox". Here's what the documentation has to offer: "The textStyle of an object or chunk is either "plain", empty, "mixed", or one or more of the following, separated by commas: * bold * italic * underline * strikeout * box * threeDbox * link (or group) * condensed * expanded" However, as the Livecode IDE is made with Livecode (I never quite worked how that was possible), and it is possible from the menuBar to set text to sub or super script there has to be a way to do it programmatically. I hacked open the script of the 'Text' menu and found a switch statement for textStyle and inside that switch loop there are the following: case "subscript" and case "superscript" wonders will never cease :) I quote: case "subscript" case "superscript" local tTextShiftAmount if pPickedItem is "superscript" then put -4 into tTextShiftAmount else put 4 into tTextShiftAmount if the textShift of tSelectedObject is a number then put 0 into tTextShiftAmount set the textShift of tSelectedObject to tTextShiftAmount break Wombling back over to the documentation I found 'textShift' and "IT" is all described there. One of the MAJOR problems with the inbuilt documentation is knowing what one actually has to look for to get the information one wants. Richmond. From stgoldberg at aol.com Fri Jan 3 11:35:31 2014 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Fri, 3 Jan 2014 11:35:31 -0500 (EST) Subject: =?utf-8?Q?"send_mouseUp_to=E2=80=A6"_?= =?utf-8?Q?_vs_"click_at_the_loc?= =?utf-8?Q?_of..".?= In-Reply-To: References: Message-ID: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> Just a note about a discovery I just made, in case it is not generally known: The speed of a script, especially when dealing with many cards, is improved significantly by writing "send mouseUp to?" instead of "click at the loc of?" Stephen Goldberg, President Medmaster publishing co. www.medmaster.net From richmondmathewson at gmail.com Fri Jan 3 11:47:41 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 18:47:41 +0200 Subject: "send mouseUp =?UTF-8?B?dG/igKYiICB2cyAiY2xpY2sgYXQgdGhlIGxv?= =?UTF-8?B?YyBvZi4uIi4=?= In-Reply-To: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> References: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> Message-ID: <52C6E9AD.2030503@gmail.com> On 03/01/14 18:35, stgoldberg at aol.com wrote: > Just a note about a discovery I just made, in case it is not generally known: The speed of a script, especially when dealing with many cards, is improved significantly by writing "send mouseUp to?" instead of "click at the loc of?" > > > Stephen Goldberg, President > Medmaster publishing co. > www.medmaster.net > _______________________________________________ > The funny thing is I never knew "click at the loc of ..." and have always used "send mouseUp to ..." I am, quite obviously, an idiot savant! Richmond. From dunbarx at aol.com Fri Jan 3 12:38:00 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 3 Jan 2014 12:38:00 -0500 (EST) Subject: =?utf-8?Q?Re:_"send_mouseUp_to?= =?utf-8?Q?=E2=80=A6"__vs_"click_at_th?= =?utf-8?Q?e_loc_of..".?= In-Reply-To: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> References: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> Message-ID: <8D0D6C1AE3D8911-974-112E2@webmail-d176.sysops.aol.com> Hi. Did you used to do this sort of thing to invoke, say, a "mouseUp" handler in a button? Craig Newman -----Original Message----- From: stgoldberg To: use-livecode Sent: Fri, Jan 3, 2014 11:35 am Subject: "send mouseUp to?" vs "click at the loc of..". Just a note about a discovery I just made, in case it is not generally known: The speed of a script, especially when dealing with many cards, is improved significantly by writing "send mouseUp to?" instead of "click at the loc of?" Stephen Goldberg, President Medmaster publishing co. www.medmaster.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 richmondmathewson at gmail.com Fri Jan 3 12:49:24 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 19:49:24 +0200 Subject: "send mouseUp =?UTF-8?B?dG/igKYiICB2cyAiY2xpY2sgYXQgdGhlIGxv?= =?UTF-8?B?YyBvZi4uIi4=?= In-Reply-To: <8D0D6C1AE3D8911-974-112E2@webmail-d176.sysops.aol.com> References: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> <8D0D6C1AE3D8911-974-112E2@webmail-d176.sysops.aol.com> Message-ID: <52C6F824.7060804@gmail.com> On 03/01/14 19:38, dunbarx at aol.com wrote: > Hi. > > > Did you used to do this sort of thing to invoke, say, a "mouseUp" handler in a button? > I use it with my language development software for linguists where an on-screen keyboard has to be activated by the physical keyboard. My on-screen keyboards consist of imported PNG images that contain mouseEnter mouseLeave and mouseUp scripts. When an end-user presses a key on his/her physical keyboard a rawKeyDown signal of this sort is sent to the corresponding image in the virtual keyboard: send "mouseEnter" to image "Letter27.png" and the image obligingly changes colour when the end-user releases his/her physical key a switch statement in a rawKeyUp script sends these two scripts: send "mouseLeave" to image "Letter27.png" and the image loses its colour send "mouseUp" to image "Letter27.png" and something of this sort happens: on mouseUp set the useUnicode to true set the unicodeText of the selectedText to numToChar(26789) end mouseUp Richmond. > > Craig Newman > > > -----Original Message----- > From: stgoldberg > To: use-livecode > Sent: Fri, Jan 3, 2014 11:35 am > Subject: "send mouseUp to?" vs "click at the loc of..". > > > Just a note about a discovery I just made, in case it is not generally known: > The speed of a script, especially when dealing with many cards, is improved > significantly by writing "send mouseUp to?" instead of "click at the loc of?" > > > Stephen Goldberg, President > Medmaster publishing co. > www.medmaster.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 From capellan2000 at gmail.com Fri Jan 3 13:08:09 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 3 Jan 2014 10:08:09 -0800 (PST) Subject: Format function on LiveCode 6.5.1 In-Reply-To: References: <1388704866023-4674248.post@n4.nabble.com> <0344796176.20140102190430@ahsoftware.net> Message-ID: <1388772489693-4674277.post@n4.nabble.com> Scott Rossi wrote > On my end, I've been using the following "incantation" of format for years > to pad numbers with zeros. I assume the entry in the Linux dictionary > would show this, but on OSX/Win, it reads as follows: > > "If a zero is included immediately before the charLength parameter in any > formatting incantation that allows padding, the resulting value is padded > (if necessary) with zeroes instead of spaces. For example, the incantation > %03s transforms H to 00H." > > So if a string is NOT being padded with 0's, perhaps this is a Linux bug? A LiveCode Linux implementation's Bug? Could Mark Wieder or Monte Goulding spot this difference in the source code? Probably this implementation difference affects other areas... I though that common core of LiveCode functionality do not rely in third party libraries. Who could report this in the Quality Center? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Format-function-on-LiveCode-6-5-1-tp4674248p4674277.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Fri Jan 3 13:17:16 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 03 Jan 2014 10:17:16 -0800 Subject: "send mouseUp =?windows-1252?Q?to=85=22__vs_=22click_?= =?windows-1252?Q?at_the_loc_of=2E=2E=22=2E?= In-Reply-To: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> References: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> Message-ID: <52C6FEAC.2070602@fourthworld.com> Stephen Goldberg wrote: > Just a note about a discovery I just made, in case it is not > generally known: The speed of a script, especially when > dealing with many cards, is improved significantly by writing > "send mouseUp to?" instead of "click at the loc of?" Using "dispatch" is even faster, and faster still (and often more robust) is for both scripts to make a direct call to a handler defined further along the message path. Where "click at the loc of..." is useful is in providing a visual reinforcement for a user action, since the additional time is being consumed by the button hilite, which can be very useful. For example, if you want a default button triggered by a doubleClick in a list, having that button hilite momentarily as its script is triggered helps remind the user of what exactly is happening, that the doubleClick is really just a shortcut for clicking the button directly. But in cases where such affordance is of little or no value, indeed bypassing the complex compositing routines needed to hilite the button will make it much perkier. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From mwieder at ahsoftware.net Fri Jan 3 13:33:33 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 3 Jan 2014 18:33:33 +0000 (UTC) Subject: Free Progamming Books Message-ID: (as in beer) Have fun. And don't miss the Firefox OS section . -- Mark Wieder ahsoftware at gmail.com From capellan2000 at gmail.com Fri Jan 3 13:33:55 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 3 Jan 2014 10:33:55 -0800 (PST) Subject: LC Dictionary - trivial but annoying In-Reply-To: <5710FF37-92FE-49A0-82ED-25DF8933A87F@mac.com> References: <5710FF37-92FE-49A0-82ED-25DF8933A87F@mac.com> Message-ID: <1388774035555-4674279.post@n4.nabble.com> In Lubuntu Linux, this works fine and the search field receive the focus at once. Immediately, I could type the terms that I am looking for in the Dictionary. Which OS are you using? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC-Dictionary-trivial-but-annoying-tp4674268p4674279.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Fri Jan 3 13:36:33 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 20:36:33 +0200 Subject: "send mouseUp =?windows-1252?Q?to=85=22__vs_=22click_?= =?windows-1252?Q?at_the_loc_of=2E=2E=22=2E?= In-Reply-To: <52C6FEAC.2070602@fourthworld.com> References: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> <52C6FEAC.2070602@fourthworld.com> Message-ID: <52C70331.8060604@gmail.com> On 03/01/14 20:17, Richard Gaskin wrote: > Stephen Goldberg wrote: > > > Just a note about a discovery I just made, in case it is not > > generally known: The speed of a script, especially when > > dealing with many cards, is improved significantly by writing > > "send mouseUp to?" instead of "click at the loc of?" > > Using "dispatch" is even faster, and faster still (and often more > robust) is for both scripts to make a direct call to a handler defined > further along the message path. Really? It seems that 'dispatch' has more capabilities than 'send': When I tried this: on mouseUp dispatch function "mouseUp" to btn "XYZ" end mouseUp NOTHING happened when I did this: on mouseUp send "mouseUp" to btn "XYZ" end mouseUp the mouseUp script in btn "XYZ" was executed. as happened when I did this: on mouseUp dispatch "mouseUp" to btn "XYZ" end mouseUp --------------------------- now btn "XYZ" contains a function: function BlastMySocks put "socks blasted" end BlastMySocks and when I put this into the script of my other button: on mouseUp dispatch function "BlastMySocks" end mouseUp the function is executed THAT is not possible with 'send' ----------------------------------- Well, I don't know about anybody else, but I am very grateful to Richard Gaskin for having taught me something about Livecode I don't know after about 12 years with it, plus 10 with Hypercard, and a nagging feeling that I look quite a twerp not having known that already! Richmond. > > Where "click at the loc of..." is useful is in providing a visual > reinforcement for a user action, since the additional time is being > consumed by the button hilite, which can be very useful. > > For example, if you want a default button triggered by a doubleClick > in a list, having that button hilite momentarily as its script is > triggered helps remind the user of what exactly is happening, that the > doubleClick is really just a shortcut for clicking the button directly. > > But in cases where such affordance is of little or no value, indeed > bypassing the complex compositing routines needed to hilite the button > will make it much perkier. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Jan 3 13:40:47 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 20:40:47 +0200 Subject: Free Progamming Books In-Reply-To: References: Message-ID: <52C7042F.2040907@gmail.com> On 03/01/14 20:33, Mark Wieder wrote: > (as in beer) drinking some right now! actually it's muck ("Kamenitsa") left over from my two sons' New Year "Piss-up" with their friends. > > > > Have fun. > And don't miss the Firefox OS section . > > Thank you very much indeed! That's a very useful resource. Richmond. From dochawk at gmail.com Fri Jan 3 13:44:59 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Jan 2014 10:44:59 -0800 Subject: commandNames/functionNames In-Reply-To: <82345029456.20140102190823@ahsoftware.net> References: <82345029456.20140102190823@ahsoftware.net> Message-ID: On Thu, Jan 2, 2014 at 7:08 PM, Mark Wieder wrote: > The lists as they currently exist in the engine are just that: lists > that have to be maintained by hand. > I got tired of this for my output, and wrote an (ugly) script that loops through the input & output card, finds in/out fields & buttons, and groups them as custom properties of the card or group. Seems to me the same could be done with the source code with a special kind of comment (a la compiler directives), so that the lists would be built on compile. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From capellan2000 at gmail.com Fri Jan 3 13:44:51 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 3 Jan 2014 10:44:51 -0800 (PST) Subject: windowShape Lubuntu Linux and xcompmgr In-Reply-To: <52C4885F.9040106@gmail.com> References: <1388610906419-4674236.post@n4.nabble.com> <52C4885F.9040106@gmail.com> Message-ID: <1388774691894-4674283.post@n4.nabble.com> For some reason, I have always perceived the Linux platform as a "Do-It-Yourself" platform... :) Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/windowShape-Lubuntu-Linux-and-xcompmgr-tp4674236p4674283.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Fri Jan 3 13:48:00 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 3 Jan 2014 13:48:00 -0500 Subject: Free Progamming Books In-Reply-To: References: Message-ID: RunRev should add the "LiveCode Users Guide.pdf" to all those languages. ~Roger On Fri, Jan 3, 2014 at 1:33 PM, Mark Wieder wrote: > (as in beer) > > > > Have fun. > And don't miss the Firefox OS section . > > > -- > 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 pete at lcsql.com Fri Jan 3 13:48:52 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 3 Jan 2014 10:48:52 -0800 Subject: =?windows-1252?B?UmU6ICJzZW5kIG1vdXNlVXAgdG+FIiB2cyAiY2xpY2sgYXQgdGhlIGxvYyBvZi4uIi4=?= In-Reply-To: <52C70331.8060604@gmail.com> References: <8D0D6B8F3CD39DD-17E4-12A93@webmail-d253.sysops.aol.com> <52C6FEAC.2070602@fourthworld.com> <52C70331.8060604@gmail.com> Message-ID: On Fri, Jan 3, 2014 at 10:36 AM, Richmond wrote: > When I tried this: > > on mouseUp > dispatch function "mouseUp" to btn "XYZ" > end mouseUp > > NOTHING happened > mouseUp isn't a function, try - dispatch "mouseUp" to btn "XYZ". It's a good idea to check the it variable after dispatch. It will contain "handled" if all worked OK or "unhandled" if not. If you dispatch a function call, the returned value will be in the result variable. And you can pass parameters to either form by - dispatch "mouseUp" to button "XYZ" with 1. Pete lcSQL Software From richmondmathewson at gmail.com Fri Jan 3 13:50:24 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 20:50:24 +0200 Subject: windowShape Lubuntu Linux and xcompmgr In-Reply-To: <1388774691894-4674283.post@n4.nabble.com> References: <1388610906419-4674236.post@n4.nabble.com> <52C4885F.9040106@gmail.com> <1388774691894-4674283.post@n4.nabble.com> Message-ID: <52C70670.3030406@gmail.com> On 03/01/14 20:44, Alejandro Tejada wrote: > For some reason, I have always perceived the Linux > platform as a "Do-It-Yourself" platform... :) > > Al > Better to think of it as "Do-It-Yourself-With-Advice-From-Other-People-Platform" see Isaac Newton: "If I have seen further it is by standing on the shoulders of giants." Richmond. From mwieder at ahsoftware.net Fri Jan 3 13:55:36 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 3 Jan 2014 18:55:36 +0000 (UTC) Subject: Free Progamming Books References: Message-ID: Roger Eller writes: > RunRev should add the "LiveCode Users Guide.pdf" to all those languages. The 3.0 version? -- Mark Wieder ahsoftware at gmail.com From capellan2000 at gmail.com Fri Jan 3 13:55:43 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 3 Jan 2014 10:55:43 -0800 (PST) Subject: Format function on LiveCode 6.5.1 In-Reply-To: References: <1388704866023-4674248.post@n4.nabble.com> Message-ID: <1388775343148-4674288.post@n4.nabble.com> Hi Pierre, Pierre Sahores-2 wrote > [snip] > Hope your are definitively safe in about your recent Asthma crisis. Well, I survived. At least in my case, sleeping on a chair (instead of bed) helped a lot in the worst days... :) http://www.wikihow.com/Sleep-on-a-Chair Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Format-function-on-LiveCode-6-5-1-tp4674248p4674288.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Fri Jan 3 13:57:56 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 20:57:56 +0200 Subject: Free Progamming Books In-Reply-To: References: Message-ID: <52C70834.4090403@gmail.com> On 03/01/14 20:48, Roger Eller wrote: > RunRev should add the "LiveCode Users Guide.pdf" to all those languages. > > ~Roger Naturlich. Once it is up to date and no longer like a bad version of the Hitch-Hiker's Guide to The Galaxy. Richmond. > > > On Fri, Jan 3, 2014 at 1:33 PM, Mark Wieder wrote: > >> (as in beer) >> >> >> >> Have fun. >> And don't miss the Firefox OS section . >> >> >> -- >> 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 jhurley0305 at sbcglobal.net Fri Jan 3 13:58:53 2014 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Fri, 3 Jan 2014 10:58:53 -0800 Subject: Snapshot within a circle In-Reply-To: References: Message-ID: I am a volunteer at the local library. They have a program for young children and they want to include my Kaleidoscopic draw program. (They have a bank of 20 computer available to the public. And, by the way, excuse my ignorance, but would it be possible, and legal to put the public version of RunRev on these computers?) Right now the kids can export a snapshot of their efforts, and they want to be able to post them on the web, Facebook etc. ?Look, see what I drew!? The snapshot is everything within the rect of a black circle of user defined radius and it is exported to Preview (on the Mac). In Preview the image includes a gray rectangle around the circle. Right now to clean this up we go to Photoshop and use the magic wand to erase the gray outside the circle. So, at long last, my question. Is there a way within RunRev, by script, to erase all color pixels outside the circle before sending it off to Preview? Here is the code (thanks to someone out there, I sorry about forgetting who you are, I?m 81 now with ever diminishing cognitive abilities) to get the image into Preview: on mouseUp ask "Please name this image." with "Kaleidoscope" hide group ?showhidegroup? ?Everything outside the oval rect is hidden. if it is "" then exit mouseUP put "/" & it & ".png" into tName put specialFolderPath ( "desktop") & tName Into tPathAndName export snapshot from rect (rect of graphic "oval") of this card to file tPathAndName as PNG launch document tPathANDNAME ?That turns out to be Preview on he Mac show group ?showhidegroup? ?Show the things previously hidden end mouseUp Thanks, Jim Hurley From pete at lcsql.com Fri Jan 3 14:04:29 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 3 Jan 2014 11:04:29 -0800 Subject: commandNames/functionNames In-Reply-To: <82345029456.20140102190823@ahsoftware.net> References: <82345029456.20140102190823@ahsoftware.net> Message-ID: Thanks Mark, I suspected that was the case. My simplistic solution would be to have code that scanned the engine code looking for commands and functions but that's probably too simplistic. The functionNames includes some surprising entries, for example all the templatexxxx stuff, which according to the dictionary are keywords. Which then begs the question, why is there no keywordNames? Pete lcSQL Software On Thu, Jan 2, 2014 at 7:08 PM, Mark Wieder wrote: > Pete- > > Thursday, January 2, 2014, 12:19:06 PM, you wrote: > > > I'm noticing a large number of commands/functions missing from the above > > properties. For example all the iphonexxx stuff and revEnvironmentxxx > > stuff. > > The lists as they currently exist in the engine are just that: lists > that have to be maintained by hand. Sometime in the future this > mechanism may change and have some relation with the real world. But I > think it's fairly low on the priority list. > > Hopefully soon all the iphonexxx stuff will become mobilexxx stuff, or > most of it at any rate. > > -- > -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 richmondmathewson at gmail.com Fri Jan 3 14:37:01 2014 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Jan 2014 21:37:01 +0200 Subject: Snapshot within a circle In-Reply-To: References: Message-ID: <52C7115D.4090004@gmail.com> On 03/01/14 20:58, Jim Hurley wrote: > I am a volunteer at the local library. They have a program for young children and they want to include my Kaleidoscopic draw program. (They have a bank of 20 computer available to the public. And, by the way, excuse my ignorance, but would it be possible, and legal to put the public version of RunRev on these computers?) > > Right now the kids can export a snapshot of their efforts, and they want to be able to post them on the web, Facebook etc. ?Look, see what I drew!? > > The snapshot is everything within the rect of a black circle of user defined radius and it is exported to Preview (on the Mac). > > In Preview the image includes a gray rectangle around the circle. > > Right now to clean this up we go to Photoshop and use the magic wand to erase the gray outside the circle. > > So, at long last, my question. Is there a way within RunRev, by script, to erase all color pixels outside the circle before sending it off to Preview? I'm not quite sure why you need the black square. Go here: http://forums.runrev.com/viewtopic.php?f=25&t=18634 There's a stack . . . Richmond. > > Here is the code (thanks to someone out there, I sorry about forgetting who you are, I?m 81 now with ever diminishing cognitive abilities) to get the image into Preview: > > on mouseUp > ask "Please name this image." with "Kaleidoscope" > hide group ?showhidegroup? ?Everything outside the oval rect is hidden. > if it is "" then exit mouseUP > put "/" & it & ".png" into tName > put specialFolderPath ( "desktop") & tName Into tPathAndName > export snapshot from rect (rect of graphic "oval") of this card to file tPathAndName as PNG > launch document tPathANDNAME ?That turns out to be Preview on he Mac > show group ?showhidegroup? ?Show the things previously hidden > end mouseUp > > Thanks, > > Jim Hurley > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jan 3 15:01:58 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 03 Jan 2014 12:01:58 -0800 Subject: "send mouseUp =?windows-1252?Q?to=85=22__vs_=22click_?= =?windows-1252?Q?at_the_loc_of=2E=2E=22=2E?= In-Reply-To: <52C70331.8060604@gmail.com> References: <52C70331.8060604@gmail.com> Message-ID: <52C71736.1060307@fourthworld.com> Richmond wrote: > On 03/01/14 20:17, Richard Gaskin wrote: >> Stephen Goldberg wrote: >> >> > Just a note about a discovery I just made, in case it is not >> > generally known: The speed of a script, especially when >> > dealing with many cards, is improved significantly by writing >> > "send mouseUp to?" instead of "click at the loc of?" >> >> Using "dispatch" is even faster, and faster still (and often more >> robust) is for both scripts to make a direct call to a handler defined >> further along the message path. > > Really? > > It seems that 'dispatch' has more capabilities than 'send': It's slightly faster than "send", and makes for a more natural and robust way to send arguments using "with", e.g.: dispatch "resizeStack" with 800,600 Dispatch also follows a path more akin to built-in messages, in that an unhandled custom message will fail silently (you can check "the result" for "message not handled"), while with "send" it would throw an error. But of the two, only "send" supports a "in