MouseRelease (was Scrolling a Card?)
Howdy, Date: Fri, 20 Feb 2004 20:09:37 -0600 From: J. Landman Gay [EMAIL PROTECTED] Subject: Re: Scrolling a Card? On 2/20/04 5:53 PM, Christopher Mitchell wrote: Could you please explain under what circumstances this handler would require to be explicitly declared? This seems like something implicit to the engine, and if not handled reliably then how many other things need to be re-defined? That's not exactly how it works; it isn't about defining but rather about access. - Not sure what you're thinking of here. Christopher's actual post looks like this: * Date: Fri, 20 Feb 2004 17:53:43 -0600 From: Christopher Mitchell [EMAIL PROTECTED] Subject: Re: Scrolling a Card? Klaus, Could you please explain under what circumstances this handler would require to be explicitly declared? This seems like something implicit to the engine, and if not handled reliably then how many other things need to be re-defined? Yours, Chris On Feb 20, 2004, at 4:17 PM, Klaus Major wrote: on mouserelease mouseup end mouserelease ** ...So, I think the only thing he was referring to was the doubling up of the mouse events, IOW, he was questioning why a mouseUp, then a mouserelease that refers to the mouseUp. It does look suspiscious if he doesn't know what's actually happening Here's hoping he reads on to this. For Christopher: Here's the deal. In Rev, mouseUp messages only take place within the actual control object. IOW, if the user drags the mouse ouside the object and releases, the _object_ not get a mouseUp message. Consequently, if you want to be sure Rev gets the mouseUp message (or some other message related to releasing outside the object), you need to handle the mouseRelease message as well. Take a look at mouseRelease in the dictionary. All the best, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scrolling a Card?
Date: Sat, 21 Feb 2004 00:28:38 -0700 From: Dar Scott [EMAIL PROTECTED] Subject: Re: Scrolling a Card? Are you setting the scroll on the card group? --- Yep. A map with both scrollbars and a grab ability is the model I'm looking for. Gives the user more options, i.e., all-axis fine scrolling control. Like this: I want to scroll the card group by faking a grab. Obviously you can't grab the group, because the scrollbar objects themselves would move with it. No good. What needs to happen is to grab the _scroll_ of the group such that the _content_ sticks to the mouse, and the scrollbars follow it. It gives the user fine all-axis control, like a grab. But, in order for it to work within the scroll limits, I figured you have to bound it by those limits. I want it to stop scrolling safely when you get to a max or min scroll limit, IOW, grabbing and moving when it gets there won't make it move any futher. The problem has been that executing a grab using the mouse offset and a max/min expression with the scroll (hScroll,vScroll) causes it to move like the scrollbars work, i.e., opposite the drag direction, rather than sticking to the mouse, i.e., moving exactly with it. Grab and drag it a ways, release and move back, grab an drag it some more, etc. Thus, it needs to operate like a normal grab of an object, _but_ work with the actual scroll, moving the thumbs with it, and in the proper way. Not so easy to do. I haven't seen an example. Thanks again, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: MouseRelease (was Scrolling a Card?)
Ah, thanks, Ken... yes this is what I was asking about. Makes sense but is not something I would have thought about, and a few cycles beyond me at this point. Something to archive for the future. :)_~ Yours, Chris On Feb 21, 2004, at 2:19 AM, Ken Norris wrote: Howdy, Date: Fri, 20 Feb 2004 20:09:37 -0600 From: J. Landman Gay [EMAIL PROTECTED] Subject: Re: Scrolling a Card? On 2/20/04 5:53 PM, Christopher Mitchell wrote: Could you please explain under what circumstances this handler would require to be explicitly declared? This seems like something implicit to the engine, and if not handled reliably then how many other things need to be re-defined? That's not exactly how it works; it isn't about defining but rather about access. - Not sure what you're thinking of here. Christopher's actual post looks like this: * Date: Fri, 20 Feb 2004 17:53:43 -0600 From: Christopher Mitchell [EMAIL PROTECTED] Subject: Re: Scrolling a Card? Klaus, Could you please explain under what circumstances this handler would require to be explicitly declared? This seems like something implicit to the engine, and if not handled reliably then how many other things need to be re-defined? Yours, Chris On Feb 20, 2004, at 4:17 PM, Klaus Major wrote: on mouserelease mouseup end mouserelease ** ...So, I think the only thing he was referring to was the doubling up of the mouse events, IOW, he was questioning why a mouseUp, then a mouserelease that refers to the mouseUp. It does look suspiscious if he doesn't know what's actually happening Here's hoping he reads on to this. For Christopher: Here's the deal. In Rev, mouseUp messages only take place within the actual control object. IOW, if the user drags the mouse ouside the object and releases, the _object_ not get a mouseUp message. Consequently, if you want to be sure Rev gets the mouseUp message (or some other message related to releasing outside the object), you need to handle the mouseRelease message as well. Take a look at mouseRelease in the dictionary. All the best, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Appropriate syntax for referencing objects in a looping structure?
Howdy, Another likely simple question for which the specific documentation does not seem readily available, or at least accessible. Hopefully someday other newbies will benefit from all these syntax questions and you all won't tar and feather me just yet. I feel like I've been spamming the list :/ - Ok, I've got a card with several graphic objects all named pointer1, pointer2, pointer3, etc. I want a repeat script to change the angle property of each one of them. The usual line that works outside the loop is, of course: set the angle of graphic pointer1 to rotAngle The problem comes in getting the 'set' command to properly parse any of the content I'm throwing at it in order to make it work in the same way using the counter generated by a 'repeat with' loop, as follows: repeat with i = 1 to 3 put quote pointer i quote into tName answer tName -- this is giving me the right content: pointer1 set the angle of graphic tName to rotAngle -- this line chokes with chunk error, no such object. hint: pointer1 end repeat As indicated by the comment, I put in the 'answer' just as a sanity check and the contents of tName at that point are exactly what I would type into the usual line; yet it tells me that there is a chunk error:no such object - with the hint, ironically, as pointer1 ... Is there some way i need to escape this variable tName when I put it in the 'set' statement in order to make it use the contents literally, exactly as if I had typed them in? I've tried several combinations of using the quote constant and the '' operator, but the 'set' command definitely does not like having those things in its strings anymore than moving it out into a variable. Thanks, Chris ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scrolling a Card?
Hi Christopher, Klaus, Could you please explain under what circumstances this handler would require to be explicitly declared? This seems like something implicit to the engine, and if not handled reliably then how many other things need to be re-defined? Looks like this has been carefully explained by other listers :-) Actually i just got used to add this extra-handler, although it might NOT be necessary sometimes... ;-) Yours, Chris On Feb 20, 2004, at 4:17 PM, Klaus Major wrote: on mouserelease mouseup end mouserelease Have a nice weekend... Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Scrolling a Card?
Hi Ken, Date: Sat, 21 Feb 2004 00:28:38 -0700 From: Dar Scott [EMAIL PROTECTED] Subject: Re: Scrolling a Card? Are you setting the scroll on the card group? --- Yep. A map with both scrollbars and a grab ability is the model I'm looking for. Gives the user more options, i.e., all-axis fine scrolling control. Like this: I want to scroll the card group by faking a grab. Obviously you can't grab the group, because the scrollbar objects themselves would move with it. No good. What needs to happen is to grab the _scroll_ of the group such that the _content_ sticks to the mouse, and the scrollbars follow it. It gives the user fine all-axis control, like a grab. But, in order for it to work within the scroll limits, I figured you have to bound it by those limits. I want it to stop scrolling safely when you get to a max or min scroll limit, IOW, grabbing and moving when it gets there won't make it move any futher. The problem has been that executing a grab using the mouse offset and a max/min expression with the scroll (hScroll,vScroll) causes it to move like the scrollbars work, i.e., opposite the drag direction, rather than sticking to the mouse, i.e., moving exactly with it. Grab and drag it a ways, release and move back, grab an drag it some more, etc. Thus, it needs to operate like a normal grab of an object, _but_ work with the actual scroll, moving the thumbs with it, and in the proper way. Not so easy to do. I haven't seen an example. Let me see if i get you right... You are faking a group with separate scrollbar-objects? Why does a goup with its v- and hscrollbar set to true does not work for you? (I am still presuming a group as high/wide as a card...) Thanks again, Ken N. Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Appropriate syntax for referencing objects in a looping structure?
Christopher, The name of your graphic pointer is: pointer1 It's NOT pointer1 (with the double quotes). In your lone set statement, the quotes merely tell the engine that what's enclosed (withing the quotes) should be treated (or looked upon) as a literal string and NOT a variable/container...so in effect, your lone set statement actually conveys to the engine the literal string: pointer1 In your repeat loop, you are telling the engine to look for a container named pointer1 instead of pointer1, and it does not find it, and thus generates the error. Change your repeat to: repeat with i = 1 to 3 put pointer i into tName answer tName -- should now give you the right content: pointer1 set the angle of graphic tName to rotAngle end repeat A shorter way to write the above would be: repeat with i = 1 to 3 set the angle of graphic pointer i to rotAngle end repeat Hope this was clear. Opie Christopher Mitchell wrote: Howdy, Another likely simple question for which the specific documentation does not seem readily available, or at least accessible. Hopefully someday other newbies will benefit from all these syntax questions and you all won't tar and feather me just yet. I feel like I've been spamming the list :/ - Ok, I've got a card with several graphic objects all named pointer1, pointer2, pointer3, etc. I want a repeat script to change the angle property of each one of them. The usual line that works outside the loop is, of course: set the angle of graphic pointer1 to rotAngle The problem comes in getting the 'set' command to properly parse any of the content I'm throwing at it in order to make it work in the same way using the counter generated by a 'repeat with' loop, as follows: repeat with i = 1 to 3 put quote pointer i quote into tName answer tName -- this is giving me the right content: pointer1 set the angle of graphic tName to rotAngle -- this line chokes with chunk error, no such object. hint: pointer1 end repeat As indicated by the comment, I put in the 'answer' just as a sanity check and the contents of tName at that point are exactly what I would type into the usual line; yet it tells me that there is a chunk error:no such object - with the hint, ironically, as pointer1 ... Is there some way i need to escape this variable tName when I put it in the 'set' statement in order to make it use the contents literally, exactly as if I had typed them in? I've tried several combinations of using the quote constant and the '' operator, but the 'set' command definitely does not like having those things in its strings anymore than moving it out into a variable. Thanks, Chris ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Appropriate syntax for referencing objects in a looping structure?
Opie, Thanks for the reply. well, yes, you're right that this works - and I would have sworn I had tried it, but I guess the confusion stems from the fact that in my regular format I have to use the quotes. So I must have just been loading the variable wrong earlier when I was doing it before I looked up 'quote' ... :/ It seems weird to not put quotes when it is in a variable and to put them when it is not. The shorter way is the first thing I tried! I promise! must have been 4am typos or something. Thanks again! Yours, Chris, the Newbie On Feb 21, 2004, at 6:15 AM, Ops wrote: Christopher, The name of your graphic pointer is: pointer1 It's NOT pointer1 (with the double quotes). In your lone set statement, the quotes merely tell the engine that what's enclosed (withing the quotes) should be treated (or looked upon) as a literal string and NOT a variable/container...so in effect, your lone set statement actually conveys to the engine the literal string: pointer1 In your repeat loop, you are telling the engine to look for a container named pointer1 instead of pointer1, and it does not find it, and thus generates the error. Change your repeat to: repeat with i = 1 to 3 put pointer i into tName answer tName -- should now give you the right content: pointer1 set the angle of graphic tName to rotAngle end repeat A shorter way to write the above would be: repeat with i = 1 to 3 set the angle of graphic pointer i to rotAngle end repeat Hope this was clear. Opie Christopher Mitchell wrote: Howdy, Another likely simple question for which the specific documentation does not seem readily available, or at least accessible. Hopefully someday other newbies will benefit from all these syntax questions and you all won't tar and feather me just yet. I feel like I've been spamming the list :/ - Ok, I've got a card with several graphic objects all named pointer1, pointer2, pointer3, etc. I want a repeat script to change the angle property of each one of them. The usual line that works outside the loop is, of course: set the angle of graphic pointer1 to rotAngle The problem comes in getting the 'set' command to properly parse any of the content I'm throwing at it in order to make it work in the same way using the counter generated by a 'repeat with' loop, as follows: repeat with i = 1 to 3 put quote pointer i quote into tName answer tName -- this is giving me the right content: pointer1 set the angle of graphic tName to rotAngle -- this line chokes with chunk error, no such object. hint: pointer1 end repeat As indicated by the comment, I put in the 'answer' just as a sanity check and the contents of tName at that point are exactly what I would type into the usual line; yet it tells me that there is a chunk error:no such object - with the hint, ironically, as pointer1 ... Is there some way i need to escape this variable tName when I put it in the 'set' statement in order to make it use the contents literally, exactly as if I had typed them in? I've tried several combinations of using the quote constant and the '' operator, but the 'set' command definitely does not like having those things in its strings anymore than moving it out into a variable. Thanks, Chris ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
actually the short way returns an error
Opie, I think the thing that confused me from the beginning and caused me to use that variable was that putting in : repeat with i = 1 to 3 set the angle of graphic pointer i to rotAngle end repeat returns an error in the script debugger of type: set, missing 'to' so by putting in the concatenation, the set command does not follow to the to ... and of course, you can't put the i counter in quotes, so that's why I started pulling it out of the line. Is there a good reason why the script shouldn't like the inline concatenation though? that seems absurd. Yours, Chris On Feb 21, 2004, at 6:15 AM, Ops wrote: set the angle of graphic pointer i to rotAngle ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: actually the short way returns an error
Hi Christopher, have you tried: repeat with i = 1 to 3 set the angle of graphic (pointeri) to rotAngle end repeat Best, malte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How could i Post binary data to perl cgi?
Hi Developers, I have been working hard to employ the method post for uploading files to a web server. I have used HTTP interceptor v1.3 to check the differences between the data send by browsers and RR/MC. These are the results: Http headers send from Netscape: POST /cgi-bin/upload.cgi HTTP/1.0 Referer: http://www.mywebsite.com/postfiles.html Connection: Close User-Agent: Mozilla/4.8 [en] (Win98; U) Host: www.mywebsite.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 Content-type: multipart/form-data; boundary=---277072699622422 Content-Length: 15909 Data found after header end: -277072699622422 Content-Disposition: form-data; name=FILE1; filename=C:\Mis documentos\candado.gif Content-Type: image/gif GIF89aJ Based in these results, i changed the script to closely match the http produced by Netscape: This was the headers result: POST /cgi-bin/upload.cgi HTTP/1.1 Host: www.mywebsite.com User-Agent: Metacard (Win32) Content-Length: 15703 Content-type: multipart/form-data Data found after header end: Content-Disposition: form-data; name=FILE1; filename=C:\Mis documentos\candado.gif Content-Type: image/gif GIF89aJ But the server returns Malformed Post request. :-( This is the script that produced this malformed post: on mouseUp -- Setting httpheaders as recommended by Dave Cragg -- in the message HTTP headers for posting data put Content-type: multipart/form-data into tHeaders set the httpHeaders to tHeaders put http://www.mywebsite.com/cgi-bin/upload.cgi; into tUrl put Content-Disposition: form-data; name= quote FILE1 quote ; filename= quote C:\Mis documentos\candado.gif quote into tString put crlf after tString put Content-Type: image/gif after tString put crlf crlf after tString set the customprop1 of the topstack to url binfile:C:/Mis documentos/candado.gif put the customprop1 of the topstack after tString put crlf after tString post tString to url tUrl -- put tString -- uncomment for debug if the result is empty then put it -- set the htmltext of fld result to it else answer the result end if end mouseUp If you could see the errors in this script, post them here or send clues to my mail. Thanks in advance. al = Visit my site: http://www.geocities.com/capellan2000/ Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How could i Post binary data to perl cgi?
Content-type: multipart/form-data; boundary=---277072699622422 you're forgetting the boundary marker.. (note that the above is all one line, or two seperate lines with LWS before the word boundary) -Sean ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Immediate/Compile Time Execution for
Honestly, there is no compile time I am refering to as the script is being parsed. Basically I am looking fo a set of parse directives. It seems that there must be a API from inside Revolution to load and parse a module. I mean it does so already from distrubition builder. I just want to add directives look initially in a specific directory for library code or the path specified. Kevin --- On Sat 02/21, Ken Ray [EMAIL PROTECTED] wrote: From: Ken Ray [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Sat, 21 Feb 2004 01:14:25 -0600 Subject: RE: Immediate/Compile Time Execution for USING library STACKS Kevin,brbrWhen you say quot;at compile timequot;, do you mean when the script editorbrcloses (i.e. at the time the script is parsed)? Or some other time?brbrWhat exactly are you trying to do?brbrKen RaybrSons of Thunder SoftwarebrEmail: [EMAIL PROTECTED]brWeb Site: http://www.sonsothunder.com/ brgt; -Original Message-brgt; From: [EMAIL PROTECTED] brgt; [mailto:[EMAIL PROTECTED] On Behalf Of Kevinbrgt; Sent: Friday, February 20, 2004 7:43 PMbrgt; To: [EMAIL PROTECTED]brgt; Subject: Immediate/Compile Time Execution for quot;USINGquot; library STACKSbrgt; brgt; brgt; brgt; Okay, this is anoying. Does any one know of a API or brgt; contruct to execute Transcript at quot;complile timequot; (since in brgt; a intrepretative lnaguage there is really no such animal). brgt; In traditional TILs there a keywords such as IMMEDIATE, .IF brgt; .ELSE, .THEN , COMPILE and [COMPILE]. Since I believe brgt; Transcript is a TIL these constructs should exist. I am wold brgt; like to use such constructs to create a quot;includequot; that would brgt; operate using a default LIBRARY PATH or possibly even create brgt; a quot;pluginquot; that would have a XML based project file. Any suggestions?brgt; brgt; I have already created a quot;handlerquot; to force parameters (aka brgt; make them manadatory) it is called manatory. It is raw but brgt; functional. I am also working on a dialog the generates a brgt; error message with the call stack detail should anyone find it useful.brgt; brgt; Kevinbrgt; brgt; brgt; brgt; ___brgt; Join Excite! - http://www.excite.combrgt; The most personalized portal on the Web! brgt; ___brgt; use-revolution mailing listbrgt; [EMAIL PROTECTED] m brgt; http://lists.runrev.com/mailman/listinfo/use-gt; revolutionbrgt; brbrbr ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: actually the short way returns an error
Christopher, Actually, Malte also responded with the corrected shorter version and he is correct. My bad, in my zeal to explain the difference between a quoted literal string and the actual object name, I overlooked the fundamental syntax of what I sent!! SORRY!! In the example I sent, there is a precedence problem. To make the evaluation sequence clear for the Rev engine, enclose pointer i in double quotes. This tells the Rev engine to do this first. So, (as Malte already stated) the corrected version is: repeat with i = 1 to 3 set the angle of graphic (pointer i) to rotAngle end repeat The precedence is generally pretty intuitive as to how you the human (programmer) thinks...but...in some cases one must override the precedence rules by surrounding certain constructs inside ()'s in order to indicate to the engine that these phrases (the one's in ()'s) should be done FIRST. Again, sorry, and hope this is *all* clear now :) Opie P.S. Don't know what kind of graphic that pointer1 is...but...in my test, although it compiled correctly with the above...*my* pointer1 didn't seem to rotate...don't know why, but I also tried it with an image and it worked perfectly...I usually manipulate a graphic by changing it's points property... Cheers!! Christopher Mitchell wrote: Opie, I think the thing that confused me from the beginning and caused me to use that variable was that putting in : repeat with i = 1 to 3 set the angle of graphic pointer i to rotAngle end repeat returns an error in the script debugger of type: set, missing 'to' so by putting in the concatenation, the set command does not follow to the to ... and of course, you can't put the i counter in quotes, so that's why I started pulling it out of the line. Is there a good reason why the script shouldn't like the inline concatenation though? that seems absurd. Yours, Chris On Feb 21, 2004, at 6:15 AM, Ops wrote: set the angle of graphic pointer i to rotAngle ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Immediate/Compile Time Execution for
On Saturday, February 21, 2004, at 09:41 AM, Kevin wrote: Honestly, there is no compile time I am refering to as the script is being parsed. Basically I am looking fo a set of parse directives. It seems that there must be a API from inside Revolution to load and parse a module. I mean it does so already from distrubition builder. I just want to add directives look initially in a specific directory for library code or the path specified. The documentation uses the word compile. This takes place when a script is set and between loading of a stack and the use of a script. Here are a couple of approaches. The script is a property; you can set it yourself. There are limitations for standalones. You can make your own editor. When you hit the apply button, the editor can look for includes and expand them. Then it can set the script property. You would use a custom property for your unexpanded source. Or you can work out a scheme using the more traditional stack library or button library (front/back script). Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: actually the short way returns an error
GEEZ!! I did it again!!! I said enclose pointer i in double quotesthat's INCORRECT...I meant to say enclose pointer i in PARENTHESES SORRY AGAIN FOR THE CONFUSION Ops wrote: Christopher, Actually, Malte also responded with the corrected shorter version and he is correct. My bad, in my zeal to explain the difference between a quoted literal string and the actual object name, I overlooked the fundamental syntax of what I sent!! SORRY!! In the example I sent, there is a precedence problem. To make the evaluation sequence clear for the Rev engine, enclose pointer i in double quotes. This tells the Rev engine to do this first. So, (as Malte already stated) the corrected version is: repeat with i = 1 to 3 set the angle of graphic (pointer i) to rotAngle end repeat The precedence is generally pretty intuitive as to how you the human (programmer) thinks...but...in some cases one must override the precedence rules by surrounding certain constructs inside ()'s in order to indicate to the engine that these phrases (the one's in ()'s) should be done FIRST. Again, sorry, and hope this is *all* clear now :) Opie P.S. Don't know what kind of graphic that pointer1 is...but...in my test, although it compiled correctly with the above...*my* pointer1 didn't seem to rotate...don't know why, but I also tried it with an image and it worked perfectly...I usually manipulate a graphic by changing it's points property... Cheers!! Christopher Mitchell wrote: Opie, I think the thing that confused me from the beginning and caused me to use that variable was that putting in : repeat with i = 1 to 3 set the angle of graphic pointer i to rotAngle end repeat returns an error in the script debugger of type: set, missing 'to' so by putting in the concatenation, the set command does not follow to the to ... and of course, you can't put the i counter in quotes, so that's why I started pulling it out of the line. Is there a good reason why the script shouldn't like the inline concatenation though? that seems absurd. Yours, Chris On Feb 21, 2004, at 6:15 AM, Ops wrote: set the angle of graphic pointer i to rotAngle ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Multilingual apps (was: Re: Beginners global variable pb)
On Fri, 20 Feb 2004 15:45:14 -0700, Rob Cozens [EMAIL PROTECTED] wrote: My approach is to load the entire text file into a library field when changing languages, and to load that text field into a library local variable when the library is put in use. Each one-line message in the file is referenced as a constant, eg: [detailed explanation] Excellent! This is a more systematic runtime method than I was using, and I shall adopt it from now on. Thanks Rob. Graham --- Graham Samuel / The Living Fossil Co. / UK France ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Immediate/Compile Time Execution for
So, when tha apply button is invoked the routines/interpreter that builds the tokens has no parse directives? Are there no #if style constructs? I guess some documentation on specifically how the compile/tokenization process occurs would be helpful. Is the metacard/transcript compiler using the TIL concept of words? Doese metacard/transcript have a header segment or dicrionary that is accessible? So each of the words/handlers have a IMMEDIATE bit or identifier? I understand these are rather under the hood questions I just fiqure that they would be in the documentation. Kevin --- On Sat 02/21, Dar Scott [EMAIL PROTECTED] wrote: From: Dar Scott [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Sat, 21 Feb 2004 10:29:31 -0700 Subject: Re: Immediate/Compile Time Execution for brOn Saturday, February 21, 2004, at 09:41 AM, Kevin wrote:brbrgt; Honestly, there is no quot;compile timequot; I am refering to as the script is brgt; being parsed. Basically I am looking fo a set of parse directives. brgt; It seems that there must be a API from inside Revolution to load and brgt; parse a module. I mean it does so already from distrubition builder. brgt; I just want to add quot;directivesquot; look initially in a specific brgt; directory for library code or the path specified.brbrThe documentation uses the word compile. This takes place when a brscript is set and between loading of a stack and the use of a script.brbrHere are a couple of approaches.brbrThe script is a property; you can set it yourself. There are brlimitations for standalones. You can make your own editor. When you brhit the apply button, the editor can look for includes and expand them. br Then it can set the script property. You woul d use a custom property brfor your unexpanded source.brbrOr you can work out a scheme using the more traditional stack library bror button quot;libraryquot; (front/back script).brbrDar Scottbrbr ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Scanning ON SCREEN barcodes
For obvious reasons, the laser beam of a barcode scanner cannot read a barcode that is displayed on your monitor. However, if the resolution of the display is high enough to detect the differences in line-thickness of each bar... Is it possible for Revolution to take a snapshot of a 1 pixel height strip across the displayed barcode and show in a field what the alpha-numeric values are? What I want to build is a digital barcode verifier to simply confirm that the content of the code is correct BEFORE printing it. I think I can handle the snapshot of the strip of pixels, but I have no idea how to begin analyzing the on/off pixels to determine their value. Can anyone offer suggestions? Have you attempted anything similar and have code snippets that you would share? Thanks. Roger Eller [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Immediate/Compile Time Execution for
TIL (Threaded Interpretive Languages) is a acronym that refers the languages like Forth, Visual Basic and even SmalTalk/Java variations. Maybe this is a question I should post to the Runtime Revolution support staff. I was under the impression from the postings I have read that many of the MetaCard gurus frequent this mailing list and could point me to some documents about the general design of the engine. I seems odd to me that the engine could be built and extended without these constructs for example a if construct. In Forth and SmallTalk a if statement is immediate it encodes a comparison and a 2 wsize (aka word size) cells for the true jump branch and one for the false branch. Since it is not viable at runtime there must be a compile time subsystem. Thanks for the suggestions though I think I will be asking the support at RunRev. Kevin ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Subject: Re: Scrolling a Card?
Hi Klaus, Date: Sat, 21 Feb 2004 11:57:44 +0100 From: Klaus Major [EMAIL PROTECTED] Subject: Re: Scrolling a Card? Let me see if i get you right... You are faking a group with separate scrollbar-objects? --- Nope. The group has normal scrollbars (checked in Inspector for the group). I'm faking a 'grab' of the content of the group by setting hScroll/vScroll relative to mouseMove coordinates in a max/min bounding expression. You hold down the mouse inside the card and 'grab' it (the fake, because a real grab in Rev can't pass messages nor bound itself, and would end up moving the entire group, scrollbars and all, which is no good), move it in any direction you want, but when it reaches the scroll limits, it wont go any further in that direction. Since I'm setting hScroll/vScroll via mouseMove, the scrollbars react like their supposed to, but that's not the problem...read on. - Why does a goup with its v- and hscrollbar set to true does not work for you? -- It does...see above. -- (I am still presuming a group as high/wide as a card...) -- The stack window, yes. My expression moves the group and the scrollbars react OK, but it's causing the contents to scroll like the scrollbars do, i.e., opposite the direction you move the mouse instead of grabbing it and moving with the mouse. Does that help you to understand? I can send you a SC project offlist that shows exactly what I want to do. SC 'grab' command allows message passing and rect bounds, very simple scripts (I wish Rev had this feature). I want to fine scroll an aerial photograph enlargement by grabbing it, but I also want it to have scrollbars that react properly with the grab, which I can do very easily in SC. I want a Windows method to do the same thing. It's a normal thing with large maps. These aerials will have accompanying object and property-line graphics which can be examined with the aerial in multiple ways, i.e. measure distances from ground-truth controls, locate underground utilities, scale grids, variable tints between certain objects (making them stand out on the aerial), clickable objects which display relevent ground photos (closeups) and accompanying data. The state has closed a couple of their aerial photo departments due to budget cuts. I figure I might be able to inch my way into a niche of that market if I hurry. If I can come up with a couple demos county users and private parties can run on their machines, maybe I can put together a proposal to get $$ for modern data acquisition equipment and an appropriate bird for the aerial platform. Like this Leica system you might have heard of: http://www.lh-systems.com/products/aerial_cameras.html Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Immediate/Compile Time Execution for
I am currently using start using and insert the script of syntax and evaluating the pros and cons of each. However, my question is one of larger scope I would like to be able to extend the language/standard library itself. With many other languages there exists a facilities to extend the language. Via classes in the case of C++, objects in the case of Java and Small-talk, and WORDS in the case of FORTH. I have even built objects in FORTH (similar to MOPS). It is my hope that we as developers can further the language and it's success. With such constructs this would be simple and allow a amazing flexibility. Kevin --- On Sat 02/21, Ken Ray [EMAIL PROTECTED] wrote: From: Ken Ray [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sat, 21 Feb 2004 14:43:01 -0600 Subject: RE: Immediate/Compile Time Execution for Honestly, there is no compile time I am refering to as the brgt; script is being parsed. Basically I am looking fo a set of brgt; parse directives. It seems that there must be a API from brgt; inside Revolution to load and parse a module. I mean it brgt; does so already from distrubition builder. I just want to brgt; add quot;directivesquot; look initially in a specific directory for brgt; library code or the path specified.brbrIf you're talking about #parse or #include directives, with thebrintention of creating an include file that contains a chunk of code thatbris #included in a number of different scripts, Rev does things a littlebrdifferently.brbrLet's say you had a set of transcript routines called myFunc1() andbrmyFunc2() that you want to be able to call from anywhere. If I'm readingbryou correctly, it sounds like you'd want to put myFunc(1) and myFunc2()brinto a exparate source file and #include them when you needed to getbraccess to them. If I'm right, this is done differently in Transcript.brYou put those functions into the stack script of a stack and youbrquot;includequot; that code by using the quot;libraryquot; (or quot;start usingquot;) command.brThis inserts the code into the message passing hierarchy so that thesebrfunctions can be called from anywhere.brbrIf I'm on the right track and you need more assistance in getting thisbrdone, let me know. If I'm not on the right track, please try to explainbrin detail what it is you're trying to do - I apologize for not quot;gettingbritquot;.brbrKen RaybrSons of Thunder SoftwarebrEmail: [EMAIL PROTECTED]brWeb Site: http://www.sonsothunder.com/ brbrbr ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Immediate/Compile Time Execution for
Just another small note. The start using syntax refers to a stack not a file the stack must be in memory in my understanding. I would like to create a #include that would solve these dependicies without developer/inteligent intervention. Thus removing the most problematic variable from the equation (human error). Kevin ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Immediate/Compile Time Execution for
I have also looked into using several stacks written by Sweat Technologies AKS Charlie Finley Script Browser and Script Library in hope if simplifying the inclusion madness. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How could i Post binary data to perl cgi?
on Sat, 21 Feb 2004 11:00:12 -0500 [EMAIL PROTECTED] wrote: Content-type: multipart/form-data; boundary=---277072699622422 you're forgetting the boundary marker.. (note that the above is all one line, or two seperate lines with LWS before the word boundary) Thanks a lot Sean for step-in on this question. I've add the boundary marker, but this only produces the same error. I'm using the perl cgi script: Upload Lite from the site: http://www.perlscriptsjavascripts.com/perl/upload_lite/ Do you have success uploading files to a cgi or php script in a server from RR/MC? I noticed that you use base64encode to attach files to email messages. Does libUrl supports uploading binary files in this way? Dave Cragg does not says that uploading binary files using post will not works, so i'll keep posting my errors, so interested developers will help or at least not repeat them. Thanks again Sean! :-) al on Sat, 21 Feb 2004 07:47:52 -0800 (PST) Alejandro Tejada wrote: Hi Developers, I have been working hard to employ the method post for uploading files to a web server. I have used HTTP interceptor v1.3 to check the differences between the data send by browsers and RR/MC. These are the results: Http headers send from Netscape: POST /cgi-bin/upload.cgi HTTP/1.0 Referer: http://www.mywebsite.com/postfiles.html Connection: Close User-Agent: Mozilla/4.8 [en] (Win98; U) Host: www.mywebsite.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 Content-type: multipart/form-data; boundary=---277072699622422 Content-Length: 15909 Data found after header end: -277072699622422 Content-Disposition: form-data; name=FILE1; filename=C:\Mis documentos\candado.gif Content-Type: image/gif GIF89aJ Based in these results, i changed the script to closely match the http produced by Netscape: This was the headers result: POST /cgi-bin/upload.cgi HTTP/1.1 Host: www.mywebsite.com User-Agent: Metacard (Win32) Content-Length: 15703 Content-type: multipart/form-data Data found after header end: Content-Disposition: form-data; name=FILE1; filename=C:\Mis documentos\candado.gif Content-Type: image/gif GIF89aJ But the server returns Malformed Post request. :-( This is the script that produced this malformed post: on mouseUp -- Setting httpheaders as recommended by Dave Cragg -- in the message HTTP headers for posting data put Content-type: multipart/form-data into tHeaders set the httpHeaders to tHeaders put http://www.mywebsite.com/cgi-bin/upload.cgi; into tUrl put Content-Disposition: form-data; name= quote FILE1 quote ; filename= quote C:\Mis documentos\candado.gif quote into tString put crlf after tString put Content-Type: image/gif after tString put crlf crlf after tString set the customprop1 of the topstack to url binfile:C:/Mis documentos/candado.gif put the customprop1 of the topstack after tString put crlf after tString post tString to url tUrl -- put tString -- uncomment for debug if the result is empty then put it -- set the htmltext of fld result to it else answer the result end if end mouseUp If you could see the errors in this script, post them here or send clues to my mail. Thanks in advance. al = Visit my site: http://www.geocities.com/capellan2000/ Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Immediate/Compile Time Execution for
Kevin- I'm not sure where you're trying to go with this thread, but Transcript by its nature extends the language as you go along. For example, the Forth statement : beeps 0 do beep loop ; would be coded in Transcript as on dots howMany repeat with howMany beep end repeat end dots and then you would use it the same way: 4 beeps so you're actually building extensions to the language as you go along, much the same way that you extend the Forth dictionary. Not much support for vocabulary switching, though, if you're used to that. There's no explicit support for objects, although there's been a lot of discussion about it. You can always do aggregate objects, of course, but there's no subclassing. I think my development time in Transcript is about equal to that in Forth and there's a much richer set of existing functions and operators to draw from. If you're looking for support for runtime [compile] statements, though, you're probably better off looking through the Transcript dictionary and finding a different way of doing things instead of thinking in Forth. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Immediate/Compile Time Execution for
I am currently using start using and insert the script of syntax and evaluating the pros and cons of each. However, my question is one of larger scope I would like to be able to extend the language/standard library itself. With many other languages there exists a facilities to extend the language. Via classes in the case of C++, objects in the case of Java and Small-talk, and WORDS in the case of FORTH. I have even built objects in FORTH (similar to MOPS). It is my hope that we as developers can further the language and it's success. With such constructs this would be simple and allow a amazing flexibility. Kevin, what your asking for is not currently available to developers (AFAIK). This would need to be built in by the RunRev engineers to enable this kind of language extension. There has been a lot of talk about extending the capabilities of the product, so you're certainly welcome to ask for this enhancement (there's a place on Bugzilla for that if you didn't already know), but people are using libraries to add centralized handlers and functions to either the IDE or to their deployed applications. Just another small note. The start using syntax refers to a stack not a file the stack must be in memory in my understanding. I would like to create a #include that would solve these dependicies without developer/inteligent intervention. Thus removing the most problematic variable from the equation (human error). Actually, this is not true. If you do: on preOpenStack start using libMyStuff.mc end preOpenStack It simply looks for a stack with that name in the current directory and then loads it as a library. The stack doesn't have to be already open and in memory to be able to library it. HTH, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Appropriate syntax for referencing objects in a loopingstructure?
repeat with i = 1 to 3 set the angle of graphic pointer i to rotAngle end repeat Personally, I like to wrap parentheses around this kind of construct to make it easier to read: repeat with i = 1 to 3 set the angle of graphic (pointer i) to rotAngle end repeat But whatever floats your boat... :-) Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Qt vs Revolution (NOT Apple Quicktime)
Not wx? http://wxwindows.org/ regards, Geoff Canyon [EMAIL PROTECTED] On Feb 14, 2004, at 9:08 PM, Alex Rice wrote: If I were a C++ programmer, then Qt would be what I'd be using for a GUI toolkit (if I could afford it). ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Qt vs Revolution (NOT Apple Quicktime)
On Saturday, February 21, 2004, at 08:17 PM, Geoff Canyon wrote: Not wx? http://wxwindows.org/ I'll mention it to my customer. I tried to sell Revolution, but I kept getting responses like But Qt has an openGL canvas! Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Applications menu substitute
Someone may have addressed this already but I use X-assist to provide the Applications menu and the OS9-type bring all that app's windows to the front behavior. There is also a System Pref called ASM that does this. Regards, Barry On Feb 14, 2004, at 1:28 AM, Stephen Quinn Barncard [EMAIL PROTECTED] wrote: and the loss of the Applications menu... ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Immediate/Compile Time Execution for
I'm a bit lost as to where you're headed with this, but hopefully some of this background helps: * Transcript is compiled into bytecode when you save a script. It is not purely interpreted- think Java (conceptually at least). * The do command allows you to execute arbitrary scripts at runtime, but is subject to the scriptLimits property. * You can write your own handlers to add commands and functions to the language * You can write externals in C or C++ to add commands and functions to the language * There are no #if, #include, #define, etc directives, but there is start using , insert script and constant declarations. * commandNames(), functionNames(), externalCommands() and externalFunctions() can give you a list of all built-in commands and functions, along with external commands and functions. HTH So, when tha apply button is invoked the routines/interpreter that builds the tokens has no parse directives? Are there no #if style constructs? I guess some documentation on specifically how the compile/tokenization process occurs would be helpful. Is the metacard/transcript compiler using the TIL concept of words? Doese metacard/transcript have a header segment or dicrionary that is accessible? So each of the words/handlers have a IMMEDIATE bit or identifier? I understand these are rather under the hood questions I just fiqure that they would be in the documentation. Kevin ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How could i Post binary data to perl cgi?
Alejandro, Contact Dave Cragg about this. We've been working with him to do just what you want in the last couple months. -Chipp ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution