Re: how to: insert items into a drop-down box using transcript
At 3:56 PM -0600 5/12/05, Emilio Gagliardi wrote: Greetings revolution programmers, I hope that someone can point me in the right direction of some examples or tutorials that demonstrate how to use transcript to add items to a drop down list based on some variable. For example, on PreOpenCard reads the directories where the application is currently loaded and then generates a drop-down list with items that match the available directories. I've flipped through Dan's book, the documentation (which appears to not have any code examples), the online tutorials, and google and not found anything. Any help is greatly appreciated. (Quoting here): -- How to change the items in a button menu: You change the menu items in a button menu by changing the contents of the button associated with the menu. Each line in the button's contents is used as a menu item in the menu. You can either use the put command in a handler or the message box, or use the Basic Properties pane in the button's property inspector to change the button's contents. The following statement changes a button's contents to give it two menu items: put "First" & return & "Last" into button "My Menu" Tip: You can also set the button's text property: setting the text of a button to a string is equivalent to putting the string into the button. How to get the contents of a folder: You get the contents of a folder from within a handler using the files and folders functions. The files function returns a list of files in the defaultFolder, while the folders function returns a list of folders in the defaultFolder. The combination of these lists is the contents of the defaultFolder. First, set the defaultFolder to the pathname of the folder whose contents you want to list. Then use the files and folders functions to get the list: set the defaultFolder to "/Hard Disk/My Folder/" put the files & return & the folders into myContents -- To sum up: on preOpenCard put the folders into button "My Menu" end preOpenCard should do what you want, assuming your option menu's name is "My Menu". (There are some nuances on OS X systems because of the way applications are bundled as folders; basically, if you're on OS X you need to 'set the defaultFolder to "../"' sometime before calling the folders function.) -- jeanne a. e. devoto ~ [EMAIL PROTECTED] http://www.jaedworks.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: filter and reorder a list via field on other stack
Well, if there is any textual relationship between the actual content of the line on the list and the card itself, then I have (ever since hypercard and supercard days) *always* named my cards programatically and then using the clicktext function on the index listings: go to card (the clicktext) # in the index list field or go to card (word 1 of the clicktext) or whatever...it will always work regardless of a) sort order of the list b) sort order of cards in the stack... the trick is to have the cards get their name assigned the name you want that will relate to the index list, at the time those card are created... and then dynamically generate indices from the card names... there are caveats though... I can't remember them all.. I think you don't want to start a card name with a number...?? I typically have a short field on every card in my PIM subject: and a close card handler: "set the name of this card to fld " Here is how I hyper link and generated cards from selected text and auto add to an index: on makeLink if the selection is empty then answer "You need to select something." with "OK" exit makeLink else put the selection into tNewCard set the textstyle of the selection to link open stack "Linked Entries" if exists (card tNewCard) then exit makeLink else new card put tNewCard into fld "Subject" set the name of this card to fld "subject" send upDateIndex to stack "linked Entries" end if end if end makeLink on upDateIndex repeat with x = 1 to the number of cards of this stack put short name of cd x & cr after tIndex end repeat sort tIndex put tIndex into fld "index" choose browse tool end upDateIndex And here is a dynamically built index put into a button, but you could adopt this to create the index into a field, incredibly simple really Pull down menu button: on mousedown repeat with x =1 to the number of cards in this stack put the short name of card x & cr after jai end repeat put jai into me end mousedown on menupick which go to card which end menupick And don't forget one of those xTalk gotchas: "the short name" gives you a simple string, but you never set the short name you just "set the name" set the short name of this card to "Go Figure" gives an error. On day they should fix that... I've had stacks with thousands of cards, all named and going to a card name is very fast. skts On May 11, 2005, at 8:27 AM, [EMAIL PROTECTED] wrote: Also, i want the list to be reordered in some way, however, this upsets the relationship of the cards to the list items. I remember that there was some trict to keep the list item associated with the cards by adding the card number and tabbing it out of the field boundaries Anyone know the standard trick? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: Rolling graphics
Message: 4 Date: Thu, 12 May 2005 11:01:08 -0400 From: Thomas McGrath III <[EMAIL PROTECTED]> Subject: Re: ANN: Rolling graphics To: How to use Revolution Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; format=flowed Jim, I had a lot of fun skiing. There used to be this game with tanks that you send over to your opponent different bombs etc. Then they get to bomb you. Just plain time wasting fun. I love it. If Rev includes bezier that would be great. Could you not then include a library for the calculations??? JAT Thanks for sharing this. Tom Tom, I guess it depends on how it is implemented. What is needed is the location of the four (or more) handles for the bezier line. If the points are known (r1, r2, r3, and r4) then the calculation is simple: put the r1 of me into pt1 put the r2 of me into pt2 put the r3 of me into pt3 put the r4 of me into pt4 repeat with i = 0 to 100 put i/100 into t put 1-t into s repeat with j = 1 to 2 put (s*s*s*item j of pt1 + 3*s*s*t*item j of pt2 + \ 3*s*t*t*item j of pt3 + t*t*t*item j of pt4) into item j of thePt end repeat put thePt & return after tCustomPoints put round(item 1 of thePt),round(item 2 of thePt) & cr after tPoints end repeat set the customPoints of grc "BezierLine" of the owner of me to tCustomPoints set the points of grc "BezierLine" of the owner of me to tPoints Where "me" is the bezier line. This will generate 100 points for the line. The calculated coordinates are in tCustomPoints and the points need to draw the graphic line are int tPoints. Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: Rolling graphics
Jim Hurley wrote: To see this stack, run this from the message box: go url "http://home.infostations.net/jhurley/Rolling.rev"; (DO NOT CLICK ON THE LINK.) Warning: This is of importance only to those interested in programmable graphics. And anyone who just likes a little Transcipt inspiration. Dude, that stack rocks! Excellent! -- Richard Gaskin Fourth World Media Corporation __ Rev tools and more: http://www.fourthworld.com/rev ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with Importing multiple images
On 5/11/05, Kathy Jaqua <[EMAIL PROTECTED]> wrote: > Call me silly... but, does this mean I should only > have single card substacks with 20 images each? I can > do this but I am dealing with about 250 + Imported > Images to get different looks and animation effects. > (Of course I world like to have 500 Imported Images > but being an old softy I don't want to push my luck;) Hello Kathy, Just an FYI... With the tests I was running over the weekend, by using a separate stack as a container, I was successful in importing (and using) some 4300+ images (21mb) A second attempt with considerably larger image files allowed me to import 36Mb+ before I ran this old laptop out of RAM. Silly me! ;) The only "features" of the test stacks, were an edit field, button and blank image, allowing me to search for and then display an image by name. -Doc- ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
DataBase Query Builder
It doesn't look like an auto Refresh of the query was ever incorporated into the DB Query Builder. Changes to a field, which do update the database, are not visible when you come back to that record. Is there a simple way to get around this? Thank you. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: how to: insert items into a drop-down box using transcript
On 5/12/05 4:56 PM, "Emilio Gagliardi" <[EMAIL PROTECTED]> wrote: > Greetings revolution programmers, > I hope that someone can point me in the right direction of some > examples or tutorials that demonstrate how to use transcript to add > items to a drop down list based on some variable. For example, on > PreOpenCard reads the directories where the application is currently > loaded and then generates a drop-down list with items that match the > available directories. OK. The first thing to keep in mind is that this is not like REALBasic or Visual Basic, etc. where you need to iterate through the items that the drop down button will contain, adding each one to the list through each iteration. It is extremely simple... Suppose you had a variable that had a return-delimited list of strings, like: One Two Three Four and the variable that held this data was called "tList", and the drop-down button you want to use is called "DropDown", you would do this: put tList into btn "DropDown" That's it! Now you can drop down the menu button and see the menu displayed. When you select an item from the list, you get a "menuPick" message, so the button would have a script like: on menuPick pChoice -- Do what you want with the selected menu item in "pChoice" end menuPick Now to get the actual list of directories, you can check out the code here to get you going: http://www.sonsothunder.com/devres/revolution/revolution.htm?_file007 HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Unicode in mixed texts
I think I have solved this problem in my application, and I hope my comments will be helpful to Thomas McGrath (glad to help out a fellow of the Dal gCais Tuath but that is for another day). Devin is quite right, there is a general strategy here will allow the intermediate use of HTML to automate some standard unicode, but after 14 hours of experimentation there appear to be some idiosyncracies of Transcript and/or Revolution that might be noted to save time, frustration and tears for those who come after. First, if you are just dealing with texts and their display inside a bigger application (that is, your application doesn't do anything critical in terms of evaluating or manipulating East Asian text), "use Unicode" is not important to you. It will only create the risk of complication elsewhere in your app if you throw it in. On the other hand, making caseSensitive true could be very important, if you wish for any reason to make substitutes in lines of unicode-rendered text that has not been html-ized (see below). Second, there is a sequence in which this must be done that is not entirely intuitive, particularly if you already have a lot of code that you are trying to organize around Devin's principle. 1) Take the existing file and set its textFont to Unicode. Do this only once. If you accidentally have two commands for this in your mass of lines, you will get something else (it might degrade to 8-bit, I do not know; but it won't work). 2) Put the HTML text of this source file into another container ("B"). 3) SET the htmlText of a destination container to that intermediate container "B." I'm sure that more messing around would show a way to collapse this to two steps instead of three, but if you have other things going on in the application, this seems to be the most stable method. Third, when your file goes from Unicode to HTML, there will be many reasons why you might want to edit (if by some sequence of commands) the content of that intermediate HTML container. Adding or subtracting carriage returns, changing the font, etc. You may imagine that the normal range of HTML properties is available, and spend many hours trying to get the effects that HTML would promise. WRONG. Most of the established Asian fonts will do nothing. I had the best results with PMingLiu, which is common to both Mac and Windows and will probably give the least problems if you just want to get this over with for now. BEWARE: I could find no way at all to get Transcript to respond to anything other than "ja" for the language property in the font tag in the HTML container. There probably is one, but I could not find it. Yes, the Transcript documentation says you can use "chinese". If you want to pass many many revisions without any result, you can try it. Only "ja" works. It's Unicode, so really, "Venusian" should probably work, and it is really not logical to require anything at all there other than just "unicode" (but you will get crazy results if you don't have "ja"). Just a friendly word of advice. If you want to get anywhere with East Asian fonts in Transcript, don't bother trying to call your language by its name. That will only end in tears. Just stick with "Japanese" if you know what is good for you. I owe Devin a big acknowledgement for the pointer. Someday I hope to understand the kind remarks made by Dar and Lynn. After a lot of reading I understand some (not all) of their comments, but I still don't see any way to get Transcript to deal with anything other than UTF-16, which is fine with me. This is a nice, direct, clean way to solve the problem, but there are these few little pointers that can make a big difference. So, enjoy. Pamela Crossley Dartmouth USA ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
how to: insert items into a drop-down box using transcript
Greetings revolution programmers, I hope that someone can point me in the right direction of some examples or tutorials that demonstrate how to use transcript to add items to a drop down list based on some variable. For example, on PreOpenCard reads the directories where the application is currently loaded and then generates a drop-down list with items that match the available directories. I've flipped through Dan's book, the documentation (which appears to not have any code examples), the online tutorials, and google and not found anything. Any help is greatly appreciated. Many thanks, Emilio ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Problems with Importing multiple images
OK : ) Thanks to the following Help I fixed all my problem Stacks. STEP 1: (Resetting the previous Image IDS--instant fix) By Chip: Try starting with a high 6 digit number for the first image you import, then add 1 to it and set the next image's ID to it. I think this should solve your problem. OR create a button after you've loaded all your images and set the script of it to: on mouseUp --> CREATE A RANDOM HIGH STARTING ID put 123456 into tID repeat with y = 1 to the number of cards in this stack go cd y repeat with x = 1 to the number of images on this card set the id of img x to tID add 1 to tID end repeat end repeat end mouseUp STEP 2: (New Imported Images IDs) BY Thomas McGrath III: Change Image ID's on immediately on import (espically File imports) Change icon IDs in buttons that contain the graphic or use the short name property set the icon of button "mybutton" to {imageID | imageName} STEP 3: (Where to set the New Imported Images IDs) BY Jim Lyon To change the id of the new imported Image open The property inspector and make the change by (adding 1 to the last number or setting to some large number) Step 4: (I Think...) And Thanks, Xavier we have all had similar problems with that pesky send button. Kathy Graves Jaqua A Wildest Dream Software [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution Digest, Vol 20, Issue 48
, m ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re[2]: Networking reliability
Hi, sac> Thierry, sac> You did not mention which computer you were using for a server. sac> PowerMac G4 Towers have a tendency to drop network connections if they sac> have mismatched memory. sac> Paul Looney this works on MicrosoftLand and never checked on Mac. Sorry for this one. Well, to check the connection between the 2 stacks, one can try to do it on one machine first; may be it's easier for starting ? that's how i did proceed. Hope this help Best regards, thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: Rolling graphics
Jim, I had a lot of fun skiing. There used to be this game with tanks that you send over to your opponent different bombs etc. Then they get to bomb you. Just plain time wasting fun. I love it. If Rev includes bezier that would be great. Could you not then include a library for the calculations??? JAT Thanks for sharing this. Tom On May 12, 2005, at 10:43 AM, Jim Hurley wrote: To see this stack, run this from the message box: go url "http://home.infostations.net/jhurley/Rolling.rev"; Warning: This is of importance only to those interested in programmable graphics. There is talk of Run Rev including bezier curves in a future release. This will be great, but for some applications you might need the precise, calculated points and not just the rounded graphic points. It might be nice if Run Rev were to include these calculated coordinates as the graphic points-but displayed, of course, only the rounded values-but this would entail a bit of overhead. If these calculated points were included, the command: put the points of graphic "myBezier" would list the full precision with which Run Rev performs calculations. (What is this, by the way? I couldn't find it in the docs.) And there is a fix; namely: calculate the points and put them in a custom property of the curve. To do this you will need the positions of the bezier handles. Complicated if there are multiple bezier controls. More than you wanted to know. Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: Rolling graphics
Hi Jim, Amazing! Jump is very impressive: seems very natural (path, friction, rotation speed). Bravo from Paris. Le 12 mai 05, à 16:43, Jim Hurley a écrit : To see this stack, run this from the message box: go url "http://home.infostations.net/jhurley/Rolling.rev"; (DO NOT CLICK ON THE LINK.) Warning: This is of importance only to those interested in programmable graphics. As an offshoot of something else I was working on, I needed a way to set a disk rolling down a curve without slipping. I ran into some interesting problems. The curve I chose was a bezier line because I needed to be able to change the shape easily. But when I used the points of the bezier graphic, the motion of the rolling disk was herky-jerky, as some points exhibiting retrograde motion, i.e. fall *up* hill-see the first card on the stack. The origin of the problem turned out to be round-off errors in setting the points of the bezier graphic line. Run Rev will only accept whole numbers for graphic points. It will accept fractional points for the loc of objects, e.g.100.88, 200.33, but not for graphic points. (If you would like to see this changed, vote for bugzilla 356) So it is necessary to round off the calculated line coordinates to whole numbers. (Run Rev doesn't round location sites; it truncates them.) To illustrate the difficulty this causes, imagine you need the slope of the line at some point. (I need this slope so that I can position the disk so that the slope of the disk and the curve are the same at the point of contact.) To get the slope you compare two adjacent points on the curve; say the calculated points are: 9.51, 10 and 11.4999,11 If you round these points for the graphic point, then dx = 11 - 10 = 1, and dy = 1, so that the slope, dy/dx is 1. If you use the calculated values, dx = 2 (approx.) and dy = 1, so that the slope is .0.5 Big difference. 100% error. (This problem *increases* as the number of line points increases.) So I went back to the program defining the bezier curve and, beside the rounded points for the graphic display of the curve, I also created a set of "customPoints" for the curve; these are the actual calculated points derived from the bezier formula. Notice the substantial difference in performance-card one. There is talk of Run Rev including bezier curves in a future release. This will be great, but for some applications you might need the precise, calculated points and not just the rounded graphic points. It might be nice if Run Rev were to include these calculated coordinates as the graphic points-but displayed, of course, only the rounded values-but this would entail a bit of overhead. If these calculated points were included, the command: put the points of graphic "myBezier" would list the full precision with which Run Rev performs calculations. (What is this, by the way? I couldn't find it in the docs.) And there is a fix; namely: calculate the points and put them in a custom property of the curve. To do this you will need the positions of the bezier handles. Complicated if there are multiple bezier controls. More than you wanted to know. Jim Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Web sitehttp://www.sosmartsoftware.com/ Email [EMAIL PROTECTED]/ Phone 33 (0)1 43 31 77 62 Mobile 33 (0)6 20 74 50 86 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
ANN: Rolling graphics
To see this stack, run this from the message box: go url "http://home.infostations.net/jhurley/Rolling.rev"; (DO NOT CLICK ON THE LINK.) Warning: This is of importance only to those interested in programmable graphics. As an offshoot of something else I was working on, I needed a way to set a disk rolling down a curve without slipping. I ran into some interesting problems. The curve I chose was a bezier line because I needed to be able to change the shape easily. But when I used the points of the bezier graphic, the motion of the rolling disk was herky-jerky, as some points exhibiting retrograde motion, i.e. fall *up* hill-see the first card on the stack. The origin of the problem turned out to be round-off errors in setting the points of the bezier graphic line. Run Rev will only accept whole numbers for graphic points. It will accept fractional points for the loc of objects, e.g.100.88, 200.33, but not for graphic points. (If you would like to see this changed, vote for bugzilla 356) So it is necessary to round off the calculated line coordinates to whole numbers. (Run Rev doesn't round location sites; it truncates them.) To illustrate the difficulty this causes, imagine you need the slope of the line at some point. (I need this slope so that I can position the disk so that the slope of the disk and the curve are the same at the point of contact.) To get the slope you compare two adjacent points on the curve; say the calculated points are: 9.51, 10 and 11.4999,11 If you round these points for the graphic point, then dx = 11 - 10 = 1, and dy = 1, so that the slope, dy/dx is 1. If you use the calculated values, dx = 2 (approx.) and dy = 1, so that the slope is .0.5 Big difference. 100% error. (This problem *increases* as the number of line points increases.) So I went back to the program defining the bezier curve and, beside the rounded points for the graphic display of the curve, I also created a set of "customPoints" for the curve; these are the actual calculated points derived from the bezier formula. Notice the substantial difference in performance-card one. There is talk of Run Rev including bezier curves in a future release. This will be great, but for some applications you might need the precise, calculated points and not just the rounded graphic points. It might be nice if Run Rev were to include these calculated coordinates as the graphic points-but displayed, of course, only the rounded values-but this would entail a bit of overhead. If these calculated points were included, the command: put the points of graphic "myBezier" would list the full precision with which Run Rev performs calculations. (What is this, by the way? I couldn't find it in the docs.) And there is a fix; namely: calculate the points and put them in a custom property of the curve. To do this you will need the positions of the bezier handles. Complicated if there are multiple bezier controls. More than you wanted to know. Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with Importing multiple images
Jim and others, Actually another problem is with buttons that use images since they won't update to the 'new' IDs. Renaming is just the first part then the buttons need to be updated with the property inspector to the new IDs. If the button icon used a name instead of the ID(or either or) then it would not happen at all. FWIW Tom On May 12, 2005, at 7:43 AM, Jim Lyons wrote: On May 11, 2005, at 11:30 PM, Kathy Jaqua wrote: I imported 25 images into a 2 card Stack. Numbers 1 to 20 are correct. but 21(a small png image) was replaced by the 210073 spinning arrow icon and image 23 (a small gif image) was replaced by a Double Arrowed Cursor id 202614. For some reason I have never understood, Rev sometimes uses an ID for your imported image that duplicates an ID it already uses for one of its own images. If this is your problem, you just need to go to the property inspector for the incorrect images and change the ID to some unused number, and the correct image should reappear. Hope this helps. Jim Lyons ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Thierry Arbellot
Thierry, It was a surprise to me as well. I checked out your site and he must have an older version as far as I can tell. He didn't get back to me yet. But he is retired down in Florida and I think he is just doing some video work. I think he does video as a hobby. I let you know what's up. Cool Tom On May 12, 2005, at 5:41 AM, Thierry Arbellot wrote: Hi Tom, What's a surprise to see my name as a subject in this list ! Well, I have a product named "TOKI LineTest" made with Revolution. It can drive a video digitizer, and the very first release used the revVideoGrabber dll. It has been upgraded since this first release, and the last version can be downloaded from my web site http://www.tokitest.com This product is a line tester (also called pencil tester) for cartoons and animation movies. Is your father in this business ? Is he "Tom McGrath" who directed "Madagascar" ? Just curious too :-) Kind regards, Thierry On 2005, May 12, , at 00:26, Thomas McGrath III wrote: Hey, This is weird; I got this email from my Dad who lives in Florida. As far as I know he does not use Revolution at all. But I noticed the content right away of course. The subject is "Thierry Arbellot" from this very list. I think he was using a rev standalone from Thierry that must have a glitch in it. I am waiting for his response now. Curious, Tom On May 10, 2005, at 8:02 PM, Tom McGrath wrote: "revInitializeVideoGrabber "QT" ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN] Patch for improving images importation
Hi everyone, Recently, I saw some remonstrations about Rev behaviour when importing images :-( By pasting go url "http://www.sosmartsoftware.com/downloads/Import%20Images%20Patch.rev"; in the message box, you will display a patch stack which improves (does not solve all issues) when importing images. This patch was tested with Rev 2.2.1, 2.5 and 2.5.1. (build 77) on Mac OS X and Win XP. What does this patch do? First, this patch saves the components/tools/ revmenubar.rev file as components/tools/revmenubar old.rev. So, if needed, you can revert to the previous state by trashing the revmenubar.rev file and renaming the revmenubar old.rev as revmenubar.rev. It's the least I could do :-) Second, it modifies some script in the revmenubar stack in order to: - Change the ID of any imported image by adding 1000 to the ID assigned by the engine. This should avoid some of the problems reported when importing images. - Display multiple imported images in cascade. So you can see all of them :-) Best regards from Paris, Eric Chatonet. --- So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch --- Web site http://www.sosmartsoftware.com/ Email [EMAIL PROTECTED]/ Post 24, Bd de Port-Royal 75005 Paris Phone (33) 143 317 762 Mobile (33) 620 745 086 --- ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Networking reliability
Thierry, You did not mention which computer you were using for a server. PowerMac G4 Towers have a tendency to drop network connections if they have mismatched memory. Paul Looney -Original Message- From: thierry <[EMAIL PROTECTED]> To: Scott Slaugh <[EMAIL PROTECTED]>; How to use Revolution Sent: Thu, 12 May 2005 11:25:55 +0200 Subject: Re: Networking reliability Hi Scott, SS> Another issue that seems to pop up occasionally is some network reliability SS> issues. I am using the following script to create a request command. In the SS> requesting computer I put this: SS> [.] SS> Most of the time the requests make it back and forth without a problem. SS> However, occasionally the requesting computer will just time out without SS> having received a reply. The infuriating thing is that it will do this SS> several times in a row. But as soon as I run the debugger to try and figure SS> out what is going on, it works fine. Incidentally, I use " [EOT]" as an end SS> of transmission string since I sometimes transmit binary data, and seemed to SS> run into problems if I used just a single ASCII character. Have any of you SS> been able to reliably use Revolution as a networked app? Any ideas what SS> might cause these sporadic outages? Is there something I should do to SS> improve my script? Thanks! First, i've made a project which is working everyday since few months , and my customers seem to enjoy it. This project is based on a strong socket commnication between a Rev specific IDE and a PerlScript application. The comm is bi-directional and is heavily used in both side. It works on PCs, and : So far, so good. I could suggest humbly to check all the possible errors from every commands and functions related to sockets. And probably, avoiding to close the socket just after having send some datas, or could the client, after receiving his datas send a message asking the server side to close ? This reminds me an old story : like you put "[EOT]" as a marker, i did the same but put a Return char ( cr ) at the end of my marker, and this resolved one problem i had, but i don't remember exactly which one :-( IT could be that it was a specific Perl problem, but i would not bet on this one... Hope this help Best regards, thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[Fr] Re: cool HyperCard stack tutorial
Eric Chatonet <[EMAIL PROTECTED]> wrote: > Unfortunately, all this is in french only :-( pourquoi ne pas en parler sur la liste revolutionfr ? au moins ça lui redonnerait un peu de vie ;-) Envoyer un message : [EMAIL PROTECTED] S'inscrire : [EMAIL PROTECTED] Désinscription : [EMAIL PROTECTED] Fondateur de la liste : [EMAIL PROTECTED] -- Revolutionario ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with Importing multiple images
On May 11, 2005, at 11:30 PM, Kathy Jaqua wrote: I imported 25 images into a 2 card Stack. Numbers 1 to 20 are correct. but 21(a small png image) was replaced by the 210073 spinning arrow icon and image 23 (a small gif image) was replaced by a Double Arrowed Cursor id 202614. For some reason I have never understood, Rev sometimes uses an ID for your imported image that duplicates an ID it already uses for one of its own images. If this is your problem, you just need to go to the property inspector for the incorrect images and change the ID to some unused number, and the correct image should reappear. Hope this helps. Jim Lyons ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Thierry Arbellot
Hi Tom, What's a surprise to see my name as a subject in this list ! Well, I have a product named "TOKI LineTest" made with Revolution. It can drive a video digitizer, and the very first release used the revVideoGrabber dll. It has been upgraded since this first release, and the last version can be downloaded from my web site http://www.tokitest.com This product is a line tester (also called pencil tester) for cartoons and animation movies. Is your father in this business ? Is he "Tom McGrath" who directed "Madagascar" ? Just curious too :-) Kind regards, Thierry On 2005, May 12, , at 00:26, Thomas McGrath III wrote: Hey, This is weird; I got this email from my Dad who lives in Florida. As far as I know he does not use Revolution at all. But I noticed the content right away of course. The subject is "Thierry Arbellot" from this very list. I think he was using a rev standalone from Thierry that must have a glitch in it. I am waiting for his response now. Curious, Tom On May 10, 2005, at 8:02 PM, Tom McGrath wrote: "revInitializeVideoGrabber "QT" ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Networking reliability
Hi Scott, SS> Another issue that seems to pop up occasionally is some network reliability SS> issues. I am using the following script to create a request command. In the SS> requesting computer I put this: SS> [.] SS> Most of the time the requests make it back and forth without a problem. SS> However, occasionally the requesting computer will just time out without SS> having received a reply. The infuriating thing is that it will do this SS> several times in a row. But as soon as I run the debugger to try and figure SS> out what is going on, it works fine. Incidentally, I use " [EOT]" as an end SS> of transmission string since I sometimes transmit binary data, and seemed to SS> run into problems if I used just a single ASCII character. Have any of you SS> been able to reliably use Revolution as a networked app? Any ideas what SS> might cause these sporadic outages? Is there something I should do to SS> improve my script? Thanks! First, i've made a project which is working everyday since few months , and my customers seem to enjoy it. This project is based on a strong socket commnication between a Rev specific IDE and a PerlScript application. The comm is bi-directional and is heavily used in both side. It works on PCs, and : So far, so good. I could suggest humbly to check all the possible errors from every commands and functions related to sockets. And probably, avoiding to close the socket just after having send some datas, or could the client, after receiving his datas send a message asking the server side to close ? This reminds me an old story : like you put "[EOT]" as a marker, i did the same but put a Return char ( cr ) at the end of my marker, and this resolved one problem i had, but i don't remember exactly which one :-( IT could be that it was a specific Perl problem, but i would not bet on this one... Hope this help Best regards, thierry ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revmail and Tiger?
Hi Sarah, i have some trouble using revmail on Tiger... But maybe this is no special Tiger problem...? revmail "[EMAIL PROTECTED]", , "hallo","text" works as exspected. But: put line 1 of fld 2 into adresse ## a VALID e-mail address! put fld "body" into bo revmail adresse, , "Subject",bo does NOT, it only activates Mail, but does not create a new mail... Same if i use the direct references: revmail line 1 of fld 2, , "Subject", fld "body" Hi Klaus, Does fld "Body" contain any quotes? Ah, yes it does... That might confuse things. You could try replacing any quotes with a single quote and then perhaps surrounding the text with quotes and seeing if that helps. e.g. put fld "body" into tBody replace quote with "'" in tBody put quote & tBody & quote into tBody revmail adresse, , "Subject", tBody I'll give that t try and hope that my many umlauts will work then... Thanks for the hint! HTH, Sarah Best Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with Importing multiple images
On 12.05.2005 10:28:55 use-revolution-bounces wrote: >Two suggestions. I've had this problem since i started DeepCyberSpace and >XOS last year. I recorded a bugzilla and as usual, no one seemed to listen >to the >real issue - stack IDs and image IDs not within the stackID context - it >is global. > >So my solution to this ordeal is a Sorry, lotus notes sucks and i farted on teh send button - too late... The bugzilla is here if you care to vote for it... http://support.runrev.com/bugdatabase/show_bug.cgi?id=2449 Secondly, im late finishing my image library but it will resolve most these issues but the number of remaining issues, problems and crashes left remain... You can find teh latest version here: http://monsieurx.com/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=82 (Note it requires the GIM.rev library to be resized.) cheers Xavier >On 12.05.2005 08:12:51 use-revolution-bounces wrote: >>Kathy, >> >>Be careful with the import folder menu as well. I have had issues with >>it. Also, I just got bitten by the changing ID's issue. I cloned a card >>and then all of the images from the first card changed IDs. Use the >>file menu import image or import image as control and then immediately >>change IDs to play it safe. >> >>HTH >> >>Tom >> >>On May 11, 2005, at 8:44 PM, Kathy Jaqua wrote: >> >>> Hello to all out there in Computer Land, >>> >>> This is one of the greatest discussion lists I have >>> ever had the privilege to witness. RunRev is an >>> exciting environment.:) Can hardly wait until >>> Monterey! >>> >>> Is there a limit to the number of images one can >>> Import to a stack or cards in a stack? >>> >>> The problems I am having are as follows: >>> >>> I imported 25 images into a 2 card Stack. >>> >>> Numbers 1 to 20 are correct. but 21(a small png image) >>> was replaced by the 210073 spinning arrow icon and >>> image 23 (a small gif image) was replaced by a Double >>> Arrowed Cursor id 202614. >>> >>> When I switched between the 2 cards the position of >>> the imported images in the Image Library had changed. >>> After 25 Imported Images the Image Library corruption >>> (?) caused my RunRev palette to stop working. >>> >>> Is there a difference in importing from the Image >>> Library as opposed to the File Menu? >>> >>> Call me silly... but, does this mean I should only >>> have single card substacks with 20 images each? I can >>> do this but I am dealing with about 250 + Imported >>> Images to get different looks and animation effects. >>> (Of course I world like to have 500 Imported Images >>> but being an old softy I don't want to push my luck;) >>> >>> I'm using 2.5.1 RunRev from a Mac OS X 10.3.9 >>> >>> Kathy Graves Jaqua >>> A Wildest Dream Software >>> [EMAIL PROTECTED] >>> ___ >>> use-revolution mailing list >>> use-revolution@lists.runrev.com >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >>> >> >>Thomas J. McGrath III >>SCS >>1000 Killarney Dr. >>Pittsburgh, PA 15234 >>412-885-8541 >> >>___ >>use-revolution mailing list >>use-revolution@lists.runrev.com >>http://lists.runrev.com/mailman/listinfo/use-revolution > > >- >Visit us at http://www.clearstream.com >IMPORTANT MESSAGEInternet communications are not secure and therefore >Clearstream International does not accept legal responsibility for the >contents of this message.The information contained in this e-mail is >confidential and may be legally privileged. It is intended solely for the >addressee. If you are not the intended recipient, any disclosure, copying, >distribution or any action taken or omitted to be taken in reliance on it, >is prohibited and may be unlawful. Any views expressed in this e-mail are >those of the individual sender, except where the sender specifically states >them to be the views of Clearstream International or of any of its >affiliates or subsidiaries.END OF DISCLAIMER >___ >use-revolution mailing list >use-revolution@lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___
Re: Problems with Importing multiple images
Two suggestions. I've had this problem since i started DeepCyberSpace and XOS last year. I recorded a bugzilla and as usual, no one seemed to listen to the real issue - stack IDs and image IDs not within the stackID context - it is global. So my solution to this ordeal is a On 12.05.2005 08:12:51 use-revolution-bounces wrote: >Kathy, > >Be careful with the import folder menu as well. I have had issues with >it. Also, I just got bitten by the changing ID's issue. I cloned a card >and then all of the images from the first card changed IDs. Use the >file menu import image or import image as control and then immediately >change IDs to play it safe. > >HTH > >Tom > >On May 11, 2005, at 8:44 PM, Kathy Jaqua wrote: > >> Hello to all out there in Computer Land, >> >> This is one of the greatest discussion lists I have >> ever had the privilege to witness. RunRev is an >> exciting environment.:) Can hardly wait until >> Monterey! >> >> Is there a limit to the number of images one can >> Import to a stack or cards in a stack? >> >> The problems I am having are as follows: >> >> I imported 25 images into a 2 card Stack. >> >> Numbers 1 to 20 are correct. but 21(a small png image) >> was replaced by the 210073 spinning arrow icon and >> image 23 (a small gif image) was replaced by a Double >> Arrowed Cursor id 202614. >> >> When I switched between the 2 cards the position of >> the imported images in the Image Library had changed. >> After 25 Imported Images the Image Library corruption >> (?) caused my RunRev palette to stop working. >> >> Is there a difference in importing from the Image >> Library as opposed to the File Menu? >> >> Call me silly... but, does this mean I should only >> have single card substacks with 20 images each? I can >> do this but I am dealing with about 250 + Imported >> Images to get different looks and animation effects. >> (Of course I world like to have 500 Imported Images >> but being an old softy I don't want to push my luck;) >> >> I'm using 2.5.1 RunRev from a Mac OS X 10.3.9 >> >> Kathy Graves Jaqua >> A Wildest Dream Software >> [EMAIL PROTECTED] >> ___ >> use-revolution mailing list >> use-revolution@lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >> > >Thomas J. McGrath III >SCS >1000 Killarney Dr. >Pittsburgh, PA 15234 >412-885-8541 > >___ >use-revolution mailing list >use-revolution@lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: cool HyperCard stack tutorial
Hi Xavier, Andy... and all, I think that "old" HC tutorials may be useful! For instance, I put on my site the 70 tutorial stacks I wrote for the french edition of MacWorld between 1993 and 2000. Since less than 3 months, there were more than 2000 stacks dowloaded. Unfortunately, all this is in french only :-( Best regards from Paris, PS. For info, here are the first 50 subjects among more than 200: How and why to set the parameters of a handler How and why to write a function? Mastering repeat control structures Mastering condition control structures Mastering pass and exit control structures Understanding variables Creating a report Marking cards Organizing programming Mastering demos and/or examples Recursion and recursive programming HyperText ASCII code Naming menu items: traps to avoid, tips and proper etiquette What is a stack in use: tips and traps to avoid Everything you want to know about using text in HyperCard AppleScript in a stack: Why and how? Different types of architecture for a HyperCard project Numbers, calculations and HyperCard Navigating in HyperCard Everything you ever wanted to know about buttons Everything you ever wanted to know about fields Working with dates Avoiding the pitfalls of locked media Creating a preferences file Mastering palettes Defining dialog boxes with ResEdit What determines the execution speed of a stack? The passing order of messages Menus, what are they good for? Data fork and resource fork, what are they for? Drag and Drop: a user-friendly option! The standard externals in HC: why and how? The user’s environment: Why is it important? Knowing the location of a file on a disk Managing access paths dynamically Avoiding the 30,000-character limit by using a script! Put a turbo in your stacks by using global variables! Messages that HyperCard sends to fields HyperTalk operators: indispensable to master HyperCard The conventions to write messages, functions and properties How to identify HyperCard objects correctly “It”, the most useful all-around variable in HyperCard Avoiding the pitfalls of a pop card Menus and buttons: Respecting the interface is essential! Knowing and respecting the user’s environment is essential! What is the purpose of quotation marks in HyperTalk programming? The coordinate system in HyperCard Boolean values [true] and [false] Loosen up with [pass] and [send] etc. Go to http://www.sosmartsoftware.com/?r=hypercard&l=en for more info :-) Le 12 mai 05, à 09:50, [EMAIL PROTECTED] a écrit : True they are relics but not useless in any way... I just posted them for their scripting techniques, not their utility value. Amicalement, Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Web sitehttp://www.sosmartsoftware.com/ Email [EMAIL PROTECTED]/ Phone 33 (0)1 43 31 77 62 Mobile 33 (0)6 20 74 50 86 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: cool HyperCard stack tutorial
Andy, True they are relics but not useless in any way... I just posted them for their scripting techniques, not their utility value. Cheers Xavier On 12.05.2005 05:53:13 use-revolution-bounces wrote: >Hasn't it been long enough that those stacks are relics? Or to rephrase >that, haven't the best of the Hypercard stacks already been assimilated into >the modern high-level languages such as Rev? > >Granted, my own HyperCard stacks are personal treasures and they'll live in >my memory till I die, but I wouldn't wish them on today's programmer or user >public. > >Imho, > >Andy > > >- Original Message - >From: "MisterX" <[EMAIL PROTECTED]> >To: "'How to use Revolution'" ; >"'Discussions on Metacard'" >Sent: Wednesday, May 11, 2005 6:33 PM >Subject: cool HyperCard stack tutorial > > >> Medium level scripting (beyond the basics...) >> >> http://www.mactech.com/articles/mactech/Vol.04/04.07/AutoHyperEdit/ >> >> dont forget >> >> http://www.mactech.com/articles/mactech/Vol.04/04.09/ScriptTips/ >> >> and >> >> http://www.mactech.com/articles/mactech/Vol.05/05.01/ScriptTipsII/ >> > > > >___ >use-revolution mailing list >use-revolution@lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution