Console/Shell Programs Detecting GUI
How do I go about writing a standalone console application with a gui switch (since at this time I cannot figure out how to check if GUI is present)? I have found several referencs on processing command line parameters but nothing yet on running headless. Kevin -==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=- Disclaimer: Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. Any resemblance between the above and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. The question of the existence of the reader is left as an exercise for the second god coefficient. (A discussion of non-orthogonal, non-integral polytheism is beyond the scope of this article.) ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Command 2 goes to card three!
Tom, That is a known bug in the rev ui the build of the project will turn out fine Tom On Mar 2, 2004, at 11:27 PM, Tom Cole wrote: I just upgraded to Panther and now I find that when I open my super smokin' project in rev when I press COMMAND 2 it goes from cd 1 to cd 3. It skips a card. Later it becomes normal and goes one card at a time. Maybe Panther isn't the problem, but what gives? I am horrified because I'm ready to distribute this software. It works fine, luckily but I sure would like to know why this sudden change has taken place. ¡Mil Gracias! Tom___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Detect individual Collisions
I'd change the script slightly. First, I'd use the mouseMove handler exclusively to avoid the mouseStillDown overhead. Second, I'd store the color of the graphic in a script local and only change it if necessary. Third (minor) I'd switch the test for the if to test if i is the number of the moving graphic first -- Revolution's if tests will fail out at the first false statement, so test the easy thing (number vs. number) first, and then do the intersection. local sMoving,sMyColor on mouseDown put true into sMoving put the textColor of me into sMyColor end mouseDown on mouseUp put false into sMoving end mouseUp on mouseRelease put false into sMoving end mouseRelease on mousemove if not sMoving then exit mouseMove put red into tColor put the number of me into tMyNumber repeat with i = 1 to the number of graphics if i is not tMyNumber and intersect (me, graphic (i)) then put green into tColor exit repeat end if end repeat if tColor is not sMyColor then set the textcolor of me to tColor put tColor into sMyColor end if end mousemove regards, Geoff Canyon [EMAIL PROTECTED] On Mar 2, 2004, at 2:14 AM, Alain Bois wrote: on mousemove repeat with i = 1 to the number of graphics if intersect (me, graphic (i)) and i is not the number of me then set the textcolor of me to green exit repeat else set the textcolor of me to red end if end repeat end mousemove ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
The Scripter's Scrapbook: Update notice
Anyone who downloaded The Scripter's Scrapbook yesterday 2 March or who selected a direct upgrade, should please obtain an updated release. A build error has now been corrected. Our apologies for any inconvenience caused... EITHER - Select 'Checking for Updates' under the Help menu. The new version will be delivered to you direct OR - Go to http://FlexibleLearning.com/xtalk.htm Updates are issued regularly for fixes and improvements. You can check if you are up to date under the Help menu at any time. The web stats have gone through the roof over the past couple of days... Thank you for your interest! Do let us know if you have any comments, problems or feature requests. Feedback helps us improve The Scripter's Scrapbook for you and we really do want this to be a useful tool for everyone from beginners to advanced users! Onwards and upwards, Hugh Senior ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: explicitVariables
already mentioned... Big bug it is! -=- Xavier Bury Clearstream Services TNS NT LAN Server ext 36465 Voice: +352 4656 43 6465 Fax: +352 4656 493 6465 Kevin [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/03/04 08:45 Please respond to nnoydb; Please respond to How to use Revolution To: [EMAIL PROTECTED] cc: Subject:explicitVariables . I find it quite disconcerting that I cannot use explicitVaraible = true without the IDE experiencing significant errors. Any work arounds? Why wouldn't the IDE be developed with explicitVaraibles true (then shipped false for those who prefer that)? Kevin -==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=- Disclaimer: Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. Any resemblance between the above and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. The question of the existence of the reader is left as an exercise for the second god coefficient. (A discussion of non-orthogonal, non-integral polytheism is beyond the scope of this article.) ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Console/Shell Programs Detecting GUI
Kevin, What OS, what system are you using? and what do you mean by headless? GUI less? hidden console? -=- Xavier Bury Clearstream Services TNS NT LAN Server ext 36465 Voice: +352 4656 43 6465 Fax: +352 4656 493 6465 Kevin [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/03/04 09:39 Please respond to nnoydb; Please respond to How to use Revolution To: [EMAIL PROTECTED] cc: Subject:Console/Shell Programs Detecting GUI . How do I go about writing a standalone console application with a gui switch (since at this time I cannot figure out how to check if GUI is present)? I have found several referencs on processing command line parameters but nothing yet on running headless. Kevin -==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=- Disclaimer: Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. Any resemblance between the above and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. The question of the existence of the reader is left as an exercise for the second god coefficient. (A discussion of non-orthogonal, non-integral polytheism is beyond the scope of this article.) ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Console/Shell Programs Detecting GUI
How do I go about writing a standalone console application with a gui switch (since at this time I cannot figure out how to check if GUI is present)? I have found several referencs on processing command line parameters but nothing yet on running headless. Kevin Does 'if dev is in the environment then...' help you? /H ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Cyrillic Encodings
Doea anybody know if there is a way to convert between text encodings (other than ISO - MAC) in RR? __ See Mathewson's software at: http://members.maclaunch.com/richmond/default.htmland http://www.runrev.com/Revolution1/developercentral/usercontributions.html ___ --- Great Macintosh Products The MacLaunch Store! http://www.maclaunch.com/cgi-launch/store/agora.cgi --- ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Read a URL?
At 2:16 pm -0600 2/3/04, Chipp Walters wrote: Dave Cragg's next version of libURL will :-) (assuming you have the correct script on the server)... But, Rev Dictionary says of put it into URL http://www.example.com/file;': Most web servers do not allow you to upload via HTTP. That version is now available in *beta* at the following address: http://www.runrev.com/revolution/developers/interimreleases/liburl/releases.shtml But to clarify a little ... It doesn't enable the put into url ... for http urls any more than the current version. What it does is provide a way to emulate html forms of type multipart/form-data which is often used for uploading files from web pages. However, you would still use post with this, and not put. put is nominally supported by libUrl for http urls. But as the docs say, this is rarely supported by http servers. As a result, it has never been properly tested. :( Cheers Dave ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN] libUrl 1.0.15 beta
Hi All A beta of the latest version of libUrl is available at the following url: http://www.runrev.com/revolution/developers/interimreleases/liburl/releases.shtml In addition to some bug fixes, it has a number of new features: It provides support for emulating htmls forms of types application/x-www-form-urlencoded and multipart/form-data. (The latter is commonly used for uploading files from html forms to web servers.) There is also support for setting callbacks to handle authentication on http and proxy servers. Except in the case of the Basic authentication scheme, this will probably require an external to implement fully. However, Chipp Walters has agrred to make available a dll that handles Windows NTLM authentication. Expect more information to be forthcoming. Note: this a beta version, so test before trusting important data to it. Cheers Dave ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
vol2/3 of Dan's book
Hi All. I have vol 1 of the book and I'm so impressed that I'm wanting to suscribe to vol3 and 4. Is there an upgrade from 1 to the 3 volume set? Cheers bob Dr. Robert Hartley, Spinal Cord Group, Institute of Biomedical Life Sciences, West Medical Building, University of Glasgow, Glasgow. G12 8QQ [EMAIL PROTECTED] http://www.gla.ac.uk/~rh82p/ Phone +44 141 330 4367 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Disable/Enable selected lines in a field
Hi, I have two fields where a user hilites single or multiple lines in field aChoiceList and then presses a button Yes which copies the selected lines into field aSelectedList. What I am wanting to do is to some how gray out the lines and disable them from being selected in field aChoiceList that now show in the field aSelectedList. If the user selects lines in the field aSelectedList and clicks another button return then the lines are removed from the field aSelectedList and the associated lines in the field aChoiceList become ungrayed and available to select again in the future. I have tried the following but as soon as the user clicks any line in the field aChoiceList then the hilites are gone and it is still possible for them to select and copy the same line again --undesired. on mouseUp lock screen if fld aSelectedList is not empty then put cr after fld aSelectedList end if put hilitedlines of fld aChoiceList into aclist repeat for each item l in the hilitedlines of fld aChoiceList put line l of fld aChoiceList cr after fld aSelectedList end repeat set the hilitedlines of fld aChoiceList to aclist if fld aSelectedList is not empty then delete last char of fld aSelectedList end if unlock screen end mouseUp ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
As an offshoot discussion of this... Does anyone remember MacProject? I still use it. It's a wonderful tool for me. I'd like to integrate something similar into my project. Has anyone got any ideas about the construction of this in Rev? Seems to me that the graphic interface has a challenge because a line has no properties - like an id, so attaching it to the centre of a box (task, which could be a field or a button) would be a problem. If that one was solved, then using a large array plus a database would take care of the logical part...right? Jim on 3/1/04 6:32 AM, Richard Gaskin wrote: Graham Samuel wrote: I vaguely remember someone (Richard G?) saying that RunRev is not entirely suitable for creating vector drawing (and - maybe - painting) programs in the style of MacDraw or the drawing/painting features of AppleWorks Depends on what you want to do. Some types of drawing apps will work great, but if you need scrolling documents and manipulatable lines and polygons it's tricky. See Bugzilla for details: #622, 623, and 624. I'm told these are queued for possible implementation, but no projected date has been given. In the meantime, it's hard to make the equivalent of SuperCard's SampleDraw, and in some aspects not possible yet (or at least not with a smoothness I feel comfortable delivering). For myself, rather than implement hard-earned/short-lived workarounds I'm doing my stuff for the apps that need drawing tools in ways that work around the current limitations, confident that a solid solution for the whole kaboodle will be coming at some point -- OYF is... Highly resourceful people working together. http://www.OwnYourFuture-net.com Own Your Future Consulting Services Limited, 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2 Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
There was such an example in the MC examples stack... But you might have to update that MacPlus to make it work ;)) Just in a good metamood... MacCheers Xa On 03/03/2004 15:54:35 use-revolution-bounces wrote: As an offshoot discussion of this... Does anyone remember MacProject? I still use it. It's a wonderful tool for me. I'd like to integrate something similar into my project. Has anyone got any ideas about the construction of this in Rev? Seems to me that the graphic interface has a challenge because a line has no properties - like an id, so attaching it to the centre of a box (task, which could be a field or a button) would be a problem. If that one was solved, then using a large array plus a database would take care of the logical part...right? Jim on 3/1/04 6:32 AM, Richard Gaskin wrote: Graham Samuel wrote: I vaguely remember someone (Richard G?) saying that RunRev is not entirely suitable for creating vector drawing (and - maybe - painting) programs in the style of MacDraw or the drawing/painting features of AppleWorks Depends on what you want to do. Some types of drawing apps will work great, but if you need scrolling documents and manipulatable lines and polygons it's tricky. See Bugzilla for details: #622, 623, and 624. I'm told these are queued for possible implementation, but no projected date has been given. In the meantime, it's hard to make the equivalent of SuperCard's SampleDraw, and in some aspects not possible yet (or at least not with a smoothness I feel comfortable delivering). For myself, rather than implement hard-earned/short-lived workarounds I'm doing my stuff for the apps that need drawing tools in ways that work around the current limitations, confident that a solid solution for the whole kaboodle will be coming at some point Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
One additional note: Serendipity Library's libraryStack handler not only checks to see if it is the target of the message, it also checks the state of a local variable to determine if libraryStack has already run once. [I don't want to reinitialize variables once the library is in use:] local sdbMessages on libraryStack if the short name of the target is not Serendipity_Library.rev then pass libraryStack if sdbMessages is not empty then exit libraryStack -- variable initialization end libraryStack Note I do NOT pass libraryStack unless the target is not Serendipity Library, as I see nothing going on that other libraries need to know about. And if they do need to know if Serendipity Library is in use, they can check the stacksInUse property. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening a zipped file in RunRev?
Message: 8 Date: Wed, 3 Mar 2004 13:58:20 -0500 From: Brian Yennie [EMAIL PROTECTED] Subject: Re: Opening a zipped file in RunRev? To: How to use Revolution [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed save this stack as compress(url file:Macintosh HD/Desktop Folder/MyStackFile2.rev) (This produces gibberish for the file name on my HD.) I think you want something more like: put compress(this stack) into url file:Macintosh HD/Desktop Folder/MyStackFile2.rev.gz And then what? Are you assuming the user (the person downloading this file from the web) is running Run Rev and that the Run Rev application has the instructions for decompressing the downloaded file and then opening it? And what does that code look like? Anything like: uncompress(url file:??) And are we talking about zip files or gzip files? Rev's compression is gzip. To open the above, you could do: put uncompress(url file:Macintosh HD/Desktop Folder/MyStackFile2.rev.gz) into url file:Macintosh HD/Desktop Folder/MyStackFile2.rev OR open it directly without saving to disk: go stack uncompress(url file:Macintosh HD/Desktop Folder/MyStackFile2.rev.gz) HTH, Brian Brian, Thank you for this. I was successful with: put compress(field 1) into url file:xxx But I was not able to retrieve the compressed data from the file xxx, that is, put decompress(url file:xxx) into field 1, produced a string is not compressed data error. While I was at least able to compress field data, I was not able to compress a stack. As you may have seen, Chipp Walters says this is not possible to zip or unzip a stack. (I assume he also means that you cannot compress a stack.) If you try, you get an error: Source is not a container. I ran across something to this effect in the Docs yesterday, but I can't relocate it today. But I am still puzzled as to how you decompress a stored file. I can compress a field but not decompress the file--something like an empty can of coke. Jim ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
On Wednesday, March 3, 2004, at 07:46 AM, Rob Cozens wrote: Serendipity Library's libraryStack handler not only checks to see if it is the target of the message, it also checks the state of a local variable to determine if libraryStack has already run once. Note I do NOT pass libraryStack unless the target is not Serendipity Library, as I see nothing going on that other libraries need to know about. Then we are consistent in style. I may have implied that I pass libraryStack in all cases, which is not the case. I have noticed these variations: if the target is me then if the short name of the target is the short name of me then if the short name of the target is name of my library then I have no idea if there is any merit of one over another. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
if the target is me then if the short name of the target is the short name of me then if the short name of the target is name of my library then I have no idea if there is any merit of one over another. Hi Dar, They all work. #1 obviously gets the award for brevity. I like #3 because I still find some lingering tendency to want to confuse me and this [stack, card, control], especially when dealing with modal stacks. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening a zipped file in RunRev?
Message: 4 Date: Wed, 3 Mar 2004 17:14:58 +0100 From: Klaus Major [EMAIL PROTECTED] Subject: Re: Opening a zipped file in RunRev? To: How to use Revolution [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed But I am still puzzled as to how you decompress a stored file. I can compress a field but not decompress the file--something like an empty can of coke. Jim Hi Jim, Have you tried binfile:? put compress(field 1) into url binfile:xxx put decompress(url binfile:xxx) into field 1 Works here for me... Regards Klaus Major [EMAIL PROTECTED] www.major-k.de Jim, Change file:xxx to binfile:xxx. File tells Revolution to treat it as a text file; binfile tells Rev this is a binary file: don't mess with it. -- Rob Cozens Klaus and Rob, Thanks, that clears up that part of the mystery. I see that I need to put things in the right bin. Jim ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
On Wednesday, March 3, 2004, at 10:32 AM, Richard Gaskin wrote: Given that a library should always perform those two checks anyway (to see if it is the target of the message and whether it's been initialized already), what is the downside to passing that system message just as one would usually want to pass all others? Do you mean in all cases? For me... I think of many other messages as belonging to all, but libraryStack as belonging to the library stack. (I pass only if it is not for the stack.) However, I don't have a strong feeling on this one and would try to go along with common practice and good style and... Is it really a consensus that certain messages, such as openCard, should pass down the path? What are those messages? Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
hiliting all instances of a string in a field
Has anyone written a function that will find all instances of a string in the htmlText of a field EXCEPT if it appears in a tag such as a/a? I need to hilite all instances of the string in the field. I figure I'm either missing a really obvious function already in Rev that will do it or I need a fancy regular expression. -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Change Rev's Tool Tip
I was wondering if it would be easy to change Rev's Tool Tip field to include a few more lines ... or should I just create my own version? thanks, Glen ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
Rob Cozens wrote: Serendipity Library's libraryStack handler not only checks to see if it is the target of the message, it also checks the state of a local variable to determine if libraryStack has already run once. [I don't want to reinitialize variables once the library is in use:] A good choice, sorely absent from my example but well worth doing. Note I do NOT pass libraryStack unless the target is not Serendipity Library, as I see nothing going on that other libraries need to know about. And if they do need to know if Serendipity Library is in use, they can check the stacksInUse property. While for most practical purposes there will not likely be any other library or backscript that would need to know when a libraryStack handler is sent to your library, it is a possibility. While admittedly unlikely, over the years I've come to regard unlikely as possible, and possible as will happen sooner or later. I've found a majority of issues in using my work in other people's environments stem from making assumptions about the environment, which has led to my personal policy of always preserving the native state of things wherever I have the opportunity to do so. Requiring polling the stacksInUse is less efficient for that purpose, but on balance if another stack needs an event-driven method the best place for that might be in a frontScript anyway. Given that a library should always perform those two checks anyway (to see if it is the target of the message and whether it's been initialized already), what is the downside to passing that system message just as one would usually want to pass all others? -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Wednesday, March 3, 2004, at 10:21 AM, Trevor DeVore wrote: Has anyone written a function that will find all instances of a string in the htmlText of a field EXCEPT if it appears in a tag such as a/a? I need to hilite all instances of the string in the field. I figure I'm either missing a really obvious function already in Rev that will do it or I need a fancy regular expression. I assume you want the character offset. One approach would be to use a loop and a matchChunk. The match chunk would find the start of the match and the start of the rest. This is applied to rest until there is no rest (so to speak). Collect the offsets or process them as you find them. One problem is that this might run afoul of bug 16. In that case, limit yourself to a maximum number of elements to be ignored between each instance. If you just want to count them or something, then use replaceText() to remove the a/a and then count the string instances. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Mar 3, 2004, at 10:59 AM, Dar Scott wrote: On Wednesday, March 3, 2004, at 10:21 AM, Trevor DeVore wrote: Has anyone written a function that will find all instances of a string in the htmlText of a field EXCEPT if it appears in a tag such as a/a? I need to hilite all instances of the string in the field. I figure I'm either missing a really obvious function already in Rev that will do it or I need a fancy regular expression. I assume you want the character offset. One approach would be to use a loop and a matchChunk. The match chunk would find the start of the match and the start of the rest. This is applied to rest until there is no rest (so to speak). Collect the offsets or process them as you find them. One problem is that this might run afoul of bug 16. In that case, limit yourself to a maximum number of elements to be ignored between each instance. If you just want to count them or something, then use replaceText() to remove the a/a and then count the string instances. I think matchChunk is the way to go. I just need to figure out the regular expression for it and regular expressions aren't my strong suit. I think the regular expression would have to find the string and then look behind for a a with no /a between it and the string. Does this sound right? Anyone know how to write that? -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
However, I don't have a strong feeling on this one and would try to go along with common practice and good style and... Dar, et al: Certainly the legacy from virtually all HyperTalk handlers written and distributed by Apple as part of the HyperCard package is to pass all such messages. The logic, I suppose, emphasizes modularity, and thus may make sense when a team of programmers is working on project where some event needs to trigger multiple handlers. But for one-developer standalone projects, I don't see the need. Perhaps down deep I, like Alex, have an aversion to sending or passing a message to nowhere. :{`) Anyway, I know where the messages in my applications are supposed to be handled, and I don't pass them unless I know they need to be handled further up/down (as you choose) the line. And in cases like Serendipity Library, where I'm building a resource that others might incorporate into their own applications, I try to contain the functionality of Library calls such that they won't affect the runtime environment or other libraries. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Stand Alone Console Applications
Now you have peeked my interest! Does this mean it is possible? Is there a precedent? Has someone developed a method that works consistently? I ask bacause I would like execute many of my utilities under *NIX CRON were X is not available and allow the user/administrator (via the same standalone) run it in GUI mode if necessary. I believe I would not be the only *NIX developer interested. Kevin ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev mauals
On 3/3/04 1:23 AM, Christopher Mitchell wrote: are printed manuals still available? I guess I should just look at the site, but this is intriguing now :) Yes. You can order them from the online store. Allow 3 weeks for delivery; they will probably arrive sooner than that, but allow 3 weeks anyway. ;) -- 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 6, Issue 4
Ken, Once again, I am blown away by what many of you do in Rev and the fact that you freely share your amazing examples with us. Thank you very much for a very useful tool that I will use continually. Cheers, Roger Message: 12 Date: Mon, 1 Mar 2004 08:45:58 -0600 From: Ken Ray [EMAIL PROTECTED] Subject: [ANN] Scripter's Scrapbook 3.1 - A New Release With Lots of New Features! To: 'How to use Revolution' [EMAIL PROTECTED], 'Improvements to Revolution' [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII Hello, everyone! As some of you may know, Hugh Senior has been developing the Scripter's Scrapbook for a number of years, with various versions that worked in HyperCard, SuperCard and MetaCard/Revolution. It has always been a good utility for keeping track of handlers, functions, tidbits of info, hints, tips, or just development notes for a variety of languages. A while back, I got involved with Hugh when I suggested some enhancements to the Scripter's Scrapbook and to my delight, he started implementing them. The two of us have been working on enhancing the product and have added quite a few additional features that make Scripter's Scrapbook a real powerhouse for managing your code and development notes. Here's the breakdown of new features added in 3.1: - Links: You can attach hyperlinks to email, files, other scrapbook entries and web resources - Categories: You can define you own categories and apply as many of them as you like to each entry to help you manage your entries (ssBk comes with a default set of categories you can use or modify to suit your needs) - Extended language classifications: Now supports 12 different language classifications - MetaCard/Revolution, HyperCard, SuperCard, Director, Flash, AppleScript, HTML, Macro, Visual Basic, Perl, JavaScript, and Other - 5 Platform classifications: MacOS, OS X, Windows, Unix and Internet - Embedded file attachments: Can attach and embed files inside the Scrapbook that are associated with an entry or shared for all entries. (Ever wanted to keep your custom answer dialog stack connected your custom code that calls it? Now you can!) - Script Colorization: Supports the syntax of multiple languages! - Advanced Find: Makes it easier to locate your entries - Full export and import so you can share entries with others! - Memos: You can insert popup annotations that are included in your web page exports, 'save as' and previews - Protected entries: Entries can be 'locked' to avoid unintentional modification - History: Extended History management including full 4-way navigation - Preferences: Extended set-up options for advanced Users - Cross-Platform: The Scrapbook and backup files can be moved between supported platforms - PlugIns: You can included direct access to your own files by sharing the PlugIn architecture with the supplied plugins - Revolution plugin compatible - Online updates: One-click checking, so you'll never miss an update of Scripter's Scrapbook and more! The Scripter's Scrapbook is FREE and comes as an MC/Rev stack with an optional standalone Player for use outside the MC/Rev IDE. You can download Scripter's Scrapbook at http://www.flexiblelearning.com/ssbk.htm. Enjoy the new version! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Wednesday, March 3, 2004, at 11:05 AM, Trevor DeVore wrote: I think matchChunk is the way to go. I just need to figure out the regular expression for it and regular expressions aren't my strong suit. I think the regular expression would have to find the string and then look behind for a a with no /a between it and the string. Does this sound right? Anyone know how to write that? Or skip said elements or chars before matching string. Use a non-gathering group and (because of the bug) a range on the repeat. I know that is cryptic and short. Ask if I need to elaborate. Dar ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
On Wednesday, March 3, 2004, at 10:02 AM, Rob Cozens wrote: The logic, I suppose, emphasizes modularity, and thus may make sense when a team of programmers is working on project where some event needs to trigger multiple handlers. But for one-developer standalone projects, I don't see the need. As we grow as a community we might be using more and more stack libraries from other sources including custom controls that require stack libraries. I assume most folks pass preOpenCard down the message path, for example. If I have a library stack that uses that, I need to doc that. If this is not really a common style, I might want to add a handler that must be called on preOpenCard and make that an alternative method. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Mar 3, 2004, at 11:27 AM, Dar Scott wrote: On Wednesday, March 3, 2004, at 11:05 AM, Trevor DeVore wrote: I think matchChunk is the way to go. I just need to figure out the regular expression for it and regular expressions aren't my strong suit. I think the regular expression would have to find the string and then look behind for a a with no /a between it and the string. Does this sound right? Anyone know how to write that? Or skip said elements or chars before matching string. Use a non-gathering group and (because of the bug) a range on the repeat. I know that is cryptic and short. Ask if I need to elaborate. Please elaborate :-) -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
List Server and extra address in reply-to
Anybody understand what is going on here? Sometimes the reply-to has an extra address, the sender of the original. It switches back and forth for some folks. I suspect this is a broken feature of the list server. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Determing processor speed on Windows systems?
Cos, You can try using the freewayre command-line tools at http://www.sysinternals.com/ and then calling them from shell(). There's one for NT/2000/XP called PSInfo that works for the processor type and speed. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cos Russo Sent: Tuesday, March 02, 2004 6:33 AM To: [EMAIL PROTECTED] Subject: Determing processor speed on Windows systems? Can use of MCISendString or Shell or queryRegistry in Revolution 2.1.2 determine any of the following: 1. The processor type and speed on Windows platform. 2. Switching screen resolutions on Windows platform. Thankyou in advance for any assistance. -Cos ___ 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: Console/Shell Programs Detecting GUI
nteresting, and a excelent suggestion. My question becomes whe I tested a few of my applications (standalones) on startup they attempted to contact the 'X' subsystem to create the visual representation of the main stack. Is that you experience? Am I doing something incorrectly? Just add the line below to your on preOpenStack : if the num of lines in the windows is 1 then -- you are in console mode else -- you are in graphical mode Works well there under both Linux and OSX in stack mode (standalone never tested). -==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=- Disclaimer: Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. Any resemblance between the above and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. The question of the existence of the reader is left as an exercise for the second god coefficient. (A discussion of non-orthogonal, non-integral polytheism is beyond the scope of this article.) ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Wednesday, March 3, 2004, at 11:35 AM, Trevor DeVore wrote: Or skip said elements or chars before matching string. Use a non-gathering group and (because of the bug) a range on the repeat. I know that is cryptic and short. Ask if I need to elaborate. Please elaborate :-) I gotta run and will be back in maybe three hours. This is wrong, wrong but might get you started if you want to play with it: \A(?:a.*\\a|.){0,100}(abc)(.*)\z where abc is your match and there are no more than 100 characters or a elements between instances. When the bug is fixed change {0,100} to *. Remember to test for match and nonmatch. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Console/Shell Programs Detecting GUI
What platforms are you looking for this on? I seem to remember that some of the UNIX command-line engines (i.e. Darwin, Linux) had a command-line switch to enable or disable XWindows, but I could be wrong. It may be hard to build a standalone that behaves like this, as opposed to a stack that checks environment() and is run with different engines. Note that command-line engines send a startup message but no openStack... HTH, Brian nteresting, and a excelent suggestion. My question becomes whe I tested a few of my applications (standalones) on startup they attempted to contact the 'X' subsystem to create the visual representation of the main stack. Is that you experience? Am I doing something incorrectly? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
I assume most folks pass preOpenCard down the message path, for example. If I have a library stack that uses that, I need to doc that. If this is not really a common style, I might want to add a handler that must be called on preOpenCard and make that an alternative method. I suggest it should be the second approach, Dar: If your library wants a call to darsPreopenCard whenever any card in any stack is opened from a developer's standalone or stack, your documentation should tell the developer to place the call in their script on preOpenCard darsPreopenCard end preOpenCard It just strikes me that a library distributed for general purpose use by who-knows-who should not respond to any message other than a call to a library handler and the libraryStack message sent to it when it is placed in use. In this regard, a library's own open/preopen stack and closeStack handlers should be located in the script of the first card, rather than in the library stack script. This prevents the library from intercepting those messages when they are sent to other stacks. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Limitations of RR for drawing apps?
Install the MC engine and look at the examples from the help menu in the mctoolbar (MCTools), hit the right arrow 9 times or is it 8?! Move the square buttons... Ready made for you... Also there is a HyperCard book that showed this example called HyperProgramming from Addison Wesley written by Coulouris and Thimbledy. It did that with bitmap drawings. Where's that early 90's diskette now? 8( What we need in RR (like HC and MC) are MacDraw objects... But since PS is supported, why not FreeHand quality graphic editing tools (i'd love to have even FH 1.0 tools!) with SuperDraw (corel something?)? Alejandro? Todavia no tienes ese FreeHand plug-in listo? -- Discretely from http://MonsieurX.com I just started peeking at SolidWord 2004 and that's another RR for CAD CAM graphics! Like FH 1.0 again... For Audio Rev try www.FLStudio.com For sweet bubbles and amber body rev try www.leffe.be oh, shameless biased plug for Belgium, i know -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim Carwardine Sent: Wednesday, March 03, 2004 17:31 To: Revolution Listserve Subject: Re: Limitations of RR for drawing apps? Where do I find that MC example? I went to the MC web site and found a lot of cool stuff but couldn't see a similar example... Jim on 3/3/04 11:25 AM, [EMAIL PROTECTED] wrote: There was such an example in the MC examples stack... But you might have to update that MacPlus to make it work ;)) Just in a good metamood... MacCheers Xa On 03/03/2004 15:54:35 use-revolution-bounces wrote: As an offshoot discussion of this... Does anyone remember MacProject? I still use it. It's a wonderful tool for me. I'd like to integrate something similar into my project. Has anyone got any ideas about the construction of this in Rev? Seems to me that the graphic interface has a challenge because a line has no properties - like an id, so attaching it to the centre of a box (task, which could be a field or a button) would be a problem. If that one was solved, then using a large array plus a database would take care of the logical part...right? Jim on 3/1/04 6:32 AM, Richard Gaskin wrote: Graham Samuel wrote: I vaguely remember someone (Richard G?) saying that RunRev is not entirely suitable for creating vector drawing (and - maybe - painting) programs in the style of MacDraw or the drawing/painting features of AppleWorks Depends on what you want to do. Some types of drawing apps will work great, but if you need scrolling documents and manipulatable lines and polygons it's tricky. See Bugzilla for details: #622, 623, and 624. I'm told these are queued for possible implementation, but no projected date has been given. In the meantime, it's hard to make the equivalent of SuperCard's SampleDraw, and in some aspects not possible yet (or at least not with a smoothness I feel comfortable delivering). For myself, rather than implement hard-earned/short-lived workarounds I'm doing my stuff for the apps that need drawing tools in ways that work around the current limitations, confident that a solid solution for the whole kaboodle will be coming at some point Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution -- OYF is... Highly resourceful people working together. http://www.OwnYourFuture-net.com Own Your Future Consulting Services Limited, 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2 Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139 ___ 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: Console/Shell Programs Detecting GUI
I am referring to a application the allows the user to select by switch weather the application runs as console/text or GUI. For example several Win32 application can run from the command line but when launched appropriately they display a window. I'm afraid I don't know what you mean by hybrid? Do you mind sharing what the root need is in the first place? I am operating under the impression that I must use the GUI engine in order to have a hybrid application and standalone. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
Dar Scott wrote: On Wednesday, March 3, 2004, at 10:32 AM, Richard Gaskin wrote: Given that a library should always perform those two checks anyway (to see if it is the target of the message and whether it's been initialized already), what is the downside to passing that system message just as one would usually want to pass all others? Do you mean in all cases? I don't know that anything in programming lends itself to absolutes. :) Is it really a consensus that certain messages, such as openCard, should pass down the path? What are those messages? I picked up the habit of passing system messages from an old book, Tricks of the HyperTalk Masters, and possibly from Thimbleby and Colouris' HyperTalk Programming (my copy was loaned out many years ago, and as happens with many good books it's never come back, and is long since out of print). It proved useful in those days because I would often want to augment behavior for an event and found, as those writers suggested, that as long as I passed my system messages I'd left an open door to do that. Without passing system messages the door is closed, until you write a worm to go back and revise the scripts of the objects whose behavior you want to change, easier done in one's office than throughout an installed based. But of course, the difficulty is that to rely on messages being passed requires that everyone play ball; great for your own team but impossible to depend on for libraries designed for use in other people's environments. A lot of the code bases I work on today were inherited, mostly ports from other systems, so there are few assurances of stylistic consistency. The solution to this came in 1994 when SuperCard introduced frontScripts, allowing you to trap system messages before any other object gets them. This was added to MetaCard not long after. There are rare cases in which it may be especially useful to get the messages after the target is done with them, but for the most part frontScripts are the optimal choice for trapping system messages in other people's environments. In a frontScript, it is almost always essential that all messages always be passed; there may be an exception worth honoring, but in general if you don't pass system messages in a frontScript the result will be undesirable, as not even the target will get them. In my own stuff I tend to pass all card- and stack-related messages everywhere, and often don't bother with the mouse messages in not-frontScript objects. The libraryStack message is a bit of a Schroedinger's Cat, since on the one hand you may want to preserve the native state of things, but on the other hand the native state of things doesn't include your stack which is the reason that instance of the libraryStack message is sent. But continuing down the rabbit hole, maybe it's a case of sum ergo passo (I exists, therefore I pass), in which the existence of the stack in the message queue may just as well be seen as a natural thing, and therefore any outside script monitoring such things should rightfully expect the libraryStack message to be comin' down the pike (though I'd be surprised if someone writing something so exotic wouldn't prefer the greater reliability of a frontScript). But just as Schroedinger's Cat is an unnecessarily complicated discussion for a relatively simple idea, so is that last paragraph. :) As much as rational minds strive for absolutes, I think a lot of nuances surrounding when to pass system messages depend on what you're working on and your own personal comfort zone. Here, when something works I use it, and when it no longer works I write a worm. :) I always pass everything in any script I write for global access (frontScripts, backScripts, libraries), and discriminate based on contextual considerations in non-shared objects. As a relevant side note, many messages the IDE relies on are handled in backScripts like revGeneral, where you'll find handlers for things like the powerful selectedObjectChanged message. If you're making a drawing app and don't pass that message the IDE will not function; this may be a downside for those getting started but offers a convenience for pros in being able to override IDE behaviors without having to first remove IDE scripts from the message path. As much as I appreciate that convenience myself, I would probably make the pros work a little harder if it would help protect newcomers, so I wonder if Rev has considered migrating those handlers to a frontScript going forward. -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
Recently, Richard Gaskin wrote: With the exception of user-manipulatable points for lines and polygons, it's all there in the engine now Is the Reshape Polygon button in Rev not what you have in mind here? I went and wrote a small routine to handle relocating the points of polygon only to find that Revolution now has this feature available in the tools palette. If Rev's implementation is not accessible, you're welcome to mine; if this isn't what you're looking for, please clarify. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
A line does have an ID property. You can use altPropEditor to find it. altPropEditor is part of the altPluginToolbar suite and it's free. at: http://www.altuit.com/webs/altuit2/altPluginCover/about.htm Jim Carwardine wrote: As an offshoot discussion of this... Does anyone remember MacProject? I still use it. It's a wonderful tool for me. I'd like to integrate something similar into my project. Has anyone got any ideas about the construction of this in Rev? Seems to me that the graphic interface has a challenge because a line has no properties - like an id, so attaching it to the centre of a box (task, which could be a field or a button) would be a problem. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN] RevZilla 1.1.2 Now Available (finally!)
(Sorry everyone, but it took me two weeks to do what I said would happen in two days...) RevZilla 1.1.2 is now available (via RevNet or from http://www.sonsothunder.com/devres/revolution/downloads/RevZilla.htm). It fixes a couple of bugs, most notably the one where you couldn't do post or view your bugs. :-) Anyway, as always, please report any issues you encounter, Thanks! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
That's cool... Now I have to learn about dragging so I can have two boxes connected by a line and let the bottomRight of the line follow the loc of the second box while the topLeft of the line stays with the loc of the first box... How does one move only one end of a line in transcript? Jim on 3/3/04 4:32 PM, Chipp Walters wrote: A line does have an ID property. You can use altPropEditor to find it. altPropEditor is part of the altPluginToolbar suite and it's free. at: http://www.altuit.com/webs/altuit2/altPluginCover/about.htm Jim Carwardine wrote: As an offshoot discussion of this... Does anyone remember MacProject? I still use it. It's a wonderful tool for me. I'd like to integrate something similar into my project. Has anyone got any ideas about the construction of this in Rev? Seems to me that the graphic interface has a challenge because a line has no properties - like an id, so attaching it to the centre of a box (task, which could be a field or a button) would be a problem. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution -- OYF is... Highly resourceful people working together. http://www.OwnYourFuture-net.com Own Your Future Consulting Services Limited, 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2 Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
Scott Rossi wrote: Recently, Richard Gaskin wrote: With the exception of user-manipulatable points for lines and polygons, it's all there in the engine now Is the Reshape Polygon button in Rev not what you have in mind here? I went and wrote a small routine to handle relocating the points of polygon only to find that Revolution now has this feature available in the tools palette. If Rev's implementation is not accessible, you're welcome to mine; if this isn't what you're looking for, please clarify. Scripted solutions are not necessarily horrible, but they're not quite MacDraw-like. See Bugzilla #624 referenced in this thread earlier for details. See also a search for polygon in Bugzilla, to see the three bugs related to the scripted interim workaround. To the best of my knowledge no bugs have ever been filed for engine-based handles. For something that fundamental an engine-based solution is the way to go, both for consistency of the user experience and general robustness. -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Tabs
I must be missing something but I am unable to get the tab feature working. Is there a detailed tutorial anywhere for the newbie?? A. Lynne Deese North Carolina Assistive Technology 1110 Navaho Dr. Raleigh, NC 27609 Phone: 919-850-2787 Fax: 919-850-2792 Email: [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
Jim Carwardine wrote: How does one move only one end of a line in transcript? See the points property. Also note that, as Geoff Canyon discovered, you can put blank lines in the points list to create discontiguous polygons. -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
More dialer stuff
Howdy, On my Mac, this works fine: I have a button and a field on mouseUp dial fld 1 end mouseUp on dial dNumber -- function by Sjoerd Op 't Land open file modem: for write write ATDT dNumber return to file modem: end dial dNumber ...will it work the same in Windows? Can someone check for me? Also, what's a good way to detect if the phone has been picked up so I can: close modem file ...via script. TIA, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
Got it... Thanks... Jim on 3/3/04 5:07 PM, Richard Gaskin wrote: Jim Carwardine wrote: How does one move only one end of a line in transcript? See the points property. Also note that, as Geoff Canyon discovered, you can put blank lines in the points list to create discontiguous polygons. -- OYF is... Highly resourceful people working together. http://www.OwnYourFuture-net.com Own Your Future Consulting Services Limited, 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2 Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More dialer stuff
...will it work the same in Windows? Can someone check for me? According to the docs, modem: is only for MacOS. For a PC, you have to substitute COM1: - COM4: I tried, but it gave errors. My modem is internal and on COM3. I am not near an analog phone line, so I couldn't test thoroughly... sorry. ~Roger ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
pdatoolbox read and write
Hi All and Chipp I know some here have used PDAT to make palm apps. I beleive the formatt of PDAToolbox is a subset of the palm format. Is there any stack that can read and write (for dummies like me) palm databases that I can build a commercial app on? I have a friend that has written an activeX dll in C++ that can read the palm formatt and he is making a read/write version. Have this already been done in runrev? Also, if not, then can runrev use a dll like this on windows? All the best Bob; Sunny Scotland ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Change Rev's Tool Tip
On Wed, 3 Mar 2004 11:33:48 -0600, Bojsza [EMAIL PROTECTED] wrote: I was wondering if it would be easy to change Rev's Tool Tip field to include a few more lines ... or should I just create my own version? I can't answer the question, sorry - but I too am very interested in getting some more control over tooltips. I have an app where I would like to display the tooltips of all visible controls by pressing a single button. AFAIK this is impossible, but I could fake it if I knew how the engine decides on the dimensions and location of a control's tooltip. Then I could just create 'shadow' label fields to do what I want. So, is there any way of finding out a bit more about a tooltip at runtime, I'd like to know what it is. Graham --- Graham Samuel / The Living Fossil Co. / UK France ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The Scripter's Scrapbook: Update notice
Really cool stack, man. Something you might want to fix though is in the Preferences pane if you click on How do I get an update? the instructions say to click on 'Is a new version available' from the index on the left ... but the index is on the right ;) Yours, Chris On Mar 3, 2004, at 4:40 AM, [EMAIL PROTECTED] wrote: Anyone who downloaded The Scripter's Scrapbook yesterday 2 March or who selected a direct upgrade, should please obtain an updated release. A build error has now been corrected. Our apologies for any inconvenience caused... EITHER - Select 'Checking for Updates' under the Help menu. The new version will be delivered to you direct OR - Go to http://FlexibleLearning.com/xtalk.htm Updates are issued regularly for fixes and improvements. You can check if you are up to date under the Help menu at any time. The web stats have gone through the roof over the past couple of days... Thank you for your interest! Do let us know if you have any comments, problems or feature requests. Feedback helps us improve The Scripter's Scrapbook for you and we really do want this to be a useful tool for everyone from beginners to advanced users! Onwards and upwards, Hugh Senior ___ 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: hiliting all instances of a string in a field
On Wednesday, March 3, 2004, at 06:05 PM, [EMAIL PROTECTED] wrote: Has anyone written a function that will find all instances of a string in the htmlText of a field EXCEPT if it appears in a tag such as a/a? I need to hilite all instances of the string in the field. I figure I'm either missing a really obvious function already in Rev that will do it or I need a fancy regular expression. Trevor, Is this the kind of thing you want to do? http://news.lycos.com/news/ story.asp?section=ElectionsstoryId=829253topic=bush That was pretty easy to do: 1. Remove all and / from the topic string (the topic string is the string you're wanting to hilite) 2. split the html you're wanting to hilite using the topic string. Unfortunately you can't use Transcript's split command because it only splits on a character, but you can use offset to simulate a string split. 3. as you step through each found topic string, look for the next and next characters. Call the offset of the character nextOpen, and the offset of the character nextClose. 4. Check whether to hilite or not: If nextClose nextOpen then ' we're in the middle of a tag, so don't hilite it else 'we're not in a tag, so hilite the topic string 'do this by replacing the topic string you've found with this ' span class= quote hiliterCssName quote topicStr /span end if 5. You can find the css value for hiliterCssName by looking in the css file for the above referenced page. Best, -- Frank ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
WISH: palm database app creation
Hi All. I just posted regarding palm database read and write. Now if we could simply have runrev compile a palm database app then that would be wonderful. I have bought the windows express version, however I would definitely give the folks in auld reekie another 150 dollars. Cheers Bob in Sunny Glesga ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pdatoolbox read and write
Bob Hartley wrote: Is there any stack that can read and write (for dummies like me) palm databases that I can build a commercial app on? Lars Lewejohann made a wonderful Palm DB reader for Rev, available in the RunRev Developer Contributions collection at: http://www.runrev.com/Revolution1/developercentral/usercontributions.html -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Limitations of RR for drawing apps?
On Wednesday, March 3, 2004, at 09:42 PM, [EMAIL PROTECTED] wrote: Subject: Re: Limitations of RR for drawing apps? To: Revolution Listserve [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII That's cool... Now I have to learn about dragging so I can have two boxes connected by a line and let the bottomRight of the line follow the loc of the second box while the topLeft of the line stays with the loc of the first box... How does one move only one end of a line in transcript? Jim Does RR have a way to hilite the selection rect as you drag the mouse? (The dashed rect that's drawn in xor as you select an area with the pointer tool). -- Frank ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Windows CE
Does anyone know if a Windows CE version of run rev will ever be planned? I know file size will be an issue. I am doing a lot of work on a Windows CE/Pocket PC demonstration and would love to be able to build a PocketPC application to download to my handheld. Thanks Tom Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.1.2 Advanced Media Group Thomas J McGrath III 2003 [EMAIL PROTECTED] 220 Drake Road, Bethel Park, PA 15102 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Wednesday, March 3, 2004, at 10:21 AM, Trevor DeVore wrote: Has anyone written a function that will find all instances of a string in the htmlText of a field EXCEPT if it appears in a tag such as a/a? I need to hilite all instances of the string in the field. I figure I'm either missing a really obvious function already in Rev that will do it or I need a fancy regular expression. Trevor, as usual, I forgot to read the subject. You can get the text not the htmlText and go through that. Check the text properties of each one back in the field to see if it is a link. Do the highlighting thing (whatever you want), if it is not. (If you don't have access to the original field, use a temporary or hidden field.) Dar doing-it-the-hard-way Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tabs
name tabs as cards put the following script into the tab button. on menuPick pWitch go to the card pWitch end menuPick On Wednesday, March 3, 2004, at 04:06 PM, Lynne Deese wrote: I must be missing something but I am unable to get the tab feature working. Is there a detailed tutorial anywhere for the newbie?? A. Lynne Deese North Carolina Assistive Technology 1110 Navaho Dr. Raleigh, NC 27609 Phone: 919-850-2787 Fax: 919-850-2792 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: pdatoolbox read and write
Bob, Lars Lewejohann wrote a Palm database viewer and posted it last July: the post: http://lists.runrev.com/pipermail/use-revolution/2003-July/019574.html the file: http://www.tinyredbook.com/PDBV.zip -Chipp Bob Hartley wrote: Hi All and Chipp I know some here have used PDAT to make palm apps. I beleive the formatt of PDAToolbox is a subset of the palm format. Is there any stack that can read and write (for dummies like me) palm databases that I can build a commercial app on? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More dialer stuff
...will it work the same in Windows? Can someone check for me? According to the docs, modem: is only for MacOS. For a PC, you have to substitute COM1: - COM4: I tried, but it gave errors. My modem is internal and on COM3. I am not near an analog phone line, so I couldn't test thoroughly... sorry. ~Roger open file COM3: for write write ATDT dNumber return to file COM3 dialled my internal winmodem OK -- (XP) Martin ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Help stack?
Hi, Has anyone done a nice help stack that they'd be willing to share? The Rev help stack is nice but it's more than I need. I'm envisioning something that might read html pages from a folder, and create a bunch of cards for each web page. That way maybe I could have the docs live online and in a help stack. Thanks, -- Frank ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Disable/Enable selected lines in a field
Thanks Rob, This put me on the right track. Glen On Wednesday, March 3, 2004, at 09:13 AM, Rob Cozens wrote: Hi Glen, I have two fields where a user hilites single or multiple lines in field aChoiceList and then presses a button Yes which copies the selected lines into field aSelectedList. What I am wanting to do is to some how gray out the lines and disable them from being selected in field aChoiceList that now show in the field aSelectedList. If the user selects lines in the field aSelectedList and clicks another button return then the lines are removed from the field aSelectedList and the associated lines in the field aChoiceList become ungrayed and available to select again in the future. Have you checked out the possibility of setting the textcolor of the lines instead of the hilite? on mouseUp lock screen put return(fld aSelectedList) into previousSelections get fld aChoiceList repeat with x = 1 to the number of lines of it /* I don't think repeat for each line aLine in... gets you the textColor*/ if the textColor of line x of fld aChoiceList is not grey then next repeat if offset(cr(line x of it)cr,previousSelections)0 then next repeat put line x of it cr after fld aSelectedList end repeat unlock screen end mouseUp To select a line, set its textColor to grey; to deselect it, set the textColor to empty. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ 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: hiliting all instances of a string in a field
On Mar 3, 2004, at 3:05 PM, Dar Scott wrote: You can get the text not the htmlText and go through that. Check the text properties of each one back in the field to see if it is a link. Do the highlighting thing (whatever you want), if it is not. (If you don't have access to the original field, use a temporary or hidden field.) Duh, I forgot I could set the backgroundColor of the text in the field without having to worry about the htmlText. This is what I came up with: put text of tTargetField into tText put number of chars of pHiliteTerm - 1 into tLength put 0 into tLastOffset put offset (pHiliteTerm, tText, tLastOffset) into tOffset repeat while tOffset 0 set backgroundColor of char (tLastOffset + tOffset) to (tLastOffset + tOffset + tLength) of tTargetField to yellow put tLastOffset + tOffset into tLastOffset put offset (pHiliteTerm, tText, tLastOffset) into tOffset end repeat Thanks, -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Mar 3, 2004, at 2:48 PM, Frank Leahy wrote: Trevor, Is this the kind of thing you want to do? http://news.lycos.com/news/story.asp? section=ElectionsstoryId=829253topic=bush That is what I was trying to accomplish. As I mention in my other post I ended up using offset, backgroundColor and the text property of the field to accomplish this. Thanks, -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Limitations of RR for drawing apps?
on Wed, 3 Mar 2004 20:20:54 +0100 Xavier Bury wrote: What we need in RR (like HC and MC) are MacDraw objects... But since PostScript is supported, why not FreeHand quality graphic editing tools (i'd love to have even FH 1.0 tools!) with SuperDraw (corel something?)? Alejandro? Todavia no tienes ese FreeHand plug-in listo? No Xavier, the handler to export a stack as adobe ilustrator format is not ready. In fact, is a real hurdle to convert the text fields in the text encodings used by the adobe format. You can check this drawing stack in my site. This is the message that i send to this list: Download the stack Graphic Tools v01 beta.zip http://www.geocities.com/capellan2000/Graphic_Tools_v01beta.zip This stack shows how to edit a polygon graphic with diverse tools. Notice, this is a Beta, so expect some rough edges... ;) The only tool that I want that you check is ConvertPoint. It looks like this: /\ I think this is the shape of the convert point tool of Adobe Ilustrator. This tool lets you change the shape of a line segment between 2 selected points of a polygon graphic. In fact, what you are doing is replacing the points with the points of the line that you just created. To reshape a polygon graphic: 1- Select the Convert Shape tool ( /\ ) 2- Click on the first point of the Polygon graphic. It's better if you have selected before the polygon graphic and had checked the button Show Markers. In that way, the marker points will be already visible... Notice, if you checked the button Audible Feedback (Beep) then you will hear a beep ONLY if you clicked on a marker point of the polygon graphic. 3- Click the second point of the polygon and 2 GREEN dots, 2 RED dots (under the green dots) and a line appears over the two points that you CLICKED before. 4- Move the green dots to reshape the bezier line and when you are done... DOUBLECLICK one of the green dots. Do not click the red dots or the line, please. IMPORTANT: You can press the option key, while doubleclicking to obtain another variation of this adding or deleting of points. ;)) 5- The Red Dots, Green dots and the line dissapear, (go back to the left corner) and the segment takes the shape of the line. If any unexpected change occurs then click the button UNDO. Notice, NO ERROR HANDLING. Any deviation on this steps will produce errors without any doubts... :(( Comments and fixes are welcome, as always. Later I'll comment over the other tools, but you'll read the code and test your guessings powers too!!! ;)) al = Visit my site: http://www.geocities.com/capellan2000/ Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: hiliting all instances of a string in a field
On Wednesday, March 3, 2004, at 04:44 PM, Trevor DeVore wrote: Duh, I forgot I could set the backgroundColor of the text in the field without having to worry about the htmlText. This example does not check that it is in a link. Maybe that is straightforward to add, maybe with a compromise and checking only that the linkText of the first character is empty. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: final php versions of fwPack and fwUnpack
On Tuesday, March 2, 2004, at 09:07 AM, Richard Gaskin wrote: As I mentioned in the article, I'm pretty ignorant on encryption, esp. compared to seasoned cryptohobbyists like Mark Brownell. So here's a question I can't answer about my own code: If one were to try to characterize the relative strength of the MDX algorithm used in fwPack/fwUnpack, what phrase would be appropriate? This is just too juicy to pass up. How about Don't forget to drink your chocolate flavored Ovaltene. For example, we hear about 128-bit encryption, but I couldn't find a primer dumbed-down enough to explain what that means in lay terms. I need to see what controls there are for the MDX algorithm's passwords length before I can determine the bit level. In other words I just started looking at it. Blowfish uses more than 500 iterations of changes on two 32 bit blocks at a time sending them left and right through each other. Blowfish is a 64 bit block-cypher. One very important recommendation while using powerful block-cyphers is in not doing so in a way that all you end up getting is a fixed code book kind of result. This fixed code book type is referred to as EBC, Electronic Code Book. One way to avoid creating a fixed code book is to use the first 32 bit word to XOR the next 32 bit word then use the second 32 bit XORed word to XOR the third 32 bit word. This alone would still be a weaker form of encryption. What can really change things is to either pass eight unrelated secret characters to XOR the first eight characters or to pad the text to be encrypted with eight randomly generated characters first. When decoding takes place the additional characters can be removed before viewing the text. This is known as CBC, Cypher Block Chaining. If you add eight randomly chosen characters CBC to your MDX, then it will be much harder to crack your 32 bit (I guess) encryption level. I need to look at it closer. It looks like you are XORing one char at a time. This would make it an 8 bit block cypher. Here is how Blowfish increases encryption levels. If a user uses 32 bit level then four characters are used over and aver to encrypt with. Other levels are 64 bit uses 8 charaters, and 128 bit uses 16 characters. All example keys for Blowfish are 56 characters long. Example 32 bit 56 char key: abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd Example 64 bit 56 char key: abcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefgh Example 128 bit 56 char key: abcdefghijklmnopabcdefghijklmnopabcdefghijklmnopabcdefgh Also, how easy would it be to crack MDX? -- Richard Gaskin If a programer had the MDX algorithm then a brute force attack would take about one minute to one hour. The 54 bit encryption level was cracked by a brute force attack using several computers in a long weekend. The trick is to just try every possible access key, eventually you get the one that works. If your access key is only four characters then there are only 256*256*256*256 (4,294,967,296) possible keys. If your algorithm restricts characters to the first 128 ascii characters then there are only 128*128*128*128 (68,435,456) possible keys. (This is assuming a four char key that I saw on the list as an example.) So one way to stop the practicality of brute force attacks is to deliberately put a one second delay on processing the algorithm. If your application or CGI has a password input point then this one second delay will make a brute force attack difficult. 100,000,000 brute force attempts with a one second delay would take more than three to four years on a single computer. It would take 1000 computers hitting your CGI continuously to get past half of the possibilities in a single day or two. I doubt if that is even possible. more later... i'm out RVing Mark ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hard code or portable code
I think we are not on the same track. On Wednesday, March 3, 2004, at 02:03 AM, Dar Scott wrote: On Tuesday, March 2, 2004, at 08:21 PM, hershrev wrote: is there a way to imitate hard code with some kind of container ? Here are a couple of ideas: 1. Use a list of names-- Create a list in a manner much like this: repeat with x = 1 to the number of fields put (the name of field x) LF after myVar end repeat Now , how do you get the contents of all the fields ? if you put myVar into myQuery, the result will be the field names and not the field content ? ( THE MAIN POINT IS TO GET THE LATEST DATA meaning if the user edits the field after the repeat script the result should be the updated contents as hard code) if you come up with a recipe for this I'll raise my hat for you. thanks , hershrev Dar Scott ___ 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: Hard code or portable code
Hershrev, I'm not sure I understand what you mean by hard-code. If you want a persistent way to reference a field, regardless of it's name, you can use the ID. Or, to get all of the fields, something like: repeat with i=1 to (the number of flds) put fld i after myVar end repeat If you want to write a function that always returns you the latest: function latestFields local myVar repeat with i=1 to (the number of flds) put fld i after myVar end repeat return myVar end latestFields HTH, Brian Now , how do you get the contents of all the fields ? if you put myVar into myQuery, the result will be the field names and not the field content ? ( THE MAIN POINT IS TO GET THE LATEST DATA meaning if the user edits the field after the repeat script the result should be the updated contents as hard code) if you come up with a recipe for this I'll raise my hat for you. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hard code or portable code
On Wednesday, March 3, 2004, at 08:44 PM, Brian Yennie wrote: Hershrev, I'm not sure I understand what you mean by hard-code. If you want a persistent way to reference a field, regardless of it's name, you can use the ID. Or, to get all of the fields, something like: repeat with i=1 to (the number of flds) put fld i after myVar end repeat If you want to write a function that always returns you the latest: function latestFields local myVar repeat with i=1 to (the number of flds) put fld i after myVar end repeat return myVar What result will return myVar give, the fields names or contents of the fields ? end latestFields HTH, Brian Now , how do you get the contents of all the fields ? if you put myVar into myQuery, the result will be the field names and not the field content ? ( THE MAIN POINT IS TO GET THE LATEST DATA meaning if the user edits the field after the repeat script the result should be the updated contents as hard code) if you come up with a recipe for this I'll raise my hat for you. ___ 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: Hard code or portable code
On Wednesday, March 3, 2004, at 06:06 PM, hershrev wrote: Create a list in a manner much like this: repeat with x = 1 to the number of fields put (the name of field x) LF after myVar end repeat Now , how do you get the contents of all the fields ? if you put myVar into myQuery, the result will be the field names and not the field content ? ( THE MAIN POINT IS TO GET THE LATEST DATA meaning if the user edits the field after the repeat script the result should be the updated contents as hard code) I am probably still a little lost. I guess I don't know what hard code is. Once the above is set, you can get the contents with this: put LF into bindingChar put empty into valueAccumulator repeat for each line f in myVar put field f after valueAccumulator end repeat Do you want to have all the field values evaluated each time you look at the variable? I don't know how to do that. Here are three things that might be close. A. Use a function instead of a variable. put catFields() into ... B. Use value on the variable. Set it up like this: field Alpha field Beta' field Gamma Use it like this put value(autoCatFields) into ... C. Use properties. If all those field are in a group, then define a custom property with a getProp that calculates the concatenation of the values of all fields within the group. put the catFields of group Will Robinson into ... Am I getting closer? Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hard code or portable code
On Wednesday, March 3, 2004, at 08:52 PM, Dar Scott wrote: On Wednesday, March 3, 2004, at 06:06 PM, hershrev wrote: Create a list in a manner much like this: repeat with x = 1 to the number of fields put (the name of field x) LF after myVar end repeat Now , how do you get the contents of all the fields ? if you put myVar into myQuery, the result will be the field names and not the field content ? ( THE MAIN POINT IS TO GET THE LATEST DATA meaning if the user edits the field after the repeat script the result should be the updated contents as hard code) I am probably still a little lost. I guess I don't know what hard code is. Hard code is writing in the editor on mouseUp put field 1 field 2 into mSql end mouseUp Once the above is set, you can get the contents with this: put LF into bindingChar put empty into valueAccumulator repeat for each line f in myVar put field f after valueAccumulator end repeat Do you want to have all the field values evaluated each time you look at the variable? I don't know how to do that. Here are three things that might be close. A. Use a function instead of a variable. put catFields() into ... B. Use value on the variable. Set it up like this: field Alpha field Beta' field Gamma Use it like this put value(autoCatFields) into ... C. Use properties. If all those field are in a group, then define a custom property with a getProp that calculates the concatenation of the values of all fields within the group. put the catFields of group Will Robinson into ... Am I getting closer? Dar Scott ___ 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: Hard code or portable code
On Wednesday, March 3, 2004, at 06:50 PM, hershrev wrote: If you want to write a function that always returns you the latest: function latestFields local myVar repeat with i=1 to (the number of flds) put fld i after myVar end repeat return myVar What result will return myVar give, the fields names or contents of the fields ? end latestFields Contents Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
On Wednesday, March 3, 2004, at 12:44 PM, Richard Gaskin wrote: But of course, the difficulty is that to rely on messages being passed requires that everyone play ball; great for your own team but impossible to depend on for libraries designed for use in other people's environments. A lot of the code bases I work on today were inherited, mostly ports from other systems, so there are few assurances of stylistic consistency. Well, I can say this in my stack doc/note: Here is how my stack works. There are some options depending on your scripting style. If your style does not fit any of those, adapt. What I'd like to do is select a default so it works just by somebody dropping it into an app. I'd like to have options to accommodate those who don't see the world the way I do. In all that it should be easy and work right off. If folks have different approaches to handling, say, preOpenCard, then that gets hard. If some folks hide preOpenCard from the libraries, then some other method would be needed. I had made the silly assumption that, of course, everybody passes preOpenCard. I now have to think on how to make sure all works whether it is passed or not. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using.
On Wednesday, March 3, 2004, at 11:12 AM, Rob Cozens wrote: If your library wants a call to darsPreopenCard whenever any card in any stack is opened from a developer's standalone or stack, your documentation should tell the developer to place the call in their script ...or to pass preOpenCard, as you said originally. I guess so long as you communicate this to the developer, it works either way. But not intercepting standard system messages seems safer in the event that your admonition is lost or forgotten. My admonition to pass preOpenCard might be lost or the admonition to call darsPreopenCard might be lost. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Long name returns short DOS name
Hi Developers, How could i make that the long name of a stack never returns a shorter DOS name (8.3)? If a stack is named My_stack_name.rev, sometimes the long name returns something like MY_STACK.rev The first time that i request the long name, it works fine, but several request later, it returns the shorter DOS name. Thanks in advance. al = Visit my site: http://www.geocities.com/capellan2000/ Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Again with the start using
Dar Scott wrote: What I'd like to do is select a default so it works just by somebody dropping it into an app. I'd like to have options to accommodate those who don't see the world the way I do. In all that it should be easy and work right off. If folks have different approaches to handling, say, preOpenCard, then that gets hard. If some folks hide preOpenCard from the libraries, then some other method would be needed. If you need access to system messages, the most reliable place to hook into them is in a fronscript. While we can debate the relative efficacy of using the engine's built-in messages vs. inventing any manner of mirrored versions of those for libraries, frontScripts are a special, sacred place. I would not heitate to describe a frontscript intended for general use that doesn't pass all system messages as a bug to be reported to the author. There may be specialized cases where blocking messages before the target gets them is desirable, but such tools would be highly specialized and should come with warning signs in bright neon to avoid folks pulling their hair out trying to figure out why their scripts no longer trigger. I had made the silly assumption that, of course, everybody passes preOpenCard. If frontScripts they do. If not it's either a bug, or a very unusual tool that should be wearing the afore-mentioned neon sign around its neck. I now have to think on how to make sure all works whether it is passed or not. Just use frontScripts for system-message traps and backscripts or libraries for custom handlers and you're set. The only problem with frontScripts is the number available at runtime, currently limited to 10. But in practice, as often as I use frontScripts I've never needed more than three in all of the stuff I've ever built. Far more common than system message traps are collections of custom routines, for which libraries are ideal and you can use up 50 at runtime. -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Long name returns short DOS name
On Wednesday, March 3, 2004, at 07:23 PM, Alejandro Tejada wrote: How could i make that the long name of a stack never returns a shorter DOS name (8.3)? Maybe you can fix it with longFilePath(). Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Problems with Digest format of the mail list
Hi, Did anyone notice that in digest mode, some messages get attached to a previous message? If you read carefully, there are very long mails that are, in fact, two different messages compiled as one! I received a digest, where a mail of mine was appended to another mail, and the subject and my message was lost, because it was not listed in the index of messages. Another thing that i noticed, is that there are very long messages without new content. Just a long trail of quoted messages. Did someone noticed the same problems? al = Visit my site: http://www.geocities.com/capellan2000/ Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
books, manuals, whichever
I really don't mean to cause any problem, but I am feeling like the stories on Rev books are changing. I was one of those who quickly sent money for the mid-level membership in Dan's pro-club. That membership, according to the press release dated Oct 23, 2003 included all three volumes, with vol 2 coming in Jan, 2004, and vol 3 in April 2004. Now I find that instead of meeting the deadline that I paid for, I'll need to wait until the full 2nd volume is complete as only level 3 gets the chapter by chapter releases. I quote from the press release...The Member and Leader levels also include special features like advance access to new chapters It sure sounds to me like paying up front for the full set would allow me to get the draft versions as soon as they are distributed. Or was my momma right when she said Never pay money for promises cause that's all you'll get. I paid this fee, more than the advertised official manual, because the official manual was not shipping. Now it is, and the advertised Vol 2 is not. All this seems confusing. Have I misread things, or was I mislead? John ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
continuing problem with windows standalone
Hey, list. I'm really sorry to keep coming to you with the same problem, but I haven't been able to work it out for the live of me: My stack contains a button which shows an ask box. On the windows standalone version, the button does nothing when clicked. And I did make sure to check the option in Build Distribution for the Ask Boxes. Any ideas why this is happening? Thanks so much! Andrew ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: PDF
Ken, OSX - use Preview and open the PDF then choose export and select JPEG. Also, Photoshop will open image PDFs and allow export to anything. HTH Tom P.S. If you have neither then you can send it to me and I can translate it for you. No problem. On Mar 3, 2004, at 11:09 PM, Ken Norris wrote: Howdy, Is there any way to convert a PDF file to a jpg image? I D/L'd a county map of my island which is in PDF format. I need to make it into an image I can scroll. The map's actual size is 36 in. x 48 in. Any suggestions? Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Message on paste or dup of a control
If a group is deleted or cut, a message is sent: deleteGroup I had hoped for a message to be sent when a group is pasted or duped. I had hoped for newGroup, but that is not sent; perhps it applies only to create. How can a group know it is new other than when created? Or any control for that matter. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hard code or portable code
Yes , All hats up for you. Just a question, why when I write ... put function () into field x it doesn't replace the old contents of the field ? Also to understand how does it work, when is this function activated ? On Wednesday, March 3, 2004, at 08:44 PM, Brian Yennie wrote: Hershrev, I'm not sure I understand what you mean by hard-code. If you want a persistent way to reference a field, regardless of it's name, you can use the ID. Or, to get all of the fields, something like: repeat with i=1 to (the number of flds) put fld i after myVar end repeat If you want to write a function that always returns you the latest: function latestFields local myVar repeat with i=1 to (the number of flds) put fld i after myVar end repeat return myVar end latestFields Now to compare if I write on mouseUp repeat with x=1 to the number of flds put text of field x return after y end repeat put y into fld 1 end mouseUp what is the difference besides function or message, speed wise or something else ? thanks , hershrev HTH, Brian Now , how do you get the contents of all the fields ? if you put myVar into myQuery, the result will be the field names and not the field content ? ( THE MAIN POINT IS TO GET THE LATEST DATA meaning if the user edits the field after the repeat script the result should be the updated contents as hard code) if you come up with a recipe for this I'll raise my hat for you. ___ 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
The opposite of save?
I am sure this must be a simple question... If I save a stack using the save stack command, how can I later read that stack back in? doug ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Still having printing problems (XP)
I need to know if I can expect to get the font size to change from an apparent default of 14 when printing. The docs say: By default, the value of printTextSize is 14. A handler can set the property, but the new setting has no effect. Does this mean all printing will be 14 point? Seems crazy, but that's what's happening to me (XP only--my Mac seems to have retained WYSISWYG). The docs also say about textsize: Specifies the point size of text displayed by an object. Is the word displayed meant to imply that it doesn't affect printing? Thanks for any enlightenment. Dave ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The opposite of save?
On Mar 3, 2004, at 9:52 PM, Doug Lerner wrote: I am sure this must be a simple question... If I save a stack using the save stack command, how can I later read that stack back in? go stack filename.rev -- Alex Rice | Mindlube Software | http://mindlube.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The opposite of save?
I am sure this must be a simple question... If I save a stack using the save stack command, how can I later read that stack back in? doug Is this in the IDE or a standalone? If you just save a stack, it should still be staring you in the face. If you close and remove from memory, it needs to be re-opened, as when starting from scratch. If it's in the IDE you can check the Application Browser in the Tools menu to see if it's still active and access from there. If you want to script it to be the active stack (and it hasn't been removed from memory) use 'toplevel stack xyz' HTH Dave ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: The Scripter's Scrapbook: Update notice
Really cool stack, man. Something you might want to fix though is in the Preferences pane if you click on How do I get an update? the instructions say to click on 'Is a new version available' from the index on the left ... but the index is on the right ;) Thank you, Chris. May The Scripter's Scrapbook be of service to you for a long time. And the typo will be corrected :-) /H A HREF=http://www.FlexibleLearning.com/ssbk;www.FlexibleLearning.com/ssbk /A ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: pdatoolbox read and write
Hi All. I had a look at lars' app before I posted, sorry folks I should have said that. I was looking for something that can create a CSV or similar. That way, instead of outputing a csv I could parse the fields into runrev text fields. Also Lars' app is freeware and not for sale. So I wouldn't dream of using his code. I'll have a look at how he did it and see if I can get ideas. I have a programmer workingon this but would like to keep it in runrev rather than VB. Cheers bob ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: pdatoolbox read and write
Hi Bob I need this for a project I'm working on too so I'm happy to be involved. Also I've asked Lars about using his code and he said it's fine. I think I'll probably start fron scratch and get the basics from his code. So if you want any co-authors I can help. Cheers Monte Hi All. I had a look at lars' app before I posted, sorry folks I should have said that. I was looking for something that can create a CSV or similar. That way, instead of outputing a csv I could parse the fields into runrev text fields. Also Lars' app is freeware and not for sale. So I wouldn't dream of using his code. I'll have a look at how he did it and see if I can get ideas. I have a programmer workingon this but would like to keep it in runrev rather than VB. Cheers bob ___ 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
[ANN] Scripter's ScrapBook OS X Player Available
For those of you who would like to use Scripter's Scrapbook outside of Rev/MC (or just want to look at a neat OS X icon), you can download and use Scripter's Scrapbook using the native OS X player application. See http://www.flexiblelearning.com/ssbk.htm for details. Thanks! 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