Re: Wildcards ???

2013-08-26 Thread Richmond
On 08/27/2013 05:53 AM, Kay C Lan wrote: If you really want to do Search & Replace based on patterns, you could write your own script in LC using matchText() but it would probably be faster and easier to confirm that correct replaces were taking place if, on OS X, you used the FREE TextWrangler &

Re: Radio / checkbox button scaloing

2013-08-26 Thread Christer Pyyhtiä
Does not work from script either. Can you demonstrate it? I think the best way is to build own tick box system. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Richard- Monday, August 26, 2013, 7:00:28 PM, you wrote: > Oh, I'll happily wait. I just thought that it was supposed to be a > regexp. Will the other work now? The filter command doesn't work with regex statements yet. The adjusted form I posted will work because the filter command uses strin

Re: Radio / checkbox button scaloing

2013-08-26 Thread Christer Pyyhtiä
No, does not work (from msg command). ___ 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: Wildcards ???

2013-08-26 Thread Kay C Lan
If you really want to do Search & Replace based on patterns, you could write your own script in LC using matchText() but it would probably be faster and easier to confirm that correct replaces were taking place if, on OS X, you used the FREE TextWrangler & grep: http://www.barebones.com/support/Te

Re: The encoding property

2013-08-26 Thread Peter Haworth
Thanks Monte. I noticed the IDE props (the ones beginning with "rev" I think). Will be interesting to see how things shape up after the parser rewrite. Pete lcSQL Software On Mon, Aug 26, 2013 at 3:06 PM, Monte Goulding wrote: > On 27/08/2013, at 7:46 AM, Peter Haworth

Re: multiple arguments for filter?

2013-08-26 Thread Dr. Hawkins
On Mon, Aug 26, 2013 at 3:36 PM, Mark Wieder wrote: > Monday, August 26, 2013, 3:15:29 PM, you wrote: > >> This was my reaction, too. WHy not ".*\(GIF|gif|PNG|png|JPG|jpg|\)" > > Jan's working on it. Give it time. Oh, I'll happily wait. I just thought that it was supposed to be a regexp. Will

Re: The encoding property

2013-08-26 Thread Peter Haworth
On Mon, Aug 26, 2013 at 6:06 PM, Richard Gaskin wrote: > I don't mean to sound pedantic, but serious question: what is your goal > with that? This is for the next release of my lcStackBrowser plugin. It will include the ability to display and edit properties within the main lcStackBrowser wind

Re: The encoding property

2013-08-26 Thread Richard Gaskin
Peter Haworth wrote: My goal is to get a list of the valid property names for each Livecode object (stack, card, field, etc) I don't mean to sound pedantic, but serious question: what is your goal with that? Sometimes in our imperfect world we find limitations in the engine, and a hard-wir

Re: The encoding property

2013-08-26 Thread Peter Haworth
Hi Jacque, Those are the only two my script crashed on. I was getting the of the templateField, where is a line from the propertynames, executed within a try/catch block in an attempt to get a full list of properties for a filed, button, stack, card, etc. Some got caught in the catch statement

Re: The encoding property

2013-08-26 Thread Peter Haworth
My goal is to get a list of the valid property names for each Livecode object (stack, card, field, etc) I'm not using "the properties" because it does not return a complete list of property names. So my solution, in pseudo code is: for each propertyname in the propertynames Get the propertyna

Re: The encoding property

2013-08-26 Thread Monte Goulding
On 27/08/2013, at 7:46 AM, Peter Haworth wrote: > Here's the list of entries in propertynames that have no matching entry in > the dictionary. There's quite a few understandable omissions such as > "abbrev", "english","system"(why are they in the propertynames?). Maybe I > should put this into

Re: The encoding property

2013-08-26 Thread Richard Gaskin
Peter - Not all properties are available for all object types; indeed, many are global properties. What is your goal, and is "the properties" the best way to reach it? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode develope

Re: The encoding property

2013-08-26 Thread Peter Haworth
On Mon, Aug 26, 2013 at 3:06 PM, Björnke von Gierke wrote: > i think your list is overzealous. For example considering "abbr", > "abbrev", "abbreviated" (from teh abbreviated docu entry): > > Note: The abbreviated keyword is implemented internally as a property, and > appears in the propertyNames

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Mark- Monday, August 26, 2013, 2:00:04 PM, you wrote: >>> filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png Oops. I really meant to type "*.[GJP][IPN][FG]" -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-live

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Richard- Monday, August 26, 2013, 3:15:29 PM, you wrote: > This was my reaction, too. WHy not ".*\(GIF|gif|PNG|png|JPG|jpg|\)" Jan's working on it. Give it time. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@li

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Jacque- Monday, August 26, 2013, 2:38:49 PM, you wrote: > On 8/26/13 4:30 PM, Devin Asay wrote: >> >> On Aug 26, 2013, at 3:15 PM, Mark Talluto wrote: >> >>> >>> On Aug 26, 2013, at 2:00 PM, Mark Wieder >>> wrote: >>> Jacque- Monday, August 26, 2013, 1:17:22 PM, you wrote: >>

Re: multiple arguments for filter?

2013-08-26 Thread Dr. Hawkins
On Mon, Aug 26, 2013 at 2:38 PM, J. Landman Gay wrote: > It will also catch ".JIF". We hope no one has files with extension "PIG". > ".GIG" is optional. This was my reaction, too. WHy not ".*\(GIF|gif|PNG|png|JPG|jpg|\)" -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: The encoding property

2013-08-26 Thread Björnke von Gierke
i think your list is overzealous. For example considering "abbr", "abbrev", "abbreviated" (from teh abbreviated docu entry): Note: The abbreviated keyword is implemented internally as a property, and appears in the propertyNames. However, it cannot be used as a property in an expression, nor wi

Re: multiple arguments for filter?

2013-08-26 Thread Mark Talluto
On Aug 26, 2013, at 2:30 PM, Devin Asay wrote: > Mark, > > I'm no regex expert, but I think what this is saying is: > > filter the list, including only strings that end with a dot followed by 1st > character in [GJP], 2nd character in [IPN], last character in [FG]. > > Clever indeed. > > D

Re: The encoding property

2013-08-26 Thread Peter Haworth
Here's the list of entries in propertynames that have no matching entry in the dictionary. There's quite a few understandable omissions such as "abbrev", "english","system"(why are they in the propertynames?). Maybe I should put this into a QCC report? _hscrollbarid _ideoverride _unplacedgroupid

Re: The encoding property

2013-08-26 Thread J. Landman Gay
On 8/26/13 4:22 PM, Peter Haworth wrote: I've entered bug# 11129 at the QCC. Came across another property that causes the same problem - flaggedRanges. It may crash on other unicode-related functions too. I was crashing all over the place trying to use the template field to parse and revise

Re: multiple arguments for filter?

2013-08-26 Thread J. Landman Gay
On 8/26/13 4:30 PM, Devin Asay wrote: On Aug 26, 2013, at 3:15 PM, Mark Talluto wrote: On Aug 26, 2013, at 2:00 PM, Mark Wieder wrote: Jacque- Monday, August 26, 2013, 1:17:22 PM, you wrote: filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png That's pretty clever. It is

Re: multiple arguments for filter?

2013-08-26 Thread Devin Asay
On Aug 26, 2013, at 3:15 PM, Mark Talluto wrote: > > On Aug 26, 2013, at 2:00 PM, Mark Wieder wrote: > >> Jacque- >> >> Monday, August 26, 2013, 1:17:22 PM, you wrote: >> filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png >> >>> That's pretty clever. >> >> It is. I'd like

Re: The encoding property

2013-08-26 Thread Peter Haworth
I've entered bug# 11129 at the QCC. Came across another property that causes the same problem - flaggedRanges. That's also interesting because flaggedRanges is not in the dictionary. I think I'm going to make a simple stack that checks the output of the propertynames against the Bjornke's SQLite

Re: multiple arguments for filter?

2013-08-26 Thread Mark Talluto
On Aug 26, 2013, at 2:00 PM, Mark Wieder wrote: > Jacque- > > Monday, August 26, 2013, 1:17:22 PM, you wrote: > >>> filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png > >> That's pretty clever. > > It is. I'd like to take credit for it, but it's Jerry Daniels' doing. Can you cl

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Jacque- Monday, August 26, 2013, 1:17:22 PM, you wrote: >> filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png > That's pretty clever. It is. I'd like to take credit for it, but it's Jerry Daniels' doing. -- -Mark Wieder mwie...@ahsoftware.net __

Re: multiple arguments for filter?

2013-08-26 Thread J. Landman Gay
On 8/26/13 2:18 PM, Jan Schenkel wrote: Hi Richard et al, My day-job got in the way these past few weeks; half of my team was on holiday and another member just had a new daughter to celebrate. Needless to say I've been plugging all the holes there and didn't have time to do the next set of ch

Re: multiple arguments for filter?

2013-08-26 Thread J. Landman Gay
On 8/26/13 1:12 PM, Mark Wieder wrote: You can also sometimes get by with filter tList with ".*\.[GJP][IPN][FG]" -- just .gif, .jpg, .png That's pretty clever. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com

Re: The encoding property

2013-08-26 Thread J. Landman Gay
On 8/26/13 2:14 PM, Peter Haworth wrote: If you try to get the encoding of the templatefield, LC aborts with no error message. Getting the encoding of a real field works OK. Happens in 5.5.0, thru 6.1.1(rc3). I realize this is pretty obscure but I do have a need to do this and wondering if any

Re: multiple arguments for filter?

2013-08-26 Thread Dr. Hawkins
On Mon, Aug 26, 2013 at 12:47 PM, Mark Wieder wrote: > Jan- > > Monday, August 26, 2013, 12:18:50 PM, you wrote: > >> another member just had a new daughter to celebrate. > > Now *that's* taking celebration to a whole new level. Actually, wild celebrations quite often result in new children . .

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Jan- Monday, August 26, 2013, 12:18:50 PM, you wrote: > another member just had a new daughter to celebrate. Now *that's* taking celebration to a whole new level. > That's the beauty of open source: now we can add features to the > engine if we pull up our sleeves... Yay for Jan and his lack

Re: The encoding property

2013-08-26 Thread Mark Wieder
Pete- Monday, August 26, 2013, 12:14:39 PM, you wrote: > If you try to get the encoding of the templatefield, LC aborts with no > error message. Getting the encoding of a real field works OK. Happens in > 5.5.0, thru 6.1.1(rc3). > I realize this is pretty obscure but I do have a need to do thi

Re: multiple arguments for filter?

2013-08-26 Thread Jan Schenkel
Hi Richard et al, My day-job got in the way these past few weeks; half of my team was on holiday and another member just had a new daughter to celebrate. Needless to say I've been plugging all the holes there and didn't have time to do the next set of changes to the 'filter' command. At any rat

The encoding property

2013-08-26 Thread Peter Haworth
If you try to get the encoding of the templatefield, LC aborts with no error message. Getting the encoding of a real field works OK. Happens in 5.5.0, thru 6.1.1(rc3). I realize this is pretty obscure but I do have a need to do this and wondering if anyone else has come across this bug? Pete lc

Re: multiple arguments for filter?

2013-08-26 Thread Mark Wieder
Monday, August 26, 2013, 10:42:42 AM, you wrote: > I thought I had seen references here to using OR with filter (on a container). Not yet. It's in the pipeline, though. For now I do something like put tList into tList1 filter tList1 with tExpression1 put tList into tList2 filter tList2 with tExp

multiple arguments for filter?

2013-08-26 Thread Dr. Hawkins
I thought I had seen references here to using OR with filter (on a container). Is there a way to do this; I can't find it in the docs, and my experiment failed. At the moment, I'm looping around with a repeat and a switch for the regexps. It's not a performance section of the code, but it's *so*

Re: Wildcards ???

2013-08-26 Thread Richmond
On 08/26/2013 07:34 PM, Jan Schenkel wrote: See the documentation for the 'filter' command. In its current incarnation, that command uses 'wildcard' expressions to decide which lines to retain and which to discard. HTH, Jan Schenkel = Quartam Reports & PDF Library for LiveCode www.qu

Re: Any ideas on working out number of characters(approx) that can be entered into a field

2013-08-26 Thread Geoff Canyon
Ha, of course. The documentation tricked me with its very limited example. On Mon, Aug 26, 2013 at 11:31 AM, Jan Schenkel wrote: > Because the physical split may happen in the middle of a logical line, if > the field is set to wrap. > The 'pageRanges' mirrors the 'pageHeights' property in its lo

Re: Wildcards ???

2013-08-26 Thread Jan Schenkel
See the documentation for the 'filter' command. In its current incarnation, that command uses 'wildcard' expressions to decide which lines to retain and which to discard. HTH, Jan Schenkel   = Quartam Reports & PDF Library for LiveCode www.quartam.com = "As we grow older, we grow bot

Re: Wildcards ???

2013-08-26 Thread Mike Kerner
* is one such, I know, since that was what caused me to file the bug report to begin with. On Mon, Aug 26, 2013 at 12:14 PM, Richmond wrote: > "The find and replace was always using wildcards() even when Use Regular > Expressions was false. The find > stack has been updated to allow users to cho

Re: Any ideas on working out number of characters(approx) that can be entered into a field

2013-08-26 Thread Jan Schenkel
Because the physical split may happen in the middle of a logical line, if the field is set to wrap. The 'pageRanges' mirrors the 'pageHeights' property in its logic to find out which chunk of the field represents a page. Jan Schenkel.   = Quartam Reports & PDF Library for LiveCode www.quart

Re: Any ideas on working out number of characters(approx) that can be entered into a field

2013-08-26 Thread J. Landman Gay
On 8/26/13 11:22 AM, Geoff Canyon wrote: On Mon, Aug 26, 2013 at 11:07 AM, J. Landman Gay wrote: See the "pageRanges" property in the dictionary. It gives a list of character ranges that fit the height of the field. Crazy question -- what's the benefit of returning a character range instead

Re: Any ideas on working out number of characters(approx) that can be entered into a field

2013-08-26 Thread Geoff Canyon
On Mon, Aug 26, 2013 at 11:07 AM, J. Landman Gay wrote: > See the "pageRanges" property in the dictionary. It gives a list of > character ranges that fit the height of the field. Crazy question -- what's the benefit of returning a character range instead of a line range? ___

Wildcards ???

2013-08-26 Thread Richmond
"The find and replace was always using wildcards() even when Use Regular Expressions was false. The find stack has been updated to allow users to choose the type of search from Regular Expressions, Wildcards or Plain Text." What symbols must one use for a wildcard? Richmond. _

Re: Any ideas on working out number of characters(approx) that can be entered into a field

2013-08-26 Thread J. Landman Gay
On 8/26/13 1:37 AM, planix wrote: Hi All, I am looking for ways to determine the approximate number of characters that will fit into a text field of fixed height and width. I am guessing there is some way of doing this by working with the line height, font size, and the height and width of the

Re: Radio / checkbox button scaloing

2013-08-26 Thread dunbarx
Hi. Sure. set the width of button "yourButton" to the formattedWidth of button "yourButton" Craig Newman -Original Message- From: Christer Pyyhtiä To: use-livecode Sent: Mon, Aug 26, 2013 8:25 am Subject: Radio / checkbox button scaloing What's the way to scale the radio / che

Re: How to build webcam application

2013-08-26 Thread paolo mazza
Mark, as far as I know at the moment there are only 2 ways to show a LIVE video streaming in livecode: 1 - use the QuickTime player provided by LiveCode and connect to a QuickTime streaming server using the rtsp protocol 2 - set up a RevBrowser window in you app, open a web page with a player (JVP

Radio / checkbox button scaloing

2013-08-26 Thread Christer Pyyhtiä
What's the way to scale the radio / checkbox buttons according to button label text size? rgds ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http:/

Re: How to build webcam application

2013-08-26 Thread Björnke von Gierke
there's existing services for that, like twitch.tv or livestream.com On 26.08.2013, at 01:01, Mark wrote: > Hi all, > I was wondering how to go about building a desktop application that would > allow people to watch my band play live at a gig. > These people are not able to attend the gig, so I

Re: Implications of DOJ vs Apple for developers?

2013-08-26 Thread Mark Wilcox
> Publishers could set their price, they just couldn't set it any lower than > was available in Apple's store. Apple very clearly did collude with publishers to try to set some minimum pricing for ebooks, which is most certainly against the law. The DoJ is bonkers because the minimum pricing

Re: snapshot - iOS - upload image

2013-08-26 Thread Neil Roger
Hi Jim, Could you try something like the following to see if you are able to upload then view an image - on mouseUp --this just makes sure the pic is of a reasonable size to work with set the width of the templateImage to 250 set the height of the templateImage to 250 set the lockLoc

Re: Any ideas on working out number of characters(approx) that can be entered into a field

2013-08-26 Thread Scott Morrow
You should be able to fill each "palm card" more or less exactly. This script should get you started. -- copy all the styled text into the first palm card field set the htmlText of fld "PalmCard" to the htmlText of fld "AllText" -- the text needs to be broken into palm card sized chunks pu