Re: Collisions

2012-03-25 Thread Jim Hurley
P.S. That simple picture of the velocities being exchanged applies only in a frame of reference in which the center of mass is fixed. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Need an example of how to use try and catch

2012-03-23 Thread Jim Hurley
Mark, Yes! I agree with you about throw. Do you, or dose anyone, have an example that shows the use of the throw command in conjunction with the try-catch structure? Jim Message: 4 Date: Thu, 22 Mar 2012 22:33:42 -0700 From: Mark Wieder mwie...@ahsoftware.net To:

Re: Text formatting for a slider

2012-03-22 Thread Jim Hurley
It is not just the arrays. It omits things like the foregroundcolor and backgroundcolor. I get a rough count of 34 properties using the properties of for a scrollbar and Richard shows 57. Jim Message: 19 Date: Wed, 21 Mar 2012 18:02:35 -0700 From: Mark Wieder mwie...@ahsoftware.net To:

Need an example of how to use try and catch

2012-03-22 Thread Jim Hurley
The dictionary needs an example of how the try command is used to catch an error. Anyone have an illustration? For example, suppose one wanted to catch an error in the statement: put the {some built-in property of an object] of button soAndso into tProp Where the built in property may not

Re: Need an example of how to use try and catch

2012-03-22 Thread Jim Hurley
Bob, Yes that would be fine, except that I get a compilation error at the line: catch theError, theNum RR says: (try: not a command), char 7 Jim Bob Sneidar wrote: try put foo into myVar put the value of myVarr catch theError, theNum -- breakpoint answer theNum cr line1

Re: Need an example of how to use try and catch

2012-03-22 Thread Jim Hurley
It does give an error here. I get the error message: button Button: execution error at line n/a (Object: object does not have this property) Jim Message: 2 Date: Thu, 22 Mar 2012 09:55:20 -0700 From: Pete p...@mollysrevenge.com To: How to use LiveCode use-livecode@lists.runrev.com

Re: Need an example of how to use try and catch

2012-03-22 Thread Jim Hurley
Thanks Peter. The problem now is what do these bloody error numbers translate into. Is the a list somewhere? When I try: on mouseUP try put the cantdelete of me into temp catch tErr --- if tErr is ?? end try end mouseUP I get an error of 348,0,0 Jim Peter Brigham wrote: The

Re: Need an example of how to use try and catch

2012-03-22 Thread Jim Hurley
The following script will provide a start in finding all the property values of a given object, in this case the button button It starts with the propertynames which is a list of ALL built-in property names in LC. It then attempts to put the value of each of these properties for the given

Re: Need an example of how to use try and catch

2012-03-22 Thread Jim Hurley
-livecode@lists.runrev.com Subject: Re: Need an example of how to use try and catch Message-ID: 4f6b6211.3070...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 3/22/12 12:21 PM, Jim Hurley wrote: Thanks Peter. The problem now is what do these bloody error

Re: Text formatting for a slider

