Re: more trouble...
Do this: repeat for each line thisLine in myTrainingLines if the length of thisLine 5 then put thisLine return after myList end repeat delete last char of myList put myList into field myTrainingOps Phil Davis On 4/1/14, 10:32 PM, la...@significantplanet.org wrote: I have the following code in my app: repeat for each line thisLine in myTrainingLines if the length of thisLine 5 then put thisLine return after field myTrainingOps end if end repeat -- filter field myTrainingOps without empty -- WHY IN THE HECK DOESN'T THIS LINE WORK delete line 11 of field myTrainingOps -- SO I HAVE TO USE THIS LINE; BUT I KNOW THERE ARE ONLY SUPPOSED TO BE 10 LINES. WHAT IF I HAVE A VARYING NUMBER OF LINES??? Again, thanks in advance for the help! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
Thanks Phil! - Original Message - From: Phil Davis rev...@pdslabs.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 12:14 AM Subject: Re: more trouble... Do this: repeat for each line thisLine in myTrainingLines if the length of thisLine 5 then put thisLine return after myList end repeat delete last char of myList put myList into field myTrainingOps Phil Davis On 4/1/14, 10:32 PM, la...@significantplanet.org wrote: I have the following code in my app: repeat for each line thisLine in myTrainingLines if the length of thisLine 5 then put thisLine return after field myTrainingOps end if end repeat -- filter field myTrainingOps without empty -- WHY IN THE HECK DOESN'T THIS LINE WORK delete line 11 of field myTrainingOps -- SO I HAVE TO USE THIS LINE; BUT I KNOW THERE ARE ONLY SUPPOSED TO BE 10 LINES. WHAT IF I HAVE A VARYING NUMBER OF LINES??? Again, thanks in advance for the help! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
extremely weird and frustrating...
Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: occasional runaway control - anyone else seeing this?
hmm - in that case it must be something I've recently been doing more of that is encouraging runaway conditions. Have been seeing it more often on my local Win7 machine as well as a remote Windows server I remote into... - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/occasional-runaway-control-anyone-else-seeing-this-tp4677795p4677831.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
Larry, that should be sort lines of field myTimes descending dateTime I assume that myTimes is a variable, but if it isn't, then your lines should be sort lines of field myTimes descending dateTime -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 4/2/2014 09:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
Quick aside: I'm assuming that use of 'char' (as in delete the last char of tVar) in the new world of Unicode will still work to get rid of a cr/return/tab - is that others' understanding too? - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/more-trouble-tp4677825p4677833.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: occasional runaway control - anyone else seeing this?
Hi Dave, One reason why this may happen is the Geometry manager. Another reason is the margins of the group. If the margins are set to 0 and you're using the GM or have a resizing script somewhere, the controls often tend to walk. Also, if you're using rect, top, left, bottom, right and other location properties in your script, these properties may change, triggering a resizing handler again, which eventually makes the control walk. You can avoid this by putting all location properties into variables before setting any position, e.g. put the topleft of grp This Group into myTL set the topleft of btn 1 to (item 1 of myTL + 5),(item 2 of myTL + 5) -- etc. If you give a little more info about what you're doing exactly, we might solve this problem. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 4/1/2014 19:05, Dave Kilroy wrote: Quite a few times recently whilst developing on Windows (windows 7 x64) and using various incarnations of LiveCode (LC 6.6, 6.6.1(rc1), LC 6.7 (dp1) I'm getting an occasional 'runaway' behaviour. Occasionally, on one particular stack (holding quite a few controls to make up it's GUI) if I'm editing a group with the inspector open on the 'Size Position' tab - if I click the up or down arrows on the left, top, right, or bottom scrolling list fields, followed within a second or so by another click on the same arrow - I get a 'runaway' of the control continuing to move in the same direction at about 1 pixel/point per second. I'm not seeing it on LC 6.5 or 6.5.1 (or on OSX) I don't really want to file a bug about this because I can't reproduce it - is anyone else seeing this? Kind regards Dave ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
Dave, I don't know anything about Unicode, but delete the last char of field myField worked just fine in LC - Original Message - From: Dave Kilroy d...@applicationinsight.com To: use-revolut...@lists.runrev.com Sent: Wednesday, April 02, 2014 1:57 AM Subject: Re: more trouble... Quick aside: I'm assuming that use of 'char' (as in delete the last char of tVar) in the new world of Unicode will still work to get rid of a cr/return/tab - is that others' understanding too? - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/more-trouble-tp4677825p4677833.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. - Original Message - From: Alex Tweedly a...@tweedly.net To: use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 1:59 AM Subject: Re: extremely weird and frustrating... 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: occasional runaway control - anyone else seeing this?
Hi Mark Well in one of the stacks the relevant controls (fields and graphics) are contained in a group with margins set to 0, which is itself contained in a group with margins set to 0 - but in the other stack the controls are not grouped. I never mess the geometry manager and resize controls either in the GUI, message box or in code Your idea about triggering resizing handlers (even in edit mode) is a good one and I think I'll try suppressing messages next time and see if this makes a difference - thanks :) - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/occasional-runaway-control-anyone-else-seeing-this-tp4677795p4677838.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: extremely weird and frustrating...
Another way to do this would be to put a 0 in front of the 'hours minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to : repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line count of fld 1 = 1 then put 0 line count of fld 1 into line count of fld 1 end if end repeat sort lines of fld 1 end mouseUp would give : 01:22 02:08 07:47 09:14 11:35 12:16 15:56 16:33 25:34 34:55 From: la...@significantplanet.org Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
Thanks John, I'm not trying to be cheeky but I am frustrated. Sorry Alex. John, what you propose may work - haven't tried it yet. However, that still does not explain why WITHOUT the 0 in front of it, 9:14 was listed before 11:35 in my ascending sort. And just FYI, those are minutes and seconds I'm using and not hours and minutes. My point is that it seems to me that the dateTime sort does not work properly. What you proposed is a workaround because dateTime does NOT work properly, right? - Original Message - From: John Dixon dixo...@hotmail.co.uk To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Another way to do this would be to put a 0 in front of the 'hours minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to : repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line count of fld 1 = 1 then put 0 line count of fld 1 into line count of fld 1 end if end repeat sort lines of fld 1 end mouseUp would give : 01:22 02:08 07:47 09:14 11:35 12:16 15:56 16:33 25:34 34:55 From: la...@significantplanet.org Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: New browser
Hi Jacque, I have tried executing javascript on the new browser control and it works as expected. The following is what I tested with and the javscript is used to fill in a web form and then submit the data- / put document.getElementById('user_email').value='t...@test.com'; document.getElementById('user_password').value='testpassword';document.forms[0].submit(); into tScript/ / get revBrowserExecuteScript( tID, tScript) / Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com LiveCode -- Realize fast, compile-free coding -- On 02/04/2014 03:43, J. Landman Gay wrote: Has anyone tried the JavaScript interaction with the new browser yet? Someone has asked me if it works. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
John, There's no need to use a repeat loop: on mouseUp put fld 1 into myList set the itemDel to colon sort lines of myList numeric by item 2 of each sort lines of myList numeric by item 1 of each put myList into fld 2 end mouseUp -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 4/2/2014 10:25, la...@significantplanet.org wrote: Thanks John, I'm not trying to be cheeky but I am frustrated. Sorry Alex. John, what you propose may work - haven't tried it yet. However, that still does not explain why WITHOUT the 0 in front of it, 9:14 was listed before 11:35 in my ascending sort. And just FYI, those are minutes and seconds I'm using and not hours and minutes. My point is that it seems to me that the dateTime sort does not work properly. What you proposed is a workaround because dateTime does NOT work properly, right? - Original Message - From: John Dixon dixo...@hotmail.co.uk To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
Larry, I looked at this again. If I use the following script on mouseUp set the twelveHourTime to true put fld 1 into myList set the itemDel to colon sort lines of myList descending numeric dateTime put myList into fld 2 end mouseUp I get this result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 which indicates that invalid times are simply not sorted. There are only 24 hours in a day and 24 and higher are invalid numbers for hours. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 4/2/2014 09:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
Well Mark, I guess I do not know how to state minutes and seconds in the proper syntax for a correct dateTime sort. However, your piece of code below works perfectly. Thanks very much! Larry on mouseUp put fld 1 into myList set the itemDel to colon sort lines of myList numeric by item 2 of each sort lines of myList numeric by item 1 of each put myList into fld 2 end mouseUp ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
I think the point is that (since the new guessProgrammerIntent feature that Devin spotted yesterday is no longer available today) the code for interpreting as dateTime has to make assumptions when the data isn't explicit. Not unreasonably, asked to interpret dd:dd as a datetime value, the code guesses that it is HH:MM rather than guessing that it is MM:SS. Whereas asked to interpret dd:dd:dd it will definitely interpret that as HH:MM:SS. So I wouldn't agree that What you proposed is a workaround because dateTime does NOT work properly, right? At worst you could say that the implementer, forced to make a decision about how to interpret an ambiguous input, made the wrong call (interpret it as HH:MM rather than as MM:SS) - but I think it's a judgement call, neither would really be wrong or right, just which is likely to be most useful in most cases. (Of course it's also worth noting that the way sort works is to apply the sorting function to pairs of input. The dateTime evaluation is applied to each piece of data in turn - there's no overall evaluation. An intelligent human operator, asked to sort a dozen items, might start interpreting them as HH:MM, then come across an instance which couldn't validly be interpreted as HH:MM but could be as MM:SS, and therefore decide to start over, now treating everything as MM:SS. But what we have is a machine, implementing a relatively efficient and flexible mechanism - which rightly precludes behaviour like that.) Ben On 02/04/2014 09:25, la...@significantplanet.org wrote: Thanks John, I'm not trying to be cheeky but I am frustrated. Sorry Alex. John, what you propose may work - haven't tried it yet. However, that still does not explain why WITHOUT the 0 in front of it, 9:14 was listed before 11:35 in my ascending sort. And just FYI, those are minutes and seconds I'm using and not hours and minutes. My point is that it seems to me that the dateTime sort does not work properly. What you proposed is a workaround because dateTime does NOT work properly, right? - Original Message - From: John Dixon dixo...@hotmail.co.uk To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Another way to do this would be to put a 0 in front of the 'hours minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to : repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line count of fld 1 = 1 then put 0 line count of fld 1 into line count of fld 1 end if end repeat sort lines of fld 1 end mouseUp would give : 01:22 02:08 07:47 09:14 11:35 12:16 15:56 16:33 25:34 34:55 From: la...@significantplanet.org Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
Hi Larry Yep I use 'delete the last char of tVar' currently - the thing is can we use in the future? (I'm assuming so) - see this blog for info on LiveCode's upcoming Unicodification http://livecode.com/blog/2014/03/31/examining-unicode-part-i-the-dissection/ - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/more-trouble-tp4677825p4677849.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Firels as containers
-- Forwarded message -- From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Cc: Date: Tue, 01 Apr 2014 21:47:13 -0500 Subject: Re: Fiels as containers On 4/1/14, 5:10 PM, Muaadh Salih wrote: In a simple stack of five crads I put a field aaa to store the number of last card students were in last time to retruen to it when reopining the stack next. I put in card script on closestack put the number of this card into card field aaa of card 1 end closestack and in the stack script on Openstack go to card ( card field aaa of card 1) end Openstack This works fine as long as (I) do not quit livecode . if I colse ,quit and then click on the saved stack it goes to card one ! always ( livecode 6.6, 6.7, 7 and run rev 4.5) What went wrong please ?! Try changing the openStack handler to a preOpenCard handler on card 1. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com Thanks Jacqueline . It Does not work either . What I can not undrstand is why it DOES work when : 1- save the stack scripte 2- close 3- open stack (from file menu without quiting LC ) while it DOES NOT ( always goes to card one) when: 1- Save the stack scripte 2- Cose 3- Quit LC 4-Double click on stack stack (from file menu without quiting live code ) -- All the best M.Salih Principal Teaching Fellow Arabic Project Coordinator Fellow of the Teaching Learning Academy in Higher Education Department of the Languages and Cultures of the Near and Middle East Faculty of Languages and Cultures School of Oriental and African Studies (SOAS) Tel : +442078984354 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
Thank you Ben. I agree with what you say and just hadn't thought of that - because my mind was locked in on MM:SS. So Mark gave me a piece of code that works perfectly in sorting the field how I want. And now I recognize that Mark's code is NOT a workaround, but just taking into account what you just said. So the good news is: I'm no longer frustrated. I guess the bad news is: I'm still weird! Thanks for the lesson! Larry - Original Message - From: Ben Rubinstein benr...@cogapp.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 3:17 AM Subject: Re: extremely weird and frustrating... I think the point is that (since the new guessProgrammerIntent feature that Devin spotted yesterday is no longer available today) the code for interpreting as dateTime has to make assumptions when the data isn't explicit. Not unreasonably, asked to interpret dd:dd as a datetime value, the code guesses that it is HH:MM rather than guessing that it is MM:SS. Whereas asked to interpret dd:dd:dd it will definitely interpret that as HH:MM:SS. So I wouldn't agree that What you proposed is a workaround because dateTime does NOT work properly, right? At worst you could say that the implementer, forced to make a decision about how to interpret an ambiguous input, made the wrong call (interpret it as HH:MM rather than as MM:SS) - but I think it's a judgement call, neither would really be wrong or right, just which is likely to be most useful in most cases. (Of course it's also worth noting that the way sort works is to apply the sorting function to pairs of input. The dateTime evaluation is applied to each piece of data in turn - there's no overall evaluation. An intelligent human operator, asked to sort a dozen items, might start interpreting them as HH:MM, then come across an instance which couldn't validly be interpreted as HH:MM but could be as MM:SS, and therefore decide to start over, now treating everything as MM:SS. But what we have is a machine, implementing a relatively efficient and flexible mechanism - which rightly precludes behaviour like that.) Ben On 02/04/2014 09:25, la...@significantplanet.org wrote: Thanks John, I'm not trying to be cheeky but I am frustrated. Sorry Alex. John, what you propose may work - haven't tried it yet. However, that still does not explain why WITHOUT the 0 in front of it, 9:14 was listed before 11:35 in my ascending sort. And just FYI, those are minutes and seconds I'm using and not hours and minutes. My point is that it seems to me that the dateTime sort does not work properly. What you proposed is a workaround because dateTime does NOT work properly, right? - Original Message - From: John Dixon dixo...@hotmail.co.uk To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Another way to do this would be to put a 0 in front of the 'hours minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to : repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line count of fld 1 = 1 then put 0 line count of fld 1 into line count of fld 1 end if end repeat sort lines of fld 1 end mouseUp would give : 01:22 02:08 07:47 09:14 11:35 12:16 15:56 16:33 25:34 34:55 From: la...@significantplanet.org Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
Re: extremely weird and frustrating...
I think of 16:33 as sixteen hours and 33 minutes - LC won't interpret it as minutes and seconds, and thus anything above 23:59 is invalid - and therefore apparently interpreted as 0:00 Unfortunately I can't find a definitive list of valid formats in the docs, but nothing in the dictionary entry for 'convert' includes mins:secs - it's always either hours:mins or hours:mins:secs, so I'm fairly sure that's what's happening. (You could use a sort by custom function to convert them all to hours:min:secs , e.g. sort field myTimes descending dateTime by hoursMinsSecs(each) function hoursMinsSecs pTime -- change a time in mins:secs to hours:mins:secs set the itemDel to : if the number of items in pTime = 2 then return 0: pTime end if return pTime -- already is hours:mins:secs end hoursMinsSecs -- Alex. On 02/04/2014 09:02, la...@significantplanet.org wrote: Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. - Original Message - From: Alex Tweedly a...@tweedly.net To: use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 1:59 AM Subject: Re: extremely weird and frustrating... 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending mail (invisibly) from inside a Mac LC app
The challenge with this issue (of automatically sending an email from a given computer) is that I need to offer the easiest, most compatible, and the safest method to the user. The users of this app can range from a single computer home user to a large corporation with many Macs installed. To work for home users, the solution needs to be dead simple. Mail is installed on every Mac. Almost every user can configure mail to send an outgoing message. Using AppleScript to trigger an email runs so quickly that the user will rarely see it happening. Yes, there will be a record of the email in their sent box. But my app only sends an email when it identifies a problem with the users hard drive or OS... so not worried about hiding anything. I am still looking into the PHP script option for corporate users. One alternative solution is to have my app pop up a notification on the users desktop alerting them to the problem. This avoids the need to send an email altogether. But I have been told that this solution is probably not acceptable in a corporate environment. Richard On 4/1/14 8:33 PM, Bob Sneidar wrote: Is that really invisible? If they are in Apple Mail, don’t they see the mail being created and sent? Also, it will be in their sent mail. Not my idea of invisible. Further, this will only work if an email account with working SMTP has been already created, and if the SMTP server ever becomes unavailable and your app attempts to send something, it will pop an error. Bob On Mar 28, 2014, at 19:33 , Richard Miller w...@together.net wrote: This solution looks promising. Used the following as an applescript. Worked perfectly. Just requires that each Mac have a working version of Mail installed. - set recipientName to Richard set recipientAddress to rdmil...@together.net set theSubject to Type your subject here! set theContent to Type your message content here! tell application Mail ##Create the message set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true} ##Set a recipient tell theMessage make new to recipient with properties {name:recipientName, address:recipientAddress} ##Send the Message send end tell end tell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 2 Apr 2014, at 12:30, Fraser Gordon fraser.gor...@runrev.com wrote: On 2 Apr 2014, at 12:24, Richmond richmondmathew...@gmail.com wrote: I have just been reading Fraser's seminal article here: http://livecode.com/blog/2014/04/02/examining-unicode-part-ii-digesting-text/ and got all excited about codepointProperty, but did not quite understand Diacritic, Diacritics are the technical term for the accents and other bits that get attached to letters. In terms of the codepointProperty function, the Diacritic property returns true for diacritical characters and false otherwise. Just noticed your post on the blog entry itself so sorry if I misunderstood what you were asking about diacritics - the short answer is that the engine looks up the information in the Unicode Character Database (which libICU provides a nice interface to). It is this that has caused the expansion in the size of the standalones in the DP (temporarily, we hope). Regards, Fraser ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending mail (invisibly) from inside a Mac LC app
I'm still surprised that your original approach of doing SMTP directly from inside LC wasn't sucessful. I have an app that does data transformation jobs on a regularly scheduled basis, and sends reports via email. I coded it many years ago, basing this part on Shao Shen's libSMTP; with simple configuration options for SMTP server, port, auth type, username and password; and since then it's been deployed by a number of different clients, and we've always been able to configure it successfully to work with the mail server in their environment. For home users, maybe you could use AppleScript to extract the configuration from their Mail app at startup, and if necessary ask them to confirm the details (you probably have to ask them to confirm the password even in the best case); for corporate users getting the details of their mail server may have to be part of the (one time for the organisation) configuration. But once you have the configuration, taking this approach feels more robust, since it doesn't require using AppleScript to work with a third-party piece of software which may change outside your control (Apple are rubbish at implementing their own technology, including AppleScript, consistently) and may not always be installed. (On my own Mac for example, Mail is always there, because it's not worth the trouble to deinstall it; but I've never used it in all the years since moving to OS X. (I used to be an Outlook/Entourage user, then I switched to Thunderbird). So your software would launch Mail, which would then appear and ask me to configure it, I'd decline etc.) My $0.02 Ben ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 02/04/14 14:41, Fraser Gordon wrote: On 2 Apr 2014, at 12:30, Fraser Gordon fraser.gor...@runrev.com wrote: On 2 Apr 2014, at 12:24, Richmond richmondmathew...@gmail.com wrote: I have just been reading Fraser's seminal article here: http://livecode.com/blog/2014/04/02/examining-unicode-part-ii-digesting-text/ and got all excited about codepointProperty, but did not quite understand Diacritic, Diacritics are the technical term for the accents and other bits that get attached to letters. In terms of the codepointProperty function, the Diacritic property returns true for diacritical characters and false otherwise. Just noticed your post on the blog entry itself so sorry if I misunderstood what you were asking about diacritics - the short answer is that the engine looks up the information in the Unicode Character Database (which libICU provides a nice interface to). It is this that has caused the expansion in the size of the standalones in the DP (temporarily, we hope). Regards, Fraser Thanks for that. Re: Diacritics. While you are a real computer programmer (which I am most definitely not), I have an M.A. in Linguistics. However, my problem was not with Diacritic as such, but the syntax of codepointProperty, and, wanting to play around with it to see how it worked, my 'natural' first stop was to have a look in 7.0's dictionary (mind you, it may not be up-to-date). Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
(answering my own responses again :-) It depends what your file contains if the time is more than one hour. If the time was, say, sixty-five-and-a-half minutes, would the file entry be 65:30 or 1:05:30 If it's the former, then Mark's two-step sort is the right answer. If it's the latter, then my custom function sort given earlier will work. If it could be either - then you'd need to extend the custom function; this will work for either 65:30 or 1:05:30 function hoursMinsSecs pTime -- change a time in mins:secs to hours:mins:secs set the itemDel to : if the number of items in pTime = 2 then put item 1 of pTime into tMins put tMins div 60 into tHours put tMins mod 60 into tMins return tHours : tMins : item 2 of pTime end if return pTime -- already is hours:mins:secs end hoursMinsSecs And if minutes can be negative, then that's left as an exercise :-) -- Alex. On 02/04/2014 12:04, Alex Tweedly wrote: I think of 16:33 as sixteen hours and 33 minutes - LC won't interpret it as minutes and seconds, and thus anything above 23:59 is invalid - and therefore apparently interpreted as 0:00 Unfortunately I can't find a definitive list of valid formats in the docs, but nothing in the dictionary entry for 'convert' includes mins:secs - it's always either hours:mins or hours:mins:secs, so I'm fairly sure that's what's happening. (You could use a sort by custom function to convert them all to hours:min:secs , e.g. sort field myTimes descending dateTime by hoursMinsSecs(each) function hoursMinsSecs pTime -- change a time in mins:secs to hours:mins:secs set the itemDel to : if the number of items in pTime = 2 then return 0: pTime end if return pTime -- already is hours:mins:secs end hoursMinsSecs -- Alex. On 02/04/2014 09:02, la...@significantplanet.org wrote: Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. - Original Message - From: Alex Tweedly a...@tweedly.net To: use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 1:59 AM Subject: Re: extremely weird and frustrating... 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 2 Apr 2014, at 13:15, Richmond richmondmathew...@gmail.com wrote: Re: Diacritics. While you are a real computer programmer (which I am most definitely not), I have an M.A. in Linguistics. I remembered your interest in linguistics shortly after sending the email and felt rather silly for providing egg-sucking instructions! I'm also not necessarily a real computer programmer (I just play one on TV) - my qualifications are in physics and electronic engineering… nobody seems to have noticed yet, thankfully ;) However, my problem was not with Diacritic as such, but the syntax of codepointProperty, and, wanting to play around with it to see how it worked, my 'natural' first stop was to have a look in 7.0's dictionary (mind you, it may not be up-to-date). There should be an entry for it (at least there is in my copy). If you want to get an idea of what properties are provided, go to http://www.unicode.org/reports/tr44/ and scroll down to section 5 Properties. Not all the properties in that table work but most of them do. Regards, Fraser ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
Just to confirm - it looks like we are safe to continue using the delete the last char of tList structure (Fraser just confirmed it in a reply to my question over at http://livecode.com/blog/2014/04/02/examining-unicode-part-ii-digesting-text/ ) I can relax now without that niggling little question buzzing around my head... - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/more-trouble-tp4677825p4677861.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending mail (invisibly) from inside a Mac LC app
Yes, Ben... I agree with you. The frustration is that, in testing both Shao's library and Sarah's with one client in particular (120 Mac's), we couldn't get either to work with their mail settings (and we tried numerous settings). It works fine using my GoDaddy settings, so I know the implementation is correct. If there was even a little technical help available, perhaps one of these could be made to work. But no luck so far. Richard On 4/2/14 7:47 AM, Ben Rubinstein wrote: I'm still surprised that your original approach of doing SMTP directly from inside LC wasn't sucessful. I have an app that does data transformation jobs on a regularly scheduled basis, and sends reports via email. I coded it many years ago, basing this part on Shao Shen's libSMTP; with simple configuration options for SMTP server, port, auth type, username and password; and since then it's been deployed by a number of different clients, and we've always been able to configure it successfully to work with the mail server in their environment. For home users, maybe you could use AppleScript to extract the configuration from their Mail app at startup, and if necessary ask them to confirm the details (you probably have to ask them to confirm the password even in the best case); for corporate users getting the details of their mail server may have to be part of the (one time for the organisation) configuration. But once you have the configuration, taking this approach feels more robust, since it doesn't require using AppleScript to work with a third-party piece of software which may change outside your control (Apple are rubbish at implementing their own technology, including AppleScript, consistently) and may not always be installed. (On my own Mac for example, Mail is always there, because it's not worth the trouble to deinstall it; but I've never used it in all the years since moving to OS X. (I used to be an Outlook/Entourage user, then I switched to Thunderbird). So your software would launch Mail, which would then appear and ask me to configure it, I'd decline etc.) My $0.02 Ben ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 02/04/14 15:39, Fraser Gordon wrote: On 2 Apr 2014, at 13:15, Richmond richmondmathew...@gmail.com wrote: Re: Diacritics. While you are a real computer programmer (which I am most definitely not), I have an M.A. in Linguistics. I remembered your interest in linguistics shortly after sending the email and felt rather silly for providing egg-sucking instructions! I'm also not necessarily a real computer programmer (I just play one on TV) - my qualifications are in physics and electronic engineering… nobody seems to have noticed yet, thankfully ;) However, my problem was not with Diacritic as such, but the syntax of codepointProperty, and, wanting to play around with it to see how it worked, my 'natural' first stop was to have a look in 7.0's dictionary (mind you, it may not be up-to-date). There should be an entry for it (at least there is in my copy). If you want to get an idea of what properties are provided, go to http://www.unicode.org/reports/tr44/ and scroll down to section 5 Properties. Not all the properties in that table work but most of them do. Thanks. That's great. Regards, Fraser ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 02/04/14 15:39, Fraser Gordon wrote: snip There should be an entry for it (at least there is in my copy). If you want to get an idea of what properties are provided, go to http://www.unicode.org/reports/tr44/ and scroll down to section 5 Properties. Not all the properties in that table work but most of them do. snip and so to: http://www.unicode.org/reports/tr44/#Decomposition_Type PropList.txt would I be correct in thinking that in scripting phrases that are of this sort;| codepointProperty(c, Diacritic) where you have Diacritic one could have any one of the PropList.txt terms? Richmond. | ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Using google maps
Has anybody implemented Google Maps or Google Earth? I notice the mergeMK external looks like it has some nice features. I'd be interested in anybody's experience and particularly if the mergeMK external is expected to work with livecode 7. Best, Bill William Prothero http://es.earthednet.org On Apr 2, 2014, at 12:45 AM, Dave Kilroy d...@applicationinsight.com wrote: hmm - in that case it must be something I've recently been doing more of that is encouraging runaway conditions. Have been seeing it more often on my local Win7 machine as well as a remote Windows server I remote into... - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/occasional-runaway-control-anyone-else-seeing-this-tp4677795p4677831.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 2 Apr 2014, at 15:04, Richmond richmondmathew...@gmail.com wrote: and so to: http://www.unicode.org/reports/tr44/#Decomposition_Type PropList.txt would I be correct in thinking that in scripting phrases that are of this sort;| codepointProperty(c, Diacritic) where you have Diacritic one could have any one of the PropList.txt terms? That's the idea. Terms are case-insensitive and underscores and spaces are considered to be equivalent. So you could say codepointProperty(é, Decomposition_Type) -- E-Acute, if something eats the Unicode text and the result (in this case) would be Canonical. Some property types might not be implemented and will give you a bad property name error - some of the listed properties don't seem to be provided by ICU (mostly deprecated properties). Regards, Fraser ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
Dave Kilroy wrote: Just to confirm - it looks like we are safe to continue using the delete the last char of tList structure (Fraser just confirmed it in a reply to my question over at http://livecode.com/blog/2014/04/02/examining-unicode-part-ii-digesting-text/ ) I can relax now without that niggling little question buzzing around my head... You should sleep better than ever because now that syntax should work with all languages, whereas in the past it would have returned only the last byte of a multi-byte character, giving you linguistic nonsense. -- 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating... - Domain does not exist
I think if you set the numberFormat to “00” and itemDelimiter to “:” you can add 0 to each item. Bob On Apr 2, 2014, at 01:15 , John Dixon dixo...@hotmail.co.uk wrote: Another way to do this would be to put a 0 in front of the 'hours minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to : repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line count of fld 1 = 1 then put 0 line count of fld 1 into line count of fld 1 end if end repeat sort lines of fld 1 end mouseUp would give : 01:22 02:08 07:47 09:14 11:35 12:16 15:56 16:33 25:34 34:55 From: la...@significantplanet.org Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: extremely weird and frustrating...
I think he is saying that 9:14 and 11:35 is not a valid dateTime so the engine reverts to a text sort. There is no date in the dateTime. Bob On Apr 2, 2014, at 01:25 , la...@significantplanet.org la...@significantplanet.org wrote: Thanks John, I'm not trying to be cheeky but I am frustrated. Sorry Alex. John, what you propose may work - haven't tried it yet. However, that still does not explain why WITHOUT the 0 in front of it, 9:14 was listed before 11:35 in my ascending sort. And just FYI, those are minutes and seconds I'm using and not hours and minutes. My point is that it seems to me that the dateTime sort does not work properly. What you proposed is a workaround because dateTime does NOT work properly, right? - Original Message - From: John Dixon dixo...@hotmail.co.uk To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Another way to do this would be to put a 0 in front of the 'hours minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to : repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line count of fld 1 = 1 then put 0 line count of fld 1 into line count of fld 1 end if end repeat sort lines of fld 1 end mouseUp would give : 01:22 02:08 07:47 09:14 11:35 12:16 15:56 16:33 25:34 34:55 From: la...@significantplanet.org Sorry Alex, I do not understand. 16:33 is sixteen minutes and 33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significantplanet.org wrote: Here is my script line: sort field myTimes descending dateTime 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: 25:34 34:55 1:22 2:08 7:47 9:14 11:35 12:16 15:56 16:33 Seriously? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 7.0 dp 1 Dictionary
On 02/04/14 17:39, Fraser Gordon wrote: On 2 Apr 2014, at 15:04, Richmond richmondmathew...@gmail.com wrote: and so to: http://www.unicode.org/reports/tr44/#Decomposition_Type PropList.txt would I be correct in thinking that in scripting phrases that are of this sort;| codepointProperty(c, Diacritic) where you have Diacritic one could have any one of the PropList.txt terms? That's the idea. Terms are case-insensitive and underscores and spaces are considered to be equivalent. So you could say codepointProperty(é, Decomposition_Type) -- E-Acute, if something eats the Unicode text and the result (in this case) would be Canonical. Some property types might not be implemented and will give you a bad property name error - some of the listed properties don't seem to be provided by ICU (mostly deprecated properties). Regards, Fraser OK . . . now what about this? codepointProperty((numToChar(2347)), Diacritic) This is slightly silly, I know, because one can just download the Unicode tables as PDF documents (and I do, frequently) to see what the glyphs are. However, it might be useful to determine what category a glyph falls into, or, for that matter, a range of glyphs: put 2347 into KOUNT set the useUnicode to true repeat until count = 2447 if codepointProperty((numToChar(KOUNT)), Diacritic) is true then put KOUNT = Yup! into line (KOUNT - 2346) of fld Wazzat else put KOUNT = Nope! into line (KOUNT - 2346) of fld Wazzat end if put KOUNT + 1 into KOUNT end repeat --- However; having just attempted to run that script in a button in 7.0.dp 1 I got a happy 'bad codepoint' message at which point I discovered a GENERAL FIELD PROBLEM with 7.0.dp 1 under UbuntuStudio 14.04 beta: I pasted my code into the scriptEditor, but, on attempting to change the script to something like this: put 2347 into KOUNT set the useUnicode to true repeat until count = 2447 if codepointProperty( quote (numToChar(KOUNT)) quote, Diacritic) is true then put KOUNT = Yup! into line (KOUNT - 2346) of fld Wazzat else put KOUNT = Nope! into line (KOUNT - 2346) of fld Wazzat end if put KOUNT + 1 into KOUNT end repeat I could not insert the cursor, so could not type the changes. Select, Delete and so forth just don't work right now in the script editor. Not, frankly that it mattered, because when I fiddled around and managed to paste that second script I got this: codepointProperty: bad codepoint Something that I am missing, obviously. Richmond. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending mail (invisibly) from inside a Mac LC app
This will produce a flurry of support calls, as home users in my experience never remember their own email passwords unless they use webmail and have to enter it each time, in which case that users email would be useless to you. I install copiers for a living now, and by far the biggest snag, even in corporate environments is determining how to communicate with the company’s email server correctly. Any number of things can go wrong, from Exchange Connectors not being configured for that particular device, to ISP’s blocking access to foreign SMTP servers. As “simple” as Simple Mail Transfer Protocol was supposed to be, it is ANYTHING but simple in this day and age. Bob On Apr 2, 2014, at 04:47 , Ben Rubinstein benr...@cogapp.commailto:benr...@cogapp.com wrote: For home users, maybe you could use AppleScript to extract the configuration from their Mail app at startup, and if necessary ask them to confirm the details (you probably have to ask them to confirm the password even in the best case); ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending mail (invisibly) from inside a Mac LC app
Richard Miller wrote: I am still looking into the PHP script option for corporate users. One alternative solution is to have my app pop up a notification on the users desktop alerting them to the problem. This avoids the need to send an email altogether. But I have been told that this solution is probably not acceptable in a corporate environment. It seems the simplest, most flexible, and most efficient option. Email clients will vary, but every computer with Web access will be able to POST via HTTP. Every business has a Web site, and a script to log incoming reports could be written in LC in a few minutes, and be simple enough to take only a few milliseconds of server time. If the company's Web server is off-limits (as is often a good idea; I like to reserve public server clock cycles for the public), you could easily set up any spare machine in the office as an intranet server to handle this. Intranets can be useful for all sorts of services - once you get this logging going you'll no doubt think of dozens of other ways pulling an old PC out of retirement for this can provide strong value to the company. While it takes less than an hour to install Ubuntu Server and Apache and set it up as you like, if that seems daunting you could get started with a simple LC-based server like mchttpd. But given the wide range of useful free tools for intranets, using Apache is a more flexible option. You could still use LC as needed via LiveCode Server, but would also have OwnCloud and anything else your company could find useful available to them. Even if you had to build a custom machine for this, the ROI is strong. Private servers don't need a lot of horsepower (it's mostly just reading files and parsing text) - you may be pleasantly surprised by how easy it is to assemble a cheap kit like this, and how well it performs as a light-duty server: http://secure.newegg.com/WishList/PublicWishDetail.aspx?WishListNumber=19090325pid=4226303 That one totals US$228, and if you shop around there are even cheaper options available. Small machines like that are also pretty green - most of the recent Atom CPUs have a TDP of just 10 watts, costing pennies a month to have available as an always-on resource. Set the BIOS to automatically reboot on power failure, plug it into your network, and forget about it - it's like a network appliance, always there for any services you put on it. The oldest one I have in my office uses the Atom 230, one of the first and least powerful Atoms Intel ever made. Yet it handles Apache, OwnCloud, LC Server, and a custom server built on mchttp very well. Besides, most corporations already have intranet servers - why not use them effectively by hosting new services as needed? If an intranet isn't managed flexibly enough to respond to the ever-changing needs of an organization, the problem isn't a technical one, but an opportunity for personnel review. ;) A good IT team will be able to deploy secure separated spaces for new services easily. After all, every successful business understands that the only constant is change. -- 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Using google maps
Google maps work with liveCode 7 on the desktop and on mobile... Monte Goulding's mergMK works on mobile. Has anybody implemented Google Maps or Google Earth? I notice the mergeMK external looks like it has some nice features. I'd be interested in anybody's experience and particularly if the mergeMK external is expected to work with livecode 7. Best, Bill William Prothero ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sending mail (invisibly) from inside a Mac LC app
On Apr 2, 2014, at 4:33 AM, Richard Miller w...@together.net wrote: I am still looking into the PHP script option for corporate users. The PHP/LiveCode solution is completely silent, will work on both the internet and intranet, require no mail config on the client side. The only requirement of the client is that they need to be connected to the internet. You could add to the code to cache the data to be emailed and send it when it comes back on. Best regards, Mark Talluto canelasoftware.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Inactive Menu Bar?
This is an odd one. I'm developing a desktop app with a menu bar (Mac) all set up and fully working in early development cycles. When running under the IDE, one click on the mainstack which owns the menu replaces the IDE's own menu with mine, as expected, and that menu works as normal. Then I pick one of my menu options, a script gets run and something goes wrong - the IDE menu no longer gets replaced and my own menu doesn't show. The menu still exists, and I can send menuPick messages from the Message Box and get them to work, but I just can't see the menu bar. Mostly I'm using LC 6.5.2 for this, but the same problem shows on 6.6.1 rc1. I made a standalone, and the menu bar appears, with nothing dimmed, and the dropdowns animate, but none of the menu items do anything, i.e. no menuPick messages are being sent. Other bits of the program are working and respond to mouse events etc. Of course it's a bug of my own making, but what's going on? What the heck did I do wrong? TIA for any suggestions Graham ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RETURN ENTER in Unicode
So; here I am bu**ering around in my Devawriter Pro [ http://andregarzia.on-rev.com/richmond/dwriterpro.html ] which is in what I, slightly pompously, call its 3rd System Development Life-Cycle . . . Anyway . . . Inside a socking great rawKeyDown Case statement one of the possibilities runs a bit like this: case 65293 set the useUnicode to true set the unicodeText of the selectedText to (numToChar(13) numToChar(10)) select after the selectedText break now 65293 is the raw key code for the 'Return' key [ the one above the right-hand SHIFT key ], so, in theory, when an end-user hits that key they should end up with a carriage return in the text field: BUT they don't. Just to really confuse the issue, when an end-user hits the 'Enter' key [ over on the right, on those keyboards that have a number pad ] they get a carriage return: this seems to make no sense at all considering that the raw key code for the 'Enter' key is 65421. So; just for a laugh I threw this into the soup: case 65421 set the useUnicode to true set the unicodeText of the selectedText to (numToChar(13) numToChar(10)) select after the selectedText break and that blocked the 'Enter' key as well. This tells me that my rawKeyDown for those keys is doing sweet FA, and merely serving to block them. Of course the easy thing to do is just to remove the case 65293 code so that the default pass rawKeyDown at the end of the switch statement just lets the OS strut its funky stuff with the 'Return' key rather than attempting to over-ride it in the app. - BUT; this is not entirely satisfying, and I wonder if anyone can tell me what I should have in my case 65293 code instead of (numToChar(13) numToChar(10)) to get a carriage return? LiveCode 4.5 Commercial in Mac OS 10.6.7 --- Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Firels as containers
On 4/2/14, 4:44 AM, Muaadh Salih wrote: What I can not undrstand is why it DOES work when : 1- save the stack scripte 2- close 3- open stack (from file menu without quiting LC ) while it DOES NOT ( always goes to card one) when: 1- Save the stack scripte 2- Cose 3- Quit LC 4-Double click on stack stack (from file menu without quiting live code ) The destroystack property of the stack is probably set to false, which is LiveCode's default setting. That means when the stack closes it is kept in RAM. When you re-open it, it will open in its previous state. When you quit LiveCode and re-open the stack, it opens in the state it was last saved in. It sounds like the stack is not saved to disk before you quit LiveCode. When you open the stack after launching LiveCode, what is in field aaa? Is it the correct card number? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: New browser
On 4/2/14, 3:47 AM, Neil Roger wrote: Hi Jacque, I have tried executing javascript on the new browser control and it works as expected. Thanks Neil, very helpful, especially the script. I'm no Javascript programmer. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: RETURN ENTER in Unicode
On Apr 2, 2014, at 11:18 AM, Richmond richmondmathew...@gmail.com wrote: So; here I am bu**ering around in my Devawriter Pro [ http://andregarzia.on-rev.com/richmond/dwriterpro.html ] which is in what I, slightly pompously, call its 3rd System Development Life-Cycle . . . Anyway . . . Inside a socking great rawKeyDown Case statement one of the possibilities runs a bit like this: case 65293 set the useUnicode to true set the unicodeText of the selectedText to (numToChar(13) numToChar(10)) select after the selectedText break now 65293 is the raw key code for the 'Return' key [ the one above the right-hand SHIFT key ], so, in theory, when an end-user hits that key they should end up with a carriage return in the text field: BUT they don't. Just to really confuse the issue, when an end-user hits the 'Enter' key [ over on the right, on those keyboards that have a number pad ] they get a carriage return: this seems to make no sense at all considering that the raw key code for the 'Enter' key is 65421. So; just for a laugh I threw this into the soup: case 65421 set the useUnicode to true set the unicodeText of the selectedText to (numToChar(13) numToChar(10)) select after the selectedText break and that blocked the 'Enter' key as well. This tells me that my rawKeyDown for those keys is doing sweet FA, and merely serving to block them. Of course the easy thing to do is just to remove the case 65293 code so that the default pass rawKeyDown at the end of the switch statement just lets the OS strut its funky stuff with the 'Return' key rather than attempting to over-ride it in the app. - BUT; this is not entirely satisfying, and I wonder if anyone can tell me what I should have in my case 65293 code instead of (numToChar(13) numToChar(10)) to get a carriage return? Richmond, LiveCode uses ASCII 10 internally for the end-of-line delimiter. 13+10 is the Windows line delimiter, but you should not have to bother with that, unless you're saving the text in your field to an external file using put into URL binfile:… If you use URL file:… the line-ending conversion happens automatically. But I suspect that since you're dealing with unicode text you're using bilefile: Regards, Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: RETURN ENTER in Unicode
On 02/04/14 20:49, Devin Asay wrote: On Apr 2, 2014, at 11:18 AM, Richmond richmondmathew...@gmail.com wrote: So; here I am bu**ering around in my Devawriter Pro [ http://andregarzia.on-rev.com/richmond/dwriterpro.html ] which is in what I, slightly pompously, call its 3rd System Development Life-Cycle . . . Anyway . . . Inside a socking great rawKeyDown Case statement one of the possibilities runs a bit like this: case 65293 set the useUnicode to true set the unicodeText of the selectedText to (numToChar(13) numToChar(10)) select after the selectedText break now 65293 is the raw key code for the 'Return' key [ the one above the right-hand SHIFT key ], so, in theory, when an end-user hits that key they should end up with a carriage return in the text field: BUT they don't. Just to really confuse the issue, when an end-user hits the 'Enter' key [ over on the right, on those keyboards that have a number pad ] they get a carriage return: this seems to make no sense at all considering that the raw key code for the 'Enter' key is 65421. So; just for a laugh I threw this into the soup: case 65421 set the useUnicode to true set the unicodeText of the selectedText to (numToChar(13) numToChar(10)) select after the selectedText break and that blocked the 'Enter' key as well. This tells me that my rawKeyDown for those keys is doing sweet FA, and merely serving to block them. Of course the easy thing to do is just to remove the case 65293 code so that the default pass rawKeyDown at the end of the switch statement just lets the OS strut its funky stuff with the 'Return' key rather than attempting to over-ride it in the app. - BUT; this is not entirely satisfying, and I wonder if anyone can tell me what I should have in my case 65293 code instead of (numToChar(13) numToChar(10)) to get a carriage return? Richmond, LiveCode uses ASCII 10 internally for the end-of-line delimiter. 13+10 is the Windows line delimiter, but you should not have to bother with that, unless you're saving the text in your field to an external file using put into URL binfile:… If you use URL file:… the line-ending conversion happens automatically. But I suspect that since you're dealing with unicode text you're using bilefile: Regards, Devin Thank you, Devin, I just removed the rawKeyDown Case statements to trap the RETURN key, as this is the simplest way to do things. My Devawriter Preo exports to RTF and HTML; and I have yet to test what the output looks like. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Inactive Menu Bar?
Where are your menPick handlers? As I recall they have to be in the menubar group not on each button that represents a menu. Doesn't fit your problem exactly but maybe contributing. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Wed, Apr 2, 2014 at 9:55 AM, Graham Samuel livf...@mac.com wrote: This is an odd one. I'm developing a desktop app with a menu bar (Mac) all set up and fully working in early development cycles. When running under the IDE, one click on the mainstack which owns the menu replaces the IDE's own menu with mine, as expected, and that menu works as normal. Then I pick one of my menu options, a script gets run and something goes wrong - the IDE menu no longer gets replaced and my own menu doesn't show. The menu still exists, and I can send menuPick messages from the Message Box and get them to work, but I just can't see the menu bar. Mostly I'm using LC 6.5.2 for this, but the same problem shows on 6.6.1 rc1. I made a standalone, and the menu bar appears, with nothing dimmed, and the dropdowns animate, but none of the menu items do anything, i.e. no menuPick messages are being sent. Other bits of the program are working and respond to mouse events etc. Of course it's a bug of my own making, but what's going on? What the heck did I do wrong? TIA for any suggestions Graham ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Using google maps
John, It looks like I can run Google Earth in a browser window using JavaScript. Is that the best way to access it? I would prefer a solution that works on both mobile and desktop. Bill Bill William Prothero http://es.earthednet.org On Apr 2, 2014, at 8:26 AM, John Dixon dixo...@hotmail.co.uk wrote: Google maps work with liveCode 7 on the desktop and on mobile... Monte Goulding's mergMK works on mobile. Has anybody implemented Google Maps or Google Earth? I notice the mergeMK external looks like it has some nice features. I'd be interested in anybody's experience and particularly if the mergeMK external is expected to work with livecode 7. Best, Bill William Prothero ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode 6.6.1 (rc-1) very slow on iOS!
Hi there, Boy did I ever make a mistake trying to upgrade from LC 6.5.2 to 6.6.0! After the upgrade, I discovered that 6.6.0 wouldn’t see the iOS SDKs. Then I discovered in the notes that the fix was in LC 6.6.1 (rc-1). So I started up 6.6.1 (rc-1) and discovered that my app which used to run my animations smoothly now shows incredibly slow stuttering animations! Now as I understand it from reading about this problem, is that the move to retina has created this issue. I tried to go back to using LC 6.5.2 and now that won’t find my SDKs. I apparently can’t repoint to any of them either! I suggest that a performance switch be installed so that at least we have a choice as to how quickly we would like to have things rendered here. I was just about ready to get my app out the door when this upgrade has quashed my schedule! What was I thinking? *@$#^!*#(@)! Suggestions and any help are greatly appreciated! Thanks, Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Screengamma
Has anyone noticed a difference in screengamma in the last couple of releases? I've got some images here that look darker on Mac than they did a while back (not sure when it changed, but it's only a few weeks.) Setting the screengamma in the message box to 2.2 fixes it, but the default 1.7 used to be okay. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
I can't deliver app to AppStore (This bundle is invalid.)
I keep getting errors about splash screens not being the right format. I tried changing that and it's not working. I'm using Livecode 6.6 and Xcode 5.1. These are the errors from Application Loader: Apple's web service operation was not successful Unable to authenticate the package: 588503985.itmsp ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/Default-Landscape.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/default-landsc...@2x.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) Could not start delivery: all transports failed diagnostics Any ideas? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: LiveCode 6.6.1 (rc-1) very slow on iOS!
iOS SDK 5.1 is not recognized in 6.5.2. You must use pre 5.1 SDK. 5.0.2 will work and get the green box back. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Rick Harrison Sent: Wednesday, April 02, 2014 3:59 PM To: How to use LiveCode Subject: Re: LiveCode 6.6.1 (rc-1) very slow on iOS! Hi there, Boy did I ever make a mistake trying to upgrade from LC 6.5.2 to 6.6.0! After the upgrade, I discovered that 6.6.0 wouldn't see the iOS SDKs. Then I discovered in the notes that the fix was in LC 6.6.1 (rc-1). So I started up 6.6.1 (rc-1) and discovered that my app which used to run my animations smoothly now shows incredibly slow stuttering animations! Now as I understand it from reading about this problem, is that the move to retina has created this issue. I tried to go back to using LC 6.5.2 and now that won't find my SDKs. I apparently can't repoint to any of them either! I suggest that a performance switch be installed so that at least we have a choice as to how quickly we would like to have things rendered here. I was just about ready to get my app out the door when this upgrade has quashed my schedule! What was I thinking? *@$#^!*#(@)! Suggestions and any help are greatly appreciated! Thanks, Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: I can't deliver app to AppStore (This bundle is invalid.)
Make sure you are running the application loader in the 5.1 app bundle. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of James Little Sent: Wednesday, April 02, 2014 4:39 PM To: use-livecode@lists.runrev.com Subject: I can't deliver app to AppStore (This bundle is invalid.) I keep getting errors about splash screens not being the right format. I tried changing that and it's not working. I'm using Livecode 6.6 and Xcode 5.1. These are the errors from Application Loader: Apple's web service operation was not successful Unable to authenticate the package: 588503985.itmsp ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/Default-Landscape.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/default-landsc...@2x.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) Could not start delivery: all transports failed diagnostics Any ideas? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: I can't deliver app to AppStore (This bundle is invalid.)
Not sure what you mean by “running the application loader in the 5.1 app bundle. I’m using Application Loader version 2.9.1 (441) if that helps. On Apr 2, 2014, at 1:44 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: Make sure you are running the application loader in the 5.1 app bundle. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of James Little Sent: Wednesday, April 02, 2014 4:39 PM To: use-livecode@lists.runrev.com Subject: I can't deliver app to AppStore (This bundle is invalid.) I keep getting errors about splash screens not being the right format. I tried changing that and it's not working. I'm using Livecode 6.6 and Xcode 5.1. These are the errors from Application Loader: Apple's web service operation was not successful Unable to authenticate the package: 588503985.itmsp ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/Default-Landscape.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/default-landsc...@2x.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) Could not start delivery: all transports failed diagnostics Any ideas? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Layout tools for LiveCode
Doing quality GUI is not easy Livecode... But I won't rant on too much about how easy it would be to ramp up the existing IDE to help creatives (graphic design types) build beautiful UI without so much pain... without having to do anything to the engine... Is there a layout grid tool that we can use? Typical applications have guides you can drag out and then snap objects to those guides. I'm mentoring a young man (13 years old) who is eating up LiveCode like it was granola, but he is used to better tools for the eye candy layer and asked me if there was a grid tool.. (not data grid) Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: I can't deliver app to AppStore (This bundle is invalid.)
That is the most recent version from the 5.1 SDK. H. Is the icon REALLY in png format not a png in name only? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of James Little Sent: Wednesday, April 02, 2014 5:12 PM To: How to use LiveCode Subject: Re: I can't deliver app to AppStore (This bundle is invalid.) Not sure what you mean by running the application loader in the 5.1 app bundle. I'm using Application Loader version 2.9.1 (441) if that helps. On Apr 2, 2014, at 1:44 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: Make sure you are running the application loader in the 5.1 app bundle. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of James Little Sent: Wednesday, April 02, 2014 4:39 PM To: use-livecode@lists.runrev.com Subject: I can't deliver app to AppStore (This bundle is invalid.) I keep getting errors about splash screens not being the right format. I tried changing that and it's not working. I'm using Livecode 6.6 and Xcode 5.1. These are the errors from Application Loader: Apple's web service operation was not successful Unable to authenticate the package: 588503985.itmsp ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/Default-Landscape.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) ERROR ITMS-9000: This bundle is invalid. The icon file Smoothie.app/default-landsc...@2x.png must be in .png format. at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage) Could not start delivery: all transports failed diagnostics Any ideas? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: occasional runaway control - anyone else seeing this?
Hi Tom Yes now that you mention it I also have seen your 'runaway selecting' in the script editor - I've learnt to use the pageup and pagedown keys if I have a lot to select - but it would be nice if I didn't have to ... - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/occasional-runaway-control-anyone-else-seeing-this-tp4677795p4677894.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: I can't deliver app to AppStore (This bundle is invalid.)
The files being complained about are the splash screens. But your question still holds true, maybe they are JPEGs. Or perhaps the splash screen has been placed in the icon path? On Apr 2, 2014, at 5:24 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: That is the most recent version from the 5.1 SDK. H. Is the icon REALLY in png format not a png in name only? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: I can't deliver app to AppStore (This bundle is invalid.)
On 4/2/14, 3:39 PM, James Little wrote: I keep getting errors about splash screens not being the right format. I tried changing that and it's not working. I'm using Livecode 6.6 and Xcode 5.1. I got that once. This may not be what's happening to you, but in my case I had saved the images in jpg format by accident but they were still named with a .png extension. So, check your images. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: I can't deliver app to AppStore (This bundle is invalid.)
Ralph and Colin: I will try saving the splash screens again as PNGs and see if that helps. On Apr 2, 2014, at 2:33 PM, Colin Holgate co...@verizon.net wrote: The files being complained about are the splash screens. But your question still holds true, maybe they are JPEGs. Or perhaps the splash screen has been placed in the icon path? On Apr 2, 2014, at 5:24 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: That is the most recent version from the 5.1 SDK. H. Is the icon REALLY in png format not a png in name only? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Layout tools for LiveCode
There are “rulers” you can turn on (View menu - Rulers) that can help you position objects. As far as a grid or guides that objects can snap to, not sure about that. If such a thing exists, I’d like to know myself. :-) Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On Apr 2, 2014, at 3:25 PM, Brahmanathswami bra...@hindu.org wrote: Doing quality GUI is not easy Livecode... But I won't rant on too much about how easy it would be to ramp up the existing IDE to help creatives (graphic design types) build beautiful UI without so much pain... without having to do anything to the engine... Is there a layout grid tool that we can use? Typical applications have guides you can drag out and then snap objects to those guides. I'm mentoring a young man (13 years old) who is eating up LiveCode like it was granola, but he is used to better tools for the eye candy layer and asked me if there was a grid tool.. (not data grid) Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
On 4/2/14, 12:32 AM, la...@significantplanet.org wrote: repeat for each line thisLine in myTrainingLines if the length of thisLine 5 then put thisLine return after field myTrainingOps end if end repeat -- filter field myTrainingOps without empty -- WHY IN THE HECK DOESN'T THIS LINE WORK delete line 11 of field myTrainingOps -- SO I HAVE TO USE THIS LINE; BUT I KNOW THERE ARE ONLY SUPPOSED TO BE 10 LINES. WHAT IF I HAVE A VARYING NUMBER OF LINES??? The filter command works. If line 11 appears empty, it's probably due to the carriage return at the end of line 10 that is pushing the cursor down. To be sure, put this into the message box when you think you see 11 lines: put the number of lines in fld myTrainingOps (Note the quotes around the field name. Always quote all literals.) Do you get 10 or 11? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: more trouble...
So now if I cant sleep, instead of counting sheep I'll be counting bytes, codeunits, codepoints, trueWords, segments, sentences and paragraphs :) - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/more-trouble-tp4677825p4677899.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Layout tools for LiveCode
Brahmanathswami wrote: I'm mentoring a young man (13 years old) who is eating up LiveCode like it was granola, but he is used to better tools for the eye candy layer and asked me if there was a grid tool.. (not data grid) A few such tools have floated around the forums I think, but they're inherently problematic because unless written as externals that blit to the screen they require dynamically adding and removing objects. Far less sexy but nearly as helpful is to just turn on the Grid settings in Prefs (see the Appearance section). I keep mine set to 4px, which gives me plenty of freedom of movement for nearly every layout, yet snaps things into place easily enough that I can align without really trying. -- 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Layout tools for LiveCode
On 4/2/14, 4:25 PM, Brahmanathswami wrote: I'm mentoring a young man (13 years old) who is eating up LiveCode like it was granola, but he is used to better tools for the eye candy layer and asked me if there was a grid tool.. (not data grid) It's built-in but invisible. In preferences, go to the Appearance pane and set the grid spacing to whatever you want. In the View menu, be sure Grid is selected. After that, dragging an object will snap it to the nearest gridline. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Formatted text in a field.
I am trying to understand how to manage formatted text in fields and I am missing something. I have field “in” that contains a long page of formatted text that ultimately will be hidden. I have another field “out” where I am trying to page the data from field “in” like pages of a book (no scrolling) I thought I would loop thru the lines of field “in” from a starting_line and increase the ending_line until the formattedheight of lines stating_line to ending_line of field “in” the height of field “out”. Then back off the ending_line by 1. I thought this would work, but it seems that I am not comparing the right things. The height of field “out” seems to be less than what can actually be seen in field “in”. The algorithm tells me that I can only fit 14 lines of data into field out, where i really can fit 24. So, what am I missing? I must not be comparing the correct things. BTW, I have the fixed line height turned off for both fields. Seperate from my comparison issue, Is there a better technique to accomplish this paging operation? Ultimately, I need to page both forward and backwards. I appreciate any guidance that you all can provide. Regards, Mike on loadpage put current_line + 1 into startline put startline into endline put the number of lines in fld in into lastline put the height of fld out into max_height repeat until endline lastline put the formattedheight of line startline to endline of fld in into new_height if new_height = max_height then put endline - 1 into endline put endline - 1 into lastline else add 1 to endline end if end repeat set the htmlText of fld out to the HtmlText of line startline to endline of fld in put endline into currentline end loadpage ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Layout tools for LiveCode
Well, I learned something new today. Cool! Thanks Jacque and Richard. On Apr 2, 2014, at 3:43 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 4/2/14, 4:25 PM, Brahmanathswami wrote: I'm mentoring a young man (13 years old) who is eating up LiveCode like it was granola, but he is used to better tools for the eye candy layer and asked me if there was a grid tool.. (not data grid) It's built-in but invisible. In preferences, go to the Appearance pane and set the grid spacing to whatever you want. In the View menu, be sure Grid is selected. After that, dragging an object will snap it to the nearest gridline. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Layout tools for LiveCode
Hi, you might want to have a look at http://livecodeshare.runrev.com/stack/757/GridDrawer It tries not to be intrusive, you drag group from a plug-in onto the card you are just editing. When done just delete the group. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Layout-tools-for-LiveCode-tp4677893p4677905.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Screengamma
This doesn't help you, but just to commiserate, PNGs have always been dark for me, even when pasting from other apps. Not sure if they're darker than usual in the recent versions. It would be nice to know after all these years what the expected method is for dealing with this. AFAIK, there's never been an official word from RunRev. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/2/14 1:25 PM, J. Landman Gay jac...@hyperactivesw.com wrote: Has anyone noticed a difference in screengamma in the last couple of releases? I've got some images here that look darker on Mac than they did a while back (not sure when it changed, but it's only a few weeks.) Setting the screengamma in the message box to 2.2 fixes it, but the default 1.7 used to be okay. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: A weird bug/occurrence
Just experienced this again -- downloaded LC 6.6, opened the stack, half the controls on the page were missing. This time I was prepared. I opened navigator, selected the arrow tool, and started clicking lines in navigator. Again, no group, no properties being changed -- navigator just changes the selected controls. But as I changed the selection, objects started popping into view as they were selected. No idea what's going on, submitting a bug. ...and they disappeared again. On Fri, Mar 21, 2014 at 9:10 AM, Geoff Canyon gcan...@gmail.com wrote: On Thu, Mar 20, 2014 at 12:58 PM, Guglielmo Braguglia guglie...@braguglia.ch wrote: have you a fusion drive on your Mac ? I don't think so -- macbook pro w/retina display, straight SSD. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Screengamma
On 4/2/14, 5:13 PM, Scott Rossi wrote: This doesn't help you, but just to commiserate, PNGs have always been dark for me, even when pasting from other apps. Not sure if they're darker than usual in the recent versions. I didn't notice it much but my client did. They swear it didn't used to be that way until a couple of weeks ago (but they're fuzzy on the exact time.) I haven't noticed any big difference over the last couple of releases, but I wonder if something changed in image processing lately. But apparently you haven't seen any relative difference among the recent LiveCode versions, right? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Layout tools for LiveCode
If you're some who (like me) is visual, you can apply an image as the backPattern of a card to get a visible grid overlaid on your card. The backPattern property was changed (I believe) around version 6 to support the transparency of bitmap images, so you can make make whatever pattern you want. If you don't mind having an object on your card to act as the visible grid, you can do something like the following: - create a new polygon graphic on your card - set the graphic to be the first layer of your card - set the lineSize of the graphic to 1 - set the graphic's foreColor to 0,204,255 - set the graphic's disabled to true - set the graphic's cantSelect to true Place the following in your card or stack script: local gridIntensity = 2 on resizeStack put long id of grc myGrid into theGrid put 0,0 into TL put TL into thePoints set topLeft of theGrid to TL repeat with Y = 1 to (height of this cd div gridSize) + 1 repeat with X = 1 to (width of this cd div gridSize) + 1 add gridSize to item 1 of TL put return return TL after thePoints end repeat put 0 into item 1 of TL add gridSize to item 2 of TL put return return TL after thePoints end repeat set points of theGrid to thePoints set lineSize of theGrid to gridIntensity end resizeStack Any time you resize the stack, the grid will fill the card accordingly, and since it's disabled and can't be selected, you can drag-select any objects on the card without interacting with the grid. You can change the gridIntensity integer to be higher or lower if you want the grid dots to be thicker or thinner. A combination of a gridSize of 20 and gridIntensity of 2 works pretty well. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/2/14 2:43 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 4/2/14, 4:25 PM, Brahmanathswami wrote: I'm mentoring a young man (13 years old) who is eating up LiveCode like it was granola, but he is used to better tools for the eye candy layer and asked me if there was a grid tool.. (not data grid) It's built-in but invisible. In preferences, go to the Appearance pane and set the grid spacing to whatever you want. In the View menu, be sure Grid is selected. After that, dragging an object will snap it to the nearest gridline. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Screengamma
On 4/2/14 3:45 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 4/2/14, 5:13 PM, Scott Rossi wrote: This doesn't help you, but just to commiserate, PNGs have always been dark for me, even when pasting from other apps. Not sure if they're darker than usual in the recent versions. I didn't notice it much but my client did. They swear it didn't used to be that way until a couple of weeks ago (but they're fuzzy on the exact time.) I haven't noticed any big difference over the last couple of releases, but I wonder if something changed in image processing lately. But apparently you haven't seen any relative difference among the recent LiveCode versions, right? Honestly, I haven't been comparing. The color shift is mostly noticeable if you're dealing with larger photographic images, or combining PNGs and solid colored graphics. I've tried a dozen tools to find some way of tweaking PNGs before importing, but haven't found anything reliable. Sorry. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Formatted text in a field.
Regarding paging of text. I too have wanted to do this and have been flummoxed by the nature of text fields and their visual appearance capabilities. Unfair I know but still annoying. I borrowed a solution from a stack on Livecodeshare (the name of which escapes me, not being at my desk.) Firstly you will need to set the text height as fixed for the fields to get any consistency in the results. Unless there is a large difference in text heights within the field I have found it safe to set a value that accommodates the largest and leave it at that. Sure the visual line spacing is increased, but not so as to make one concerned. Secondly use two fields, one for each page, side by side, grouped with their tops at the same level. The group's height is set to the height of the virtual page that you want, and both field's heights are set to the formatted height of the content of field 1. (At this stage, this is the same for both fields). Now scrolling the group will scroll both fields in sync. To get different page chunks on each page ( and allow for a blank page at the end of the second field) I simply added return Characters to the end of the second field. The number being equal to the group's height divided by the textheight setting of the fields. (Hence the requirement for fixed text height.) Lastly I set the vscroll of the second field to the height of the group. (Remember its height was equal to the formatted height of field 1 but now has extra content and so can be scrolled.) Now the second field (page 2) seems to start where the first field ends. To page, just have a button that increases or decreases the vscroll of the group by the height of the group. It works surprisingly well. James ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Firels as containers
On 4/2/14, 4:44 AM, Muaadh Salih wrote: What I can not undrstand is why it DOES work when : 1- save the stack scripte 2- close 3- open stack (from file menu without quiting LC ) while it DOES NOT ( always goes to card one) when: 1- Save the stack scripte 2- Cose 3- Quit LC 4-Double click on stack stack (from file menu without quiting live code ) The destroystack property of the stack is probably set to false, which is LiveCode's default setting. That means when the stack closes it is kept in RAM. When you re-open it, it will open in its previous state. In addition to Jacque's explanation above, I think at the openStack stage the field exists but has not yet been populated with data. Moving the command to go to the desired card into the openCard handler may provide better results. If not, you can try something like on openStack send gotoCard to me in 1 second end openStack on gotoCard go to card (field aaa of card 1) end gotoCard -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode 6.6.1 (rc-1) very slow on iOS!
Hi Ralph, Thanks for the tip. I felt things were so bad that it was just best for me to roll back my entire computer to my Time Machine Backup from early this morning before I started messing with things. I’m happy with my older environment where everything worked quickly. I think LC 6.6.0 and LC 6.6.1(rc-1) were released too soon. The retina speed issue really needs to be properly addressed, and it wasn’t for these releases. Thanks again, Rick On Apr 2, 2014, at 4:43 PM, Ralph DiMola rdim...@evergreeninfo.net wrote: iOS SDK 5.1 is not recognized in 6.5.2. You must use pre 5.1 SDK. 5.0.2 will work and get the green box back. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Rick Harrison Sent: Wednesday, April 02, 2014 3:59 PM To: How to use LiveCode Subject: Re: LiveCode 6.6.1 (rc-1) very slow on iOS! Hi there, Boy did I ever make a mistake trying to upgrade from LC 6.5.2 to 6.6.0! After the upgrade, I discovered that 6.6.0 wouldn't see the iOS SDKs. Then I discovered in the notes that the fix was in LC 6.6.1 (rc-1). So I started up 6.6.1 (rc-1) and discovered that my app which used to run my animations smoothly now shows incredibly slow stuttering animations! Now as I understand it from reading about this problem, is that the move to retina has created this issue. I tried to go back to using LC 6.5.2 and now that won't find my SDKs. I apparently can't repoint to any of them either! I suggest that a performance switch be installed so that at least we have a choice as to how quickly we would like to have things rendered here. I was just about ready to get my app out the door when this upgrade has quashed my schedule! What was I thinking? *@$#^!*#(@)! Suggestions and any help are greatly appreciated! Thanks, Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode 6.6.1 (rc-1) very slow on iOS!
Rick Harrison wrote: I think LC 6.6.0 and LC 6.6.1(rc-1) were released too soon. The retina speed issue really needs to be properly addressed, and it wasn’t for these releases. Any build labeled RC is for testing. I appreciate your help testing that build and filing bug reports on any repeatable issues you find, so the final release will be as solid as this community's testing can make it. -- 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Formatted text in a field.
Not sure if this helps but as of 6.1 there is a property named pageheights which lists, one per line, the height in pixels of each page of a field. Check the dictionary for more details. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Wed, Apr 2, 2014 at 5:29 PM, James Hale ja...@thehales.id.au wrote: Regarding paging of text. I too have wanted to do this and have been flummoxed by the nature of text fields and their visual appearance capabilities. Unfair I know but still annoying. I borrowed a solution from a stack on Livecodeshare (the name of which escapes me, not being at my desk.) Firstly you will need to set the text height as fixed for the fields to get any consistency in the results. Unless there is a large difference in text heights within the field I have found it safe to set a value that accommodates the largest and leave it at that. Sure the visual line spacing is increased, but not so as to make one concerned. Secondly use two fields, one for each page, side by side, grouped with their tops at the same level. The group's height is set to the height of the virtual page that you want, and both field's heights are set to the formatted height of the content of field 1. (At this stage, this is the same for both fields). Now scrolling the group will scroll both fields in sync. To get different page chunks on each page ( and allow for a blank page at the end of the second field) I simply added return Characters to the end of the second field. The number being equal to the group's height divided by the textheight setting of the fields. (Hence the requirement for fixed text height.) Lastly I set the vscroll of the second field to the height of the group. (Remember its height was equal to the formatted height of field 1 but now has extra content and so can be scrolled.) Now the second field (page 2) seems to start where the first field ends. To page, just have a button that increases or decreases the vscroll of the group by the height of the group. It works surprisingly well. James ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode