Re: Garbage Collection

2015-02-22 Thread Terence Heaford
Thanks Terry > On 22 Feb 2015, at 12:00, Fraser Gordon wrote: > > So, to answer your question, it doesn't look like it should impact > LiveCode at all. The one place it may have an effect is if a third-party > extension uses these technologies. ___ u

Re: Laying out text

2015-02-22 Thread Terence Heaford
Can it work in some way with the templateField. In that way a field would not have to exist? All the best Terry > On 22 Feb 2015, at 20:35, Paul Hibbert wrote: > > You should be able to do this with measureText, check the dictionary for the > details. You'll probably just need a repeat loo

Re: Laying out text

2015-02-22 Thread Paul Hibbert
Agreed, I worded the explanation badly, I was testing against referring to a field as per the original topic and didn't explain well enough. Paul > On Feb 22, 2015, at 8:55 PM, Scott Rossi wrote: > > Actually, the formattedWidth returns the amount of space occupied by the > field's text, regar

Re: Laying out text

2015-02-22 Thread Scott Rossi
Actually, the formattedWidth returns the amount of space occupied by the field's text, regardless of the margins, if you refer to a textChunk, like "line 1 of field 1". The margins value affects the result if you refer to the field itself. Regards, Scott Rossi Creative Director Tactile Media, UX

Re: Laying out text

2015-02-22 Thread Paul Hibbert
> On Feb 22, 2015, at 5:18 PM, Dr. Hawkins wrote: > > measureText . . . > > interesting. > > Should "width" give the same dimension as the formattedWidth if one put the > text into the field? No, if you use measureText it only measures the text according to the parameters that you supply, it

Re: Scrolling List selected lines

2015-02-22 Thread Peter Haworth
I vaguely remember seeing mention of that on the list but it's not in the dictionary. How does it work? On Sun Feb 22 2015 at 4:21:21 PM wrote: > When does the "messageMessage" come into play? > > > Craig > > > > -Original Message- > From: J. Landman Gay > To: How to use LiveCode > Se

Re: Scrolling List selected lines

2015-02-22 Thread Peter Haworth
I like that idea! On Sun, Feb 22, 2015, 3:51 PM Martin Koob wrote: > Too bad selectionChanged does not work for fields like it does for DataGrid > where it gives previously highlighted index as a parameter. That could be > a > feature request. > > selectionChanged > - selectionChanged pHilitedI

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
measureText . . . interesting. Should "width" give the same dimension as the formattedWidth if one put the text into the field? And can this one be done without opening the card containign the field -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 2:54 PM, Peter Haworth wrote: > Hmmm, I see it in my copy of 7.0.2(rc1), along with measureunicodeText > It seems that "object" was clicked rather than "all". I've never done that before . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: Scrolling List selected lines

2015-02-22 Thread dunbarx
When does the "messageMessage" come into play? Craig -Original Message- From: J. Landman Gay To: How to use LiveCode Sent: Sun, Feb 22, 2015 3:36 pm Subject: Re: Scrolling List selected lines On 2/22/2015 2:19 PM, Peter Haworth wrote: > Nice idea but alas, no joy with before mouseD

Re: Scrolling List selected lines

2015-02-22 Thread Martin Koob
Too bad selectionChanged does not work for fields like it does for DataGrid where it gives previously highlighted index as a parameter. That could be a feature request. selectionChanged - selectionChanged pHilitedIndexes, pPreviouslyHilitedIndexes You could use a DataGrid to get the previously h

Re: Scrolling List selected lines

2015-02-22 Thread Martin Koob
Another way would be to use mouseEnter to get the SelectedLines value before the mouse click but you would still have to put it in the script local so probably no advantage. Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-List-selected-lines-tp4

Re: Laying out text

2015-02-22 Thread J. Landman Gay
On 2/22/2015 4:49 PM, Dr. Hawkins wrote: On Sun, Feb 22, 2015 at 12:35 PM, Paul Hibbert wrote: You should be able to do this with measureText, check the dictionary for the details. You'll probably just need a repeat loop with a function something like… Which is missing from the 7.0.2 dicti

Re: Laying out text

2015-02-22 Thread Peter Haworth
Hmmm, I see it in my copy of 7.0.2(rc1), along with measureunicodeText On Sun Feb 22 2015 at 2:49:20 PM Dr. Hawkins wrote: > On Sun, Feb 22, 2015 at 12:35 PM, Paul Hibbert wrote: > > > > > You should be able to do this with measureText, check the dictionary for > > the details. You'll probably

Re: Printing just one card to PDF [was Re: The owner of a selected control - a mystery]

2015-02-22 Thread Peter Haworth
Hi Graham, If this is for a manual, have you thought about taking a screenshot of the screen and pasting it into your favorite word processor? Almost all of them can create a pdf file these days. If you are on a Mac, you put a snapshot of a screen by holding down the shift-control-command-4 keys.

Re: Printing just one card to PDF [was Re: The owner of a selected control - a mystery]

2015-02-22 Thread Terry Judd
Hey Graham - I¹m pretty confident that you can get what you want with a bit of fiddling. If your embedded images have large native dimensions relative to their constrained LC dimensions then you should also be able to support a bit of enlargement (of the PDF) as well without any visible loss of ima

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 12:35 PM, Paul Hibbert wrote: > > You should be able to do this with measureText, check the dictionary for > the details. You'll probably just need a repeat loop with a function > something like… > Which is missing from the 7.0.2 dictionary . . . -- Dr. Richard E. Hawk

Printing just one card to PDF [was Re: The owner of a selected control - a mystery]

2015-02-22 Thread Graham Samuel
Thanks Jacque, and Terry too. I expect I’ll hack it in the end by following your advice. I think now that I can use the print into rect version to actually enlarge the size of the card on the virtual paper, which will generate the hi-res result I want. I will try that. I just wanted a PDF repr

Re: Can LiveCode apps be Notification Center enabled to appear in the Today view extension?

2015-02-22 Thread Monte Goulding
On 23 Feb 2015, at 8:06 am, Matthias Rebbe | M-R-D wrote: > And there is an external from Monte available called mergNotifiy which, if i > understood the description correctly, is able to send notifications to the > notification center. > see http://www.mergext.com Actually there are two dif

Re: The owner of a selected control - a mystery

2015-02-22 Thread Terry Judd
OK, maybe it wasn¹t using print break that solved the problem for me. The other thing in my script was to define a rect and use the print card into rect form of the print card command as Jacquie suggests. Anyway, the script I provided works, and avoids the Œextra page¹ problem, so maybe start ther

Re: A nice bit of syntax

2015-02-22 Thread Geoff Canyon
On Sun, Feb 22, 2015 at 11:47 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Geoff, > > While this looks very nifty, it definitely isn't easier to program. > LiveCode is much easier (IMHO). We should never be able to do this with > LiveCode, simply because this isn't how xTal

Re: Can LiveCode apps be Notification Center enabled to appear in the Today view extension?

2015-02-22 Thread Matthias Rebbe | M-R-D
Rolf Kocherhans posted some time ago (10/2013) a sample livecode script for this. It uses AppleScript. on mouseUp put "LiveCode" && the environment into tTitle put "vers." && revAppVersion() into tSubtitle put long system time & "," && the long system date into tNotification displayNotif

Re: Because LC can't do two things at once.

2015-02-22 Thread Peter Haworth
Whoops, misspelled Thierry's name, should be Douez On Sun Feb 22 2015 at 12:43:28 PM Peter Haworth wrote: > Just discovered that the King of regex/Livecode, Thierry Doux, provided an > update to the PCRE library used by LC in version 6.5.0 which included many > new features including more Unicod

Re: Because LC can't do two things at once.

2015-02-22 Thread Peter Haworth
Just discovered that the King of regex/Livecode, Thierry Doux, provided an update to the PCRE library used by LC in version 6.5.0 which included many new features including more Unicode options than I outlined earlier. It updated the PCRE library from 6.7 to 8.3 which sounds like a huge upgrade an

Re: Scrolling List selected lines

2015-02-22 Thread J. Landman Gay
On 2/22/2015 2:19 PM, Peter Haworth wrote: Nice idea but alas, no joy with before mouseDown. I think the OS must do the highlighting even before LC gets into the loop. That's too bad, I had high hopes. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software

Re: Laying out text

2015-02-22 Thread Paul Hibbert
Terence, You should be able to do this with measureText, check the dictionary for the details. You'll probably just need a repeat loop with a function something like… function fieldLength pText put measureText(pText,fld "myDefaultField") into fLength return fLength end fieldLength …then wor

Re: Scrolling List selected lines

2015-02-22 Thread Peter Haworth
Right, that's what I'm doing (except using a script local not a cprop). Was just hoping there might be a message that would avoid having to do that but looks like not. On Sun Feb 22 2015 at 12:28:18 PM wrote: > Why not store the current selectedLine when it is actually selected, in a > custom pr

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 12:32 AM, Terence Heaford wrote: > Is it possible in LC to work out the size (width) of the field required to > hold the text without firstly creating the field or is it necessary to > place all the fields on the screen, work out the formattedWidth and then > layout the fi

Re: Scrolling List selected lines

2015-02-22 Thread dunbarx
Why not store the current selectedLine when it is actually selected, in a custom property. In other words, lock away that information really early, instead of merely early. Craig Newman -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Sun, Feb 22, 2015 3:20 pm S

Re: Scrolling List selected lines

2015-02-22 Thread Peter Haworth
Nice idea but alas, no joy with before mouseDown. I think the OS must do the highlighting even before LC gets into the loop. On Sun Feb 22 2015 at 12:14:48 PM J. Landman Gay wrote: > On 2/22/2015 1:11 PM, Peter Haworth wrote: > > I'm trying to find a message that is sent when I click on a line

Re: Scrolling List selected lines

2015-02-22 Thread J. Landman Gay
On 2/22/2015 1:11 PM, Peter Haworth wrote: I'm trying to find a message that is sent when I click on a line in a scrolling list field that happens before the selectedline property changes to show the line that was just clicked. I've tried mouseDown and selectionChanged but the selectedLines prop

Re: The owner of a selected control - a mystery

2015-02-22 Thread J. Landman Gay
The printPaperSize reports the physical size of the sheet of paper. You generally don't need to mess with that. Either restart LC to get rid of the setting, or use resetPrinting from the message box to put everything back to defaults. Remove that line of code. If your stack is smaller than the

Re: Because LC can't do two things at once.

2015-02-22 Thread Bob Sneidar
I have stated before that if you only need to do two things at once, and not many, you can simply create a standalone app that you can send messages to (with Windows you would probably need socket communications) and then that app would handle the process and return whatever data you needed in a

Scrolling List selected lines

2015-02-22 Thread Peter Haworth
I'm trying to find a message that is sent when I click on a line in a scrolling list field that happens before the selectedline property changes to show the line that was just clicked. I've tried mouseDown and selectionChanged but the selectedLines property has already changed when I get them. Th

Re: Because LC can't do two things at once.

2015-02-22 Thread Peter Haworth
Hi Peter, The text you referred to describes the Javascript version of regex whereas Livecode uses the PCRE library. You can search for unicode characters in a regex using the \p, \P, or \X character classes, but the library has to be compiled to include the PCRE regex unicode libraries (I think) f

Re: A nice bit of syntax

2015-02-22 Thread Mark Schonewille
Hi Geoff, While this looks very nifty, it definitely isn't easier to program. LiveCode is much easier (IMHO). We should never be able to do this with LiveCode, simply because this isn't how xTalk languages function. One important difference is that AppleScript uses typed variables and even t

Re: Because LC can't do two things at once.

2015-02-22 Thread Peter M. Brigham
Buried in that list (see below) is an item noting that even the JavaScript version of regex lacks Unicode support. Does this mean that the LC version of regex will soon no longer work? Is this being addressed in Edinburgh? Or am I misinterpreting the situation? -- Peter Peter M. Brigham pmb...

Can LiveCode apps be Notification Center enabled to appear in the Today view extension?

2015-02-22 Thread Ethan Lish
Can LiveCode apps be Notification Center enabled to appear in the Today view extension? If yes, is there a reference document? If no, is this a roadmap item? E ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: Because LC can't do two things at once.

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 7:09 AM, Martin Koob wrote: > I have found another one that I found very helpful to get a basic > understanding of regex. > I actually have a copy of O'Riley's book on it somewhere. And another one on csh or tcsh or both. One is in print, the other on a cd. -- Dr. Ri

Re: Because LC can't do two things at once.

2015-02-22 Thread Michael Doub
Thanks for pointing that out Kay. I was curious to understand the differences and I found the following which might be of interest to folks. I cut it from http://www.regular-expressions.info/javascript.html . As a casual regex user I have never had a problem, but your point is still very va

A nice bit of syntax

2015-02-22 Thread Geoff Canyon
Just came across this in AppleScript: tell application "System Events" set {procesList, pidList} to the {name, unix id} of (every process whose name contains "Myapp_action_download") end tell There are multiple niceties here: in-line list filtration, multiple simultaneous property retr

Re: Because LC can't do two things at once.

2015-02-22 Thread Kay C Lan
On Sun, Feb 22, 2015 at 5:59 AM, Michael Doub wrote: > > http://www.regular-expressions.info/charclasssubtract.html -- great > tutorials and lots of examples > https://regex101.com -- my favorite testing engine, I love the way it > explains what is actually going on > http://www.regexr.com --

Re: Because LC can't do two things at once.

2015-02-22 Thread Martin Koob
Thanks for the sites Michael. I have found another one that I found very helpful to get a basic understanding of regex. http://regexone.com Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Because-LC-can-t-do-two-things-at-once-tp4689071p4689147.html Se

Re: Because LC can't do two things at once.

2015-02-22 Thread Martin Koob
I don't speak regex myself, I am more like a tourist in Regexia and using google as my tourist phrase book. I google something like 'regex extract between two single quotes' then browse the results and try out the regex statements I find on my source text. I usually find something that works and

Re: The owner of a selected control - a mystery

2015-02-22 Thread Peter M. Brigham
On Feb 21, 2015, at 3:14 PM, J. Landman Gay wrote: > On 2/21/2015 10:11 AM, Graham Samuel wrote: >> 1. When you print to a pdf file, you often get a blank page. I have >> not yet found that the solution offered (putting a ‘print break’ into >> the script) works for me. > > If the bounds of the pr

Re: Garbage Collection

2015-02-22 Thread Fraser Gordon
On 22/02/2015 11:48, Terence Heaford wrote: > How does this impact LiveCode? > > http://iphone.appleinsider.com/articles/15/02/20/apple-says-mac-app-makers-must-transition-to-arc-memory-management-by-may > >

Garbage Collection

2015-02-22 Thread Terence Heaford
How does this impact LiveCode? http://iphone.appleinsider.com/articles/15/02/20/apple-says-mac-app-makers-must-transition-to-arc-memory-management-by-may All the best

Re: The owner of a selected control - a mystery

2015-02-22 Thread Graham Samuel
Not quite sure I understand this (I did once, but i’ve got rusty - oil can!). I assumed that the following code would exactly fill a page: set the printCardBorders to true set the printPaperSize to (the width of this card) & "," & (the height of this card) set the printMargins to "0,0,0

WebCams revisited

2015-02-22 Thread Richmond
What a load of XX: http://forums.livecode.com/viewtopic.php?f=8&t=13449&p=120571#p120571 Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription prefer

Laying out text

2015-02-22 Thread Terence Heaford
I have a variable amount of fields (approx. 20) to layout in a table like format on screen. These form the legend of a chart. The number of fields in the width and height depends on the size of the card which is variable as the users adjust the window size. Is it possible in LC to work out the