2012-03-21 Thread Jim Hurley
Stephen, What has me puzzled, maybe you have the answer, is a function to return ALL the properties of a given object. As many have said, the properties function is incomplete. For one thing it omits the foregroundcolor of the scrollbar. (I wonder whether those properties in the inspector

Text formatting for a slider

2012-03-19 Thread Jim Hurley
I have a slider in which the showValue is set to true. Unfortunately, the card background is gray and the black slider value is very difficult to read. The inspector for the slider does not display an option for the foreground color. Why not? Using 4W Properties (thank you RIchard) the

Re: Text formatting for a slider

2012-03-19 Thread Jim Hurley
I have found (legendary) Renaldi's SmartProperties invalueable. It allows one to compare side by side the properties to two objects. It is valuable in finding out why two, apparently identical, controls behave or look different. Jim Hurley Message: 24 Date: Mon, 19 Mar 2012 11:42:46 -0700

Scott

2012-03-13 Thread Jim Hurley
Thanks Scott and Colin, LiveCode and this list make it sooo easy. It is almost embarrassing. Does anyone know what program, if there is ONE, that opens when you double click on a jpg or png image in Windows? What happens when you click on an image.jpg? Does Windows present options? Jim

Re: Exporting a snapshot directly to Preview

2012-03-13 Thread Jim Hurley
(Forgot the Subject line.) Thanks Scott and Colin, LiveCode and this list make it sooo easy. It is almost embarrassing. Does anyone know what program, if there is ONE, that opens when you double click on a jpg or png image in Windows? What happens when you click on an image.jpg? Does Windows

Exporting a snapshot directly to Preview

2012-03-12 Thread Jim Hurley
Is it possible to export a snapshot so that it opens directly in Preview? (Where it might be printed.) What would be the comparable image viewer in Windows? (Where it might be printed.) Thanks, Jim Hurley ___ use-livecode mailing list use-livecode

Give some feedback that a field line has been clicked

2012-02-22 Thread Jim Hurley
The subject line says it all. I would like the like the clicked line to do something visual that tells the user that his action has been recognized. Thanks, Jim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Give some feedback that a field line has been clicked

2012-02-22 Thread Jim Hurley
Peter, Perfect. I was trying the following: on mouseUp put the clickline into tClickline set the textStyle of line (word 2 of tClickline) of me to bold wait 1 seconds set the textStyle of line (word 2 of tClickLine) of me to plain end mouseUP But LC ignored the wait time, setting

Re: Find string xxx in field yyy OF THIS CARD

2012-02-02 Thread Jim Hurley
Hi Francis, I have used this, suggestion by a list member some time ago, to restrict the find to a specific field. You might substitute the card id in place of the field id. on mouseUP put the value of the clickline into tText put the id of field theText into tNum find empty find

Re:Revlets on the web

2012-01-27 Thread Jim Hurley
I guess the question must be asked: Given the lack of attention to the problem of running Revlets on the web, is RunRev abandoning Revlets, or just very busy with things that have a higher priority? I can see that they have a lot on their plate. The neglect of the User Samples application is

Re:Revlets on the web

2012-01-25 Thread Jim Hurley
On 1/23/12 2:16 PM, Jim Hurley wrote: I think I knew how to do this at one time. I have an app saved for the Web as a revlet After saving as a standalone (for the web) a page opens in Safari that says it is a test page--BUT NOT APP. Is the app supposed to open in Safari as a RevLet

Re:Revlets on the web

2012-01-25 Thread Jim Hurley
09:56:25 -0600 From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Revlets on the web Message-ID: 4f1ed4a9.8050...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 1/23/12 2:16 PM, Jim Hurley wrote

Re:Revlets on the web

2012-01-25 Thread Jim Hurley
PM, Andre Garzia wrote: Jim, RevLets only work in 32bit mode. There is no way to solve that at this moment. =/ On Wed, Jan 25, 2012 at 10:34 PM, Jim Hurley jhurley0305 at sbcglobal.net wrote: Addendum to previous post. I upgraded FireFox to the latest version and now I get

Revlets on the web

2012-01-23 Thread Jim Hurley
I think I knew how to do this at one time. I have an app saved for the Web as a revlet After saving as a standalone (for the web) a page opens in Safari that says it is a test page--BUT NOT APP. Is the app supposed to open in Safari as a RevLet? The file created on my drive consists as a

Re: OT Password protection of RR server?

2012-01-11 Thread Jim Hurley
to simply lvrmna.com? I hate this stuff. I have no idea what's going on under the hood. Thanks, Jim Hurley Mark, Thank you going into the details. They will be helpful when Heather returns information about my user name and password.. It has been months since I have used cPanel. Wish

Oops

2012-01-11 Thread Jim Hurley
Oops. That last message of mine was intended for Mark, not the entire list. Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http

Re: OT Password protection of RR server?

2012-01-11 Thread Jim Hurley
Mark, Thanks Mark. I did as you suggested without results. I am trying to unprotect the url: jamesphurley.com/District3 but I still get this message: To view this page, you must log in to area “District3” on jamesphurley.com:80. I have no idea what the :80 suffix means. District3

Re: OT Password protection of RR server?

2012-01-11 Thread Jim Hurley
P.S. Below the message (To view this page etc.) are the fields in which to enter a username and password. Jim Mark, Thanks Mark. I did as you suggested without results. I am trying to unprotect the url: jamesphurley.com/District3 but I still get this message: To view this

Rev Online--User samples broken?

2012-01-10 Thread Jim Hurley
Is Rev Online broken? It doesn't seem to be accepting user contributions. Also, the Browse feature recognizes .rev but not .livecode Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: Setting the cursor

2012-01-03 Thread Jim Hurley
: text/plain; charset=ISO-8859-1; format=flowed On 1/2/12 2:37 PM, Jim Hurley wrote: Thanks Ken, I see that the dictionary warns against taking control of the mouse, The discussion concludes with this admonishment: You must use this power only for good. I feel evil. I just wanted

Re: Setting the cursor

2012-01-02 Thread Jim Hurley
Thanks Ken, I see that the dictionary warns against taking control of the mouse, The discussion concludes with this admonishment: You must use this power only for good. I feel evil. I just wanted to simulate the clicking of a button in my help script. I will need to consult my spiritual

Re: OT Password protection of RR server?

2011-12-28 Thread Jim Hurley
Mark, Thank you going into the details. They will be helpful when Heather returns information about my user name and password.. It has been months since I have used cPanel. Wish me luck. Jim Hurley Message: 24 Date: Tue, 27 Dec 2011 17:04:59 -0800 From: Mark Wieder mwie

Re: Re: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-27 Thread Jim Hurley
Roger, Very resourceful of you to discover, not just the typo, but the correction. It is indeed a livecode file so: go url http://www.jamesphurley.com/TextToSpeech.livecode; Jim Hurley Message: 14 Date: Tue, 27 Dec 2011 12:49:24 -0500 From: Roger Eller roger.e.el...@sealedair.com

OT Password protection of RR server?

2011-12-27 Thread Jim Hurley
I am a novice at this sort of thing, so bear with me. I have an account on RR's server. The domain servers are listed as: NS2.ON-REV.COM NS1.ON-REV.COM I would like to password protect a page. Is there anything about the RR server that affects how that should be done? I'm not looking for

Re: Point at which speaking is stopped?

2011-12-26 Thread Jim Hurley
. Thanks again, vert nice, Jim Hurley I have put my Text to Speech app up on the web: go url http://jamesphurley.com/TextToSpeech.livecode; Mike Bonner wrote: Yep, in simplest form its not to bad. I put a bunch of text into a field then to read it, set the itemdelimter to . put

Re: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-26 Thread Jim Hurley
Roger, It is even better for proofreading. I have put my Text to Speech up on the web. Run this in the message box. go url http://www.jamesphurley.com/TextToSpeech.rev; Jim Hurley Roger Eller wrote: I like it! I used your post as the text to read aloud via your script. With a little

Re: is among the words AND find words

2011-12-22 Thread Jim Hurley
in pContent end repeat if pStr is among the words of pContent then return num of words of char 1 to offset(pStr,pContent) of pContent else return 0 end findWord Hugh Senior FLCo Jim Hurley wrote: Strike most of my last message. It appears that most of the function can

Re: is among the words AND find words

2011-12-22 Thread Jim Hurley
Dave, Ah! Those mighty regular expressions. Sm day I'll have to study up on them. Yes that works very nicely. The other method (one that I understand ;) ) now boils down to this: on mouseUp put field 1 into tText put containsWord(time, tText) end mouseUp function containsWord

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Bob et. al. Message: 14 Date: Wed, 21 Dec 2011 08:24:59 -0800 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: is among the words AND find words Message-ID: ba41a52b-8b6e-4dc0-9996-1253098ea...@twft.com Content-Type: text/plain;

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Thanks, Hugh. Unfortunately there are a couple of problems. It won't work for this line: Now is the time. because of the period. Nor for the line Now is the time for all because of the quotes. Stripping the lead and trailing characters is cumbersome, but fairly reliable--except for

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Thanks to all for their help with this. I learned a new key word in token. So far the function below handles everything reasonable I have thrown at it, including finding time in the less than reasonable text in field 1: Now is timely the timeless time.-for, all good. on mouseUp put

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Strike most of my last message. It appears that most of the function can be replaced with an examination of the entire text (dah) as in: put tWord is among the tokens of tList into tTest return tTest This tests the whole text; it is not necessary to test each string containing the

is among the words AND find words

2011-12-20 Thread Jim Hurley
) behave the same with respect to the space delimiter. Or am I missing something? Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http

Re: is among the words AND find words

2011-12-20 Thread Jim Hurley
, but if you set wholeMatches to true and then use wordOffset(time,field myField) then I think you will get the results you are looking for. wordOffset() returns 0 when it fails to find a match. Bob On Dec 20, 2011, at 4:42 PM, Jim Hurley wrote: If the sentence: Now is the time

Re: is among the words AND find words

2011-12-20 Thread Jim Hurley
) or time. or time, or with quotes on either side, etc. I wonder what algorithm LC uses in Find word(s) to find only words. Jim Hurley Thanks Bob, Good thought, but it still doesn't work. The script: on mouseUp put now is the time, for all good men. into tText set wholematches to true

Highlighting tabs

2011-12-10 Thread Jim Hurley
I have a tab menu button. When I open the card I want to set the highlight of a particular tab to true. How do I address that property? Thanks, Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Highlighting tabs

2011-12-10 Thread Jim Hurley
. When I open the card I want to set the highlight of a particular tab to true. How do I address that property? Thanks, Jim Hurley I have a tab menu button. When I open the card I want to set the highlight of a particular tab to true. How do I address that property

Unlocked field receives the mouseUp message

2011-11-28 Thread Jim Hurley
key strokes but not mouse clicks. (See script below.) Is there some orthodoxy by which I can under stand this? Jim Hurley on mouseUP tNum put the locktext of field id 1003 cr after msg box if tNum = 3 then set the locktext of field id 1003 to not the locktext of field id 1003 -- returns

Unlocked field receives the mouseUp message

2011-11-28 Thread Jim Hurley
I'll have to wait for the summary list to respond to answers to that last message, as I still cannot access the RR archives. Heather? Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Unlocked field receives the mouseUp message

2011-11-28 Thread Jim Hurley
Thanks Peter. Actually i do want to just toggle the locktext of the field. I use the field to proofread the text by reading from the clickchunk to the end using revspeak. If I encounter an error while speaking, I want to be able to easily click the field again to allow for edit. The control

Re: Accessing archives

2011-11-26 Thread Jim Hurley
Wilhelm et. at. Here is Heather's response to my question last Friday: Jim Hurley On Nov 25, 2011, at 9:46 AM, use-livecode-requ...@lists.runrev.com wrote: Message: 11 Date: Fri, 25 Nov 2011 07:59:33 + From: Heather Nagey heat...@runrev.com To: How to use LiveCode use-livecode

<    1   2