Re: Plain text posts please
>> Do you think of somewhat like >> http://lists.runrev.com/pipermail/use-revolution/? > -- > This goes nowhere. Is it supposed to be an actual website, or just musing > what might be? All I get is the eternal beachball. Maybe your e-mail client thinks that the "?" is part of the URL too. So just try http://lists.runrev.com/pipermail/use-revolution/ Terry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Plain text posts please
on 2/26/02 1:30 PM, Richard Hillen at [EMAIL PROTECTED] wrote: > Do you think of somewhat like > http://lists.runrev.com/pipermail/use-revolution/? -- This goes nowhere. Is it supposed to be an actual website, or just musing what might be? All I get is the eternal beachball. Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
on 2/26/02 7:39 AM, Terry Vogelaar at [EMAIL PROTECTED] wrote: > OK, I get the point. Let's say 'most text-based data'. I mean Adobe, > Macromedia and Microsoft plan to use XML widely, so why should we smaller > developers stay behind? -- I see what you mean, and from that perspective, I think you're right. I guess I just don't buy into XML being a metaphor for the 'Unified Theory' is all. Blessings, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: reordering lists
> I must be missing something: the engine *never* centers a selection, > and the only time it changes the scroll at all is if you select a line > with a script that would not otherwise be visible in the field. Hm. I just did a test in MC 2.4.2b1 and it doesn't happen any more. Did something change? -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution digest, Vol 1 #229 - 12 msgs
On Tuesday, February 26, 2002, at 06:54 PM, Scott Raney wrote: > I must be missing something: the engine *never* centers a selection, > and the only time it changes the scroll at all is if you select a line > with a script that would not otherwise be visible in the field. Maybe it's me that missing something instead. But in all versions of MC up until the current beta, clicking on a visible line in the Control Browser would bounce that line to the middle of the field. In Ken's 8-line field example, if lines 1 to 4 were visible and I clicked on line 4, it would scroll to the position that line 2 used to hold -- at least in the Control Browser. Since I could find no scripts in the browser to control the behavior I assumed it was in the engine. Maybe its in a backscript somewhere instead. Note this is for visible lines, not hidden lines, and not when scripting a selection but when clicking on one. No other UI allows that behavior that I know of. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Help please?
Try this, you'll have to introduce a wait, otherwise on today's fast computers it all happens within a fraction of a second that you don't see it! Unlock screen should redraw the screen. on mouseDown repeat 45 times lock screen set the textSize of character 4 of line 1 of field "Txtfield1" to 8 unlock screen wait 5 ticks lock screen set the textSize of character 4 of line 1 of field "Txtfield1" to 24 unlock screen wait 5 ticks end repeat end mousedown On 27/2/02 12:41 am, "Sam Griffith" <[EMAIL PROTECTED]> scribed: > Hello all, > > I'm trying to find out how to get a text field to redisplay during a > handler? Below is the code I want to do. It animates a character getting > bigger and smaller 45 times. Any help would be appreciated > > on mouseDown > repeat 45 times > set the textSize of character 4 of line 1 of field "Txtfield1" to 8 > > -- want the text field to update before doing this > > set the textSize of character 4 of line 1 of field "Txtfield1" to 24 > end repeat > end mousedown > > > -- > Sam Griffith Jr. > email: [EMAIL PROTECTED] > Web site: http://homepage.mac.com/staypufd/index.html > > > ___ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution -- Ian Summerfield Macintosh Consultant - Hastings UK ICQ: 4378866 -- This E-mail is from Ian Summerfield's home system. The contents and any attachments to it include information that is private and confidential and should only be read by those persons to whom they are addressed. Ian accepts no liability for any loss or damage suffered by any person arising from the use of this e-mail. Ian does not accept any responsibility for viruses and it is your responsibility to check the email and attachments (if any). If you have received this e-mail in error, please destroy and delete the message from your computer. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
one button, many cards?
Is there a way to create a button (say a back or forward button that moves between cards of a stack) and have that button show up on all the cards automagically? can I just set some property of the button to enable this? thanks -zac ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: reordering lists
Scott, > I must be missing something: the engine *never* centers a selection, > and the only time it changes the scroll at all is if you select a line > with a script that would not otherwise be visible in the field. Now > someone might make an argument that having the default be to allow an > invisible selection is a feature, but I'd say they have their work cut > out for them... I'm not going to make a case for being able to select a line that is out of view in the current scrolling list, but I *would* like to make the case that if you select a line via script that the field should scroll only until it is shown in the list and not attempt to center it. For example, if a field displays 4 lines-worth of text and it has 8 lines of text in it, and it is fully scrolled to the top, if you execute "set the hilitedLines of field 1 to 7", the field should scroll three lines up and only display lines 4-7 of the field with line 7 highlighted. Similarly if you then execute "set the hilitedLines of field 1 to 2", the field should scroll so that lines 2-5 of the field are highlighted. I think that it is the unnatural behavior of having the hilite go to the center of the list that is at issue here. 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
Help please?
Hello all, I'm trying to find out how to get a text field to redisplay during a handler? Below is the code I want to do. It animates a character getting bigger and smaller 45 times. Any help would be appreciated on mouseDown repeat 45 times set the textSize of character 4 of line 1 of field "Txtfield1" to 8 -- want the text field to update before doing this set the textSize of character 4 of line 1 of field "Txtfield1" to 24 end repeat end mousedown -- Sam Griffith Jr. email: [EMAIL PROTECTED] Web site: http://homepage.mac.com/staypufd/index.html ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A helping Hand with Graphics speed and masks
on 2/26/02 4:38 AM, Matt Denton at [EMAIL PROTECTED] wrote: > Hi there speed fiends, > -- Hi Matt, I can't answer your queries because I'm too new to RR to be that far into the inner sanctum, but you should know your post ended up with three copies in succession on the list. Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OOP in Rev
Mat Korica asks: > So how do the standard object-oriented programming concepts translate into > the Rev world? How do I make classes, subclasses, instances, etc. Traditional OOP per se is not easily done in an xTalk. There are common elements between xTalk and OOP systems, but each model has unique strengths and weaknesses which offer different ranges of benefits for the job at hand. I have hobbyist interest in automata and simulations, where OOP is particularly useful. I crafted a couple of tests for a framework that will give me enough OOP-like behavior to get the job done and still keep the code simple. It's nothing fancy, little more than a slightly slower verion of the parentScript feature I keep requesting, but might be useful: I have a stack named "Classes" that contains a bunch of buttons. The scripts of all buttons in the Classes stack are inserted as backcripts on startup. The script of each Class button has handlers that take this form: . e.g., cFieldClass.mouseUp cDataEntryClass.closeField The system has a frontscript that traps most system messages, and checks the target for a custom property named "Class". We can call this the Dispatcher. If the target has a Class property the Dispatcher simply prepends it to the name of the message and sends that to the target. For example, suppose you click on a button. The Dispatcher gets the message first with this trap: on mouseUp doClass the params pass mouseUp end mouseUp The doClass handler is also in that frontscript: on doClass get the Class of the target if it is not empty then if there is not a btn it of stack "classes" then exit doClass put the params into tParams delete word 1 of tParams delete char 1 of tParams delete last char of tParams put cr&"on "&it&"."&word 1 of tParams into tCheckStr if tCheckStr is in the script of btn it of stack "classes" then send it&"."&tParams to the target end if end if end doClass The resulting "cFileSelector.mouseUp" message is sent to the target, and since the target doesn't handle it directly it passes through to the class definition for cFileSelector, which is the backscript for the button of that name from the Classes window: on cFileSelector.mouseUp answer file "Select a file:" if it is empty then exit to top set the uFile of the target to it end cFileSelector.mouseUp While this message heirarchy scheme is only one-deep, it's relatively fast and allows you an easy way to handle messages for a great many objects without ever putting any scripts in any of them. You just set one property, and their behaviors change. To measure performance, I modified the Dispatcher's doClass handler to measure speed: on doClass put the milliseconds into t repeat 1000 get the class of the target if it is not empty then if there is not a btn it of stack "classes" then exit doClass put the params into tParams delete word 1 of tParams delete char 1 of tParams delete last char of tParams put cr&"on "&it&"."&word 1 of tParams into tCheckStr if tCheckStr is in the script of btn it of stack "classes" then send it&"."&tParams to the target end if end if end repeat put (the milliseconds - t) /1000 && the params end doClass On my G4/500, and using only stub handlers in the button class so as not to muddy the waters, it seems the Dispatcher takes about 1/10 of a millisecond to execute (0.096 ms avg). Noticeable difference, esp. since most messages are simply passed without processing, as only those messages handled by the target's class ever get dispatched. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Mouse polling
Charles On Wednesday, February 27, 2002, at 02:49 , you wrote: I don't have the time to give a solid and detailed response to the mousepolling controversy. Suffice it to say that I need to do detailed mousepolling within repeat structures. snip On 13 February you wrote: Hi, This bit of code doesn't work right (though in Supercard it's fine) I've seen recommendations for using "send" but don't I open up to other inadvertent/undesirable user events or processes happening. I need to keep the user focused within a specific loop. Am I missing something? Here's the kind of code I'm talking about. In this example the script goes into a btn and there's a single fld . Warning... This code has crashed Rev and frozen my computer (Mac Pismo PB). The larger purpose of this code is for the creation of single switch software for kids who can't manipulate a keyboard but can press and release switches. I've been doing this stuff for years in SuperCard. I need to carefully scrutinize switch (mouse btn in this case) activity to accommodate for a variety of behaviors. The code strategy below is what I traditionally use for hiliting a series of objects (btns, flds, text within field, etc.) one at a time, for a duration of time, and as well, using the amount of time involved in mouse downs and ups to create multiple signal possibilities. Any thoughts on this appreciated. Both I and Rob Cozens (I think. I didn't keep the mail) replied seeking clarification of your requirement. I wrote (and Rob to similar effect): Is it your intention that - one click on the mouse does nothing (from the user view) - two clicks within fifteen seconds generates a reward message, which disappears on mouseUp - no other events are accepted after the first mouseClick until timeout or a second click on the same button Since you did not respond to either message, I presume you solved your problem, but you are still seeking synchronous mouse functions without various other helpful people having had the opportunity to see if it might work differently :-) What you MUST have is a solution to your interface requirement. Let us then find out if that solution entails particular programming features, rather than working the other way around. If it does, your argument to retain those features has more force, and Scott will have a clearer idea on an adequate implementation. regards David
Re: OS 9.1
> Occasionally when opening object properties one layer (eg > script) "tears" away from the rest and won't unstick from the mouse. > Or when resizing the script window the bottom right corner won't > unstick from the mouse. I get this too. I moved from OS 9.2.1 to OS X instead, it happens less often but still happens. Personally my theory is that the Revolution guys have been using "the mouse" within repeat loops! Under OS X it's often cleared by switching out of Revolution and back in again. Under OS 9 I used to do that with command-tab. -i- ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Plain text posts please
Hello Ken wrote: > PLEASE, PLEASE, PLEASE: ARCHIVE THIS LIST. If you were using it to learn, > like many of us, you'd see the value of that immediately. Do you think of somewhat like http://lists.runrev.com/pipermail/use-revolution/? Richard. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Little generic arrows (id 201317)
On 26/2/02 6:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> scribed: > > > When I set the little arrows up exactly as stated above without any script, it > does nothing when clicked up/down. However, if I insert the little arrows > button directly from the object library, it automatically inserts a ton of > script into the script properties, it works, but there has to be a better way > to do this; I cannot imagine having to have all of that script inserted into > every little arrows button that you may use. > > I think that it probaly should be referencing the associated script directly > from the object library, automatically on mouse down, but it is not doing so. > Without the script being placed directly into the little arrows button > properties, it does not work. > > Please someone help! this is driving me crazy. > > Thanks > > Steve > > I turned off the HTML formatting on your message, apparently it plays hell with digest mode readers! Yes, the script is held behind each little arrow, I wouldn't call it a ton of script, but it's more than 10 lines if that's what you mean! Yes, it's inefficient too if you're using lots of little arrows. No, it should not be referencing the object library directly. When you say "Without the script being placed directly into the little arrows button properties, it does not work.", where have you moved the script to? It's got to go somewhere in the message hierarchy. If you wanted to move it to the card or stack script then you'll need to change the references to "me" to the target, and keep a global variable to say that it's a "little arrows" button that was clicked so that the mousemove and other handles know not to apply the actions to other objects, it's not difficult but would require quite some modification. I'd say don't worry about the script repetition unless your using hundreds of little arrow scripts! Look at it this way, it may be inefficient coding but at least Revolution finds the code it needs quickly, which must make it run faster than passing messages up the hierarchy! -i- ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Selected Text
Yves and Klaus, Thanks for the solution. It works great. Bill On Tuesday, February 26, 2002, at 11:51 AM, yves COPPE wrote: >> I would like to move selections from one field to another. What I have >> written is to simply show both list fields and clicking a line in one >> field adds the information to the other with the following script: >> >> on mouseUp >> put return & the selectedText after field "groups" >> end mouseUp >> >> It works but then leaves the selectedText hilited. If I selected >> another line then all of the selectedText lines copy again so there >> are duplicates. How can I deselect the selecttedText? > > Set the hilitedlines of me to "0" > > > -- Greetings. > > Yves COPPE > > Email : [EMAIL PROTECTED] > ___ > 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: ready made buttons etc
While what I know would fit on the proverbial head of a pin, I too would be interested, particularly in developing examples and/or templates for k-12 instructional uses. Judy On Tue, 26 Feb 2002, Steve Messimer wrote: > on 2/25/02 8:15 PM, [EMAIL PROTECTED] at > How about starting the beast ourselves? What I have in mind is an open > source "how to do it" stack that folks could add sample buttons fields > scripts and functions to. This is easy to say. We will have to do a lot of > thinking about the scope of this before we begin. I think that this may turn > out to be quite useful for all of us. > > I would certainly be willing to participate in such an endeavor. > > Anybody else on the list interested? If anyone has any ideas about how this > could be organized please feel free to chime in. > ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
I may be asking a really stupid question here, but with rev's touted HC-compatibility, shouldn't it be a piece of cake to 'import' the HC stacks into rev examples? Judy PS: sorry about the wierd line-wraps -- looks crappy under my telnet app too. > > In a message dated 2/25/02 8:09:30 PM, [EMAIL PROTECTED] writes: > > > > << It would be great if one of you knowledgeable rev people would > > create a > > stack > > of ready made buttons and ready made fields. Some of you remember that > > hypercard included these in their software. These sure would help > > beginning > > programers.They could be posted for download at Runrev. Anybody > > interested. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: reordering lists
On Tue, 26 Feb 2002 Jacqueline Landman Gay <[EMAIL PROTECTED]> wrote: > On Tuesday, February 26, 2002, at 03:18 AM, Ken Ray wrote: > > >> It seems that a revolution listfield (with "autohilite" "listbehaviour" > >> + > >> "click to toggle" checkboxes all true) wants to scroll the hilited line > >> to > >> the vertical centre of the field, at all times, and of course that's > > really > >> undesirable here, I want it to stay where it was when I clicked it, > >> unless > >> I'm actually dragging and the field needs to scroll to bring other lines > >> into view, which is what I'm used to in HC, windowscript, and in fact all > >> other mac apps that let you 'peel off' a line from a scrolling field. > >> > >> Sigh... if I anybody knows a way to subvert this "feature"... > > > > I'm glad you brought this up. I ran into the same behavior in attempting > > to > > create a table object. I would sincerely recommend that Rev/MC change this > > "feature" so that it only scrolls if the hilite is at the bottom or top of > > the field. > > The behavior is in the engine, and Scott Raney and I have had a couple of > conversations about it. I don't know of any other application on any > platform that pops a selected line to the middle the way MC/Rev does. It > is hugely disorienting to the user. The way the Control Browser in MC > bounces around has always made me crazy, and I talked Scott into changing > the script in the 2.4.2 browser to block the behavior -- but it still > remains in the engine and we have to work around it in our scripts. I must be missing something: the engine *never* centers a selection, and the only time it changes the scroll at all is if you select a line with a script that would not otherwise be visible in the field. Now someone might make an argument that having the default be to allow an invisible selection is a feature, but I'd say they have their work cut out for them... Regards, Scott > -- > Jacqueline Landman Gay | [EMAIL PROTECTED] > HyperActive Software | http://www.hyperactivesw.com Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
re: Is there a message watcher?
>From: Devin Asay <[EMAIL PROTECTED]> >Subject: Is there a Message Watcher >To: [EMAIL PROTECTED] >Reply-To: [EMAIL PROTECTED] > >One of my favorite HC development tools is the Message Watcher. I've >looked for this but haven't found anything equivalent in Rev. Am I >just overlooking something? That, and how do I get a traceback of handles if an error occurs. I can open the script. Great. But how did I get there? Is debugging with breakpoints possible? (Man, I love gdb...) -- Victor Eijkhout <[EMAIL PROTECTED]> tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Trouble with sliders part 2
Dear all, Just a follow-up to my preveiou message about sliders. I have now made a standalone of my project: http://engineering.cua.edu/biomedical/labs/gait/Insole/SmartSole.exe - fiddle with the sliders and watch the graphs change. I was surprised to find that it works BETTER than the source code! It doesn't crash, although eventually fails to regraph (I'm using Ken Simons/Tuviah Snyder's graph & table object from the website), the sliders continue to work. Can anyone tell me why the standalone should behave better than the source, and suggest what is happening when it fails? There is a lot of data in there and a lot of number-crunching, so I can imagine that it must be a memory allocation problem. Chris -- Dr. Chris Kirtley MD PhD Associate Professor HomeCare Technologies for the 21st Century (Whitaker Foundation) NIDRR Rehabilitation Engineering Research Center on TeleRehabilitation Dept. of Biomedical Engineering, Pangborn 105B Catholic University of America 620 Michigan Ave NE Washington, DC 20064 Tel. 202-319-5440, fax 202-319-4287 Email: [EMAIL PROTECTED] http://engineering.cua.edu/biomedical Clinical Gait Analysis: http://guardian.curtin.edu.au/cga Send subscribe/unsubscribe to [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Selected Text
HI bill, try this: > I would like to move selections from one field to another. What I have > written is to simply show both list fields and clicking a line in one > field adds the information to the other with the following script: > > on mouseUp > put return & the selectedText after field "groups" set the hilitedlines of me to 0 ## add this line > end mouseUp > > It works but then leaves the selectedText hilited. If I selected > another line then all of the selectedText lines copy again so there are > duplicates. How can I deselect the selecttedText?field but I can't > figure that out either. Is there an example of this somewhere? > > Bill Au revoir Klaus Major [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: reordering lists
On Tuesday, February 26, 2002, at 03:18 AM, Ken Ray wrote: >> It seems that a revolution listfield (with "autohilite" "listbehaviour" >> + >> "click to toggle" checkboxes all true) wants to scroll the hilited line >> to >> the vertical centre of the field, at all times, and of course that's > really >> undesirable here, I want it to stay where it was when I clicked it, >> unless >> I'm actually dragging and the field needs to scroll to bring other lines >> into view, which is what I'm used to in HC, windowscript, and in fact all >> other mac apps that let you 'peel off' a line from a scrolling field. >> >> Sigh... if I anybody knows a way to subvert this "feature"... > > I'm glad you brought this up. I ran into the same behavior in attempting > to > create a table object. I would sincerely recommend that Rev/MC change this > "feature" so that it only scrolls if the hilite is at the bottom or top of > the field. The behavior is in the engine, and Scott Raney and I have had a couple of conversations about it. I don't know of any other application on any platform that pops a selected line to the middle the way MC/Rev does. It is hugely disorienting to the user. The way the Control Browser in MC bounces around has always made me crazy, and I talked Scott into changing the script in the 2.4.2 browser to block the behavior -- but it still remains in the engine and we have to work around it in our scripts. I think the engine should eliminate the behavior entirely. Scott's argument is that it is necessary in order for the Control Browser to display the right line when a user clicks on an object in the stack window, but I think that behavior could be easily controlled by a script rather than by the engine. The disadvantages of auto-centering a selected line in almost all user applications far outweigh the small advantages that occur within the development environment. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A helping Hand with Graphics speed and masks
On Tuesday, February 26, 2002, at 03:49 AM, Matt Denton wrote: > I'm building a cute little app that displays a series off five animated > objects, based on a series of timed events, animating usually only one > object at a time. I'm having a lot of trouble getting the 'speed' up > and keeping it consistent. I know some clever cookies on this list > have worked out or found ways to speed up -- sometimes many many > multiples of speed increase, such as pencil tool instead of line tool > for turtle graphics -- all sorts of graphics and text handling. I'm > hoping someone can help... > The problem is I have 10 objects, each with masks attached. Originally > I fudged the masks, and tried animated GIFs with but that blew out my > project size as I had to 'render off' about 200 animations, ie no > masks. Surprisingly the animated GIFs didn't seem to perform very well > anyway...??? FWIW, animated GIFs *should* work fine. I've built a lot of things you shouldn't do with animated GIFs in MC and have had good results. One stack in particular ran between 30 and 40 animated GIFs simultaneously, randomly changing frames and positions, and this worked flawlessly on Mac systems (but choked on Win98), so I'm not sure why you are experiencing problems as you describe. Your laptop *may* have an old video driver (if there is one) or high power optimization settings. Keep in mind you don't have to rely on the built in frame timing of the GIF -- you can use MC/REV to display any frame of the GIF at any time. I often purposely set frame timing to 1 fps when building GIFs for use in MC/REV so I can see the results on screen when controlled via script. Write your own scripts to manage GIF playback, and take note of the following functions: - frameCount - repeatCount - currentFrame And now that we can control the blendLevel of images, you can play animated GIFs translucently, while moving them across the screen and controlling their frame rate as desired. This is a somewhat underestimated feature of MC/REV for creating animation that in some cases rivals video. As far as PNGs go, my experience has been that manual image swapping (via setting the icon of a button) can achieve almost the same speed/performance as animated GIF, even with 8 bit masks, as long as the images do not overlap. As soon as the objects touch, the playback speed drops to about 1/2 of normal speed or less. Kudos must go to the MC/REV teams for providing all this control over images. Now we just need to get some antialiased text and draw objects in there... :-) Regards, Scott Rossi Creative Director, Tactile Media [EMAIL PROTECTED] http://www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: searching lists
on 2/25/02 8:15 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > If you are not on a Mac you can mix the methods by saving relevant files > to disk (faster than copy-paste) and using your newly-minted database > Rev stack to auto-read and delete all files in that directory at > intervals, saving you a bit of effort creating the database. David, I too am developing on a Mac. I hadn't thought of using sherlock... duh. I'm sure that will work fine until I have the time to build something. Thanks for the suggestion. Steve Messimer Computing, Inc. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ready made buttons etc
on 2/25/02 8:15 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > It would be great if one of you knowledgeable rev people would create a stack > of ready made buttons and ready made fields. Some of you remember that > hypercard included these in their software. These sure would help beginning > programers.They could be posted for download at Runrev. Anybody > interested. > > Jack Jack, How about starting the beast ourselves? What I have in mind is an open source "how to do it" stack that folks could add sample buttons fields scripts and functions to. This is easy to say. We will have to do a lot of thinking about the scope of this before we begin. I think that this may turn out to be quite useful for all of us. I would certainly be willing to participate in such an endeavor. Anybody else on the list interested? If anyone has any ideas about how this could be organized please feel free to chime in. Steve Messimer Computing, Inc. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Selected Text
I would like to move selections from one field to another. What I have written is to simply show both list fields and clicking a line in one field adds the information to the other with the following script: on mouseUp put return & the selectedText after field "groups" end mouseUp It works but then leaves the selectedText hilited. If I selected another line then all of the selectedText lines copy again so there are duplicates. How can I deselect the selecttedText? I would like to change the cursor to show what it will do. For example, one field will add the item to the target field but clicking the line in the target field will delete the line. The built in cursors are not obvious enough. Is it possible to make different cursors? If so, how? An alternative to this would be to have the items in the field checked but I can't figure out how to add a ckeckbox to a field. I would also like to add other controls to each line of a field but I can't figure that out either. Is there an example of this somewhere? Bill ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Mouse polling
On Tue, 26 Feb 2002 Charles Silverman <[EMAIL PROTECTED]> wrote: > I don't have the time to give a solid and detailed response to the > mousepolling controversy. Suffice it to say that I need to do detailed > mousepolling within repeat structures. Unfortunately I think we can't let you off that easy, because unlike most of us, you actually seem to know what you want ;-) At the very least, you have to answer the question: is asynchronous (real time) polling of the mouse buttons with the mouse function adequate, or is it important to preserve the event-based implementation of HyperCard (and I thought SuperCard, though I haven't actually tested that)? In your case, I think the distinction would be "is it acceptable for "the mouse" to return "up" even if the mouse had been pressed down and up between sequential calls to the mouse function? A related issue is with the "wait" command. With the current synchronous mouse function "wait until the mouse is down" will always return when the user clicks. With an async function it's possible that you will miss a quick click because there may be a delay between when the wait function is able to make sequential checks. If the mouse goes down and then back up in that interval, you'll miss it. Regards, Scott > Thanks, > > Charles Silverman > > > > Charles Silverman, M.Ed. > Coordinator, Accessible Interactive TV Project > Centre for Learning Technologies/ITM > Ryerson Polytechnic University > Toronto, Ont. CANADA Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Scroll bar crash
Dear all, I've just started with Revolution, although I used to be a big Supercard scripter. I have a couple of scroll bars that are causing my application to crash. They work fine for a few scrools then crash - it seems to be when I dwell too long on the drag operation. I do have a lot of code with some mean number crunching (and graph plotting) in the 'on scrollBarDrag' handler. Do you think that would do it? If so, is there any trick to get around it. I guess if I could somehow damp it down so that it doesn't execute the code too often it might work. But I guess this is also a bug report, since it shouldn't crash Revolution, should it? TIA, and hello to everyone on the list! Chris -- Dr. Chris Kirtley MD PhD Associate Professor HomeCare Technologies for the 21st Century (Whitaker Foundation) NIDRR Rehabilitation Engineering Research Center on TeleRehabilitation Dept. of Biomedical Engineering, Pangborn 105B Catholic University of America 620 Michigan Ave NE Washington, DC 20064 Tel. 202-319-5440, fax 202-319-4287 Email: [EMAIL PROTECTED] http://engineering.cua.edu/biomedical Clinical Gait Analysis: http://guardian.curtin.edu.au/cga Send subscribe/unsubscribe to [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Little generic arrows (id 201317)
On 24/2/02 9:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> scribed: Hello, I am trying to associate the Little generic arrows (image ID 201317) with a field, to display a range in the set numbers (1-30) when clicked up or down. I have set the cTargetField to the field name, and I have set MInValue and MaxValue for the arrows button. However, when I click the arrows up or down the number displayed in the field does not change. Do I need to put something in for the script of either the button or the field? Thanks Steve In a message dated 2/24/02 9:19:07 PM Eastern Standard Time, [EMAIL PROTECTED] writes: Nothing is needed in the scripts. You should put the name of the target field in cTargetField, don’t put it in quotes or anything like that. Your destination field should have two custom properties, one called cMinValue and the other called cMaxValue. I notice you say you set the arrow buttons? No, that’s not where to put the cMinValue and cMaxValue, you put them on the field. -i- When I set the little arrows up exactly as stated above without any script, it does nothing when clicked up/down. However, if I insert the little arrows button directly from the object library, it automatically inserts a ton of script into the script properties, it works, but there has to be a better way to do this; I cannot imagine having to have all of that script inserted into every little arrows button that you may use. I think that it probaly should be referencing the associated script directly from the object library, automatically on mouse down, but it is not doing so. Without the script being placed directly into the little arrows button properties, it does not work. Please someone help! this is driving me crazy. Thanks Steve
Mouse-poll stress
I wanted to apologize for being too strident on my previous post. I've been pretty stressed about the mousepolling not working for me. Regards, Charles Silverman ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Mouse polling
I don't have the time to give a solid and detailed response to the mousepolling controversy. Suffice it to say that I need to do detailed mousepolling within repeat structures. My work evolves creating alternative input solutions for kids with disabilities. I've been writing software for this population for 12 years. I'm looking at kids who have unusual physical movements. They press a switch with some part of their body. The Mac sees the switch press as a mouse button press. I need to filter a lot. For example, what if the user presses a switch by accident. I look at the duration the switch press, to look at differing lengths of time signaling different activities. Traditionally I did all this in SuperCard, crash-free and intuitively. The allure of Metacard/Revolution has been 1)speed, 2)text field features, 3)many built-in features, 4) clear, ongoing work and excellent communications with user community, 5)frequent upgrades, 6) cross-platform support, etc. I don't want to switch to another language, especially now that I've invested some serious time with MetaCard (and dazzled a number of C++ and Java students in our lab with what Rev can do). But all these gains are worth nothing to me if the key piece, mousepolling, is not available. Here's to hoping that some serious work will happen to fix these features. Thanks, Charles Silverman Charles Silverman, M.Ed. Coordinator, Accessible Interactive TV Project Centre for Learning Technologies/ITM Ryerson Polytechnic University Toronto, Ont. CANADA ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
> "Ken Norris (dialup)" wrote: >> I am >> working on XML handling at the moment, because I think XML should be the way >> all data should be stored. > -- > Why? It's like saying all images should be stored in .gif files. > > Best regards, > Ken N. OK, I get the point. Let's say 'most text-based data'. I mean Adobe, Macromedia and Microsoft plan to use XML widely, so why should we smaller developers stay behind? Terry ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
OOP in Rev
So how do the standard object-oriented programming concepts translate into the Rev world? How do I make classes, subclasses, instances, etc. Thanks, Mat --- Make a FREE food donation to hungry people around the world. http://www.thehungersite.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
In a message dated 2/26/02 7:25:57 AM, [EMAIL PROTECTED] writes: << I am sure that nicely commented scripts will be appreciated ? :-) >> You are so right. It is alwas great when someone put the script as an example to the problem or the solution to a problem . I have been copying many of them , and putting them to work in my "Examples" stack with much delight. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
A helping Hand with Graphics speed and masks
Hi there speed fiends, I'm building a cute little app that displays a series off five animated objects, based on a series of timed events, animating usually only one object at a time. I'm having a lot of trouble getting the 'speed' up and keeping timing consistent across platforms/machines. I know some clever cookies on this list have worked out or found ways to speed up -- sometimes many many multiples of speed increase, such as pencil tool instead of line tool for turtle graphics -- all sorts of graphics and text handling. I'm hoping someone can help... The problem is I have 10 objects, each with masks attached. Originally I fudged the masks, and tried animated GIFs with but that blew out my project size as I had to 'render off' about 200 animations, ie no masks. Surprisingly the animated GIFs didn't seem to perform very well anyway...??? Not sure why. I have small objects but I want to get around 20-25 frames per second, if possible. The GIFs, even just on their own, seemed to run sluggishly... weird. BTW, I'm on a 500Mhz Powerbook G4 so you'd expect the GIFs to be OK. Also I'm running OSX, however I have stepped back to 9.2.2 to see if it was some Quartz/Carbon conversion bottleneck. Eventually I hope to get reasonable animation out of an old 7100 and PII 350 for 'low end performance tests'... haven't even copied the project to these yet! Next I tried using 32bit PNGs and used the 'move command' to animate each object (just moves in this case) but the masks seemed to slow things down to what appeared to be 6-10 fps. So I have 10 objects, with only three ever overlapping, each with masks but they run like molten lava. I guess PNGs are best 'static'. I noted on the list that Mac masking is slow, but not this slow? We are talking smallish objects. I'm trying to work out the FASTEST way to display graphics across both platforms. I'm trying to avoid QuickTime as I truly want to keep away from potential additional installs... this is only a small tool I'm writing. Next step -- which I don't really want to take -- is wired sprites and masks in QuickTime. I've had great joy in programming the back-end code that maintains the data, sends messages etc. but had a very frustrating time dealing with graphics, or at least 'fast moving' graphics. Love Revolution for the power under the hood, if I could only work out how to get some Fast Blast Pixel Blittering Singing Graphics... Any tips or comments would be appreciated. There must be some clues somewhere... Many thanks! M@ Matt Denton ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
Hi Randy and all, > > In a message dated 2/25/02 8:09:30 PM, [EMAIL PROTECTED] writes: > > << It would be great if one of you knowledgeable rev people would > create a > stack > of ready made buttons and ready made fields. Some of you remember that > hypercard included these in their software. These sure would help > beginning > programers.They could be posted for download at Runrev. Anybody > interested. > > Jack >>> > > As soon as I get anything of substance I'd be glad to post. I too > appreciate > what others offer. > > Randy Kent > Stagecraft, Inc. what kind of examples would you like to see ? "Some readymade buttons and fields" is definitively not enough info to fulfill your wishes ;-) I am sure that nicely commented scripts will be appreciated ? :-) Regards Klaus Major [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
In a message dated 2/25/02 8:09:30 PM, [EMAIL PROTECTED] writes: << It would be great if one of you knowledgeable rev people would create a stack of ready made buttons and ready made fields. Some of you remember that hypercard included these in their software. These sure would help beginning programers.They could be posted for download at Runrev. Anybody interested. Jack >> As soon as I get anything of substance I'd be glad to post. I too appreciate what others offer. Randy Kent Stagecraft, Inc. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
A helping Hand with Graphics speed and masks
Hi there speed fiends, I'm building a cute little app that displays a series off five animated objects, based on a series of timed events, animating usually only one object at a time. I'm having a lot of trouble getting the 'speed' up and keeping it consistent. I know some clever cookies on this list have worked out or found ways to speed up -- sometimes many many multiples of speed increase, such as pencil tool instead of line tool for turtle graphics -- all sorts of graphics and text handling. I'm hoping someone can help... The problem is I have 10 objects, each with masks attached. Originally I fudged the masks, and tried animated GIFs with but that blew out my project size as I had to 'render off' about 200 animations, ie no masks. Surprisingly the animated GIFs didn't seem to perform very well anyway...??? Not sure why. I have small objects but I want to get around 20-25 frames per second, if possible. The GIFs, even just on their own, seemed to run sluggishly... weird. BTW, I'm on a 500Mhz Powerbook G4 so you'd expect the GIFs to be OK. Also I'm running OSX, however I have stepped back to 9.2.2 to see if it was some Quartz/Carbon conversion bottleneck. Eventually I hope to get reasonable animation out of an old 7100 and PII 350 for 'low end performance tests'... haven't even copied the project to these yet! Next I tried using 32bit PNGs and hand animating each object (just moves in this case) but the masks seemed to slow things down to what appeared to be 8-12 fps. So I have 10 objects, with only three ever overlapping, each with masks but they run like molten lava. I guess PNGs are best 'static'. I noted on the list that Mac masking is slow, but not this slow. We are talking smallish objects. I'm trying to work out the FASTEST way to display graphics across both platforms. I'm trying to avoid QuickTime as I truly want to keep away from additional installs... this is only a small tool I'm writing. Next step -- which I don't really want to take -- is wired sprites and masks in QuickTime. I've had great joy in programming the back-end code that maintains the data, sends messages etc. but had a very frustrating time dealing with graphics, or at least 'fast' graphics. Love Revolution for the power under the hood, if I could only know what to do with these graphics!! Some Fast Blast Pixel Blittering Thing would be great... Any tips or comments would be appreciated. There must be some clues somewhere... Many thanks! M@ Matt Denton ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ready-made buttons and fields
on 2/25/02 9:02 PM, Terry Vogelaar at [EMAIL PROTECTED] wrote: > I am > working on XML handling at the moment, because I think XML should be the way > all data should be stored. -- Why? It's like saying all images should be stored in .gif files. Best regards, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
A short comment on speed
In early February we had some discussion on speed of Revolution compared with HC. My own experience at the times was that RR was about the same speed, but in colour of course. The activities at the time involved retrieving information on multiple cards. Today I converted another of my HC stacks. It is compute-intensive, taking typically 16 seconds to execute two converging optimisations on data which is on a single card (and is put into variables for the calculation of course). That time was in HC. In RR, the same thing took just one second. I am pretty happy about that. cheers David ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding topics already discussed
on 2/25/02 1:43 PM, David Vaughan at [EMAIL PROTECTED] wrote: > My own solution is more platform-dependent, in that I simply save any > potentially interesting post on disk and use Sherlock's content search > to find even oblique references. -- Sure. I am on, um, six group lists at the moment (4 of them digest versions). I have HC stacks for each, because its 'find' works great, and can be reconfigured five different ways on the fly as well. Maybe I'll change them to RR stacks. I just thought having archives online would give the Rev folks more time to improve and promote their product. Maybe they need a break to come here, though. Just copy the same setup the HC group uses. No need to reinvent the wheel with that. We can fix things in the future, but we can only return knowledge from time already spent. The last character I typed is history. Adios, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
OS 9.1
Greetings all My apology for not paying attention at the time (You know how it is, don't attend unless it is relevant to you. I do remember some discussion ages ago about OS 9.x). I have installed OS 9.1 (to run iMovie2) from OS 9 and Rev is finding life very difficult. For example. The cursor spends a number of seconds flickering between arrow and hand if I go from Browser tool to Pointer tool or everything just stalls for some time. Occasionally when opening object properties one layer (eg script) "tears" away from the rest and won't unstick from the mouse. Or when resizing the script window the bottom right corner won't unstick from the mouse. The best fun to watch is the color pallet. When this is opened (with an object selected) the cursor flickers, then there is a "light show" with random scanning of the colors swatches being highlighted. This goes on for some time. Stimulating to watch, but less than useful. Rev is generally running so slow. Is there a solution to this or will this be fixed in Rev 1.1.1? Or is it an OS 9.1 problem? regards Greg ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Commercial success with Rev
on 2/25/02 5:45 PM, Richard D. Miller at [EMAIL PROTECTED] wrote: > I hope those folks get all the support they need, because Rev could become a > truly revolutionary tool for us all. -- Agreed...and much congrats! All the best, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
answer error problem
Problem: When the answer error pops up, I have to click it twice in order to dismiss it. The cursor appears as a hand prior to first click... The cursor turns into an iBeam after the first click and stays an iBeam while over the "OK" button unless moved - if moved, it becomes a hand and can then click 'OK' This is on a Mac if that makes any difference. This does not happen in Rev editing mode but does occur opened from an 'opener' standalone (this is a Rev file in which I want any changes to it to be saved). The 'answer' error appears over an area which has the following layered items (starting with bottom to top): cd > image > either a player object or another image > opaque text field It occurs if the text field focus is or is not enabled. on menuPick what if the selectedText of fld "text" is "" then answer error "You must select (hilite) text before you can change the text style" exit menuPick else end if set the label of me to what put what into tStyle put the textStyle of the selectedText into tOldStyle set the textStyle of the selectedText to what if the textStyle of the selectedText is empty then set the textStyle of the selectedText to tStyle else set the textStyle of the selectedText to tOldSTyle&comma&tStyle end if end menuPick ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Polling the mouse
Scott Saults wrote: > My 2¢? Revolution should drop "the mouse" function, unless it can be made > to work in a reliable, predictable way, as documented. I can live without it. Why not take the second option? I say make it work in a reliable way--let it just indicate the real-time mouse button position with a direct call. Drop the HyperCard compatibility rather than dropping the function. (After all, you'd lose a lot more compatibility by removing the whole thing than by altering the behavior to be more straightforward and logical.) I would rather have the mouse give the real position of the mouse--all these buffered behaviors make no sense! As it has been pointed out, most of us don't know the complex behaviors anyway and just expect it to give the mouse value as it is at the time of being called. Surely no one would mind if the behavior is changed, since the alternative considered is to get rid of the whole thing! I already told myself I'd shut up already on this issue after the last post, but sometimes I muddle through a few posts without explaining my intended point as clearly as I tried to, so here goes one more final shot at it. These poor under-appreciated functions are part of the heart and soul of xTalk, allowing us to handle the most common types of interactions in a very intuitive fashion that's easy to learn and convenient to use--without umpteen separate handlers for ups, downs, moves, etc. Come on, people, you'd really rather do that than just say "until the mouse is up" or "if the mouse is down" or "get the mouseH"? Are you really looking at how much you'll be losing? Just because HyperCard made the implementation imperfect and a pain to continue to support compatibly doesn't mean that the concept, syntax, and functionality isn't perfect; it is. Rather than dropping these functions and statements that use these functions, I suggest that MetaCard alter the inner workings and behavior to match what MetaCard needs, and forget about the complex HC behavior. I would prefer simple, direct polling that showed the true state, but something else close to that would also be fine--whatever works for MetaCard, as close to true polling as possible. Then, as far as I could tell, everyone could be happy--people who like separate handlers for OS-friendliness or personal style could use them to their heart's content and pretend the functions no longer exist; people who appreciate the stylish and convenient power of the traditional statements could enjoy them and make good use of them; and hopefully the MetaCard team would have a straightforward way of implementing them that would be a lot easier to support and remove the current problems. I'm a big believer in these functions. They are a familiar and IMHO necessary part of scripting, and other competitive languages for the non-C++ audience, like BASIC, have similar functions. Having two ways to handle these types of interaction--in separate specific handlers and with functions inside other handlers--is the norm. So we need to have both ways too. If the tiny details of the traditional implementation cause problems, it's the tiny details that need to go, but the functions really need to stay. Well, that's it, I'm zipping it! I hope I've made a good case for the survival of these "endangered species" of precious keywords. Thanks, Curry Kenworthy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution