Re: a basic stupid splashscreen question
Here's one way to do it. Have your standalone have a substack called dataTemplate. Because dataTemplate is a subStack of a standalone, you can never save it. So, when your app launches, you can do the following: (from my memory so please forgive typos) go inv stack dataTemplate set the name of stack dataTemplate to myDataFile save stack dataTemplate as myDataFile.rev --THIS SAVES IT IN THE SAME DIRECTORY AS YOUR STANDALONE --AND NOW YOU CAN OPEN IT, WRITE TO IT AND SAVE IT delete stack dataTemplate --THIS REMOVES dataTemplate FROM MEMORY go inv stack myDataFile.rev --NOW myDataFile.rev IS OPEN AND CAN BE REFERRED TO BY --ITS NAME myDatafile --DO STUFF TO STACK myDataFile compact stack myDataFile save stack myDataFile Notice, I'm keeping the data stacks invisible. I do this so that I can really separate the data from the presentation layer of the app. I copy the data I need to the main stack where it is edited/modified/tweaked and copied back to the data stack and saved. Hope that helps, best, Chipp kee nethery wrote: So in the folder containing the main spash screen stack, when the user first installs this bundle of joy, they will have A) one App and one stack or B) they will have just one App and no loose stacks sitting around. Then when they launch the App, it will find 1) the App in the same folder or 2) it will save the stack off to the same folder, or 3) it will save it somewhere else and then save a preferences file someplace to tell it where it put the data stack? This extra data stack is I) your stack that has all the actual code in it that does what the App does or it II) just contains data and the splash screen App has the actual code in it? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding in script
At 4:03 PM -0500 1/3/05, Frank D. Engel, Jr. wrote: The real problem here is that you can't get a list of all the groups in a stack any more since backgroundBehavior was introduced. But that's a rant for another day Sure, you can! Check the docs for the backgroundIDs and groupIDs properties (they are not the same thing). Since 1.1 (when the backgroundBehavior property was added), the backgroundNames and backgroundIDs only report groups with that property set to true. So they won't give you all groups in a stack, just those with backgroundBehavior. -- 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: finding in script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So you use the groupIDs property on each card to find out which groups are on each card, merge 'em all together and remove any duplicates. On Jan 4, 2005, at 1:01 AM, Jeanne A. E. DeVoto wrote: At 4:03 PM -0500 1/3/05, Frank D. Engel, Jr. wrote: The real problem here is that you can't get a list of all the groups in a stack any more since backgroundBehavior was introduced. But that's a rant for another day Sure, you can! Check the docs for the backgroundIDs and groupIDs properties (they are not the same thing). Since 1.1 (when the backgroundBehavior property was added), the backgroundNames and backgroundIDs only report groups with that property set to true. So they won't give you all groups in a stack, just those with backgroundBehavior. -- 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 - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB2rKk7aqtWrR9cZoRAs3QAJ9tFDlS6eCLpCZ9RgVcoGCWeb3RlQCeIA8z FGJJ3oMgeQ7TfUBCw4WcAJI= =JUxG -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Unicode control pictures on OS X?
If I have a glyph that displays on the screen but doesn't print and I cover it with a transparent field it will then print. When it prints the resolution is much less than that displayed. ??? And I have a field on a card where the cursor has disappeared (I can click and type in the field, but I cannot see the cursor) and in that field the Unicode prints OK. I guess I just need to figure out how I mucked up that field?:) Michael On Dec 24, 2004, at 12:12 AM, Dar Scott wrote: I remember the glyphs were very ugly, so maybe they were yanked from the font I was using. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Convert Rev app to run inside browser
I've got a Revolution app that I've written for an ISP that does a couple of things, namely: 1) Uses Applescript to poll system processes 2) Executes termal commands to retrieve gateway IP address 3) Edits browser preference files to add bookmarks and set home page 4) Modifies the HTTP headers and passes XML to through an HTTP address to a router 5) Does MD5 encyption 6) Writes files to the hard-drive (log files) 7) Downloads and decompresses software from a server to the user's hard-drive. It all works great as a standalone app. Now, unfortunately my client wants a new app that does all these things, but runs within a web-browser. I don't know how to even go about doing that - - - the very fact that it's in a browser limits any plug-in from doing all sorts of things to the system. Would Shockwave, Flash, or Java applets be capable of all these tasks within a browser? I'd love to use altbrowser for all this, but the client is insistent that it run within the user's browser, and not be a standalone app. This app is to run on the Mac. The windows-folks have accomplished this be using Active-X within IE. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bugzilla 586, the fast char replacement (was Revolution compilation)
This is good for a single char but beware if you say something like put yy into char 12345 you see a tremendous slow up: 0.08 -- y 100KB at char 9 0.13 -- y 10MB at char 999 0.000412 -- yy 100KB at char 9 0.04 -- yy 10MB at char 999 But this is good to know. I had some running sums which really dragged on moderate sized data sets. But when I say put char i of tt into char 99444+i of x things really speed up. On my tests one char inset took 13 microseconds and 15 chars using a repeat loop took 37 (on a 10MB string) Michael On Jan 3, 2005, at 8:52 PM, Dar Scott wrote: Concerning bugzilla 586, the fast char replacement... On Jan 3, 2005, at 7:00 PM, Alex Tweedly wrote: So 2 questions 1. Is this fix already in 2.5 ? Yes. Here is a timing demo for OSes that have a high res long seconds: on mouseUp put longString(10) into x put the long seconds into a -- OS X only put y into char of x put the long seconds into b put b-a end mouseUp function longString n put empty into s repeat n times put x after s end repeat return s end longString == .14 The fix is really an enhancement. Either I goofed and labeled it a bug or it got turned into a bug by another. 2. Where in BZ do you look for that info ? I think that is normally the target milestone. Some of those fell in a crack, but currently, those those are getting set. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bugzilla 586, the fast char replacement (was Revolution compilation)
On Jan 4, 2005, at 10:00 AM, Michael D Mays wrote: 0.04 -- yy 10MB at char 999 Yes. Perhaps a small growth near the end can be optimized some day. (Appending small amounts is fast on the average.) I think that replacing 4 chars for 4 chars is fast. Think imageData pixel. I think that replacing 8 chars with 8 chars is fast. Think matrix. Dar ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming Services and Software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Most of those technologies are specifically designed to *prevent* programmers from doing those things. If just anyone could provide a browser app to do all that, any site you visited could randomly install viruses and spyware without restriction. Now some browsers (given sufficient Java support) could have Java code capable of doing *some* of these things, but (if properly configured) would restrict code downloaded from a web site from doing them. Depending on the browser, it either will fail to work, or it will prompt the user and ask what to do. Some browsers can be configured to ask sometimes and not others... Attempting to do these things through a web browser is a bad idea. Your client should probably rethink this project. A better solution would be to make an application to do these things (possibly your existing solution) available as a download from a web site. Make sure the user knows what's going on, though. On Jan 4, 2005, at 11:29 AM, [EMAIL PROTECTED] wrote: I've got a Revolution app that I've written for an ISP that does a couple of things, namely: 1) Uses Applescript to poll system processes 2) Executes termal commands to retrieve gateway IP address 3) Edits browser preference files to add bookmarks and set home page 4) Modifies the HTTP headers and passes XML to through an HTTP address to a router 5) Does MD5 encyption 6) Writes files to the hard-drive (log files) 7) Downloads and decompresses software from a server to the user's hard-drive. It all works great as a standalone app. Now, unfortunately my client wants a new app that does all these things, but runs within a web-browser. I don't know how to even go about doing that - - - the very fact that it's in a browser limits any plug-in from doing all sorts of things to the system. Would Shockwave, Flash, or Java applets be capable of all these tasks within a browser? I'd love to use altbrowser for all this, but the client is insistent that it run within the user's browser, and not be a standalone app. This app is to run on the Mac. The windows-folks have accomplished this be using Active-X within IE. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB2t9g7aqtWrR9cZoRAvvnAJ4v1nte7MT1ly196NyB1YqPkXdbgACeOtlz 7NsMlRTs6zUFVy9rM9Hmmnk= =dk9N -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Unicode control pictures on OS X?
On 1/4/05 10:20 AM, Michael D Mays wrote: If I have a glyph that displays on the screen but doesn't print and I cover it with a transparent field it will then print. When it prints the resolution is much less than that displayed. ??? I hit this problem once. When a field is covered by a transparent object, the engine uses the screen bitmap underneath the transparency for printing rather than rendering the field text as a font. This is due to some weird behavior with graphics drivers or something; I can't remember exactly what. But that's why you can print what you see on screen, and why it is printing at screen resolution (i.e., bitmapped.) And I have a field on a card where the cursor has disappeared (I can click and type in the field, but I cannot see the cursor) and in that field the Unicode prints OK. If another object overlaps a field, the cursor can disappear. Check to make sure there isn't anything over that field. Also make sure the traversalOn is set to true for the field. I guess I just need to figure out how I mucked up that field?:) Combination of things, sounds like. ;) -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
On Jan 4, 2005, at 11:29 AM, [EMAIL PROTECTED] wrote: It all works great as a standalone app. Now, unfortunately my client wants a new app that does all these things, but runs within a web-browser. Why? The only benefit to a browser implementation is ubiquity, but since you can only do something that unsecure if you use Microsoft tools on a Microsoft browser on Microsoft OSes the ubiquity benefit is gone (EIs marketshare is big but not 100% and in rapid decline -- viva le Firefox!). There are many more benefits to deploying a 'Net-savvy standalone, not the least of which is that it can be done. :) Other benefits range from lower development costs to higher end-user productivity through cleaner UIs: http://www.fourthworld.com/embassy/articles/netapps.html If it's for employees there's another big savings: with no browser there's no constant distraction of having a million other web sites just a click away (employers lose billions annually to random on-the-job surfing). Intranets are the silliest thing to put in a browser for any company smart enough to consider Rev. Maybe a better question would be to ask the client: How would you like your own AOL-like service for less than it costs to make a web site? But of course all this is meaningless without first answering the most important question: Why must it be in a brower? Without knowing the reasons for the decision any proposal stands a good chance of not satisfying them. But with that answer you may be able to demonstrate how all of those perceived benefits can be delivered, with many more, if they'll consider going beyond the browser. -- 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: Unicode control pictures on OS X?
And don't forget that fields with part Unicode and part non-unicode act weird. Best to set the whole field to Unicode. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. Landman Gay Sent: Tuesday, January 04, 2005 1:26 PM To: How to use Revolution Subject: Re: Unicode control pictures on OS X? On 1/4/05 10:20 AM, Michael D Mays wrote: If I have a glyph that displays on the screen but doesn't print and I cover it with a transparent field it will then print. When it prints the resolution is much less than that displayed. ??? I hit this problem once. When a field is covered by a transparent object, the engine uses the screen bitmap underneath the transparency for printing rather than rendering the field text as a font. This is due to some weird behavior with graphics drivers or something; I can't remember exactly what. But that's why you can print what you see on screen, and why it is printing at screen resolution (i.e., bitmapped.) And I have a field on a card where the cursor has disappeared (I can click and type in the field, but I cannot see the cursor) and in that field the Unicode prints OK. If another object overlaps a field, the cursor can disappear. Check to make sure there isn't anything over that field. Also make sure the traversalOn is set to true for the field. I guess I just need to figure out how I mucked up that field?:) Combination of things, sounds like. ;) -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ 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
RunRev at Macworld?
Is there going to be a RunRev presence at Macworld this year? I may be heading up to the conference for a day or two but was surprised that RunRev wasn't exhibiting. -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
clipboard change detection
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, now this should be reasonably simple, right? Anyone know of a way to efficiently detect changes in the clipboard, before I post a bugzilla feature request for such a beast? I think an ideal way to do it would be to have a message sent to this card of this stack when the contents of the clipboard are changed, maybe clipboardChanged or some such. - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB2vtM7aqtWrR9cZoRApWfAJkB6e5pgFSqKSEl6LMQzo7RjqgAngCfTi2v xRRNXf8bZ9zVCpeQXkJUdTw= =WY2e -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
draw line to mouseLoc under script control
I want to create a vocabulary drill in which a word in the left column is to be connected to it's definition in the right column. You might remember doing this on paper in elementary school. There are a number of ways to do the UI--in this case I want the student to draw a line (by dragging) from a radio button on the left side to a radio button on the right side (or vice versa). I'd prefer the start and end points of the line to snap to the loc of the radio buttons. Are there any examples of this or something similar in an open stack? I've experimented with choose line tool, mouseMove, dragMove, etc. but have come up empty handed. Doug Ivers One Time Software ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
controls on each card
Hi Folks This is a silly one and AGAIN is very basic. I have a card that has a button on it that creates a new card. OK simple. However, when I click on it, a new card is produced. It does not have on it the buttons of the [previous card. This I know only requires something set via the IDE ( I read it the other night in Dan's book, a great buy) however, I have trawled the book and cannot find which box to tick. I don't want to read the whole thing again word for word to find this since it is late (and I haev a habit of speed reading and missing things). So can someone send me the info. Naturally it is RTFM :-) but the book is 321 pages :-) THanks in advance Bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.8 - Release Date: 03/01/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: controls on each card
See... This is really a great example of why the documentation needs to be clearer. All you do is group the controls that you want to appear on new cards - then set the background behavior of that group to true. It took me a little while to figure out how to navigate between selecting groups and selecting the controls within groups. The way Rev handles groups and backgrounds is really very powerful - lets you do lots of cool stuff - but it certainly is confusing at first. Good luck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Hartley Sent: Tuesday, January 04, 2005 4:45 PM To: use-revolution@lists.runrev.com Subject: controls on each card Hi Folks This is a silly one and AGAIN is very basic. I have a card that has a button on it that creates a new card. OK simple. However, when I click on it, a new card is produced. It does not have on it the buttons of the [previous card. This I know only requires something set via the IDE ( I read it the other night in Dan's book, a great buy) however, I have trawled the book and cannot find which box to tick. I don't want to read the whole thing again word for word to find this since it is late (and I haev a habit of speed reading and missing things). So can someone send me the info. Naturally it is RTFM :-) but the book is 321 pages :-) THanks in advance Bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.8 - Release Date: 03/01/2005 ___ 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: Convert Rev app to run inside browser
On 5 Jan 2005, at 2:29 am, [EMAIL PROTECTED] wrote: I've got a Revolution app that I've written for an ISP that does a couple of things, namely: 2) Executes termal commands to retrieve gateway IP address Can't help you I'm afraid, but I would be very interested to know what Terminal command you use to get the gateway IP address. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: controls on each card
Hi Bob, Hi Folks This is a silly one and AGAIN is very basic. I have a card that has a button on it that creates a new card. OK simple. However, when I click on it, a new card is produced. It does not have on it the buttons of the [previous card. This I know only requires something set via the IDE ( I read it the other night in Dan's book, a great buy) however, I have trawled the book and cannot find which box to tick. I don't want to read the whole thing again word for word to find this since it is late (and I haev a habit of speed reading and missing things). So can someone send me the info. Naturally it is RTFM :-) but the book is 321 pages :-) select all controls that you want to have on EVERY card and group them... Then check that goup's backgroundBehaviour in the Basic Properties in the Inspector for that group. This way the group will be placed on every new card when you create a new card... BUT that group must be on the card where the new card is being created! Sounds like that is the case in your example :-) Hope that helps. THanks in advance Bob Regards 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: draw line to mouseLoc under script control
I want to create a vocabulary drill in which a word in the left column is to be connected to it's definition in the right column. You might remember doing this on paper in elementary school. There are a number of ways to do the UI--in this case I want the student to draw a line (by dragging) from a radio button on the left side to a radio button on the right side (or vice versa). I'd prefer the start and end points of the line to snap to the loc of the radio buttons. Try having mouseDown and mouseUp handlers in the card script. In the mouseDown, if the mouse is within the rect of one of the starting radio buttons, store that button's name or ID. In mouseUp, check again and if the mouse is within the rect of one of the ending radio buttons, create a new graphic. Set it's style to line and it's points to the locs of both buttons (one per line). You may need to do some more settings on the line, but that should be enough to get you started. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try this one: route get default On Jan 4, 2005, at 4:49 PM, Sarah Reichelt wrote: On 5 Jan 2005, at 2:29 am, [EMAIL PROTECTED] wrote: I've got a Revolution app that I've written for an ISP that does a couple of things, namely: 2) Executes termal commands to retrieve gateway IP address Can't help you I'm afraid, but I would be very interested to know what Terminal command you use to get the gateway IP address. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB2xF67aqtWrR9cZoRAtcXAJ4uXLTus8Y/MnmAnA7hmv4SqhJcbgCfVIfU FYUxlsXAIjQmBrgcOQ21oUM= =tEe5 -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: controls on each card
At 21:44 04/01/2005, you wrote: See... This is really a great example of why the documentation needs to be clearer. Hi Jonathan All you do is group the controls that you want to appear on new cards - then set the background behavior of that group to true. Yes Ijust found this on the google site this moment. I selected all the fields and then pressed group but they were only selected for aligning etc. I then noticed in runrev help-topics that there was a group help section. So I checked this (I assumed my group was created but it seems that you need to select Object-group and not derag a box and click on the group icon) and found the way. Off to bed now. Getting late and I'm tired. Perhaps that is why I have struggled with it so much in the last half hour. :-) Thanks for the speedy reply. Bob -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.8 - Release Date: 03/01/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Externals written in not(c)
Dear Revolutionaries I have downloaded the externals SDK from the rr website and I have trawled through the docs. It clearly says that you can write an external in any language of your choosing provided that the compilation supports certain features that are essential for the rev interface. The docs describe in great details what is needed to create an external in C, but what if I was doing it in another language whose compiler can produce the kind of standard vanilla DLLs that rev needs? I can see that I need something called XTable that defines the separate XCMDs and XFCNs, but I can't figure out how much of the C header files I need just to do the simple feasibility study of writing a DLL that say - exports a simple function that reads 2 params, multiplies them together and returns the result. I guess what I'm after is a basic minimal list of features that rev needs in my DLL to be able to do this simple test - just enough to get me started and see how it all works. I would like to understand the process by which the rev engine and the DLL shake hands, i.e. initiate their interaction and share data. I was thinking of trying a dialect of Basic which can produce native DLLs - anybody out there have any insights? Can rev read/write data in specific areas of memory? I am presuming that sharing memory between processes is a no-no and that all the rev gurus on this list are muttering and shaking their heads in disapproval right now at the very mention of it. I ask because many languages have the capability to allocate and read/write in specific areas of memory and it is another way to communicate between processes. I'm not even sure that rev can do this - can it? My goal in all of this? Having natively compiled scientific/math libraries that run at blazing speed behind my rev app, doing the donkey work on the numbers while rev seduces the user with its enchanting interface. All help would be greatly appreciated. Best Gordon ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
Thanks. I have a routine for querying the web interface of my NAT router to find the external IP address, but it would be more useful if it could find the router's address automatically. Sarah On 5 Jan 2005, at 8:00 am, Frank D. Engel, Jr. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try this one: route get default On Jan 4, 2005, at 4:49 PM, Sarah Reichelt wrote: On 5 Jan 2005, at 2:29 am, [EMAIL PROTECTED] wrote: I've got a Revolution app that I've written for an ISP that does a couple of things, namely: 2) Executes termal commands to retrieve gateway IP address Can't help you I'm afraid, but I would be very interested to know what Terminal command you use to get the gateway IP address. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. [EMAIL PROTECTED] $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep John 3:16 John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB2xF67aqtWrR9cZoRAtcXAJ4uXLTus8Y/MnmAnA7hmv4SqhJcbgCfVIfU FYUxlsXAIjQmBrgcOQ21oUM= =tEe5 -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ 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: finding in script
On Mon, 3 Jan 2005 Jeanne A. E. DeVoto [EMAIL PROTECTED] wrote: (snip) The real problem here is that you can't get a list of all the groups in a stack any more since backgroundBehavior was introduced. But that's a rant for another day Sure, you can! Check the docs for the backgroundIDs and groupIDs properties (they are not the same thing). Since 1.1 (when the backgroundBehavior property was added), the backgroundNames and backgroundIDs only report groups with that property set to true. So they won't give you all groups in a stack, just those with backgroundBehavior. -- jeanne a. e. devoto ~ [EMAIL PROTECTED] http://www.jaedworks.com You must have missed my post of Mon, 03 Jan 2005 22:16:10 +0100 (probably because of the different time zones), so I will repeat part of it and make some additions. . backgroundnames and backgroundIDs will indeed list only those primary (unnested) backgrounds with backgroundbehavior set to true. However the number of backgrounds does *not* distinguish between backgrounds with true or false backgroundbehavior, and it will return the number of *all* primary, i.e. unnested, backgrounds. Using number of backgrounds to set up a list of backgrounds unfortunately works only correctly when no *nested* backgrounds exist. Let us assume you have got 10 primary backgrounds plus 1 nested background attached to primary background 2. You have a total of 11 backgrounds now, but number of backgrounds returns only 10. When you script put the name of background 3 this however refers to the total number of backgrounds (11) and will therefore return the name of the additional nested background grouped with background number 2. So you cannot really rely on the value returned by number of backgrounds to set up a list if you want to get the names (or other properties) of each background. As far as I can see, such information is not included in the documentation. If you wish to list *all* existing backgrounds - nested or not, placed on a card or unplaced, backgroundbehavior true or not - you can script this using a counter variable. on mouseUp put the name of the topstack into SName put empty into BList put 0 into counter repeat add 1 to counter if there is a background counter of stack SName then put the name of background counter of stack SName into line counter of BList else exit repeat end if end repeat put Blist into fld Blist end mouseUp This script could be refined to indicate grouped backgrounds, unplaced backgrounds, and the backgroundbehavior of each background.- Seen from one side, handling groups and backgrounds became indeed somewhat more complicated when backgroundbehavior was added. I regret having contributed to this complexity as Scott Raney introduced the backgroundbehavior property following an enhancement request from my side. On the other hand, the new option to work with groups without backgroundbehavior (i.e. set to false) facilitates scripting in quite a number of cases because adapting to the message hierarchy is now easier - when all you want is just to group two controls and handle them as an entity without any background behaviors in mind. --Wilhelm Sanke http://www.sanke.org/MetaMedia ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Externals written in not(c)
On Jan 4, 2005, at 3:29 PM, Gordon Webster wrote: It clearly says that you can write an external in any language of your choosing provided that the compilation supports certain features that are essential for the rev interface. Yes, it can be done if your dll can handle the C-style calls. You need to export a single function that provides all the calling info. However, it might be easier to create a glue dll. I do that for C++. If you're just doing some math, you might want to consider just doing it in C. There is an overhead for external calls, so you want to do many primitive math operations per call. Rev is pretty fast at math. You might want to run some tests to see if this is worthwhile. Maybe it will be in some complicated formulas or in matrix operations. Dar ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming Services and Software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
icon's
Hi all there was a link from ?? regarding a tutorial on how to create icons for mac and win. I googled around but came up with nothing i was looking for, does any body remember which site it was ? or can any body point me to that site? Thanks , Hershel Fisch ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Externals written in not(c)
On Jan 4, 2005, at 5:25 PM, Gordon Webster wrote: I'm not clear from your reply though, what it is I actually need in my DLL ... let's say I just want to write a single test function for multiplying two numbers together - I will export this in my DLL, but what else do I need? You need to export a single function that provides all the calling info. Could you elaborate? Uh, not very well. You need to export getXtable. See the external C core files. I don't know how to do that from a Basic DLL. I'd still lean toward making a glue external, but if I did this it would depend on what I find out from looking at the Basic dll format. I think it might be easier to take a simple external example (in C) and learn just enough C to do the math functions. If you are passing a large collection of vectors and get a large collection back, you need to address the representation of that. If you are pass a single 3D vector and some transformation values and getting a vector back, I'd think on optimizing the Transcript. Dar ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming Services and Software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[no subject]
Thanks, -Ben Yup. See the files function in the dictionary, particularly the detailed files option. That gives this info. and the convert function that is able to show the seconds of the creation and modification time in a specific date: ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
On 1/4/05 3:58 PM, Frank D. Engel, Jr. [EMAIL PROTECTED] wrote: Try this one: route get default I generally do: ipconfig getifaddr en0 This gets the gateway address only without extra stuff that needs to be parsed out. 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
Re: Convert Rev app to run inside browser
Try this one: route get default I generally do: ipconfig getifaddr en0 This gets the gateway address only without extra stuff that needs to be parsed out. This gives me the IP address of my computer, not the IP address of my gateway/router. Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: RunRev vs RealBasic
Yes, I could use externals or you could argue that rev is UI/multimedia-centric and not intended for serious scientific computing, but does that have to mean that it could never be? Why not just use Revolution for all the things that it is good for and then pass the rest of the nasty stuff over to another app? On the Mac, you can AppleEvents to send the data (or even via a file) to another app that is faceless and this will work for both OS X and OS 9. If you want cross platform, then implement something using sockets to communicate XML data back and forth. That way, you can have a natively compiled app that can multitask and do all the heavy hitting, without having to compromise on the time taken to develop a good user interface and operating environment. The interesting thing will be if you have faceless BSD command-line type apps, you can fork multiple instances of that process and return the results, while you still have a front end that is free for the user to do other things. I've done that kind of stuff before using Supercard and a C++ app running in the background and I didn't have to tie the front end to waiting for something to be completed before I allowed the user to do something else. I would think that this is a good way to go as Revolution doesn't support multiple threads of execution at this point in time. The whole front end can be event driven in that once the faceless app finishes, it could send an AppleEvent back and this triggers the front end to do some appropriate handling and transformation of the results into something that it can use for display purposes. That being the case, you could in theory have 1 front end app and have the these background apps run on multiple machines on the network and this would be very nice for scientific apps that may need quite a bit of computing. I had a front end control a whole network of kiosk macs using AppleEvents before and everything was done via one single machine using a stack based interface. I even went so far as to Timbuktu remotely via a dialup connection into that administration machine to control the entire network remotely without having to travel 30 miles to get to that location. I would suggest opening your mind up to the possibility of using Rev on the front end and using RealBasic, Objective C or whatever you wish on the backend and have a client-server type configuration. All this can be easily done using Revolution and RealBasic in concert. Jesse ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Externals written in not(c)
Gordon- Tuesday, January 4, 2005, 2:29:27 PM, you wrote: GW My goal in all of this? GW Having natively compiled scientific/math libraries GW that run at blazing speed behind my rev app, doing the GW donkey work on the numbers while rev seduces the user GW with its enchanting interface. Well, I haven't tried this with any Basic versions, but you *should* be able to create a compatible DLL with VB. Remember that you need to export the a couple of items to make them publicly accessible. That Xtable is really the key to it all: if the rev engine can see it then it uses that as a vector to get to your functions. ...but... if your end goal is to get more speed out of things, keep in mind that AFAIK basic *compiles* down to pseudo-code which is then run in its own pcode interpreter. I doubt that you'll see an improvement in speed by offloading math tasks to basic. I have taken external math routines I used to have in C to get some speed out of HyperCard and now run them *all* natively in runrev. YMMV. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
On Jan 4, 2005, at 6:17 PM, Ken Ray wrote: On 1/4/05 3:58 PM, Frank D. Engel, Jr. [EMAIL PROTECTED] wrote: Try this one: route get default I generally do: ipconfig getifaddr en0 This gets the gateway address only without extra stuff that needs to be parsed out. Ken, I did this on my laptop running OS X.3.5 which connects to the internet using airport connected to a Linksys gateway. I got the following error: get if addr en0 failed, (os/kern) failure I then tried the same but with en1 since that is what the aiport connection: ipconfig getifaddr en1 which gave me the ip address of my computer (confirmed in the network preference pane). Using route get default returned the proper info. -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Pixels
Hi, I was wondering if there is some way to draw pixels directly onto the screen without having to create an object. My program (it's for a math class) creates a list of pixels to be drawn on the screen. Right now it clicks using the pencil tool and is *very* sluggish. Probably creating graphic objects for these points will be even slower. The only other idea I have would be to write to imagedata, and then to put that in an image and display it. This might be slow also though, and would be complicated. Is there a way to just draw a pixel on the screen (without an object), like in Java? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Convert Rev app to run inside browser
Get a browser script to call some Rev CGIs and the cgis can also talk to some other rev app that is running in the background that can do all the monitoring, gathering of stats etc and this can all run on the server machine. My feel is that it is probably less secure than if it were to be entirely a desktop app. But then again, some people have very strange notions about what a browser can do. Given that this is an internal application, I would feel safer that this is not available off a commonly available web browser. Jesse ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Using Externals in Revolution Article
For those interested I've posted an article on ways to make externals available to your standalone application using transcript as opposed to the standalone builder. The article covers setting externals for a standalone application, setting externals using a library stack and putting externals inside of a Mac OS X application bundle. You can find the article here: http://mangomultimedia.com/developer/revolution/ If you have any feedback on corrections or how to clarify any points in the article you can send them to me directly at [EMAIL PROTECTED] -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: icon's
Here's one.. www.altuit.com/webs/altuit2/StandaloneBuilderTutorial/BuildingIconsforMacOSXandWindowsXP.htm best, Chipp Hershel Fisch wrote: Hi all there was a link from ?? regarding a tutorial on how to create icons for mac and win. I googled around but came up with nothing i was looking for, does any body remember which site it was ? or can any body point me to that site? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Scrolling backgroundPattern
Hi All, does anybody know if it is possible to have a background image (backgroundPattern) of a scrolling field to scroll in unison with the scrollbar? The same as a standard webpage would behave (unless you have fixed the bgproperties). I have tried setting the backgroundPattern to scroll with on scrollbarDrag but that obviously doesn't work. Any feedback would be appreciated... Cheers Dwayne. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution