unzip (not gzip/zlib)
I need to unzip files in Rev. These are .zip files not .gz files. Is there a Rev external for this? Are there any public domain C libraries for this? Alex Rice, Software Developer Architectural Research Consultants, Inc. http://ARCplanning.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Repeat for each loop assistance, please.
At 10:32PM -0700 8/2/03, Edwin Gore wrote: Scott's method (adding a counter) is absolutely the right way to go. Others on the list have benchmarked this, and it's MUCH faster than doing the for x = etc. etc. etc. method. Although it should be pointed out that the speed difference is usually insignificant if you are doing few enough iterations through the loop. (For example, if you're processing 100 lines and checking the number of items in each, even repeat with x = takes only a couple of milliseconds. On the other hand, if you're doing 1 lines, the speed difference becomes much more important.) In the case where the speed difference isn't significant, the repeat with x form is a bit more readable since it makes it more obvious that you're tracking the line number, and this may be enough reason to use that form. -- Jeanne A. E. DeVoto ~ [EMAIL PROTECTED] Runtime Revolution Limited - Software at the Speed of Thought http://www.runrev.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Icons
Hi list, I have a main stack My Main Stack I have many substacks A,B,C,D,E,... One of this substacks contains only imported as control image file prepared for icons for my btns in other stacks So one of this image has ID 1003 I go into stack B, make a btn, in the inspector palette, popUp Icons and border, I type in the ID Field : 1003... And my btn has merely no icon. If I do the same with one main stack and 2 substacks, it works fine... What happens ??? Can you help me ?? Thanks. Greetings. Yves COPPE [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to create a pop-up menu from a list of files in a folder?
Hello everybody! Fine today? I want to create a popup menu with all the users of my application. All the settings for this users are in separate files (.edb) (one for each user) in a folder (Users). Where may I find how to do that? Or maybe one of the nice members of our list?:-) Thank you Friendly François -- François Cuneo Site Web dédié au Macintosh http://www.cuk.ch E-mail: [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Icons
Hi Yves, Could I suggest something ? Perhaps, you have an image with ID 1003 in another substack. Then, in stack B, the button gets this image as icon, instead of the image you expect. Hope it can help. Regards. Thierry Arbellot. On Sunday, Aug 3, 2003, at 10:52 Europe/Paris, Yves COPPE wrote: Hi list, I have a main stack My Main Stack I have many substacks A,B,C,D,E,... One of this substacks contains only imported as control image file prepared for icons for my btns in other stacks So one of this image has ID 1003 I go into stack B, make a btn, in the inspector palette, popUp Icons and border, I type in the ID Field : 1003... And my btn has merely no icon. If I do the same with one main stack and 2 substacks, it works fine... What happens ??? Can you help me ?? Thanks. Greetings. Yves COPPE [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
Serial Import, no Nulls?
Hello list, I try to get data from a measurement-device (Windows 98, RunRev 2.0.2.) using the serial port Com1. If I send S over the serial port, the device respond sending 20 byte in the Range 0 .. 255. Using Sarahs helpfull example-stack I tried to get them with read from file com1 for 20. Looking at it there were less than 20 chars, the bytes with value 0 were missing. Any Ideas, how to get _all_ 20 bytes? Thanx in advance Richard Hillen. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to create a pop-up menu from a list of files in a folder?
Bonjour François, ca va bien? :-) Hello everybody! Fine today? I want to create a popup menu with all the users of my application. All the settings for this users are in separate files (.edb) (one for each user) in a folder (Users). Where may I find how to do that? if i understand you correctly you have the names of your users in theat menu a la: (See the P.S. below ;-) John Doe Jane Doe Jim Bo ... And you need a script that will read in the prefs-file for that user? Then try this in the script of that menu-button: on menupick quoi ### quoi will now hold the selected name of your user put url(file:Users/ quoi .edb) into my_userprefs ## will put the appropriate file into the var my_userprefs ## after creatin gthe string the engine will see somthing like: ## put urlfile:Users/John Doe.edb and will read in the correct file... ## do your prefs-stuff here end menupick Hope that helps... Or maybe one of the nice members of our list?:-) Thank you De rien... :-) Friendly François Regards Klaus Major [EMAIL PROTECTED] www.major-k.de P.S. Sorry, its definitively to hot (33 C° here in germany, mon dieu...) I read the subject and i think my hint was not the correct one for your problem... :-( But here is how to do THAT ;-) on xxx ## maybe openstack, opencard or preopen... put the directory into olddir ## always a good idea to store the current folder and ## RE-store it afterwards... ;-) set the directory to Users put the files into foo repeat for each line l in foo if char -4 to -1 of foo = .edb then## valid user prefs-files put char 1 to -5 of foo CR after foo_too end if end repeat ## will create a list of all the valid filenames in the folder without ### the suffix .edb delete char -1 of foo_too ## get rid of last CR put foo_too into btn name of menubutton here ## now fill the menu-button (its just text ;-) set the directory to olddir ## restore old directoy end xxx NOW you can use my first script :-) Have a lazy sunday and don't move unecessarily ;-) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to create a pop-up menu from a list of files in a folder?
Hello François, Assuming your user folder is in the same folder as your main stack you might try this: on opencard --or whereever you like put the directory into restoreDefault get the effective filename of this stack set the itemdel to / put users into the last item of it set the directory to it put the files into myvar set the text of btn yourPopUp to myvar set the directory to restoredefault end opencard Hope this helps, Malte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Icons
Hi Yves, what happens if you type set the icon of btn yourButton to the ID of img yourImageName // of stack yourStackname into the messagebox? Does it work? Regards, Malte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to create a pop-up menu from a list of files in a folder?
Oui ça va bien! Thank you Klaus and Malte! Amicalement François -- François Cuneo Site Web dédié au Macintosh http://www.cuk.ch E-mail: [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Icons
Bonjour mes amis, Hi Yves, what happens if you type set the icon of btn yourButton to the ID of img yourImageName // of stack yourStackname i think the card description is also necessary: set the icon of btn yourButton to the ID of img yourImageName \ of cd 1 of stack yourStackname (Only one line, of course...) Hope that helps... Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Getting Started and Getting Info
Title: Getting Started and Getting Info I have just bought the studio version and I am amazed that I have a HyperCard Stack about ten years in the making up and running beautifully after three sittings. (It's an educational arcade game with ten miles of scripting.) I'm not done at all yet with the rev conversion, but I can hardly believe that the old problem of cross platform development for HyperCard programmers seems to be solved. Is this thing for real or am I dreaming. Have I died and gone to heaven? I've got fantastic help from the ihug group but I don't ask questions there very often. With Rev, I would like to have the manuals but they seem out of print. There are a lot of little questions I'd like answered, but it's easier for me to just grab a manual and look up my problem rather than flood the group with a lot of basic questions here. Should I just ask and ask here? Can I find a manual on Ebay? Here are a few examples of the kind of questions I have: (I USE THE MAC OSX VERSION) 1. When your script executes answer or ask, the dialog box (or whatever it's called) comes up with a big, honkin' R for Revolution. How do I get rid of it? Actually my game is a fish game and I would really love to assign the fish image instead of the R. How can I do that? 2. The window that appears when Rev executes answer or ask goes clean across the screen. Can I make it more compact in shape and size like in HyperCard? That'd be nice. 3. How do I get Rev to inspect itself completely for incompatible script? I suspect there is some left there because when I try to build a distribution version, it crashes with some dialog box flashing and I have to FORCE revolution to quit. Am I doing something wrong? 4. By the way, the dialog box for creating the distribution file is cut off at the bottom and I can only see the tip top of three buttons to click. Only one is active and I've been clicking the barely visible sliver of that button, but I don't know its name because it's cut off. What gives? Thanks very much, Tom
Re: Ressource unavailable (CGI capabilities)
Hi Erik, [EMAIL PROTECTED] is there for your general problems, andmy guess is that one person goes through these mails as they come in, and forwards them to the appropriate person. That is where installer problems and the 10-incidents package calls go to. [EMAIL PROTECTED] is there when we need to specifically talk to the listmom, webmistress or customer-relations-lady. So if you know you need her for a specific item, mail Heather directly, otherwise email support. At least that's my conclusion ;-) Thanks Jan! just to add a little to that, I deal with licensing issues also. If your support query is about licensing, it's going to end up in my inbox sooner or later. Other than that, couldn't have said it better myself. Cheers Heather Jan Schenkel. -- Heather Williams [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Ltd. Tel: +44 (0) 131 7184333 Fax: +44 (0)1639 830707 Revolution: Software at the Speed of Thought ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
database questions
Hello all, I am a newbie. I am working on a project which will require that I store data in a database (a separate record for each client, and about six hundred fields per record). Each time it is used, it will need to generate a new record for that client (it is a program that will administer and score an exam of sorts) My questions: a) which database would you suggest (I guess that Oracle, MySQL and Valentina are my options)? b) is there an internal way of doing this instead of one of the above databases? c) will the standalone app then incorporate the database functions, or will the enduser be required to have the database in question installed on their computer as well? Thank you much... Sincerely, John R. Brauer, Psy.D. Clinical Psychologist
Repeat for each assistance.
I have the following loop statement: repeat for each line gameLine in fld gamelist I need to obtain the line number for the current iteration. I'm error checking for the number of items in gameLine and if it isn't equal to 5, I want to raise an answer dialog and stop the script, then hilight that line in fld gameList. It has only been two days of my trial. What can I query to get the iteration number of this loop? Perhaps I'd be better off using a different repeat construct? Thanks, Andy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: database questions
John R. Brauer wrote: Hello all, I am a newbie. I am working on a project which will require that I store data in a database (a separate record for each client, and about six hundred fields per record). Each time it is used, it will need to generate a new record for that client (it is a program that will administer and score an exam of sorts) My questions: a) which database would you suggest (I guess that Oracle, MySQL and Valentina are my options)? b) is there an internal way of doing this instead of one of the above databases? c) will the standalone app then incorporate the database functions, or will the enduser be required to have the database in question installed on their computer as well? Thank you much... Sincerely, John R. Brauer, Psy.D. Clinical Psychologist Previously answered, if i right remember... IBTW : No any problem about the six hundred fields per record, if you use PostgreSQL. Don't know about the other db. -- Bien cordialement, Pierre Sahores Inspection académique de Seine-Saint-Denis Serveurs d'applications et SGBDR (Web/PGI) Penser et produire l'avantage compétitif ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Question about Menu Maker
I am a new Revolution user. I am a Mac user with OS 10.2.6. Using Revolution 2.02, I have been going through the tutorials. I completed the Hello World tutorial. I added the menus to it following the Menu Builder tutorial. I have a question about the location of the Quit menu. In the tutorial, the Quit menu is located under the file menu. Is this correct for the Mac? When I ran the Hello World project, I could not access the Quit menu under file. I went the Menu Builder tutorial twice but with the same results. Charles ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Icons
Le dimanche, 3 aoû 2003, à 14:26 Europe/Brussels, Klaus Major a écrit : Bonjour mes amis, Hi Yves, what happens if you type set the icon of btn yourButton to the ID of img yourImageName // of stack yourStackname i think the card description is also necessary: set the icon of btn yourButton to the ID of img yourImageName \ of cd 1 of stack yourStackname (Only one line, of course...) Hope that helps... OK this helps !! thanks to Malte and Klaus... Greetings. Yves COPPE [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Copying a group
Well, my feeling is that if doing something manually produces a different result than doing something programmatically, that (IMHO) it's a bug. 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 J. Landman Gay Sent: Sunday, August 03, 2003 12:08 AM To: Revolution Mailing List Subject: Copying a group Before I bugzilla this, I want to know if others think it really is a bug, or if it should be considered normal behavior. I can't decide. I have a group that consists of several fields. The group has backgroundBehavior set to true. Each card has different text in the fields of the group. The current card of the stack is, say, three. In another stack, I issue the command: copy group myGroup of stack Main to this cd I expect to see the contents of card three when the group is copied. Instead I see the contents of card one. The work-around is to go to the Main stack, copy the group, go back to the second stack, and paste. Then I do get the contents of card three. The results of the copy command kind of make sense, since I didn't specify what card I wanted, and so I got the first card by default. However, the command: copy group myGroup of cd 3 of stack Main to this cd doesn't work either, I still get the contents of card one. Is it a bug or is it normal? -- 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Question about Menu Maker
The 'quit' menu for all application under MacOS X is located under the 'application' menu (where the name of the application stands). Thus revolution relocates the 'quit' menu from the 'file' menu to there automatically. On Sonntag, Aug 3, 2003, at 16:31 Europe/Zurich, Charles Szasz wrote: I am a new Revolution user. I am a Mac user with OS 10.2.6. Using Revolution 2.02, I have been going through the tutorials. I completed the Hello World tutorial. I added the menus to it following the Menu Builder tutorial. I have a question about the location of the Quit menu. In the tutorial, the Quit menu is located under the file menu. Is this correct for the Mac? When I ran the Hello World project, I could not access the Quit menu under file. I went the Menu Builder tutorial twice but with the same results. Charles ___ 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: Repeat for each assistance.
'repeat for each line...' is faster then 'repeat with x = ...' thus you should best use something like this: repeat for each line gameLine in fld gamelist add one to x if x 5 then answer (line x) hilite line x of field gamelist exit repeat end if end repeat note the recent discussion Repeat for each loop assistance, please. issued by yoy where the exact same question got answered several times. On Samstag, Aug 2, 2003, at 21:06 Europe/Zurich, fatal error wrote: I have the following loop statement: repeat for each line gameLine in fld gamelist I need to obtain the line number for the current iteration. I'm error checking for the number of items in gameLine and if it isn't equal to 5, I want to raise an answer dialog and stop the script, then hilight that line in fld gameList. It has only been two days of my trial. What can I query to get the iteration number of this loop? Perhaps I'd be better off using a different repeat construct? Thanks, Andy ___ 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: use-revolution digest, Vol 1 #1711 - 14 msgs
Hi Jacqueline, I may be thinking about this a bit too simply but heres my 2 cents. Copying just places the object in the clipboard for future use. I can't really think of an instance where the copy command ever places the copied selection, be it text or object at some other location like say the clone command. If you can figure out a way to do this to a copied object w/o using the paste command I would be very interested in learning how it is done. In an application I am currently developing I use this method extensively to copy groups ( my groups are not backgrounds tho). I am wondering why you would want to copy a group with its backgrondBehavior true more than once in any case. Wouldn't it be easier to have a group with its bgBahv set to true in the destination stack and just copy the text you need instead? Hope this helps. Off to the Apostle Islands for a few days off. :-) Regards, Steve Stephen R. Messimer, PA 208 1st Ave. South Escanaba, MI 49829 www.messimercomputing.com -- Build Computer-Based Training modules FAST with preceptorTools -- Coming this Fall! -- Macintosh G-4 OSX 10.2.6, OS 9.2.2, 512MB RAM, Rev 2.0.2 On Sunday, August 3, 2003, at 05:44 AM, [EMAIL PROTECTED] wrote: I have a group that consists of several fields. The group has backgroundBehavior set to true. Each card has different text in the fields of the group. The current card of the stack is, say, three. In another stack, I issue the command: copy group myGroup of stack Main to this cd I expect to see the contents of card three when the group is copied. Instead I see the contents of card one. The work-around is to go to the Main stack, copy the group, go back to the second stack, and paste. Then I do get the contents of card three. The results of the copy command kind of make sense, since I didn't specify what card I wanted, and so I got the first card by default. However, the command: copy group myGroup of cd 3 of stack Main to this cd doesn't work either, I still get the contents of card one. Is it a bug or is it normal? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Copying a group
Ken Ray wrote: Well, my feeling is that if doing something manually produces a different result than doing something programmatically, that (IMHO) it's a bug. 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 J. Landman Gay Sent: Sunday, August 03, 2003 12:08 AM To: Revolution Mailing List Subject: Copying a group Before I bugzilla this, I want to know if others think it really is a bug, or if it should be considered normal behavior. I can't decide. I have a group that consists of several fields. The group has backgroundBehavior set to true. Each card has different text in the fields of the group. The current card of the stack is, say, three. In another stack, I issue the command: copy group myGroup of stack Main to this cd I expect to see the contents of card three when the group is copied. Instead I see the contents of card one. The work-around is to go to the Main stack, copy the group, go back to the second stack, and paste. Then I do get the contents of card three. The results of the copy command kind of make sense, since I didn't specify what card I wanted, and so I got the first card by default. However, the command: copy group myGroup of cd 3 of stack Main to this cd doesn't work either, I still get the contents of card one. Is it a bug or is it normal? -- 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Hi There, It's probably running in this way : The group mygroup (set with backgroundbehavior to true, for all over the stack) don't lies on card 3 but on card 1 and is shared with each cards of the stack -- the MC engine find an kind of object pointer, aka an alias, for group mygroup of cd 3 and take and copy the original needed object for where it lies in the stack : on card one... If yes, it's not a bug but a feature and the work-around is to copy, in two times, the group object first and, the contents of what appears in this group object on card 3. Hope this help ;-) -- Bien cordialement, Pierre Sahores Inspection académique de Seine-Saint-Denis Serveurs d'applications et SGBDR (Web/PGI) Penser et produire l'avantage compétitif ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Repeat for each assistance.
Björnke, I don't know how I did that duplicate post!? Sorry about that, but also thanks for your help. I did start a counter to track the line number and it is working correctly. Back to work... Andy - Original Message - From: Björnke von Gierke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:21 AM Subject: Re: Repeat for each assistance. 'repeat for each line...' is faster then 'repeat with x = ...' thus you should best use something like this: repeat for each line gameLine in fld gamelist add one to x if x 5 then answer (line x) hilite line x of field gamelist exit repeat end if end repeat note the recent discussion Repeat for each loop assistance, please. issued by yoy where the exact same question got answered several times. On Samstag, Aug 2, 2003, at 21:06 Europe/Zurich, fatal error wrote: I have the following loop statement: repeat for each line gameLine in fld gamelist I need to obtain the line number for the current iteration. I'm error checking for the number of items in gameLine and if it isn't equal to 5, I want to raise an answer dialog and stop the script, then hilight that line in fld gameList. It has only been two days of my trial. What can I query to get the iteration number of this loop? Perhaps I'd be better off using a different repeat construct? Thanks, Andy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Repeat for each assistance.
Andy, Just insert your own counter: on checkItemCount put 0 into tCounter repeat for each line gameLine in fld gamelist add 1 to tCounter if the number of items in gameLine 5 then answer (something) set the hilitedLines of field gameList to tCounter exit checkItemCount end if end repeat end checkItemCount Hope that helps. Message: 10 From: fatal error [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Repeat for each assistance. Date: Sat, 2 Aug 2003 15:06:26 -0400 Reply-To: [EMAIL PROTECTED] I have the following loop statement: repeat for each line gameLine in fld gamelist I need to obtain the line number for the current iteration. I'm error checking for the number of items in gameLine and if it isn't equal to 5, I want to raise an answer dialog and stop the script, then hilight that line in fld gameList. It has only been two days of my trial. What can I query to get the iteration number of this loop? Perhaps I'd be better off using a different repeat construct? Thanks, Andy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Copying a group
On 8/3/03 10:27 AM, Stephen Messimer wrote: Hi Jacqueline, I may be thinking about this a bit too simply but heres my 2 cents. Copying just places the object in the clipboard for future use. I can't really think of an instance where the copy command ever places the copied selection, be it text or object at some other location like say the clone command. If you use the copy command to copy a field, its text comes with it. If you can figure out a way to do this to a copied object w/o using the paste command I would be very interested in learning how it is done. The only ways I know of are clone and copy to -- the last does not interfere with the clipboard's current content. That is, copy field 1 to card 4 makes a copy of the field (with its text) without putting the object on the clipboard. That's what I want to do. In an application I am currently developing I use this method extensively to copy groups ( my groups are not backgrounds tho). I am wondering why you would want to copy a group with its backgrondBehavior true more than once in any case. Wouldn't it be easier to have a group with its bgBahv set to true in the destination stack and just copy the text you need instead? Usually. But in this case, the destination stack is a printing stack that copies over the fields to print, and then does a printout. The group in the main stack is my PseudoTable, which is a simulated table object that is comprised of many fields. (You can download it at http://www.hyperactivesw.com/downloads/pseudtbl.mc.hqx if you are curious). PseudoTable resizes its cells dynamically to accomodate the text in each cell. It is very fast, so it wouldn't be a big deal to bring the text of each cell over from the main stack and then call the handlers that do the resizing before I create a printout. However, if the copy command would do what I want it to, I could bring the entire already-resized group over to the printing stack using only one line of script. Then the table in the printing stack would already have the content of the correct card from the main stack, and all the fields would already be sized properly to display their text. So, to answer the question, I need to copy the group more than once because I need a different field layout for each card I want to print. The printing stack deletes its existing group, re-copies the group from another card of the main stack (with its uniquely-sized cells), and then prints it. -- 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
rtftext and matchChunk
I'm trying to use matchChunk to find instances of a certain word in only part of a field. I created the field's content by setting rtfText. I swear, matchChunk doesn't match any text that the rtf contributes. It matches if I type the word myself, or if I copy the word from one place in the field and paste it in another place. It's as if rtfText is cursed in some way that makes it invisible to the match. Does this sound familiar to anybody? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Copying a group
On Sonntag, Aug 3, 2003, at 07:07 Europe/Vienna, J. Landman Gay wrote: The results of the copy command kind of make sense, since I didn't specify what card I wanted, and so I got the first card by default. However, the command: copy group myGroup of cd 3 of stack Main to this cd doesn't work either, I still get the contents of card one. Is it a bug or is it normal? I had the also problems (yesterday) copy and paste backgrounds-groups. I did it by the clipboard not by command line. After pasting it to another stack all the btns in the group are placed over each other instead in the same order they have bean when selceted. Or nothing have been pasted. doesn't work either, I still get the contents of card one. We old rev user (those from 1.0) are still trained on that old fashioned (copy/paste) kind of feature that we dont realize that its a bug..;)) I had this with rev 2.0.1 a few times yesterday... But, honestly I have given up to report that kind of bugs... regards Wolfgang M. Bereuter Learn easy with trainingsmaps© INTERNETTRAINER Wolfgang M. Bereuter Edelhofg. 17/11, A-1180 Wien, Austria ... http://www.internettrainer.com, [EMAIL PROTECTED] ... Tel: ++43/1/ 961 0418, Fax: ++43/1/ 479 2539 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
modal dialog/handler placement?
Day 3. My lotto program has a main stack with buttons on it for mouse clicking lotto numbers instead of typing them into the gamelist field. I have a sub-stack Prefs which is modal. This stack is where you set up the lotto rules: maxLottoNumbers, maxBonusNumbers, etc. I have a handler resetboards which shows or hides buttons on the main stack according to those sub-stack field values. They are declared as global. I can run it successfully from the message board. I'd like to have resetboards run after the Preferences sub-stack is closed so upon return to the main stack, the buttons are reconfigured in advance. Where should I call resetboards from??? Thanks for your help. Andy ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: modal dialog/handler placement?
Hi Andy, Day 3. My lotto program has a main stack with buttons on it for mouse clicking lotto numbers instead of typing them into the gamelist field. I have a sub-stack Prefs which is modal. This stack is where you set up the lotto rules: maxLottoNumbers, maxBonusNumbers, etc. I have a handler resetboards which shows or hides buttons on the main stack according to those sub-stack field values. They are declared as global. I can run it successfully from the message board. I'd like to have resetboards run !!! after the Preferences sub-stack is closed !!! looks like you gave the answer to yourself ;-) so upon return to the main stack, the buttons are reconfigured in advance. Where should I call resetboards from??? Stack Prefs: on closestack ... resetboards ## or: send resetboard to xxx ## in case the handler does not reside in that stack... end closestack Thanks for your help. Yo :-) Andy Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
re: Copying a group
Jacqueline Landman Gay wrote: Before I bugzilla this, I want to know if others think it really is a bug, or if it should be considered normal behavior. I can't decide. I have a group that consists of several fields. The group has backgroundBehavior set to true. Each card has different text in the fields of the group. The current card of the stack is, say, three. In another stack, I issue the command: copy group myGroup of stack Main to this cd I expect to see the contents of card three when the group is copied. Instead I see the contents of card one. The work-around is to go to the Main stack, copy the group, go back to the second stack, and paste. Then I do get the contents of card three. The results of the copy command kind of make sense, since I didn't specify what card I wanted, and so I got the first card by default. However, the command: copy group myGroup of cd 3 of stack Main to this cd doesn't work either, I still get the contents of card one. Is it a bug or is it normal? -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com == By the way, you will also get only the first card copied when you set the group backgroundBehavior to false. Also, you get the same result if you try this from card 3 of stack myMain copy group myGroup to card 1 of stack myStack2 and also copy group myGroup of card 3 to card 1 of stack myStack2 And a really fun rsult comes from: first find the ID of the group on card 3 of stack myMain (in my example the group ID is 1022) Then try this from stack myStack2 copy group ID 1022 of stack myMain to this card On Win XP Pro, rev2.0.1, I indeed got group myGroup copied to the card (at least according to its name), BUT ALL OF THE FIELDS ARE E-M-P-T-Y! So, you can't even do a work-around by using the group ID. I suspect that when trying to refer to a group by name that is on many cards, either the lowest ID of the group or the ID of the first instance of the group is retrieved. So it appears that using copy-and-paste via the clipboard invokes a different routine. miscdas ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rtftext and matchChunk
On Sunday, August 3, 2003, at 11:21 AM, Peterson Trethewey wrote: Looks like the regular expression \s doesn't match whitespace that comes from rtf text. Okay, that problem is specific enough that I can work around it. Looks like matchText does work OK for spaces in the rtftext, but newlines are encoded as a new paragraph and a tab is encoded as the escape sequence \'09. I am guessing the regex engine has no concept of RTF so you would have to replaceText those things first. Alex Rice, Software Developer Architectural Research Consultants, Inc. http://ARCplanning.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Peer review repository?
Day 3. I am working on a program OmniLotto using Revolution 2.0.2. The result of my work is always freeware. Is there a url to submit my .rev project for peer review for feedback about bumming code, gui comments, OS porting remarks and so on and so forth. Please advise. Thanks, Andy http://mywebpages.comcast.net/foxcat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: modal dialog/handler placement?
Klaus, WHOA!!! Moved the handler to the Prefs sub-stack scriptspace and used send resetboards to stack OmniLotto and it works just like it's supposed to!!! Many thanks! Andy - Original Message - From: Klaus Major [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 4:53 PM Subject: Re: modal dialog/handler placement? Hi Andy, Day 3. My lotto program has a main stack with buttons on it for mouse clicking lotto numbers instead of typing them into the gamelist field. I have a sub-stack Prefs which is modal. This stack is where you set up the lotto rules: maxLottoNumbers, maxBonusNumbers, etc. I have a handler resetboards which shows or hides buttons on the main stack according to those sub-stack field values. They are declared as global. I can run it successfully from the message board. I'd like to have resetboards run !!! after the Preferences sub-stack is closed !!! looks like you gave the answer to yourself ;-) so upon return to the main stack, the buttons are reconfigured in advance. Where should I call resetboards from??? Stack Prefs: on closestack ... resetboards ## or: send resetboard to xxx ## in case the handler does not reside in that stack... end closestack Thanks for your help. Yo :-) Andy Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ 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: database questions
On Friday, August 1, 2003, at 10:17 AM, John R. Brauer wrote: b) is there an internal way of doing this instead of one of the above databases? John, your requirements sound very similar to my current Rev project. It's a Facility Calculator for the National Park Service. It is a lengthy survey about facility usage and planning. There are several facility types, and each type has it's own substack with dozens of cards. So each record, we call record a project title, literally does have several hundred fields. There is no apparent way to break it up into some kind of normalized SQL table structure that would seem more organized. The requirements were that no networked database server was available, so mysql and postgresql were not options (otherwise I would recommend postgresql because it has foreign keys, triggers, and transactions). For a project like this, and maybe yours, a SQL database just doesn't make much sense. The fields in the survey change a *lot* as the app is developed. There are many, many fields for each record. We are developing and updating the app while users continue to use old data from previous projects they have entered. So it has to degrade gracefully as fields are added and removed, whole cards changed, etc. The solution I am using, thanks to this list, is to use Rev custom properties in a data stack. Custom properties can be attached to a stack or any other Rev object. I create a file called UserData.rev and save it into the user's Application Data folder. The custom properties are accessed as an array using a key/value relationship. Custom Property SETS are used to separate the data of the various facility types I mentioned. Here are a couple of accessors for getting and setting data into the data stack: -- -- dataField(key) -- accessor for the value of the slot in the current session -- function dataField pKey put the customProperties of stack kDataStack into tData put sessionID() , pKey , value into tFilter return tData[tFilter]; end dataField -- -- setDataField key, value -- accessor for setting data -- on setDataField pKey, pValue put the customProperties of stack kDataStack into tData put sessionID() , pKey , value into tFilter put pValue into tData[tFilter] set the customProperties of stack kDataStack to tData end setDataField I have also written some handlers to automatically load and save UserData.rev to and from fields and buttons as the user navigates through the cards. I used custom properties to do that as well: The routines scan all fields and buttons on the card picking out ones that have the custom property ud (stands for user data), which is the key in the above handlers. In this method the number of custom property array elements is = (facilities) * (projects) * (answers) -- in other words (sets) * (sessions) * (data keys). At the sets level they are completely separate arrays (custom property sets). But at the sessions * data keys level, it's just a single array. It's extremely fast until you get up into many thousands of array keys. However I haven't needed to do much optimization yet though. I suspect that dataField(key) function above could be written better. So using a data stack is fast, portable and doesn't require any additional software. It's much easier programming than say, a delimited text database, and it's not as difficult as a SQL implementation. I also recommend looking at Serendipity DB. I don't think it uses the approach I described above, but it is a native Rev implementation also and would have similar benefits. Alex Rice, Software Developer Architectural Research Consultants, Inc. http://ARCplanning.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Peer review repository?
Here is where the current version of OmniLotto resides... http://mywebpages.comcast.net/foxcat/OmniLotto.rev Lots of work left. Menu handlers, complete error checking, etc. Enjoy! Andy - Original Message - From: yoy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:22 PM Subject: Peer review repository? Day 3. I am working on a program OmniLotto using Revolution 2.0.2. The result of my work is always freeware. Is there a url to submit my .rev project for peer review for feedback about bumming code, gui comments, OS porting remarks and so on and so forth. Please advise. Thanks, Andy http://mywebpages.comcast.net/foxcat ___ 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
Reading MP3 tags
Title: Reading MP3 tags Is there anyone who done something to read MP3 tags in RR? I want to create a little application to keep track of my music CDs and MP3 files, but (lazy as I am) I dont want to enter all info of these files CDs. The MP3 specs seem very straight-foreward, though to much to just do it, so if anyone wants me to give a quick look and receive and aaahh on the application he/she created... ;-) Regards, Ton Kuypers
Stacks Don't Launch, Hover/Option/Command doesn't work
Title: Stacks Don't Launch, Hover/Option/Command doesn't work Thanks for the help. I'm progressing. OSX 1. If I double click on my stack, it comes up as five zillion pages of text. I can only open it from WITHIN Rev. Then it runs fine. It has a darker icon than the stacks I made that still launch properly. 2. Rev needs a forced quit each time I try to make a distribution. It flashes. I mentioned this before but I forgot to mention that finally it says it CAN'T FIND THE STACK. Then I must force quit. I made the tutorial distribution fine. 3. Hovering the arrow over a button and pressing OPTION COMMAND gives no script. (I have to doubleclick the object and then get to the script that way. Big hassle.) OPTION COMMAND C doesn't give card script either; nothing happens. The other stacks I have made which launch correctly and which have a lighter-looking icon don't have this problem. If I can beat some of these first obstacles, I think I will be off and running and productive. Mil gracias, Tom Cole
Re: Scripts in Independent Study Tutorial - A Mini-Course
Dan Shafer wrote: My apologies to Richard and Jeanne, but this gave me another chance to tout how really, really, REALLY useful studying this stack would be to anyone who's just past the beginning stage of scripting and wants to see how to put together an actual application from a scripting perspective. Very good stuff. Thank you for the kind words, Dan. I'm a big fan of learning through dissection, having learned most of what I know from code examples of others. So after the main tutorials were out of the way I proposed the Independent Study as a way of showing how all the parts fit together. Jeanne's examples throughout the Transcript Dictionary provide a very valuable context, but seeing how such things come together in a functional application provide a whole different level of context and introduces structure, something that focusing on the language alone can't provide. Thus far I believe you're the first person to have commented on the Independent Study tutorial -- thanks for posting that. ...in his comments on these scripts, a very good mini-tutorial in how application-level stuff works and ought to be put together in Revolution. The comments are extensive, lucid, and really helpful. More extensive than I deliver for most clients, but as with any comments you gotta keep the audience in mind. :) For the most part I followed Steve McConnel's approach of writing my comments first to tell the story of the program flow, then went back to write the code to make it happen. Somehow, they need to be more in your face for new developers. Perhaps publishing the scripts and comments as a separate piece of documentation to be read? I don't know. But I'll tell you they were really, really valuable. I keep thinking there's got to be a way to do that without losing the in-program context which provides additional learning value. In my imagination there's a tool called Scalpel which aids in learning by dissection, but I haven't yet figured out how to design it. Any suggestions? One thing that might be useful is an article on best practices for object structure as a compliment to the Scripting Style Guide at http://www.fourthworld.com/embassy/articles/scriptstyle.html. Having already made many mistakes over the years*, I could hopefully jot down what I've found works well so others could avoid wasting time making the same mistakes I've made. * MetaCard guru Phil Davis once told me: Good judgement comes from experience. Experience comes from bad judgement. ;) -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Scripts in Independent Study Tutorial - A Mini-Course
One thing that might be useful is an article on best practices for object structure as a compliment to the Scripting Style Guide at http://www.fourthworld.com/embassy/articles/scriptstyle.html. Having already made many mistakes over the years*, I could hopefully jot down what I've found works well so others could avoid wasting time making the same mistakes I've made. Hi Richard I think that would be a fantastic contribution and I imagine a very interesting read particularly if it's as good as the scripting style guide. Cheers Monte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stacks Don't Launch, Hover/Option/Command doesn't work
On 8/3/03 5:44 PM, Thomas Cole wrote: Thanks for the help. I'm progressing. OSX 1. If I double click on my stack, it comes up as five zillion pages of text. I can only open it from WITHIN Rev. Then it runs fine. It has a darker icon than the stacks I made that still launch properly. It sounds like the Finder doesn't know what app to open the stack with, and so is trying to open it as text. Control-click on the stack in the Finder to get the contextual menu, and after it is displayed, hold down the Option key to see the Always open with... menu item. Choose that, then choose Revolution as the app. From now on, the Finder will know to open that stack with Revolution. (If Revolution isn't in the list of choices, use the Other option at the bottom of the menu to choose Rev.) 2. Rev needs a forced quit each time I try to make a distribution. It flashes. I mentioned this before but I forgot to mention that finally it says it CAN'T FIND THE STACK. Then I must force quit. I made the tutorial distribution fine. Well, you shouldn't have to force-quit and that part sounds like a bug. But the reason it can't find the stack also sounds like it is related to the above problem: the stack doesn't have the right creator and type codes assigned, so Rev doesn't see it on disk. If the above doesn't fix it, there are utilities available that will assign those codes. 3. Hovering the arrow over a button and pressing OPTION COMMAND gives no script. (I have to doubleclick the object and then get to the script that way. Big hassle.) A sporadic but known bug. Sometimes just wiggling the cursor around a little bit while holding Cmd-Opt will trigger the script to open. You can get to the script other ways though. Click the object with the arrow tool and then click the Script icon in the toolbar, for example. OPTION COMMAND C doesn't give card script either; nothing happens. It's Shift, not option. Shift-Command-C to get to the card script; shift-command-s to get the stack script. This is a struggle for me too, because I've been using Command-Option-C/S for almost 18 years with both HyperCard and MetaCard, and my muscle memory is very hard-wired by now. I wish Rev hadn't changed it. -- 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
RR binary formats (Re: Reading MP3 tags
Fortunately the spec makes it pretty easy. Mp3 is a binary format. Is that header you are reading 7-bit ascii? Would RR be able to handle 8-bit data? I was wondering the other day if I could use revolution to write an sf2 (soundfont) editor. Just splitting up and combining existing soundfonts. Naively I thought that RR wouldn't be able to handle binary data. Maybe it could. Anyone any thoughts? -- Victor Eijkhout [EMAIL PROTECTED], 329 Claxton, Comp Sci, UT, Knoxville TN 37996. tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Launch Editor bug - any workarounds?
Hi all, I reported a bug I'm having with launching the designated editor application from the Inspector (Bug # 70 in RunRev's Bugzilla database), but have not received a reply yet - the RunRev team are really, really busy with higher priority bugs I know! I'm not complaining, I swear! :-) I was just wondering whether anyone else has experienced the same bug, and whether there is a known workaround that we, silly newbies, just fail to see... Many thanks for any suggestions! I'm trying to convert an old Hypercard stack that has *LOTS* of pictures in it, and manually having to copy-paste them into Photoshop is wearing me down... A copy of the bug report follows: In the 'General Preferences' of Revolution I have Adobe Photoshop 7.0 selected as my 'Image Editor' app. I'm using MacOS X (10.2). In any stack, when I click on a picture (one created with the Revolution painting tools), and click on the 'edit' button in the Inspector (to launch Photoshop and edit the picture), I get the following warning: You haven't selectec an external image editor application, or I couldn't find the editor selected. Would you like to select one? (Nothe the editor you select must be able to handle PNG format images.) I have the option of cancelling, or 'selecting now'. I click on Select Now. A system-standard navigation dialogue box opens, and allows me to select Photoshop 7 once again. In the navigation dialogue box, I click 'Open'. A warning message comes up. It says: There was a problem launching the editor. no such program The only button available is 'Cancel'. Damn, that's frustrating! Regards, -- Igor de Oliveira Couto -- [EMAIL PROTECTED] -- ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fix to distribution builder available
Hi Wolfgang, I just built a test app for OS X with sub-stacks saved separately and here is what I got: Standalone_MacOSX_Test (a folder) Test (my app - worked perfectly) data (empty folder) I right-clicked (control-clicked) on the Test app and selected Show Package Contents Here is what I found (the contents of each folder is shown indented): Contents Info.plist (open this in a text editor to check the settings) MacOS data One.rev_components (My main stack was called One) Two (my sub-stack) Revolution pbdevelopment.plist PkgInfo Resources Revolution.icns Revolution.rsrc RevolutionDoc.icns So Rev is putting the sub-stacks where they need to be, and it knows where they are when the app runs. The only error as far as I can see is creating an unnecessary data folder in the application's main folder. If you don't mind that Get info doesn't give the data you entered in the Dist Builder, then just delete the empty data folder and your app is ready to go. If you want to change icons or fix up any of the copyright or version info, then you will have to use the Finder to get to the info.plist and perhaps the Resources folder. You don;t ned to use any Unix commands and the app will work straight after being built. I hope this helps. Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/ On Friday, August 1, 2003, at 04:55 am, Wolfgang M. Bereuter wrote: On Donnerstag, Jul 31, 2003, at 17:50 Europe/Vienna, Alex Rice wrote: Well do you want to get the job done, or nurse old wounds? ;-) It requires no Unix expertise. This really falls into the packaging and distribution realm, which you are responsible for anyways. But re: your screenshot above, maybe I don't understand what the problem is and you should file a bugzilla report. If that's the case then I apologize for jumping to conclusions. However, I still think that everyone distributing software for OS X needs to learn about application bundles on OS X. I think thats a missunderstandig now... rev did the build correct the standalone(engine) and the others stacks in the data folder: * correct in OS9 * correct in WIN * correct in Linux * wrong in OSX (I thin Linux is not so far way from bsd Unix, but its more far away from OS 9 or WIN and both are build correct; please correct me if I m wrong...) and rev 2.0 did this build correct in OSX too... that is what you can see on the other screenshot... So this has imho nothing to do with packaging and distribution process in OSX, which will start after that. Its a bug in the new (updated) distribution builder. An all the other features of the distribution builder like icons did work in older releases. Why does all that no work in the fixed distribution builder? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Serial Import, no Nulls?
Hi Richard, If you look at the script in the Open Serial Port button in my stack, you will see the following line: open file thePort for text update Try changing this to: open file thePort for binary update I haven't tried reading any data with nulls but this would be my best guess on how to fix the problem. Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/ On Sunday, August 3, 2003, at 09:14 pm, [EMAIL PROTECTED] wrote: Hello list, I try to get data from a measurement-device (Windows 98, RunRev 2.0.2.) using the serial port Com1. If I send S over the serial port, the device respond sending 20 byte in the Range 0 .. 255. Using Sarahs helpfull example-stack I tried to get them with read from file com1 for 20. Looking at it there were less than 20 chars, the bytes with value 0 were missing. Any Ideas, how to get _all_ 20 bytes? Thanx in advance Richard Hillen. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 'Spreadsheet' Woes...
Gary, I think you will have to trap keys and call your various cell handlers yourself. If you store the last known cell coordinates and then check them after each rawKeyDown, you can then perform actions if they change. This may not be exactly what you want but hopefully there is enough of an idea to get you going. Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/ On Friday, August 1, 2003, at 02:19 am, Gary Rathbone wrote: I've got my field looking (well nearly) pretty much how I want. It's a field/table with Cell Formatting and Cell Editing. Looks like a spreadsheet... I'm looking for commands such as On EnterCell, On CloseCell, On ExitCell to initiate calculations on other cells And specific cell commands... Eg Assign a script to field tdata On CloseCell tcol,trow --the cell has been changed if tcol=7 then --calculate the sales tax put trow*0.175 into Cell(7,trow) end if end Close Cell Also I'd like to format column 7 to rightalign... Eg Set the ColumnAlign of Column 7 of fld tdata to right Am I expecting too much of this new feature? If so how do I trap changes in 'Cells' so I can write these procedures myself. Any pointers would be gratefully appreciated. Regards Gary Rathbone ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Proposal - the use-revolution list
It's not strange at all. A mailing list comes to you and demands your attention. A message board sits there lurking 24/7, but unless you bother to check it, it generally won't remind you. This is my problem with a forum/message board/newsgroup. The list comes directly to my inbox and I can easily scan through the new items, discarding the threads that don't interest me and reading those that do. Most of the emails come during the Australian night, so I don't even have to wait for them to download :-) If I had to log in to a web site and click my way painfully through a series of links, I wouldn't read most of them and therefore would be in no position to respond. So please, whatever else is set up in parallel, don't drop the list! Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [ANN] New MySQL tests stack
I have fixed my MySQL test stack so that it can correctly handle Rev 2.0.2 and it's little database problem. The text of my web page has not yet changed to reflect the new version, but the download link will get you the new one. If you have been using my stack and have got Rev 2.0.2, download the new version. It allows you to list cursors with more than 22 records. Sort of. I tried it, it only connects to database test and will not connect to other databases. That's interesting - it works for me with multiple databases. Do you get any useful error message? Are you set up to connect from whatever IP address you are using? Have you upgraded to the new revLibrary.rev? Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rtftext and matchChunk
On Sunday, August 3, 2003, at 03:22 PM, Alex Rice wrote: Looks like the regular expression \s doesn't match whitespace that comes from rtf text. Okay, that problem is specific enough that I can work around it. Looks like matchText does work OK for spaces in the rtftext, but newlines are encoded as a new paragraph and a tab is encoded as the escape sequence \'09. I am guessing the regex engine has no concept of RTF so you would have to replaceText those things first. Hmmm. I may be confused on the problem. I thought the rtf of a field was set but the matchChunk had trouble with the resulting text. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: RR binary formats (Re: Reading MP3 tags
On Sunday, August 3, 2003, at 09:05 PM, Victor Eijkhout wrote: Fortunately the spec makes it pretty easy. Mp3 is a binary format. Is that header you are reading 7-bit ascii? Would RR be able to handle 8-bit data? I was wondering the other day if I could use revolution to write an sf2 (soundfont) editor. Just splitting up and combining existing soundfonts. Naively I thought that RR wouldn't be able to handle binary data. Maybe it could. Anyone any thoughts? Yes. Revolution can be used to process any arbitrary binary file. (Of course, it is faster at some things than others.) A binary file can be considered a sequence of bytes. Each byte corresponds to a character in Revolution. Use charToNum() to get the numerical value. Use numToChar to go the other way. These are basic and reliable. That is all that is really needed, but Revolution provides more: binaryDecode, binaryEncode, baseConvert, bitAnd, bitOr, bitXor, bitNot. Dar Scott Dar Scott Consultinghttp://www.swcp.com/dsc/Programming Services ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Icons
on 8/3/03 9:43 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Date: Sun, 03 Aug 2003 13:59:42 +0200 Subject: Icons From: [EMAIL PROTECTED] (Malte Brill) Hi Yves, what happens if you type set the icon of btn yourButton to the ID of img yourImageName -- Check the ICON property in the dictionary. The image must be available in the stack, IOW, you must have imported it. You can place it offscreen or hide it, in which case the above will work. But if you take a look you'll see that it doesn't need both descriptors. You could say: set the icon of btn yourButton to img yourImageName ...or: set the icon of btn yourButton to 1015 ...and that's all. If the image has been imported, you don't need to spec the stack. I tried this in button in a substack with no additional params and it worked. ...or did I miss something? Are you trying to use an image from another stack? Another main stack, or a substack? Or, are you wanting to use an external image (New Referenced Control) in a folder somewhere? Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Serial Import, no Nulls?
On Sunday, August 3, 2003, at 09:34 PM, Sarah wrote: Try changing this to: open file thePort for binary update I haven't tried reading any data with nulls but this would be my best guess on how to fix the problem. Richard, if you still have trouble after trying Sarah's idea, please mention it. This could affect several of us. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Icons
Hi Yves, Date: Sun, 3 Aug 2003 10:52:31 +0200 Subject: Icons From: Yves COPPE [EMAIL PROTECTED] One of this substacks contains only imported as control image file prepared for icons for my btns in other stacks -- Do you mean it has an image which is composed of other smaller icon images? -- So one of this image has ID 1003 -- And this particular image is an imported control? Which substack is it in? -- I go into stack B, make a btn, in the inspector palette, popUp Icons and border, I type in the ID Field : 1003... -- If the image isn't imported to substack B, I don't think it will show, because it's not there. Try it from the message box. If you get a No such object you'll know. -- And my btn has merely no icon. If I do the same with one main stack and 2 substacks, it works fine... -- Do you mean you have imported an image to each of these? -- What happens ??? -- I think I'm unclear what you're trying to do. Have you tried using a referenced control from a file? Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution