From terry at discovery.nl Tue Jan 1 03:37:00 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Tue Jan 1 03:37:00 2002 Subject: put line fld "A" Message-ID: Hello, This is probably a very simple one, but I don't see what is wrong with this: put line fld "A" of lst into fld "B" Field "A" contains a number. I could write: put fld "A" into varA put line varA of lst into fld "B" Then it works. But what is the difference? Terry From webmaster at studioalice.se Tue Jan 1 03:53:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Tue Jan 1 03:53:01 2002 Subject: How to print a Textfield? In-Reply-To: Message-ID: <88D1DE2F-FE94-11D5-A386-003065CCBD1A@studioalice.se> Thanks very much! Works great. =) /mvb On m?ndag, december 31, 2001, at 07:35 , Geoff Canyon wrote: > At 11:32 AM +0100 12/31/01, Magnus von Br?msen wrote: >> Is it possible to print not the card itself but only a scrollingfield? >> I want the whole field printed - not just what I see on the sceen. >> >> Or, if write to an text-file (on disk) how do I print that file? > > Check out RevPrintField. > > gc > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From shaosean at unitz.ca Tue Jan 1 04:06:00 2002 From: shaosean at unitz.ca (Shao Sean) Date: Tue Jan 1 04:06:00 2002 Subject: put line fld "A" References: Message-ID: <006401c192a3$38cf7890$88b15bd1@dreamlanpc> > put line fld "A" of lst into fld "B" maybe try: put line value(text of fld "number") of fld "text" From brasmussen at earthlink.net Tue Jan 1 04:25:01 2002 From: brasmussen at earthlink.net (Robert D. Rasmussen) Date: Tue Jan 1 04:25:01 2002 Subject: Type 3 on revdb_connect, but ODBC drivers okay References: <20011230.135707.189.0.diskot123@juno.com> Message-ID: <3C317FE4.717F5BB3@earthlink.net> Thanks! I don't think I came across that little qualifier anywhere in the documentation. After installing the Merent software, I've made a few observations: 1. The installed Merent drivers, and so on, are indeed almost identical to the Intersolv installation -- just a later version, and not "branded" for FileMaker, like the set I had. That makes me think that a small tweak to Revolution would make it support the set distributed with FileMaker as well. If other clients can use them, why not Revolution? 2. I couldn't get Merent's control panel to configure the FileMaker Pro driver. Keeping the old setup control panel and setting up the data source with that worked (I suppose I could have editted the setup file too). Merent's control panel then recognized these settings, but still wouldn't edit them. Seems to work though. 3. After an initial success with the new setup, I had some bombs using Revolution's Database Manager. Things are okay now, but I don't know what fixed it. 4. In the Database Manager, without a space before the terminating semicolon, some SQL queries don't work, apparently because the semicolon gets treated as part of the final argument. (That was hard to find!) In other cases, you have to leave the semicolon out altogether. I'm not sure whose problem that is, but I'm sure it's not supposed to work that way. 5. I got lots of garbage in my logs after the semicolon in the query if I didn't delete everything after the semicolon in the default opening entry of the Database Manager query field. Now, on to trying to do something useful. RR diskot123 at juno.com wrote: > RevDB was designed to connect with the Merent data connect datamanager. > > You can download a free evaluation version at > http://bbase1.merant.com/merantema/www/DDWBDNLDco02/DDWBDNLDco02dnld.jsp > > Most ODBC drivers are compatible with it. > > Hmm..just checked and it said that Intersolv is now Merent..very weird. > Anyhow download the above, if it's crashing like that on > revdb_connect..because if it's crashing like that then it cannot find the > required datamanager libraries. > > Tuviah > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From ludovic.thebault at laposte.net Tue Jan 1 05:08:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Tue Jan 1 05:08:01 2002 Subject: put line fld "A" In-Reply-To: References: Message-ID: <20020101110501.105DCA%00000000@laposte.net> Terry Vogelaar wrote: >This is probably a very simple one, but I don't see what is wrong with this: > > put line fld "A" of lst into fld "B" > >Field "A" contains a number. I could write: > > put fld "A" into varA > put line varA of lst into fld "B" try : put line (fld "A") of lst into fld "B" From diskot123 at juno.com Tue Jan 1 05:51:01 2002 From: diskot123 at juno.com (diskot123 at juno.com) Date: Tue Jan 1 05:51:01 2002 Subject: Type 3 on revdb_connect, but ODBC drivers okay Message-ID: <20020101.055425.199.0.diskot123@juno.com> >1. The installed Merent drivers, and so on, are indeed almost identical to the Intersolv installation -- just a later version, and not "branded" for FileMaker, like the >set I had. That makes me think that a small tweak to Revolution would make it support the set distributed with FileMaker as well. If other clients can use them, >why not Revolution? Which other clients? > I couldn't get Merent's control panel to configure the FileMaker Pro driver. You probably have to remove the old control panel. When I installed FileMaker Pro eval..it was automatically installed it as a merent driver. >3. After an initial success with the new setup, I had some bombs using Revolution's Database Manager. Things are okay now, but I don't know what fixed it. Could you have forgot to change the database type to ODBC? >4. In the Database Manager, without a space before the terminating semicolon, some SQL queries don't work, apparently because the semicolon gets treated as >part of the final argument. (That was hard to find!) In other cases, you have to leave the semicolon out altogether. I'm not sure whose problem that is, but I'm >sure it's not supposed to work that way. Well ODBC says that it's supposed to work that way. RevDB doesn't parse the SQL statement. I've found this too, the best solution is to not append a terminating semicolin to the statement. Oracle seems fine with the semicolin, but MySQL and ODBC throw syntax errors with it. Maybe RevDB should be modified to automatically check for the terminating semicolin (I guess people are into the habit of adding it), and not pass it with the query..what do you think? Tuviah From terry at discovery.nl Tue Jan 1 06:07:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Tue Jan 1 06:07:01 2002 Subject: One menubar to rule them all. One menubar to be found on them. Message-ID: Hello, I added a menubar to my stack, but it is only present on the first card. I intended it to be on all cards. I can add it to other cards as well, but there are almost 1000 and I wasn't planning to add them to each manually. How should I handle this? Terry From andre.rombauts at win.be Tue Jan 1 11:33:00 2002 From: andre.rombauts at win.be (Andre Rombauts) Date: Tue Jan 1 11:33:00 2002 Subject: Building on Mac OS-PPC with 1.1.1b1 Message-ID: I'm unable to build with this configuration. When the system tries to dowload the engine, it reports an error (corrupted file). Everything is OK with other Mac OS engines. Do I need to use the 1.10 engine? Andr? From cowhead at ztv.ne.jp Tue Jan 1 11:36:01 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Tue Jan 1 11:36:01 2002 Subject: OSX Rev on classic stack? Message-ID: <3C31E571.B7660426@ztv.ne.jp> Happy new year all! I finally got a mac with OSX, so I used the carbon version of Rev to open some stacks made with the classic version of Metacard. Some of the stacks opened and performed quite well. Others behaved bizarrely and one appears to have had all controls wiped clean. It became a stack of blank cards. So is this not supported? If you want to make a stack (not a stand alone) that will run in both environments do you have to make 2 kinds of stacks, both classic and OSX? Or I suppose you could make exclusively 'classic' and not supply the OSX engine to that computer? (If you click directly on a 'classic' stack (eg, made with the classic engine) under OSX, it automatically opens the OSX engine, rather than the classic.) I'm having trouble finding the documentation on this. Any help would be greatly appreciated. Thanks, mark mitchell Japan From rpresender at mail.earthlink.net Tue Jan 1 12:59:00 2002 From: rpresender at mail.earthlink.net (Robert Presender) Date: Tue Jan 1 12:59:00 2002 Subject: Building on Mac OS-PPC with 1.1.1b1 In-Reply-To: <200201011701.MAA20956@www.runrev.com> References: <200201011701.MAA20956@www.runrev.com> Message-ID: Andre wrote: > >I'm unable to build with this configuration. When the system tries to >dowload the engine, it reports an error (corrupted file). Everything is OK >with other Mac OS engines. Do I need to use the 1.10 engine? > >Andr? I have the same problem. I tried the 1.1 version which didn't work either. Regards ... Bob From andre.rombauts at win.be Tue Jan 1 13:04:01 2002 From: andre.rombauts at win.be (Andre Rombauts) Date: Tue Jan 1 13:04:01 2002 Subject: Building: Encrypt password Message-ID: The Encrypt password check box of the Build window is not documented, it seems. I notice it doesn't prevent the .rev file to be loaded but unless you type first the password you can't edit a script inside an encrypted file. Why isn't possible to encrypt the whole file? Why and external .rev file added to a main .rev file while building can't be included inside the standalone (unless it is move into the main stack file with the mover)? Andr? From andre.rombauts at win.be Tue Jan 1 13:21:01 2002 From: andre.rombauts at win.be (Andre Rombauts) Date: Tue Jan 1 13:21:01 2002 Subject: Building on Mac OS-PPC with 1.1.1b1 In-Reply-To: Message-ID: > Andre wrote: >> I'm unable to build with this configuration. When the system tries to >> dowload the engine, it reports an error (corrupted file). Everything is OK >> with other Mac OS engines. Do I need to use the 1.10 engine? > I have the same problem. I tried the 1.1 version which didn't work either. I moved the MacPPC engine (dated 11.05.2001) from version 1.10 to the dedicated folder of 1.1.1b1 and it worked here. Andr? From brasmussen at earthlink.net Tue Jan 1 18:25:01 2002 From: brasmussen at earthlink.net (Robert D. Rasmussen) Date: Tue Jan 1 18:25:01 2002 Subject: Type 3 on revdb_connect, but ODBC drivers okay References: <20020101.055425.199.0.diskot123@juno.com> Message-ID: <3C3244E0.FA674E7B@earthlink.net> diskot123 at juno.com wrote: > >1. The installed Merent drivers, and so on, are indeed almost identical > >to the Intersolv installation -- just a later version, and not "branded" > >for FileMaker, like the > >set I had. That makes me think that a small tweak to Revolution would > >make it support the set distributed with FileMaker as well. If other > >clients can use them, > >why not Revolution? > > Which other clients? Microsoft Query for one. > > > I couldn't get Merent's control panel to configure the FileMaker Pro > >driver. > > You probably have to remove the old control panel. When I installed > FileMaker Pro eval..it was automatically installed it as a merent driver. I tried that, and a few other combinations, without success. > > >3. After an initial success with the new setup, I had some bombs using > >Revolution's Database Manager. Things are okay now, but I don't know > >what fixed it. > > Could you have forgot to change the database type to ODBC? Nope. I'm sure I had that right. > > > >4. In the Database Manager, without a space before the terminating > >semicolon, some SQL queries don't work, apparently because the semicolon > >gets treated as part of the final argument. (That was hard to find!) > >In other cases, you have to leave the semicolon out altogether. I'm not > >sure whose problem that is, but I'm sure it's not supposed to work that > >way. > > Well ODBC says that it's supposed to work that way. RevDB doesn't parse > the SQL statement. I've found this too, the best solution is to not > append a terminating semicolin to the statement. Oracle seems fine with > the semicolin, but MySQL and ODBC throw syntax errors with it. Maybe > RevDB should be modified to automatically check for the terminating > semicolin (I guess people are into the habit of adding it), and not pass > it with the query..what do you think? I'm relatively new to SQL, but the tutorials on the web that I've checked out (e.g., http://sqlcourse.com/) don't put a space before the semicolon (if they use one at all). I haven't found any syntax summary that says the space is required. Most mention the semicolon as the statement terminator. However, given the behavior I observed, I think the sample query in the Database Manager when you first open it should either skip the semicolon or put in the space. As far as Revolution automatically stripping the semicolon is concerned, I'm generally opposed to that kind of filtering -- unless you can override it. Sometimes you want to control all the details on an interface. > > > Tuviah > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From tgibson at westernheritage.ca Tue Jan 1 18:57:01 2002 From: tgibson at westernheritage.ca (Terry Gibson) Date: Tue Jan 1 18:57:01 2002 Subject: One menubar to rule them all. One menubar to be found on them. In-Reply-To: References: Message-ID: > >I added a menubar to my stack, but it is only present on the first card. I >intended it to be on all cards. I can add it to other cards as well, but >there are almost 1000 and I wasn't planning to add them to each manually. >How should I handle this? > Just wrestled with this problem myself. Double-click on the menubar group to open the Properties palette. Click on the far right tab marked "Group". Select the "Background Behaviour" button, fifth button down the list. The menubar should appear on all cards. Terrance H. Gibson, Ph.D. Alberta Western Heritage 2202 - 13 Mission Ave. St. Albert, Alberta CANADA T8N 1H6 Office: (780) 458-5698 (780) 460-1017 Fax: (780) 458-6923 Cell: (780) 908-6879 www.westernheritage.ca From tgibson at westernheritage.ca Tue Jan 1 22:35:01 2002 From: tgibson at westernheritage.ca (Terry Gibson) Date: Tue Jan 1 22:35:01 2002 Subject: One menubar to rule them all. One menubar to be found on them. In-Reply-To: References: Message-ID: >>I added a menubar to my stack, but it is only present on the first card. I >>intended it to be on all cards. I can add it to other cards as well, but >>there are almost 1000 and I wasn't planning to add them to each manually. >>How should I handle this? >> > >Just wrestled with this problem myself. Double-click on the menubar >group to open the Properties palette. Click on the far right tab >marked "Group". Select the "Background Behaviour" button, fifth >button down the list. The menubar should appear on all cards. > Just realized that this only applies to newly added cards. To add the menubar group to other cards without this group, check out the "Place" command in the Transcript Dictionary. Also, refer to the the "backgroundBehavior" property. Terrance H. Gibson, Ph.D. Alberta Western Heritage 2202 - 13 Mission Ave. St. Albert, Alberta CANADA T8N 1H6 Office: (780) 458-5698 (780) 460-1017 Fax: (780) 458-6923 Cell: (780) 908-6879 www.westernheritage.ca From cowhead at ztv.ne.jp Wed Jan 2 01:44:01 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Wed Jan 2 01:44:01 2002 Subject: 2 questions Message-ID: <3C32AC18.6EC83CC1@ztv.ne.jp> Richard wrote: ////////////////// A more difficult question: I'd like to create output on a card in which each line contains a combination of a colored bar followed by text. The length of the bar would vary in each line. In other words, each line of text needs to be represented as well by a bar of a specific length, based on the information in the line. The information on each card will have to scroll, as there will likely be 60-100 lines of information per card. Suggestions on how to do this in Rev? ////////////////////// This is not very creative, but can't you just create what 'appears' to be a color bar using some appropriate font (e.g. I have a font of 'smiley faces', which would add a touch of humor to it...) and then just use the info on the line to type however many characters are indicated, then set the font and color of just those characters to something appropriate? Now you will have a field that will behave normally, as it will actually contain only text albeit in multiple fonts/colors. good luck, mark mitchell japan From sunshine at public.kherson.ua Wed Jan 2 03:43:01 2002 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 2 03:43:01 2002 Subject: Valentina now work on X with Metacard and Revolution Message-ID: Hi All, Well, today Valentina XCMD Carbon have start to work with MC on X. Funny is that test project looks to work faster than on MacOS classic. Note, this work as native MC external, so now MC users on MacOS can use instead of xfcn resource the CODE resource. -- Best regards, Ruslan Zasukhin ------------------------- Paradigma. e-mail: ruslan at paradigmasoft.com web : http://www.paradigmasoft.com To subscribe to the Valentina mail list send a letter to valentina-on at lists.macserve.net From benr_mc at cogapp.com Wed Jan 2 05:45:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 2 05:45:01 2002 Subject: Mac menus and stack resizing In-Reply-To: Message-ID: on 1/1/02 12:58 AM, Stuart Milliken at stuart_milliken at sil.org wrote: > I'm having trouble with the automatic stack resizing feature that hides the > menu buttons for Mac menus. On some (but not all) stacks, the stack keeps > resizing smaller and smaller every time the stack opens--like the feature > can't figure out that it's already hidden the buttons before. I've tried > un-setting the button group as the menu and then re-setting it, but the > behavior persists. I haven't found mention of this in back issues of the > use-rev list--anyone else have this problem? Yes. Very annoying. > Any way to get it to stop? (I'm using 1.1 on Mac System 8.6) Not that I've found, on 1.0 or 1.1 on MacOS 9.1. The best I could do, provided you have a fixed height that you want the stack to be, was to add an openstack handler that reset the stack height every time. Note that it doesn't work if you do this in preopenstack, so it's visible to the users. And if you want the stack to be different sizes in different contexts, as I did, it all gets more ugly. However, I sent RunRev a small repro demo, and they verified it, so fixing this should be _somewhere_ in their to-do list. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From wow at together.net Wed Jan 2 07:26:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 2 07:26:01 2002 Subject: 2 questions In-Reply-To: <3C32AC18.6EC83CC1@ztv.ne.jp> Message-ID: Mark: It looks like that is how I have to go, as Geoff's suggestion was a good one (i.e. a scrolling group of objects), but the system will only print the visible items on the card...not all the items included in the group. I suppose I could scroll the objects a set amount during each Print batch...printing the equivalent of a full page at a time. But since Rev is limited to only printing what can be seen on the screen (since Windows don't scroll), that won't work well either. Thanks. Richard Miller > Richard wrote: > ////////////////// > A more difficult question: > I'd like to create output on a card in which each line contains a > combination of a colored bar followed by text. The length of the bar > would > vary in each line. In other words, each line of text needs to be > represented > as well by a bar of a specific length, based on the information in the > line. > The information on each card will have to scroll, as there will likely > be > 60-100 lines of information per card. Suggestions on how to do this in > Rev? > ////////////////////// > > This is not very creative, but can't you just create what 'appears' to > be a color bar using some appropriate font (e.g. I have a font of > 'smiley faces', which would add a touch of humor to it...) and then > just use the info on the line to type however many characters are > indicated, then set the font and color of just those characters to > something appropriate? Now you will have a field that will behave > normally, as it will actually contain only text albeit in multiple > fonts/colors. > > good luck, > > mark mitchell > japan > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From kevin at runrev.com Wed Jan 2 14:06:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 2 14:06:01 2002 Subject: V111-b1 (was Re: message box vanishes) In-Reply-To: Message-ID: On 31/12/01 9:50 am, Andre Rombauts wrote: > I installed the b version. Everything OK. Several bugs fixed indeed. The > first time I launched Rev ask me where was 'File Exchange'. Why? Rev will try to set the ".rev" extension to map to it on the Mac so that you don't have to change the creator type of files brought in from other OSes manually. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 2 14:06:53 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 2 14:06:53 2002 Subject: Error 3 In-Reply-To: Message-ID: On 31/12/01 7:43 pm, Dan Friedman wrote: > I have a stack that when running in Revolution works great! However, when I > build a stand alone (68K or PPC) I get a Error 3 (sometimes a Error 2) when > I attempt to do "quit". ALL other functions of the standalone work fine... > No errors, no problems... Only when quitting. Does the problem continue to occur if you remove all toolTips from all objects in your stacks (you can do this on a copy with a script)? If yes, please send me a copy of the stack. If no, please try this again in 1.1.1B2 which will go up shortly and will have this fixed. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 2 14:14:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 2 14:14:00 2002 Subject: Mac menus and stack resizing In-Reply-To: Message-ID: On 2/1/02 10:42 am, Ben Rubinstein wrote: >> I'm having trouble with the automatic stack resizing feature that hides the >> menu buttons for Mac menus. On some (but not all) stacks, the stack keeps >> resizing smaller and smaller every time the stack opens--like the feature >> can't figure out that it's already hidden the buttons before. I've tried >> un-setting the button group as the menu and then re-setting it, but the >> behavior persists. I haven't found mention of this in back issues of the >> use-rev list--anyone else have this problem? > > Yes. Very annoying. > >> Any way to get it to stop? (I'm using 1.1 on Mac System 8.6) > > Not that I've found, on 1.0 or 1.1 on MacOS 9.1. The best I could do, > provided you have a fixed height that you want the stack to be, was to add > an openstack handler that reset the stack height every time. Note that it > doesn't work if you do this in preopenstack, so it's visible to the users. > And if you want the stack to be different sizes in different contexts, as I > did, it all gets more ugly. > > However, I sent RunRev a small repro demo, and they verified it, so fixing > this should be _somewhere_ in their to-do list. This should be fixed in 1.1.1B1 - please confirm? Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 2 14:14:07 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 2 14:14:07 2002 Subject: Building on Mac OS-PPC with 1.1.1b1 In-Reply-To: Message-ID: On 1/1/02 4:30 pm, Andre Rombauts wrote: > I'm unable to build with this configuration. When the system tries to > dowload the engine, it reports an error (corrupted file). Everything is OK > with other Mac OS engines. Do I need to use the 1.10 engine? The correct 1.1.1B1 engine is included in the OS X stuffit archive. It should have been in the classic archive too but this was missed. It will be in B2. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 2 14:14:09 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 2 14:14:09 2002 Subject: One menubar to rule them all. One menubar to be found on them. In-Reply-To: Message-ID: On 2/1/02 3:33 am, Terry Gibson wrote: >> Just wrestled with this problem myself. Double-click on the menubar >> group to open the Properties palette. Click on the far right tab >> marked "Group". Select the "Background Behaviour" button, fifth >> button down the list. The menubar should appear on all cards. >> > > Just realized that this only applies to newly added cards. To add > the menubar group to other cards without this group, check out the > "Place" command in the Transcript Dictionary. Also, refer to the the > "backgroundBehavior" property. You can place a group on all cards using the Application Overview too. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From environgroup at mac.com Wed Jan 2 14:53:01 2002 From: environgroup at mac.com (Environ Group) Date: Wed Jan 2 14:53:01 2002 Subject: Boston Opportunity Message-ID: Hello List, 3 Year-old startup in Boston, MA. USA needs to network with revolution folks in the Boston area. We will be building very cool, highly distributed applications. Time is of the essence. Greg From jerry at danielsfamily.org Wed Jan 2 16:13:01 2002 From: jerry at danielsfamily.org (Jerry Daniels) Date: Wed Jan 2 16:13:01 2002 Subject: Properties not updating in properties palette In-Reply-To: Message-ID: <000901c193d1$e60f60e0$557e9d40@mshome.net> Beta team, I notice in 1.1B1 that when I have the properties palette open and click on different objects, the properties do not update as I select a different object, but keep their former property. This is reproducible with different fld contents. Thanks, Jerry Daniels From cowhead at ztv.ne.jp Wed Jan 2 16:20:01 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Wed Jan 2 16:20:01 2002 Subject: One Menubar.... Message-ID: <3C33796A.84F3B75D@ztv.ne.jp> I intended it to be on all cards. I can add it to other cards as well, but >there are almost 1000 and I wasn't planning to add them to each manually. >How should I handle this? This has already been answered (the set background behaviour) but I thought it was worth reminding about the general point of all this...you seldom have to do ANYthing manually in rev/meta. Even if you hadn't found the 'proper' way to do it, you could have scripted it as a simple repeat loop in about 4 lines and 20 seconds. Done! That's the beauty of it.. We are usually just like Dorothy. We have had the power all along. mark mitchell Japan From diskot123 at juno.com Wed Jan 2 16:26:01 2002 From: diskot123 at juno.com (diskot123 at juno.com) Date: Wed Jan 2 16:26:01 2002 Subject: Type 3 on revdb_connect, but ODBC drivers okay Message-ID: <20020102.162843.214.2.diskot123@juno.com> >I'm relatively new to SQL, but the tutorials on the web that I've checked out > http://sqlcourse.com/) don't put a space before the semicolon (if they use one at all). I've checked out sqlcourse.com, the site looks great. I only wish I would have found it, when I was learning SQL! Tuviah From diskot123 at juno.com Wed Jan 2 16:26:04 2002 From: diskot123 at juno.com (diskot123 at juno.com) Date: Wed Jan 2 16:26:04 2002 Subject: use-revolution digest, Vol 1 #87 - 10 msgs Message-ID: <20020102.162843.214.1.diskot123@juno.com> >Nope. I'm sure I had that right. If you can duplicate the crash this on your machine, or any other machine, and find a recipe I would be very interested. >I'm relatively new to SQL, but the tutorials on the web that I've checked out (e.g., http://sqlcourse.com/) don't put a space before the semicolon (if they use one at >all). I haven't found any syntax summary that says the space is required. Most mention the semicolon as the statement terminator. However, given the behavior I >observed, I think the sample query in the Database Manager when you first open it should either skip the semicolon or put in the space. The orielly sql pocket reference is great, I suggest you check it out. The example should skip the semicolon. The semicolon is not needed, revdb knows the size of the query string when you pass it in. The only use I can think of why you would want a semicolon is in Oracle because you can pass pl/sql(oracles programming language) which contains multiple statements which would need to be terminated by a semicolon. Tuviah From slu at cycast.com Wed Jan 2 17:43:01 2002 From: slu at cycast.com (steve lu) Date: Wed Jan 2 17:43:01 2002 Subject: Threading.... Message-ID: <000f01c193de$839ecdd0$9865fea9@office.comscore.com> Hi, Is there a way of controlling threading within RunRev authoring environment? Can I create a new thread of execution or "pause" or "disable" a current running thread? I know VB.Net has these features which are very useful for creating background processes. Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From chipp at chipp.com Wed Jan 2 18:46:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Wed Jan 2 18:46:01 2002 Subject: how to calculate the length in chars of a binary file? Message-ID: I can load a binary file into a field: put URL "binfile:C:/test.jpg" into fld "test" how can I figure out the length in characters for that file? I need to know before uploading to a server. thanks anyone, Chipp Walters ---------------------------- | ___ ____ _ __ | | / _ | / / /___ __(_) /_ | | / __ |/ / __/ // / / __/ | | /_/ |_/_/\__/\_,_/_/\__/ | | http://www.altuit.com | | chipp at altuit.com | ---------------------------- From xslaugh at hotmail.com Wed Jan 2 19:06:01 2002 From: xslaugh at hotmail.com (Scott Slaugh) Date: Wed Jan 2 19:06:01 2002 Subject: how to calculate the length in chars of a binary file? References: Message-ID: ----- Original Message ----- From: "Chipp Walters" To: "Use-Revolution" Sent: Wednesday, January 02, 2002 4:42 PM Subject: how to calculate the length in chars of a binary file? > I can load a binary file into a field: > > put URL "binfile:C:/test.jpg" into fld "test" > > how can I figure out the length in characters for that file? I need to know > before uploading to a server. Try this: put the number of chars of fld "test" Scott Slaugh > > thanks anyone, > > Chipp Walters > > ---------------------------- > | ___ ____ _ __ | > | / _ | / / /___ __(_) /_ | > | / __ |/ / __/ // / / __/ | > | /_/ |_/_/\__/\_,_/_/\__/ | > | http://www.altuit.com | > | chipp at altuit.com | > ---------------------------- > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From fuegox at mac.com Wed Jan 2 20:16:00 2002 From: fuegox at mac.com (fuegox at mac.com) Date: Wed Jan 2 20:16:00 2002 Subject: OSX Rev on classic stack? In-Reply-To: <200201011703.MAA21009@www.runrev.com> Message-ID: <24B5DFC6-FFE7-11D5-9B6A-003065B78238@mac.com> On Tuesday, January 1, 2002, at 09:03 AM, use-revolution- request at lists.runrev.com wrote: > > Happy new year all! I finally got a mac with OSX, so I used the carbon > version of Rev to open some stacks made with the classic version of > Metacard. Some of the stacks opened and performed quite well. Others > behaved bizarrely and one appears to have had all controls wiped clean. > It became a stack of blank cards. So is this not supported? If you > want to make a stack (not a stand alone) that will run in both > environments do you have to make 2 kinds of stacks, both classic and > OSX? Or I suppose you could make exclusively 'classic' and not supply > the OSX engine to that computer? (If you click directly on a 'classic' > stack (eg, made with the classic engine) under OSX, it automatically > opens the OSX engine, rather than the classic.) > > I'm having trouble finding the documentation on this. Any help would be > > greatly appreciated. > > Thanks, > mark mitchell > Japan I have seen this as well. Can not come up with a good reason for it though. I must say though that I have seen it on MC 2.4.1. -Mark From lists at retiariusenterprises.com Wed Jan 2 21:17:01 2002 From: lists at retiariusenterprises.com (Retiarius) Date: Wed Jan 2 21:17:01 2002 Subject: Creating Players & Palettes Message-ID: I'm trying to create a player via script in a standalone with a few palettes open. When "create player" script is evoked it draws the player in a palette. I've tried: create player "QTplayer" of cd 1 of stack "Stage" to no avail. Is there something else I can do? You help is greatly appreciated. -- David Retiarius Enterprises New Media Solutions From lists at retiariusenterprises.com Wed Jan 2 21:27:01 2002 From: lists at retiariusenterprises.com (Retiarius) Date: Wed Jan 2 21:27:01 2002 Subject: Creating an Icon Library Message-ID: I'd like to create my own library of icons. Is there a guide somewhere that steps you through the process? Where can I find more info? Many Thanks. -- David Retiarius Enterprises New Media Solutions From gcanyon at inspiredlogic.com Wed Jan 2 21:31:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 2 21:31:01 2002 Subject: Anyone going to MacWorld? Message-ID: I'm going to be at MacWorld on Thursday and Friday of next week. How many other Revolutionaries or MetaCardians going? I'd like to propose getting together for drinks/dinner some night. As to the night, my vote goes for Thursday, since I won't be there Tuesday or Wednesday :-) Friday would also work for me, but might not for people who are flying out that night. regards, Geoff From chipp at chipp.com Wed Jan 2 22:06:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Wed Jan 2 22:06:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: Message-ID: Nope, for some reason that doesn't work. -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Scott Slaugh Sent: Wednesday, January 02, 2002 6:04 PM To: use-revolution at lists.runrev.com Subject: Re: how to calculate the length in chars of a binary file? ----- Original Message ----- From: "Chipp Walters" To: "Use-Revolution" Sent: Wednesday, January 02, 2002 4:42 PM Subject: how to calculate the length in chars of a binary file? > I can load a binary file into a field: > > put URL "binfile:C:/test.jpg" into fld "test" > > how can I figure out the length in characters for that file? I need to know > before uploading to a server. Try this: put the number of chars of fld "test" Scott Slaugh > > thanks anyone, > > Chipp Walters > > ---------------------------- > | ___ ____ _ __ | > | / _ | / / /___ __(_) /_ | > | / __ |/ / __/ // / / __/ | > | /_/ |_/_/\__/\_,_/_/\__/ | > | http://www.altuit.com | > | chipp at altuit.com | > ---------------------------- > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From chipp at chipp.com Wed Jan 2 22:12:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Wed Jan 2 22:12:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: Message-ID: I should mention: put the number of chars into X doesn't work with binary field contents. I have a feeling the binaryDecode function is what's needed. I just need to know the parameters... -Chipp -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Chipp Walters Sent: Wednesday, January 02, 2002 5:43 PM To: Use-Revolution Subject: how to calculate the length in chars of a binary file? I can load a binary file into a field: put URL "binfile:C:/test.jpg" into fld "test" how can I figure out the length in characters for that file? I need to know before uploading to a server. thanks anyone, Chipp Walters ---------------------------- | ___ ____ _ __ | | / _ | / / /___ __(_) /_ | | / __ |/ / __/ // / / __/ | | /_/ |_/_/\__/\_,_/_/\__/ | | http://www.altuit.com | | chipp at altuit.com | ---------------------------- _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From chipp at chipp.com Wed Jan 2 22:22:00 2002 From: chipp at chipp.com (Chipp Walters) Date: Wed Jan 2 22:22:00 2002 Subject: Threading.... In-Reply-To: <000f01c193de$839ecdd0$9865fea9@office.comscore.com> Message-ID: steve, Geoff Canyon answered this in an earlier post: At 3:19 PM -0500 12/18/01, Shari wrote: >Is it possible to have handlers share time? So that when it is idle, the second handler runs? > >I have a very lengthy handler, that does certain things, calls other handlers, and they in turn call other handlers. This sets up the data for the user. > >As it takes more than a few seconds, I've created things for the user to "do" while waiting. One way to accomplish something like this is to break the setup task into individual steps (the smaller the better) and then do something like: global gSetupDone on setup put false into gSetupDone doSetupStep 1 end setup on doSetupStep pWhichStep switch pWhichStep case 1 blah blah break case 2 blah blah break ... case 32 -- last step put true into gSetupDone end switch if not gSetupDone then send ("doSetupStep" && (pWhichStep + 1)) to me in 1 millisecond end if end doSetupStep What this will do is process your setup just about as fast as if it were all done at once, but automatically put the process on hold for anything the user does. Note that you can't break a task up any way you like -- each time through the doSetupStep is a different execution, so local variables are lost, loops or branches that go across the separate cases would fail, etc. You should try to break the setup task into steps that will take no more than .1 seconds each on a medium-speed computer. That way the user will never feel that the system is unresponsive. regards, Geoff _______________________________________________ metacard mailing list metacard at lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of steve lu Sent: Wednesday, January 02, 2002 4:41 PM To: use-revolution at lists.runrev.com Subject: Threading.... Hi, Is there a way of controlling threading within RunRev authoring environment? Can I create a new thread of execution or "pause" or "disable" a current running thread? I know VB.Net has these features which are very useful for creating background processes. Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From drvaughan55 at mac.com Wed Jan 2 22:23:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Wed Jan 2 22:23:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: References: Message-ID: Chipp When you say it doesn't work, what result are you getting? Might a short value arise from Rev seeing an end-of-string character in the binary data? Have you checked whether you can put the same data back to a file from the field, and get all of it? cheers David Vaughan At 21:06 -0600 2/1/02, Chipp Walters wrote: >Nope, for some reason that doesn't work. > >-----Original Message----- >From: use-revolution-admin at lists.runrev.com >[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Scott Slaugh >Sent: Wednesday, January 02, 2002 6:04 PM >To: use-revolution at lists.runrev.com >Subject: Re: how to calculate the length in chars of a binary file? > > >----- Original Message ----- >From: "Chipp Walters" >To: "Use-Revolution" >Sent: Wednesday, January 02, 2002 4:42 PM >Subject: how to calculate the length in chars of a binary file? > > >> I can load a binary file into a field: >> >> put URL "binfile:C:/test.jpg" into fld "test" >> >> how can I figure out the length in characters for that file? I need to >know >> before uploading to a server. > >Try this: >put the number of chars of fld "test" > >Scott Slaugh >> >> thanks anyone, >> >> Chipp Walters >> >> ---------------------------- >> | ___ ____ _ __ | >> | / _ | / / /___ __(_) /_ | >> | / __ |/ / __/ // / / __/ | >> | /_/ |_/_/\__/\_,_/_/\__/ | >> | http://www.altuit.com | >> | chipp at altuit.com | >> ---------------------------- >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution -- From omath at airmail.net Thu Jan 3 00:23:01 2002 From: omath at airmail.net (Brad Allen) Date: Thu Jan 3 00:23:01 2002 Subject: Error description: Function: missing '(' Message-ID: This function worked in a HyperCard stack, but now I'm getting a long list of errors from it. The parenthesis appear to balance...I've tried several formulations of this script and all of them yield the same long list of errors. Any thoughts? function mindLink distance,time return (2 * log (distance)) + (time * log (distance) / 5) end mindLink -=-=-=-=-=-=-=-=-=-=-=- Error List =-=-=-=-=-=-=-=-=-=-=-=-=-=- Error description: Function: missing '(' return (2 * log (distance)) + (time * log (distance) / 5) Line: 22 Character: 32 Value: Error description: Function: bad form return (2 * log (distance)) + (time * log (distance) / 5) Line: 22 Character: 32 Value: Error description: Expression: missing ')' before factor return (2 * log (distance)) + (time * log (distance) / 5) Line: 22 Character: 31 Value: time Error description: return: error in expression return (2 * log (distance)) + (time * log (distance) / 5) Line: 22 Character: 31 Value: time Error description: Handler: error in command return (2 * log (distance)) + (time * log (distance) / 5) Line: 22 Character: 31 Value: time Error description: Handler: error in handler return (2 * log (distance)) + (time * log (distance) / 5) Line: 22 Character: 31 Value: time Error description: Object Name: Line: 0 Character: 0 Value: stack "/Port/Champions combat copy.rev" how do I fix the following line of script, which yields the mysterious error " Chunk: can't find object" put the short name of the selectedButton of cd family 1 into damageType I wondered if maybe the button family didn't convert, so I went ahead and set my two radio buttons From brasmussen at earthlink.net Thu Jan 3 00:42:01 2002 From: brasmussen at earthlink.net (Bob Rasmussen) Date: Thu Jan 3 00:42:01 2002 Subject: Error description: Function: missing '(' References: Message-ID: <3C33EEA8.4320B28B@earthlink.net> "time" is a reserved word in Transcript, which thinks it's the built-in function "time()", but with a missing set of parentheses. Brad Allen wrote: > This function worked in a HyperCard stack, but now I'm getting a long > list of errors from it. The parenthesis appear to balance...I've > tried several formulations of this script and all of them yield the > same long list of errors. Any thoughts? > > function mindLink distance,time > return (2 * log (distance)) + (time * log (distance) / 5) > end mindLink > > -=-=-=-=-=-=-=-=-=-=-=- Error List =-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Error description: Function: missing '(' > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 32 > Value: > > Error description: Function: bad form > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 32 > Value: > > Error description: Expression: missing ')' before factor > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 31 > Value: time > > Error description: return: error in expression > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 31 > Value: time > > Error description: Handler: error in command > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 31 > Value: time > > Error description: Handler: error in handler > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 31 > Value: time > > Error description: Object Name: > > Line: 0 Character: 0 > Value: stack "/Port/Champions combat copy.rev" > > how do I fix the following line of script, which yields the > mysterious error " Chunk: can't find object" > > put the short name of the selectedButton of cd family 1 into damageType > > I wondered if maybe the button family didn't convert, so I went ahead > and set my two radio buttons > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From chipp at chipp.com Thu Jan 3 04:47:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Thu Jan 3 04:47:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: Message-ID: David, Thanks for the suggestion...I'll check it out. I can upload the file to a webserver from the field when I know the string length of the field (precalculated) but, I need to be able to precalculate it from within RR. I'll check for the eof. -Chipp -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of David Vaughan Sent: Wednesday, January 02, 2002 9:21 PM To: use-revolution at lists.runrev.com Subject: RE: how to calculate the length in chars of a binary file? Chipp When you say it doesn't work, what result are you getting? Might a short value arise from Rev seeing an end-of-string character in the binary data? Have you checked whether you can put the same data back to a file from the field, and get all of it? cheers David Vaughan At 21:06 -0600 2/1/02, Chipp Walters wrote: >Nope, for some reason that doesn't work. > >-----Original Message----- >From: use-revolution-admin at lists.runrev.com >[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Scott Slaugh >Sent: Wednesday, January 02, 2002 6:04 PM >To: use-revolution at lists.runrev.com >Subject: Re: how to calculate the length in chars of a binary file? > > >----- Original Message ----- >From: "Chipp Walters" >To: "Use-Revolution" >Sent: Wednesday, January 02, 2002 4:42 PM >Subject: how to calculate the length in chars of a binary file? > > >> I can load a binary file into a field: >> >> put URL "binfile:C:/test.jpg" into fld "test" >> >> how can I figure out the length in characters for that file? I need to >know >> before uploading to a server. > >Try this: >put the number of chars of fld "test" > >Scott Slaugh >> >> thanks anyone, >> >> Chipp Walters >> >> ---------------------------- >> | ___ ____ _ __ | >> | / _ | / / /___ __(_) /_ | >> | / __ |/ / __/ // / / __/ | >> | /_/ |_/_/\__/\_,_/_/\__/ | >> | http://www.altuit.com | >> | chipp at altuit.com | >> ---------------------------- >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution -- _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From kevin at runrev.com Thu Jan 3 07:56:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 3 07:56:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: Message-ID: On 2/1/02 11:42 pm, Chipp Walters wrote: > I can load a binary file into a field: > > put URL "binfile:C:/test.jpg" into fld "test" > > how can I figure out the length in characters for that file? I need to know > before uploading to a server. Use the detailed files to get the file size, or put the binary URL into a variable, count the number of chars in that, then place it into a field. But note that if you place it in a field it will no longer be binary and will thus be corrupted if you need to use it as binary. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From evans at evans.pgh.pa.us Thu Jan 3 09:08:01 2002 From: evans at evans.pgh.pa.us (Arthur Evans Jr) Date: Thu Jan 3 09:08:01 2002 Subject: Error description: Function: missing '(' In-Reply-To: <3C33EEA8.4320B28B@earthlink.net> References: <3C33EEA8.4320B28B@earthlink.net> Message-ID: Brad Allen wrote: > This function worked in a HyperCard stack, [SNIP] > function mindLink distance,time > return (2 * log (distance)) + (time * log (distance) / 5) > end mindLink > > -=-=-=-=-=-=-=-=-=-=-=- Error List =-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Error description: Function: missing '(' > return (2 * log (distance)) + (time * log (distance) / 5) > Line: 22 Character: 32 > Value: [SNIP, followed by lots more error messages] At 21:40 -0800 2002.01.02, Bob Rasmussen wrote: > "time" is a reserved word in Transcript, which thinks it's the > built-in function "time()", but with a missing set of parentheses. This dialog led me to compose a diatribe comlaining about the poor quality of Rev's error messages. However, in doing so I came to realize that the situation isn't quite so bad as I had come to believe. I here post my analysis. It helped me; maybe it will help others. First, though, there really are some Rev problems that deserve attention: 1 If there's a list of Transcript reserved words, I've never found it. Such a list is badly needed. 2 The error messages reported from accidental misuse of a reserved word are immensely obscure. For example, in the example above, since 'time' is a reserved word, the error should have been reported first on the 'function' line rather than on the 'return' line. It should not be hard to report use of a reserved word as a formal parameter on that line. Now, let's look at what was reported. For the first time just now, I noticed that the error report included the character position where the error was detected. Here's the report again: Error description: Function: missing '(' return (2 * log (distance)) + (time * log (distance) / 5) 123456789012345678901234567890123456789012345678901234567890 Line: 22 Character: 32 Value: I've added a character count line. The error was detected in character position 32, which is where 'time' starts. That's immensely helpful in that it suggests that 'time' is the problem. If you look up 'time' in the Transcript dictionary, you learn that 'time' is a function, and therefore a reserved word. Aha! I wish I had made this observation long ago. HINT TO THOSE WRITING DOCUMENTATION FOR THOSE COMING FROM HYPERCARD: Include an analysis of error messages like what I've just written. None of the Tutorials I read say anything about error messages. Finally, there's a better way to report where the error is detected: Error description: Function: missing '(' return (2 * log (distance)) + (time * log (distance) / 5) -------------------------------^ The caret under the error is easier to deal with than counting characters. (I think it's safe to assume a fixed width font.) One more hint to those trying to deal with a long list of error messages from a single line: Look only at the first message, and ignore all the others. If you can fix the problem reported in the first message and recompile, the other problems will likely disappear. Art Evans From bvlahos at jpl.nasa.gov Thu Jan 3 11:22:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Thu Jan 3 11:22:01 2002 Subject: Anyone going to MacWorld? In-Reply-To: Message-ID: I'll be there too. In fact, I'm presenting a pro session on "Advanced AirPort Networking" on Thursday (shameless plug). I vote for Thursday too. Since the Rev folks are going to be there too, perhaps we can coordinate an evening with them; and no, I don't expect them to pay for it. Bill Vlahos Jet Propulsion Laboratory On Wednesday, January 2, 2002, at 06:28 PM, Geoff Canyon wrote: > I'm going to be at MacWorld on Thursday and Friday of next week. How > many other Revolutionaries or MetaCardians going? I'd like to propose > getting together for drinks/dinner some night. > > As to the night, my vote goes for Thursday, since I won't be there > Tuesday or Wednesday :-) Friday would also work for me, but might not > for people who are flying out that night. > > regards, > > Geoff > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From gcanyon at inspiredlogic.com Thu Jan 3 11:32:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 3 11:32:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: References: Message-ID: At 9:09 PM -0600 1/2/02, Chipp Walters wrote: >I should mention: > >put the number of chars into X doesn't work with binary field contents. I >have a feeling the binaryDecode function is what's needed. I just need to >know the parameters... You can't put a binary file into a field; that automatically makes it text. Instead, keep it in a variable. Then I think the length function should tell you how big it is (probably the number of characters would work as well). regards, geoff From chipp at chipp.com Thu Jan 3 12:59:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Thu Jan 3 12:59:01 2002 Subject: how to calculate the length in chars of a binary file? In-Reply-To: Message-ID: Thanks Geoff. I'll try it. I was putting it in a variable to send it up to the server, but then putting it in a field to check the length. Hope this works. -Chipp -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Geoff Canyon Sent: Wednesday, January 02, 2002 10:53 PM To: use-revolution at lists.runrev.com Subject: RE: how to calculate the length in chars of a binary file? At 9:09 PM -0600 1/2/02, Chipp Walters wrote: >I should mention: > >put the number of chars into X doesn't work with binary field contents. I >have a feeling the binaryDecode function is what's needed. I just need to >know the parameters... You can't put a binary file into a field; that automatically makes it text. Instead, keep it in a variable. Then I think the length function should tell you how big it is (probably the number of characters would work as well). regards, geoff _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From terry at discovery.nl Thu Jan 3 14:34:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Thu Jan 3 14:34:01 2002 Subject: Adjusting the size of a field to fit the text inside Message-ID: Is it possible to adjust the size of a field to fit the text, using a script? I know it is possible with the nifty little buttons on the properties palette, but can it be done by a script as well? Terry From brasmussen at earthlink.net Thu Jan 3 17:25:01 2002 From: brasmussen at earthlink.net (Bob Rasmussen) Date: Thu Jan 3 17:25:01 2002 Subject: Error description: Function: missing '(' References: <3C33EEA8.4320B28B@earthlink.net> Message-ID: <3C34D9CA.EC7F15C4@earthlink.net> Arthur Evans Jr wrote: > . . . > > 1 If there's a list of Transcript reserved words, I've never found > it. Such a list is badly needed. The Transcript Dictionary in the Revolution documentation is such a list. > 2 The error messages reported from accidental misuse of a reserved > word are immensely obscure. For example, in the example above, > since 'time' is a reserved word, the error should have been > reported first on the 'function' line rather than on the 'return' > line. It should not be hard to report use of a reserved word as a > formal parameter on that line. I agree. > . . . > > Art Evans > From sarahr at genesearch.com.au Thu Jan 3 18:51:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Thu Jan 3 18:51:01 2002 Subject: Error description: Function: missing '(' In-Reply-To: Message-ID: > > 1 If there's a list of Transcript reserved words, I've never found > it. Such a list is badly needed. If you colorize the script, reserved words will show up in red (or whatever color you have specified if you have change the colorization settings). I have found this very useful when converting HyperCard scripts. Sarah From zink at newmex.com Thu Jan 3 21:08:01 2002 From: zink at newmex.com (Nelson Zink) Date: Thu Jan 3 21:08:01 2002 Subject: What's up with the time functions? Message-ID: put "1" into temp convert temp to dateitems Returns: 1970,1,1,9,0,1,5 Implying the eon started on the ninth hour. put "1/1/02" into temp convert temp to dateitems Returns: 2002,1,1,2,0,0,3 Implying this year started on the second hour. What happened to midnight? What am I missing? Nelson Zink From sarahr at genesearch.com.au Thu Jan 3 22:18:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Thu Jan 3 22:18:01 2002 Subject: Adjusting the size of a field to fit the text inside In-Reply-To: Message-ID: Try this in a button script: on mouseUp set the height of fld "MyField" to the formattedHeight of fld "MyField" set the width of fld "MyField" to the formattedWidth of fld "MyField" end mouseUp Sarah P.S. All the rev palettes are scripted, so if you see one of them do something nifty, turn on "Revolution UI Stacks in Lists" and browse through them in the Application View. You can examine all the scripts & properties that way. > > Is it possible to adjust the size of a field to fit the text, using a > script? I know it is possible with the nifty little buttons on the > properties palette, but can it be done by a script as well? > > Terry > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From zink at newmex.com Thu Jan 3 22:50:01 2002 From: zink at newmex.com (Nelson Zink) Date: Thu Jan 3 22:50:01 2002 Subject: What's up with the time functions Message-ID: put "1" into temp convert temp to dateitems Returns: 1970,1,1,9,0,1,5 Implying the eon started on the ninth hour. put "1/1/02" into temp convert temp to dateitems Returns: 2002,1,1,2,0,0,3 Implying this year started on the second hour. What happened to midnight? What am I missing? Nelson Zink From omath at airmail.net Thu Jan 3 23:45:01 2002 From: omath at airmail.net (Brad Allen) Date: Thu Jan 3 23:45:01 2002 Subject: Error description: Function: missing '(' In-Reply-To: References: Message-ID: Thanks, Arthur, Bob, and Sarah, for dogpiling me with help. Colorizing the script will help me recognized reserved words until I have them all memorized (!). From chipp at chipp.com Fri Jan 4 00:39:03 2002 From: chipp at chipp.com (Chipp Walters) Date: Fri Jan 4 00:39:03 2002 Subject: How to insert a button as a script library? Message-ID: I noticed in RunRev there's stack called revLibrary which has a bunch of buttons in it which are in fact each separate libraries. For instance there's a RevURL button which has in it all the URL scripts. My question is: How do I take an existing 'button script library' and insert into a stack as a 'repository' for specific handlers? This would make it easy to distribute modular code elements to others. thanks for any help on this, Chipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From gslj at intergate.ca Fri Jan 4 01:43:01 2002 From: gslj at intergate.ca (Gareth Jones) Date: Fri Jan 4 01:43:01 2002 Subject: Error description: Function: missing '(' In-Reply-To: References: Message-ID: The mention of colorized scripts sent me to the Script Editor Preferences, where I found the option to colorize while typing. Is there some way to display the colours in all scripts, whether I'm typing them from scratch or not? -Gareth > > >> 1 If there's a list of Transcript reserved words, I've never found >> it. Such a list is badly needed. > >If you colorize the script, reserved words will show up in red (or whatever >color you have specified if you have change the colorization settings). I >have found this very useful when converting HyperCard scripts. > >Sarah > >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution -- From troy at rpsystems.net Fri Jan 4 02:10:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Fri Jan 4 02:10:01 2002 Subject: Error description: Function: missing '(' In-Reply-To: Message-ID: Gareth Jones wrote: > The mention of colorized scripts sent me to the Script Editor > Preferences, where I found the option to colorize while typing. Is > there some way to display the colours in all scripts, whether I'm > typing them from scratch or not? > > -Gareth If you have a script open, you just go to script in the menubar, and select colorize. This works on a script by script basis. -- Troy RPSystems www.rpsystems.net From chipp at chipp.com Fri Jan 4 04:22:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Fri Jan 4 04:22:01 2002 Subject: can I create a return value for a function OUTSIDE the function? Message-ID: I've created a postingFile function to a webserver. It works using SAFileUp and IIS. What I want it to do, is return a value upon a completed post (the response). Because the function works asynchronously, it can't return a the server response as a return value. Any ideas on how the user can retrieve this value. I could set it in a custom property then fire off a getproperty handler, but what should it do? Ideally it should send some sort of message... Any thoughts would be helpful. -Chipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From cowhead at ztv.ne.jp Fri Jan 4 04:54:00 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Fri Jan 4 04:54:00 2002 Subject: error messages diatribe Message-ID: <3C357BBD.72952B51@ztv.ne.jp> AE wrote: >>>>>>> 1 If there's a list of Transcript reserved words, I've never found it. Such a list is badly needed. >>>>>>> But then you would actually consult it each time? It's much easier to just always customize your variable names. I use variables like 'time' and 'player' all the the time, but I customize them as zaTime and zaPlayer (because I like to script in a German/Japanese accent). I have automatically done this ever since the first time I was 'nailed' by this same error. mark mitchell japan From jphurley at jps.net Fri Jan 4 08:30:00 2002 From: jphurley at jps.net (Jim Hurley) Date: Fri Jan 4 08:30:00 2002 Subject: Canceling pending messages In-Reply-To: <200201031706.MAA24889@www.runrev.com> References: <200201031706.MAA24889@www.runrev.com> Message-ID: The following script is recommended in the Rev. web site as preferable to the use of the idle message: on showPlayerCurrentTime put the currentTime of player "My Player" into field "Player Progress" send "showPlayerCurrentTime" to me in 500 milliseconds end showPlayerCurrentTime In this way, "showPlayerCuttentTime is repeated every 500 milliseconds. My question is: How would one stop this cycle? How does one interrupt the send routine? What part of the "pendingmessages" does one "cancel"? With the above handler running I get find two lines in the pending messages as follows: 6230,1010150413.003374,mouseUp,button id 1003 of card id 1002 of stack "Untitled 1" 6231,1010150412.65895,revScriptEdit,button id 1003 of card id 1002 of stack "/Macintosh HD/Revolution-1.1.1-Classic-B1/components/global environment/revlibrary.rev" Furthermore the two leading items in each line (6230 and 6231) change with time. -- Jim Hurley -------------- next part -------------- An HTML attachment was scrubbed... URL: From evans at evans.pgh.pa.us Fri Jan 4 09:30:01 2002 From: evans at evans.pgh.pa.us (Arthur Evans Jr) Date: Fri Jan 4 09:30:01 2002 Subject: error messages diatribe In-Reply-To: <3C357BBD.72952B51@ztv.ne.jp> References: <3C357BBD.72952B51@ztv.ne.jp> Message-ID: I said > 1 If there's a list of Transcript reserved words, I've never found > it. Such a list is badly needed. and at 18:54 +0900 2002.01.04, cowhead wrote: >But then you would actually consult it each time? It's much easier to >just always customize your variable names. I use variables like 'time' >and 'player' all the the time, but I customize them as zaTime and >zaPlayer (because I like to script in a German/Japanese accent). I have >automatically done this ever since the first time I was 'nailed' by this >same error. You're right, of course. The problem here is dealing with Hypercard scripts that were written long before I ever heard of Rev. Thanks to those who suggested colorizing. I've been colorizing scripts as I edit them, but I hadn't thought actually to USE these colors for this purpose. Duhhhh... Art Evans From ambassador at FourthWorld.com Fri Jan 4 13:20:00 2002 From: ambassador at FourthWorld.com (Richard Gaskin) Date: Fri Jan 4 13:20:00 2002 Subject: error messages diatribe In-Reply-To: <200201041711.MAA09667@www.runrev.com> Message-ID: AE wrote: > If there's a list of Transcript reserved words, I've never found > it. Such a list is badly needed. As Mark Mitchell suggested, there are many benefits to using distinct variable names like "tTime" instead of "time". For a discussion of naming conventions and related scripting issues see: But since your concern is primarily to deal with converted stacks, the script coloring is a great option, and there's another one as well: Transcript provides several functions to obtain lists of most of the keywords in the language. While it would be nice to be able to obtain a complete list, this will get most of them: function TranscriptTokenList get the propertyNames &cr \ & the commandNames &cr \ & the functionNames &cr \ & the colorNames sort lines of it return it end TranscriptTokenList When I ran this with Rev 1.1.1 it returned 1464 tokens -- man, what a rich language. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish your database on the Web ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From gcanyon at inspiredlogic.com Fri Jan 4 13:32:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Fri Jan 4 13:32:01 2002 Subject: Canceling pending messages In-Reply-To: References: <200201031706.MAA24889@www.runrev.com> Message-ID: At 5:27 AM -0800 1/4/02, Jim Hurley wrote: >The following script is recommended in the Rev. web site as preferable to the use of the idle message: > >on showPlayerCurrentTime >put the currentTime of player "My Player" into field "Player Progress" >send "showPlayerCurrentTime" to me in 500 milliseconds >end showPlayerCurrentTime > > >In this way, "showPlayerCuttentTime is repeated every 500 milliseconds. > >My question is: How would one stop this cycle? How does one interrupt the send routine? What part of the "pendingmessages" does one "cancel"? Just change it to: on showPlayerCurrentTime put the currentTime of player "My Player" into field "Player Progress" send "showPlayerCurrentTime" to me in 500 milliseconds set the pUpdateProgressMessage of player "My Player" to the result end showPlayerCurrentTime Now you should be able to stop the process in any script with this command: cancel (the pUpdateProgressMessage of player "My Player") You can also use a global variable -- in fact, I always have. The property idea just occurred to me. regards, Geoff From wow at together.net Fri Jan 4 14:26:00 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 4 14:26:00 2002 Subject: A memory management issue In-Reply-To: Message-ID: I'm building a project that will have a total of 1,650 cards, with each card containing one field holding approximately 20k of formatted text. I was thinking of splitting this into 4-5 separate substacks, each being about 4-5 MB in size. The main stack would contain an index to all 1,650 cards, from which the user can pull up information on any one card. My concern is with minimizing memory requirements. My understanding is that as soon as the main stack is opened, all 20 MB's worth of substacks will be pulled into RAM as well...which I don't think will work for my average customer. I realize I could make each substack into a main stack instead, and theoretically copy the contents of a formatted field from any given card in one of those stacks into a field in my primary main stack (which is not large in size). Then I would have to immediately use the destroystacks() function to purge that data stack from memory. I could basically swap data stacks into and out of memory, but this seems like a rather ugly approach. Perhaps it's the best way, though. Suggestions? Richard Miller From ludovic.thebault at laposte.net Fri Jan 4 15:08:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Fri Jan 4 15:08:01 2002 Subject: How transform a spreadsheet in an array ? Message-ID: <20020104210403.1DA884%00000000@laposte.net> I've a big list like this : Name name1 name2 name3 Data1 1 0 10 Data2 10 1 0 Data3 0 1 10 how transform it in one array ? Thank ! -- Ludovic THEBAULT (Sorry for my poooor english :-) From gcanyon at inspiredlogic.com Fri Jan 4 15:10:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Fri Jan 4 15:10:01 2002 Subject: A memory management issue In-Reply-To: References: Message-ID: >I'm building a project that will have a total of 1,650 cards, with each card >containing one field holding approximately 20k of formatted text. > >I was thinking of splitting this into 4-5 separate substacks, each being >about 4-5 MB in size. > >The main stack would contain an index to all 1,650 cards, from which the >user can pull up information on any one card. My concern is with minimizing >memory requirements. > >My understanding is that as soon as the main stack is opened, all 20 MB's >worth of substacks will be pulled into RAM as well...which I don't think >will work for my average customer. > >I realize I could make each substack into a main stack instead, and >theoretically copy the contents of a formatted field from any given card in >one of those stacks into a field in my primary main stack (which is not >large in size). Then I would have to immediately use the destroystacks() >function to purge that data stack from memory. I could basically swap data >stacks into and out of memory, but this seems like a rather ugly approach. >Perhaps it's the best way, though. > >Suggestions? >Richard Miller Off the top of my head, is there a reason the 20k of formatted text needs to be in a stack at all? Using a stack as an intelligent interface to 1650 text files would be fairly simple and clean to implement, although it does mean you have 1650 data files on disk for the user to play with/mess up. With URL file access, something like this could be done with a very simple script. regards, Geoff From benr_mc at cogapp.com Fri Jan 4 15:50:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 4 15:50:01 2002 Subject: A memory management issue In-Reply-To: Message-ID: on 4/1/02 7:01 PM, Richard D. Miller at wow at together.net wrote: > I'm building a project that will have a total of 1,650 cards, with each card > containing one field holding approximately 20k of formatted text. > ... > The main stack would contain an index to all 1,650 cards, from which the user > can pull up information on any one card. My concern is with minimizing memory > requirements. > ... > Suggestions? I've not used it myself, but Revolution has zip compression/decompression built in. It ought to do very well on text. If you don't need to do searches across all the text, but will only use the index then display a single card, you could store the data compressed (if you like, take the 'htmlText' of the fields and compress that) - then when the user selects from the index, decompress just that one nugget of data. I think this could bring the memory requirement into an acceptable range. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From psahores at easynet.fr Sat Jan 5 11:54:05 2002 From: psahores at easynet.fr (Pierre Sahores) Date: Sat Jan 5 11:54:05 2002 Subject: SQL statements from MC/Rev under Linux References: <20020105.103626.201.1.diskot123@juno.com> Message-ID: <3C372E6A.677DD520@easynet.fr> Hi the List, Tuviah, Because i could'nt have, for yet, the revdb up running under Linux, here is the scripts i continue to use to access to MySQL and PostGreSQL from within MC : on the "mc" side : > on SQLbyMC > global DBParsed > > put "test1=1&test2=2&test3=3&test4=4" into DBParsed # to replace by the SQL statements to post to the .php sockets listener script > > repeat 22 > put "z" after DBParsed > end repeat > set httpheaders to "Content-Type: application/x-www-form-urlencoded" & cr & "Content-Length:" && the length of DBParsed & cr & cr # Apache :yes ; IIS : no > post DBParsed to url "http://localhost/wmc4.xml" > > put line 3 of it into DBParsed > answer DBParsed > > end SQLbyMC on the "php" side : > > if ($REQUEST_METHOD == POST) { > > $headers = $HTTP_POST_VARS; > while (list($header, $value) = each($headers)) $exAE .= "$header=$value&"; > > print $exAE." vu !"; // using the php commands, SQL statments have to be insered there. > > } > > else print("ERROR: File Not Found". > "

File Not Found

". > "

The file you have requested does not exist on this server.


\n"); > > ?> This way run fine too and don't need to have any ODBC bridge installed. Best Regards, Pierre Sahores WEB & VPN applications & databases servers Inspection acad?mique de Seine-Saint-Denis Qualifier & produire l'avantage comp?titif BTW : I'm far ok with the complete "MC/Rev web applications server" stack model, i will post to the ones who asked about before Christmas ! ;-) From rcozens at pon.net Sat Jan 5 12:26:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat Jan 5 12:26:01 2002 Subject: Card vs Sub Stack? Message-ID: Hi All, In an application where each card serves as the user interface to a file of records (ie: there is one card per record type rather than one card per record a la HyperCard rolodex), what are the pros & cons of creating the cards as individual substacks vs all cards in a single stack? As you may have noted from my reply to Richard Miller, I'm not particularly concerned with memory implications, and even a foole like moi can see the substack approach makes several more stack scripting spaces available; but beyond that is it just six of one vs a half dozen of the other? Rob Cozens http://www.serendipitysoftware.com/who.html "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) From rcozens at pon.net Sat Jan 5 12:26:04 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat Jan 5 12:26:04 2002 Subject: Anyone going to MacWorld? In-Reply-To: Message-ID: >I'm going to be at MacWorld on Thursday and Friday of next week. How many >other Revolutionaries or MetaCardians going? I'd like to propose getting >together for drinks/dinner some night. Hi Geoff, I've been to enough MacWorlds that I'm not really interested in going this year; BUT I did tell Kevin I'd drive to The City if folks were meeting after hours. I'd prefer some evening other than Friday. BTW, is it "Revolutionaries" or "Revolutionists"? Rob Cozens http://www.serendipitysoftware.com/who.html "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) From rcozens at pon.net Sat Jan 5 12:26:08 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat Jan 5 12:26:08 2002 Subject: A memory management issue In-Reply-To: References: Message-ID: >My understanding is that as soon as the main stack is opened, all 20 MB's >worth of substacks will be pulled into RAM as well...which I don't think >will work for my average customer. Hi Richard, IMF(oolesh)O, these kinds of concerns are holdovers from days when memory & disk storage were expensive and most applications were lean. Today I can buy 256MB of iBook RAM for $30, and the memory requirements of most mainstream commercial appliactions may easily exceed 20MB. Of course I don't know your average customer. :{`) Rob Cozens http://www.serendipitysoftware.com/who.html "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) From kevin at runrev.com Sat Jan 5 14:42:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:42:01 2002 Subject: OSX Rev on classic stack? In-Reply-To: <3C31E571.B7660426@ztv.ne.jp> Message-ID: On 1/1/02 4:36 pm, cowhead wrote: > Happy new year all! I finally got a mac with OSX, so I used the carbon > version of Rev to open some stacks made with the classic version of > Metacard. Some of the stacks opened and performed quite well. Others > behaved bizarrely and one appears to have had all controls wiped clean. > It became a stack of blank cards. So is this not supported? If you > want to make a stack (not a stand alone) that will run in both > environments do you have to make 2 kinds of stacks, both classic and > OSX? Or I suppose you could make exclusively 'classic' and not supply > the OSX engine to that computer? (If you click directly on a 'classic' > stack (eg, made with the classic engine) under OSX, it automatically > opens the OSX engine, rather than the classic.) > > I'm having trouble finding the documentation on this. Any help would be > > greatly appreciated. This should work - and it should work transparently. Is it possible the problem is related to a change in version rather than a change in platform? For example, did you move a 1.0 stack to 1.1 where some behavior might be slightly different? If you're having problems with a specific stack and can't figure it out, please send it to me off-list. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:42:25 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:42:25 2002 Subject: Building: Encrypt password In-Reply-To: Message-ID: On 1/1/02 6:01 pm, Andre Rombauts wrote: > The Encrypt password check box of the Build window is not documented, it > seems. I notice it doesn't prevent the .rev file to be loaded but unless you > type first the password you can't edit a script inside an encrypted file. Check out the entry for "password" in the Transcript dictionary. > Why isn't possible to encrypt the whole file? > Why and external .rev file added to a main .rev file while building can't be > included inside the standalone (unless it is move into the main stack file > with the mover)? I don't fully understand this question - please rephrase (if the password entry in the docs doesn't solve it)? Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:42:32 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:42:32 2002 Subject: Properties not updating in properties palette In-Reply-To: <000901c193d1$e60f60e0$557e9d40@mshome.net> Message-ID: On 2/1/02 9:10 pm, Jerry Daniels wrote: > I notice in 1.1B1 that when I have the properties palette open and click > on different objects, the properties do not update as I select a > different object, but keep their former property. This is reproducible > with different fld contents. This is working here - are you sure that you haven't linked the palette? Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:42:37 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:42:37 2002 Subject: Anyone going to MacWorld? In-Reply-To: Message-ID: On 3/1/02 4:20 pm, Bill Vlahos wrote: > I'll be there too. In fact, I'm presenting a pro session on "Advanced > AirPort Networking" on Thursday (shameless plug). I vote for Thursday > too. > > Since the Rev folks are going to be there too, perhaps we can coordinate > an evening with them; and no, I don't expect them to pay for it. Whew ;-) Yes, Thursday is good for us. Drop by our stand if you're interested or drop me an email for details. (I'm writing this email on a plane on my way over to the US - so excited!) Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:43:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:43:01 2002 Subject: What's up with the time functions? In-Reply-To: Message-ID: On 3/1/02 10:06 am, Nelson Zink wrote: > put "1" into temp > convert temp to dateitems > Returns: 1970,1,1,9,0,1,5 > Implying the eon started on the ninth hour. I'm not getting this in 1.1.1B1. > put "1/1/02" into temp > convert temp to dateitems > Returns: 2002,1,1,2,0,0,3 > Implying this year started on the second hour. > > What happened to midnight? > What am I missing? We'll double check this. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:43:11 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:43:11 2002 Subject: error messages diatribe In-Reply-To: <3C357BBD.72952B51@ztv.ne.jp> Message-ID: On 4/1/02 9:54 am, cowhead wrote: > But then you would actually consult it each time? It's much easier to > just always customize your variable names. I use variables like 'time' > and 'player' all the the time, but I customize them as zaTime and > zaPlayer (because I like to script in a German/Japanese accent). I have > automatically done this ever since the first time I was 'nailed' by this > same error. Always customize your variable names in this. For every project you're on, its simple to define a couple of characters that you will incorporate into all variable names. For example, we use "rev" in Revolution's scripts for all of these (don't do that though: rev is thus reserved!). Also, you can check if something that you have typed is currently reserved by right clicking it in the script editor - to see if it opens a term in the dictionary. (But I would still use a custom prefix as the word might otherwise become reserved in a future version.) Check out the scripting style guidelines on http://www.FourthWorld.com for a few more pointers on this. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:43:16 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:43:16 2002 Subject: Creating Players & Palettes In-Reply-To: Message-ID: On 3/1/02 2:15 am, Retiarius wrote: > I'm trying to create a player via script in a standalone with a few palettes > open. When "create player" script is evoked it draws the player in a > palette. > > I've tried: > > create player "QTplayer" of cd 1 of stack "Stage" > > to no avail. > > Is there something else I can do? > > You help is greatly appreciated. You need to set the defaultStack to the stack you want to create in: set the defaultStack to the topStack Look up defaultStack and topStack in the Transcript dictionary for more info. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:43:21 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:43:21 2002 Subject: Creating an Icon Library In-Reply-To: Message-ID: On 3/1/02 2:25 am, Retiarius wrote: > I'd like to create my own library of icons. > > Is there a guide somewhere that steps you through the process? > > Where can I find more info? First, be sure you are using 1.1.1B1. Then use the Image Library feature in the Development menu. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sat Jan 5 14:43:27 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 5 14:43:27 2002 Subject: How to insert a button as a script library? In-Reply-To: Message-ID: On 4/1/02 5:39 am, Chipp Walters wrote: > I noticed in RunRev there's stack called revLibrary which has a bunch of > buttons in it which are in fact each separate libraries. For instance there's > a RevURL button which has in it all the URL scripts. > > My question is: How do I take an existing 'button script library' and insert > into a stack as a 'repository' for specific handlers? This would make it easy > to distribute modular code elements to others. > > thanks for any help on this, The Distribution Builder will copy these libraries into your standalone automatically. If you want to create your own libraries, create a stack somewhere (e.g. a plug-in) and use the insert script command to place that set of handlers into the message hierarchy (either at the back or the front). Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From diskot123 at juno.com Sat Jan 5 15:36:01 2002 From: diskot123 at juno.com (diskot123 at juno.com) Date: Sat Jan 5 15:36:01 2002 Subject: How transform a spreadsheet in an array ? Message-ID: <20020105.153824.201.11.diskot123@juno.com> >I've a big list like this : >Name name1 name2 name3 >Data1 1 0 10 >Data2 10 1 0 >Data3 0 1 10 put field 1 into tarray split tarray by return and tab; put tarray["Name"] --return 1,0,10 put tarray["Data1"] --return 10,1,0 put keys(tarray) returns Name,Data1,Data2,Data3 Tuviah From sunshine at public.kherson.ua Sat Jan 5 17:05:00 2002 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 5 17:05:00 2002 Subject: VXCMDCarbon much better In-Reply-To: <050004493615622878862@lists.macserve.net> Message-ID: on 1/5/02 22:23, Yennie at aol.com at Yennie at aol.com wrote: > Ruslan, > > VXCMDCarbon is working great on OSX so far after your last release! I am very > excited- I just got a massive speedup on OSX with apache instead of WebSTAR, > and all networking works much better! Bravo! > > Brian Great Brian! I have CC this to MC and Rev lists. :-) -- Best regards, Ruslan Zasukhin ------------------------- Paradigma. e-mail: ruslan at paradigmasoft.com web : http://www.paradigmasoft.com To subscribe to the Valentina mail list send a letter to valentina-on at lists.macserve.net From gcanyon at inspiredlogic.com Sat Jan 5 17:44:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sat Jan 5 17:44:01 2002 Subject: OSX Rev on classic stack? In-Reply-To: <3C31E571.B7660426@ztv.ne.jp> References: <3C31E571.B7660426@ztv.ne.jp> Message-ID: At 1:36 AM +0900 1/2/02, cowhead wrote: >Happy new year all! I finally got a mac with OSX, so I used the carbon >version of Rev to open some stacks made with the classic version of >Metacard. Some of the stacks opened and performed quite well. Others >behaved bizarrely and one appears to have had all controls wiped clean. >It became a stack of blank cards. So is this not supported? If you >want to make a stack (not a stand alone) that will run in both >environments do you have to make 2 kinds of stacks, both classic and >OSX? Or I suppose you could make exclusively 'classic' and not supply >the OSX engine to that computer? (If you click directly on a 'classic' >stack (eg, made with the classic engine) under OSX, it automatically >opens the OSX engine, rather than the classic.) > >I'm having trouble finding the documentation on this. Any help would be Are you simply double-clicking the stack? There are font and other appearance properties that are provided by the environment (and set automatically when you create a standalone) that would not be set if you run a stack without the development environment. regards, Geoff From gcanyon at inspiredlogic.com Sat Jan 5 18:57:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sat Jan 5 18:57:01 2002 Subject: Anyone going to MacWorld? In-Reply-To: References: Message-ID: Since everyone who's expressed an interest so far seems to agree, Thursday it is. Shall we meet at the Revolution booth at 5:45pm? (the close of the show for that day is 6pm) Rob, that doesn't work for you, so either we'll have to set up to meet you separately or come up with a different meeting place -- maybe the top of the escalators coming out of the south hall. regards, Geoff From gcanyon at inspiredlogic.com Sat Jan 5 19:07:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sat Jan 5 19:07:01 2002 Subject: Card vs Sub Stack? In-Reply-To: References: Message-ID: At 9:23 AM -0800 1/5/02, Rob Cozens wrote: >Hi All, > >In an application where each card serves as the user interface to a file of >records (ie: there is one card per record type rather than one card per >record a la HyperCard rolodex), what are the pros & cons of creating the >cards as individual substacks vs all cards in a single stack? > >As you may have noted from my reply to Richard Miller, I'm not particularly >concerned with memory implications, and even a foole like moi can see the >substack approach makes several more stack scripting spaces available; but >beyond that is it just six of one vs a half dozen of the other? Off the top of my head, having separate substacks allows you to customize a few things more easily than just having separate cards. Specifically, window size and style, at least. Also, having separate substacks allows you to have more than one visible at a time. On the card side, it allows you to share properties and behaviors more easily, and makes your project simpler. regards, Geoff From JamesHBeckmann at aol.com Sat Jan 5 20:21:01 2002 From: JamesHBeckmann at aol.com (JamesHBeckmann at aol.com) Date: Sat Jan 5 20:21:01 2002 Subject: Send Command Message-ID: <14f.6cf539f.29690029@aol.com> I am looking at the conversion of HC stacks to Rev. I have discovered true limitation of the function "value" in HC, not apparent in Rev. The "send" command concerns me though. However, I constantly interchange data between HC prorgams, maybe to be Rev files. The exchange is accomplished by the "send" and "request" commands. For instance if I download specialtext from the web at "http://www.fromhere.com" and put specialtext into the field and name the field the URL, I then want to move it to other MAC machines. In HC I am limited by characters (the card field's name will not be "send" to other machines) - either the appleevent itself or HC does not allow these characters (not to mention %, $, &, etc) to be recognized by the receiving machine. The number of characters allowed in the parameter of "send" is limited to 30. Do these same limitations occur in Rev or is it MAC system/code related? Jim From Ritch.Houdek at med.ge.com Sat Jan 5 20:45:01 2002 From: Ritch.Houdek at med.ge.com (Houdek, Ritch (MED)) Date: Sat Jan 5 20:45:01 2002 Subject: encrypting game questions Message-ID: I've thought about writing a trivia game application and was wondering if anyone had good ideas on how to split the questions & multiple choice answers out to a seperate data file. Ideally the data file would be encrypted and not readable by a text editor. The stack would understand how to read the file and decrypt its contents. Many thanks in advance. This list has really been helpful! Regards, Ritch Houdek From wow at together.net Sat Jan 5 21:47:03 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 5 21:47:03 2002 Subject: Finding In-Reply-To: Message-ID: Two search questions (I hope I've missed something in Rev...): 1. I've got a list field. It's sorted alphabetically. I want to scroll the list to the first line beginning with "k". I can't find any command that will identify that line. Normally, one would use lineoffset(). But it doesn't seem to work in Rev like it does in other programs. How can this be done? 2. I have a field with 500 lines, each line containing a number. How do I find all the lines which equal one particular value? Is there anything easier and faster than using something like the offset command in a loop? Of course, I could use externals for this. But I need this to work on Mac, Windows, and Unix. Richard From scott at tactilemedia.com Sat Jan 5 21:58:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Sat Jan 5 21:58:01 2002 Subject: Finding In-Reply-To: Message-ID: Recently, Richard D. Miller wrote: > 2. I have a field with 500 lines, each line containing a number. How do I > find all the lines which equal one particular value? Is there anything > easier and faster than using something like the offset command in a loop? If I understand your question, one way could be like the following: put myValue into N put fld myField into tData put empty into tSummary repeat with x = 1 to the number of lines of tData if line x of tData = N then put x & "," after tSummary end repeat delete last char of tSummary The variable tSummary should contain a comma delimited list of all line numbers in your field which match your test value. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From wow at together.net Sat Jan 5 22:18:01 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 5 22:18:01 2002 Subject: Finding In-Reply-To: Message-ID: Scott: Thanks for the suggestion, but I was thinking of some a little bit faster...like a true find or search command (which seems to be SORELY lacking from Rev). The routine you propose is WAY too slow for my needs. It might work ok for a few hundred lines, but not for thousands. Richard > Recently, Richard D. Miller wrote: > >> 2. I have a field with 500 lines, each line containing a number. How do I >> find all the lines which equal one particular value? Is there anything >> easier and faster than using something like the offset command in a loop? > > If I understand your question, one way could be like the following: > > put myValue into N > put fld myField into tData > put empty into tSummary > repeat with x = 1 to the number of lines of tData > if line x of tData = N then put x & "," after tSummary > end repeat > delete last char of tSummary > > The variable tSummary should contain a comma delimited list of all line > numbers in your field which match your test value. > > Regards, > > Scott Rossi > Creative Director > > Tactile Media, Multimedia & Design > Email: scott at tactilemedia.com > Web: www.tactilemedia.com > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From mazzapaolo at libero.it Sat Jan 5 23:12:01 2002 From: mazzapaolo at libero.it (paolo mazza) Date: Sat Jan 5 23:12:01 2002 Subject: Wait command In-Reply-To: <200201051712.MAA26487@www.runrev.com> Message-ID: Can I disable the mouse while I am listening a speech from the MAC? I tryed with the wait command, but after the given time the system accomplish what the user did. In other words I have a script: do "say" && quote & field "text1" & quote as AppleScript wait 100 seconds If the user click a button during the "waiting time" the system wait fo 100 seconds and then execute the button. How can I "freeze" the system during the speech so that nothing happen when the time has expired even if the user clicked some buttons? Best regards, Paolo Mazza From bvlahos at jpl.nasa.gov Sat Jan 5 23:25:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Sat Jan 5 23:25:01 2002 Subject: Finding References: Message-ID: <3C37D16D.D2079BDF@jpl.nasa.gov> "Richard D. Miller" wrote: > Two search questions (I hope I've missed something in Rev...): > > 1. I've got a list field. It's sorted alphabetically. I want to scroll the > list to the first line beginning with "k". I can't find any command that > will identify that line. Normally, one would use lineoffset(). But it > doesn't seem to work in Rev like it does in other programs. How can this be > done? I think you want the behavior of the Transcript Dictionary search function. There is a way to look at that script but I can't remember it. I'm sure someone else on this list will know how. Alternatively, you could do a: find return & "k" in field xxx -- the "k" could be a variable for the letter you want. This will scroll the field to the selection but it will be centered vertically (I don't know why this is the behavior) and will draw a box around the word. This should be very fast. > > > 2. I have a field with 500 lines, each line containing a number. How do I > find all the lines which equal one particular value? Is there anything > easier and faster than using something like the offset command in a loop? > > Of course, I could use externals for this. But I need this to work on Mac, > Windows, and Unix. Do you want to find the lines themselves or the line numbers? If you want to display only the lines with the information you want the filter command. It is very fast. This is also demonstrated with the previously mentioned Transcript Dictionary search. Note that the filter command is "destructive" in that it will eliminate the lines not containing what you are looking for. To get around that simply put the entire contents into a variable so that you can recover everything. > > > Richard > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From bvlahos at jpl.nasa.gov Sat Jan 5 23:48:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Sat Jan 5 23:48:01 2002 Subject: Properties not updating in properties palette References: Message-ID: <3C37D6AA.8C898353@jpl.nasa.gov> Kevin, I have seen the same thing (OS X Carbon verison). I have been trying to characterize it. Bill Kevin Miller wrote: > On 2/1/02 9:10 pm, Jerry Daniels wrote: > > > I notice in 1.1B1 that when I have the properties palette open and click > > on different objects, the properties do not update as I select a > > different object, but keep their former property. This is reproducible > > with different fld contents. > > This is working here - are you sure that you haven't linked the palette? > > Kevin > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From wow at together.net Sat Jan 5 23:56:02 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 5 23:56:02 2002 Subject: Finding In-Reply-To: <3C37D16D.D2079BDF@jpl.nasa.gov> Message-ID: Bill: > > "Richard D. Miller" wrote: > >> Two search questions (I hope I've missed something in Rev...): >> >> 1. I've got a list field. It's sorted alphabetically. I want to scroll the >> list to the first line beginning with "k". I can't find any command that >> will identify that line. Normally, one would use lineoffset(). But it >> doesn't seem to work in Rev like it does in other programs. How can this be >> done? > > I think you want the behavior of the Transcript Dictionary search function. > There is a way to look at that script but I can't remember it. I'm sure > someone else on this list will know how. I'd like to know more about the Transcript Dictionary search function. > > Alternatively, you could do a: > find return & "k" in field xxx -- the "k" could be a variable for the > letter you want. Essentially, that's what I've ended up doing so far, except I'm using the lineoffset function in a loop, having it look for the return character + the first character of the line(s) I'm searching for. It's working well enough. > > This will scroll the field to the selection but it will be centered vertically > (I don't know why this is the behavior) and will draw a box around the word. > This should be very fast. > >> >> >> 2. I have a field with 500 lines, each line containing a number. How do I >> find all the lines which equal one particular value? Is there anything >> easier and faster than using something like the offset command in a loop? >> >> Of course, I could use externals for this. But I need this to work on Mac, >> Windows, and Unix. > > Do you want to find the lines themselves or the line numbers? If you want to > display only the lines with the information you want the filter command. It is > very fast. This is also demonstrated with the previously mentioned Transcript > Dictionary search. Note that the filter command is "destructive" in that it > will eliminate the lines not containing what you are looking for. To get > around that simply put the entire contents into a variable so that you can > recover everything. I looked at that command. I actually need the line numbers...not the lines themselves. The line numbers serve as indexes to additional data. Richard > >> >> >> Richard >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From scott at tactilemedia.com Sun Jan 6 00:00:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Sun Jan 6 00:00:01 2002 Subject: Finding In-Reply-To: Message-ID: Recently, Richard D. Miller wrote: > Thanks for the suggestion, but I was thinking of some a little bit > faster...like a true find or search command (which seems to be SORELY > lacking from Rev). The routine you propose is WAY too slow for my needs. It > might work ok for a few hundred lines, but not for thousands. Perhaps you could define what "WAY too slow" is. By searching a variable instead of the field itself, MC's processing time is significantly reduced. MC is quite fast in this regard; you may wish to try some tests. As a small test of my own, I made a field, filled it with 5000 lines of random numbers, and ran the routine I suggested to find all occurrences of the number 10. On a 450mHz Mac, MC returns the result in 1.016 seconds. Doesn't seem too slow to me... Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From ludovic.thebault at laposte.net Sun Jan 6 00:38:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Sun Jan 6 00:38:01 2002 Subject: How transform a spreadsheet in an array ? In-Reply-To: <20020105.153824.201.11.diskot123@juno.com> References: <20020105.153824.201.11.diskot123@juno.com> Message-ID: <20020106063514.4D24C8%00000000@laposte.net> diskot123 at juno.com wrote: >put tarray["Name"] --return 1,0,10 >put tarray["Data1"] --return 10,1,0 > >put keys(tarray) returns Name,Data1,Data2,Data3 I've found this, but i want something like this : put tarray["Name3","Data3"] -- return 10 And if i combine tarray just after split, the result is complety different. From terry at discovery.nl Sun Jan 6 01:11:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Sun Jan 6 01:11:01 2002 Subject: Creating an Icon Library In-Reply-To: <200201060013.TAA04625@www.runrev.com> Message-ID: >> I'd like to create my own library of icons. >> Is there a guide somewhere that steps you through the process? >> Where can I find more info? > > First, be sure you are using 1.1.1B1. Then use the Image Library feature in > the Development menu. OK, and then? Should I copy/paste? Should I paint? Should I import? Terry From gcanyon at inspiredlogic.com Sun Jan 6 01:21:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 6 01:21:01 2002 Subject: Finding In-Reply-To: References: Message-ID: At 8:58 PM -0800 1/5/02, Scott Rossi wrote: >As a small test of my own, I made a field, filled it with 5000 lines of >random numbers, and ran the routine I suggested to find all occurrences of >the number 10. On a 450mHz Mac, MC returns the result in 1.016 seconds. >Doesn't seem too slow to me... Whenever repeating your way through data, the repeat for each form is generally much faster. This, for example, will execute in about 3 ticks (.05 seconds) on a field with 5000 lines of numbers from 1 to 20 on my 400mHz Mac: on mouseUp put 10 into N put fld "testField" into tData put empty into tSummary put 1 into x repeat for each line L in tData if L = N then put x & "," after tSummary add 1 to x end repeat delete last char of tSummary end mouseUp Bill Vlahos is right about the filter command. I modified the routine that generated the random numbers for the above test to put the line number after the random number, so the data looked like this: 20 1 8 2 15 3 4 4 3 5 10 6 5 7 19 8 1 9 6 10 2 11 This allows using the Filter command: copy the data, filter the data, then pick up the line number (or whatever else) out of the filter results. The following script executes in 6 ticks, but not on 5000 lines of data, but 50,000!! on mouseUp put fld "testField" into tData filter tData with "10*" end mouseUp regards, Geoff From gcanyon at inspiredlogic.com Sun Jan 6 01:23:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 6 01:23:01 2002 Subject: Wait command In-Reply-To: References: Message-ID: At 5:19 AM +0100 1/6/02, paolo mazza wrote: >If the user click a button during the "waiting time" the system wait fo 100 >seconds and then execute the button. >How can I "freeze" the system during the speech so that nothing happen when >the time has expired even if the user clicked some buttons? Check out Flush Events regards, Geoff From gcanyon at inspiredlogic.com Sun Jan 6 01:29:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 6 01:29:00 2002 Subject: How transform a spreadsheet in an array ? In-Reply-To: <20020106063514.4D24C8%00000000@laposte.net> References: <20020105.153824.201.11.diskot123@juno.com> <20020106063514.4D24C8%00000000@laposte.net> Message-ID: >diskot123 at juno.com wrote: >>put tarray["Name"] --return 1,0,10 >>put tarray["Data1"] --return 10,1,0 >> >>put keys(tarray) returns Name,Data1,Data2,Data3 > >I've found this, but i want something like this : >put tarray["Name3","Data3"] -- return 10 > Revolution doesn't support multi-dimension arrays. You can accomplish many of the same things by simply using what would be the keys of a multi-dimension array, because Revolution arrays are associative, meaning that the keys don't have to be 1,2,3,4, etc. They can be "apple", "peach", "pear", etc. which means they can be "1,1", "1,2", "1,3" and "2,1", "2,2", "2,3" etc. But in your case, there isn't a built-in way to transform your data into such an array. You could easily script it, though. regards, Geoff From scott at tactilemedia.com Sun Jan 6 01:34:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Sun Jan 6 01:34:01 2002 Subject: Finding In-Reply-To: Message-ID: Recently, Geoff Canyon wrote: > Whenever repeating your way through data, the repeat for each form is > generally much faster. Great point Geoff. I didn't realize the counter would increment correctly *within* the repeat loop. My test file completed 50,000 lines in 10 ticks (161 milliseconds). So much for repeat loops being way too slow. :-) Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From chipp at chipp.com Sun Jan 6 02:06:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Sun Jan 6 02:06:01 2002 Subject: new SA FileUp Library... Message-ID: Just finished V1.0 of altSAFileUp Library. This Library works instead of FTP to upload files and form data to web servers. It's especially helpful for interacting with existing web applications. The library can be found at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm. SA FileUp is an HTTP file transfer ActiveX server control which can be found at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm. Thanks to Jerry Daniels for his help and insights. And of course the amazing Chris Bohnert for his overall programming wizardry...even if he never understands transcript ;-) ---------------------------------------------------------------------------- ---- altPostSAFileUp command The altPostSAFileup command posts files and form data to a Microsoft Internet Information Server (IIS) using the industry standard Sofware Artisans FileUp ActiveX control. It sends the completedMessage when finished. The HTTP response can be accessed from the custom property altSAFileUpResponse which can be checked in the completedMessage handler. altPostSAFileup Host, Page, formList [,completedMessage] example: altPostSAFileUp "www.altuit.com","test.asp",myList,"myHTTPresponse" Parameters: The Host is a valid URL to a web server with SAFileUp ActiveX control installed. The Page is an valid Page request (typically a .asp page). The formList is a list of Form Variables and their respective contents. A tab delimited line exists for each form variable with the first item being the variable name, the second item is either file or var depending on whether a file or variable is being sent. The third item is either the value of the file or the value of a variable. ex. This list variable sends two files and a password variable: tImage file "C:\test.jpg" tFile file "C:\test.zip" tpassword var "fred123" It is important to note the path delimeter MUST BE "\" not the RR standard "/"! The completedMessage is an optional message sent to the stack upon completion of the command. customProperties of SAFileUp Lib: altSAFileUpHeader - the header text being sent minus the Host and Page and Content Length altSAFileUpTimeOutSecs - the time in seconds for altSAFileUp to quit. altSAFileUpResponse - the HTTP response sent from the server or "timeout" if no response. Use with the completedmessage parameter to get the HTTP response. To install: Copy the button "SAFileUp Lib" into your stack. Then insert into the open stack or startup handler of your stack: insert the script of btn "SAFileUp Lib" into back Then you can call the altPostSAFileUp command from anywhere in your stack. Portions of this script used with permission of Jerry Daniels. Muchos Gracias Jerry! For more plugins, source code and scripts, visit the Altuit RunRev Website. -------------- next part -------------- An HTML attachment was scrubbed... URL: From BradAllen at mac.com Sun Jan 6 02:52:01 2002 From: BradAllen at mac.com (Brad Allen) Date: Sun Jan 6 02:52:01 2002 Subject: grayed out menu items Message-ID: Sometimes I find the following menu items mysteriously grayed out, even in stacks I've newly created. It doesn't matter which tool I have selected. Object -> Stack Properties Object -> Card Properties Object - > New Card ...and many more. For instance, I often can't group selected controls because the Group Selected option is greyed out under the object menu. Usually I can accomplish the necessary task through a script (such as "create card" or "edit script of this stack"), but it's a bit frustrating not having these basic menu functions available. Is this a bug, or something I'm failing to understand? I'm using Revolution 1.1.1 beta on Mac OS 9.21. From wow at together.net Sun Jan 6 07:31:01 2002 From: wow at together.net (Richard D. Miller) Date: Sun Jan 6 07:31:01 2002 Subject: Finding In-Reply-To: Message-ID: Geoff: Thanks for the suggestion. I'll try this out. When I said, "way too slow" before, that was because I need to perform (on average) ten such searches per user request...since the user is often searching on ten different variables per request. So if it took 1 second per search, that would total 10 seconds...and that's before the results are even analyzed. It's just too long. I don't know if this method will work as well for variations such as, "where x > 10 and x < 20 " Will it still be fast enough? I'll give it a try. Thanks to both of you for the suggestions. Richard > At 8:58 PM -0800 1/5/02, Scott Rossi wrote: >> As a small test of my own, I made a field, filled it with 5000 lines of >> random numbers, and ran the routine I suggested to find all occurrences of >> the number 10. On a 450mHz Mac, MC returns the result in 1.016 seconds. >> Doesn't seem too slow to me... > > Whenever repeating your way through data, the repeat for each form is > generally much faster. This, for example, will execute in about 3 ticks (.05 > seconds) on a field with 5000 lines of numbers from 1 to 20 on my 400mHz Mac: > > on mouseUp > put 10 into N > put fld "testField" into tData > put empty into tSummary > put 1 into x > repeat for each line L in tData > if L = N then put x & "," after tSummary > add 1 to x > end repeat > delete last char of tSummary > end mouseUp > > Bill Vlahos is right about the filter command. I modified the routine that > generated the random numbers for the above test to put the line number after > the random number, so the data looked like this: > > 20 1 > 8 2 > 15 3 > 4 4 > 3 5 > 10 6 > 5 7 > 19 8 > 1 9 > 6 10 > 2 11 > > This allows using the Filter command: copy the data, filter the data, then > pick up the line number (or whatever else) out of the filter results. The > following script executes in 6 ticks, but not on 5000 lines of data, but > 50,000!! > > on mouseUp > put fld "testField" into tData > filter tData with "10*" > end mouseUp > > regards, > > Geoff > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From chipp at chipp.com Sun Jan 6 07:35:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Sun Jan 6 07:35:01 2002 Subject: New Altuit XML TreeView List Control beta Message-ID: Just finished up the XML TreeView List Control beta. Hasn't been tested yet on Mac, but seems to work well on PC's. Can be found at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm I'll use this control to create an explorer-like outline viewer for processing data to/from the web (though you don't need the web to use this). Any feedback is welcome...even desired. See below. ---------------------------------------------------------------------------- ---- Altuit's XML TreeView List Control can be set using a single command and XML string. Along with customized rendering options, it can also automatically process handlers with parameters based upon which line is clicked. It maintains a 'state' for the last clicked and available item. Custom icons can be set for each item as well. Simple to use: set the altXML of fld ListXML to {XMLstring} Features: The XMLTreeView control lets you: ?Customize the + and - expand/contract buttons. Just replace the images: imgMinus and imgPlus with ones you wish to use. ?Change the Font Name, Size and Style. Just be sure to check the 'Fixed Line Height' checkbox. ?Assign different icons for different list items. Any element can have an icon attribute, which when set to an image, will display for its' respective list item. Use the fixedLineHeight property settings to expand the line to accomodate different sizes of icons ?Assign handler with a custom parameter for a list item. Any element can have an attribute which lists a handler to call when clicked on along with a custom parameter if so desired. ?Support for unlimited(?) nested elements. (Currently only tested to around 5, but it should work as the parser is iterative). -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedl at voyager.net Sun Jan 6 08:50:01 2002 From: tedl at voyager.net (Ted) Date: Sun Jan 6 08:50:01 2002 Subject: MacWorld Message-ID: <002801c196b9$7d4e8aa0$aa755dd8@egl> Good luck to the RunRev team at MacWorld! I hope this generates lots of interest in your fantastic product. Ted From depstein at att.net Sun Jan 6 10:22:01 2002 From: depstein at att.net (David Epstein) Date: Sun Jan 6 10:22:01 2002 Subject: Change a spreadsheet to an array In-Reply-To: <200201051707.MAA26155@www.runrev.com> Message-ID: Message: 4 Ludovic THEBAULT wrote: >I've a big list like this : >Name name1 name2 name3 >Data1 1 0 10 >Data2 10 1 0 >Data3 0 1 10 >how transform it in one array ? If the spreadsheet is tab-delimited, and in the variable "myData" on loadMyArray myData global myArray set the itemDelimiter to tab repeat with n = 2 to the number of lines in myData repeat with i = 2 to the number of items in line 1 of myData get item i of line n of myData put it into myArray[item 1 of line n of myData,item n of line 1 of myData] end repeat end repeat end loadMyArray -- from myArray, you can retrieve any data cell by getting "myArray[rowName,columnName]" -- where rowName is a string like "Data1" and columnName is a string like "name1" David Epstein From eijkhout at cs.utk.edu Sun Jan 6 12:14:13 2002 From: eijkhout at cs.utk.edu (Victor Eijkhout) Date: Sun Jan 6 12:14:13 2002 Subject: What is the difference between clicking and "send mouseup" Message-ID: What is the difference between clicking ona button with a "mouseup" handler, and typing in the message box, the latter divided up in cases where the hand and the pointer tool are enabled? Here's the behaviour that I see: message box, pointer tool enabled: nothing happens message box, hand tool enabled: error message Script compile error: Error description: clicking on the button: it works, or sometimes rev crashes I have no idea even where to start analysing this situation. -- Victor Eijkhout tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/ From gcanyon at inspiredlogic.com Sun Jan 6 14:56:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 6 14:56:01 2002 Subject: What is the difference between clicking and "send mouseup" In-Reply-To: References: Message-ID: At 11:08 AM -0500 1/6/02, Victor Eijkhout wrote: >What is the difference between clicking ona button with a "mouseup" handler, and typing in the message box, the latter divided up in cases where the hand and the pointer tool are enabled? > >Here's the behaviour that I see: >message box, pointer tool enabled: nothing happens >message box, hand tool enabled: error message >Script compile error: >Error description: >clicking on the button: it works, or sometimes rev crashes > >I have no idea even where to start analysing this situation. As far as I know there shouldn't be any in the context you're describing. If you have two stacks open and the one with the button isn't in front (and you send "mouseUp" to it specifying the stack as well) then there might be a difference because references to controls, etc., won't resolve properly. Can you post the mouseUp handler from the button? In general (donning fire-protective clothing here) you shouldn't do either of these. If you have a behavior you want a button to trigger, but that you also want to be able to get in another way, then you should have something like this in the mouseUp of the button: on mouseUp someGeneralRoutine end mouseUp And then if you want to get that behavior elsewhere, you just need to: someGeneralRoutine You have to watch for the context, though, to be sure any references to controls, etc, resolve the way you think they will. regards, Geoff From pixelbird at interisland.net Sun Jan 6 15:49:00 2002 From: pixelbird at interisland.net (Ken Norris) Date: Sun Jan 6 15:49:00 2002 Subject: What is the difference between clicking and "send mouseup" In-Reply-To: Message-ID: on 1/6/02 8:08 AM, Victor Eijkhout at eijkhout at cs.utk.edu wrote: > What is the difference between clicking ona button with a "mouseup" > handler, and typing in the message > box, the latter divided up in cases where the hand and the pointer > tool are enabled? > > Here's the behaviour that I see: > message box, pointer tool enabled: nothing happens > message box, hand tool enabled: error message > Script compile error: > Error description: > clicking on the button: it works, or sometimes rev crashes > > I have no idea even where to start analysing this situation. ---------- Hello Victor, I'm a HyperCard programmer (of sorts) who is going to be making Rev stacks and transferrring stack handlers etc., from HC, very soon, so I'm very far from being a Rev expert, but I do know some things about HC which has many similarities. In HC, the 'send mouseUp' command normally belongs in an offscreen handler in a card, bg, or other domain or object. You can, of course, use a mouseUp message in a button to 'send mouseUp' to ANOTHER object, but NOT to itself. HTH, and best regards, Ken N. From sarahr at genesearch.com.au Sun Jan 6 17:11:00 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 6 17:11:00 2002 Subject: Finding In-Reply-To: Message-ID: >> I think you want the behavior of the Transcript Dictionary search function. >> There is a way to look at that script but I can't remember it. I'm sure >> someone else on this list will know how. > I'd like to know more about the Transcript Dictionary search function. Here is the relevant script from the Transcript dictionary. This script is executed when the popup is set to scroll. "me" is the contents of the field where you type what you want to scroll to. put lineOffset(return & me, field "List") + 1 into currentLine if currentLine > 1 then -- typed field matches a line set the hilitedLines of field "List" to currentLine set the scroll of field "List" to \ (currentLine - 1) * the effective textHeight of field "List" end if Cheers, Sarah From david.bovill at opn-technologies.com Sun Jan 6 17:32:35 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Sun Jan 6 17:32:35 2002 Subject: Converting colour names: Hex & RGB colour values... In-Reply-To: <3C34D570.37A7D28@pacbell.net> Message-ID: There are three ways of specifying a colour: name, rgb, and htm hexcolour... How do I convert between them? I was about to write a routing to convert rgb to html colour values, and I couldn't get around the problem of the colour functions returning colour names instead of rgb triplets - anyway I am sure there must be a built in technique? From SaultsJ at missouri.edu Sun Jan 6 18:02:01 2002 From: SaultsJ at missouri.edu (J. Scott Saults) Date: Sun Jan 6 18:02:01 2002 Subject: audioclips on a Mac Message-ID: Surely this has been address before, but I couldn't find anything relevant by searching my email archives or those athttp://lists.runrev.com/pipermail/use-revolution/ of use-revolution (BTW, aren't there any good search tools available for these archives?) I did find this question asked weeks ago, but could not find any response. HOW DO I IMPORT AN AUDIOCLIP INTO A STACK AND PLAY IT CORRECTLY, on a Mac? WHAT I HAVE TIED THAT DOES NOT WORK: I created a 16-bit Wave file , with a sampling rate of 44.1 k (Using the application "SoundEdit 16"). Using the "Application Overview", and the audioclip tab for importing, I imported the file so that it appears in the overview as part of the stack. Then I simply executed the command: play audioclip . Something DID play, but it was mostly just a burst of noise. Can someone please help me. What have I done wrong? How can a play a sound, without loading a and displaying a quicktime player? (Actually my problems with the severe limitations of Revolution/MC sound playback go well beyond this issue, but until I can play a single sound, I won't bother to ask about playing a sequence of sounds.) Thanks for the help. Scott Saults J. Scott Saults, Ph.D. Research Associate email: SaultsJ at missouri.edu Department of Psychology 210 McAlester Hall From jdhardin at facstaff.wisc.edu Sun Jan 6 18:25:01 2002 From: jdhardin at facstaff.wisc.edu (Jeff Hardin) Date: Sun Jan 6 18:25:01 2002 Subject: use-revolution digest, Vol 1 #93 - 17 msgs In-Reply-To: <200201060008.TAA04287@www.runrev.com> References: <200201060008.TAA04287@www.runrev.com> Message-ID: Hi folks- Any progress on the QuickTime 5 standard controller issues? Just checking... Cheers, Jeff -- ********************************* Jeff Hardin - Dept. of Zoology - Univ. of Wisconsin 1117 W. Johnson St. - Madison, WI 53706 USA voice: (608) 262-9634 (office)/ (608) 265-2520 (lab) fax: (608) 262-7319 email: jdhardin at facstaff.wisc.edu WWW: http://www.wisc.edu/zoology/faculty/fac/Har/Har.html ********************************* From SaultsJ at missouri.edu Sun Jan 6 18:28:01 2002 From: SaultsJ at missouri.edu (J. Scott Saults) Date: Sun Jan 6 18:28:01 2002 Subject: audioclips on a Mac Message-ID: I had asked >Can someone please help me. What have I done wrong? How can a play a >sound, without loading a and displaying a quicktime player? But, I have discovered that an AIFF file does play OK. So, let me ask two different questions about audio in Revolution. 1. What audio formats are supported on a Mac, and on Windows? 2. What is the best way to play a SEQUENCE of sounds with precise, regular, onset to onset times. In SuperCard or HyperCard, I can simply issue a series of play commands, and the sounds are simply cued to play one after another. However, Revolution/MC cannot do this, so what is the best way to approximate this behavior? Are there any Mac external commands that could accomplish this in Rev/MC? Thanks again for the help. Scott Saults J. Scott Saults, Ph.D. Research Associate email: SaultsJ at missouri.edu Department of Psychology 210 McAlester Hall From mike at cyber-ny.com Sun Jan 6 19:21:01 2002 From: mike at cyber-ny.com (Mike Brown) Date: Sun Jan 6 19:21:01 2002 Subject: audioclips on a Mac In-Reply-To: Message-ID: Hi Scott, I have successfully used Sound Edit to create Wav and AIF file formats at 8 bit with a sampling rate between 44k to 22k. These will play on the Mac or on Windows. My experience has been that 16 bit sounds imported into Rev or Metacard from Sound Edit do not work. They sound like white noise. Mike Brown Cyber-NY Interactive 34 East 23rd Street New York, NY 10010 on 1/6/02 6:27 PM, J. Scott Saults at SaultsJ at missouri.edu wrote: >> Can someone please help me. What have I done wrong? How can a play a >> sound, without loading a and displaying a quicktime player? > Scott Saults > > J. Scott Saults, Ph.D. > Research Associate > email: SaultsJ at missouri.edu > Department of Psychology > 210 McAlester Hall > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From chipp at chipp.com Sun Jan 6 20:02:00 2002 From: chipp at chipp.com (Chipp Walters) Date: Sun Jan 6 20:02:00 2002 Subject: New Altuit XML TreeView List Control beta In-Reply-To: Message-ID: Just tried it out on a Mac...had to fix the ink property for the hilite graphic. New beta version 0.91 is up... -Chipp -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Chipp Walters Sent: Sunday, January 06, 2002 6:35 AM To: use-revolution at lists.runrev.com Subject: New Altuit XML TreeView List Control beta Just finished up the XML TreeView List Control beta. Hasn't been tested yet on Mac, but seems to work well on PC's. Can be found at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm I'll use this control to create an explorer-like outline viewer for processing data to/from the web (though you don't need the web to use this). Any feedback is welcome...even desired. See below. ---------------------------------------------------------------------------- -- Altuit's XML TreeView List Control can be set using a single command and XML string. Along with customized rendering options, it can also automatically process handlers with parameters based upon which line is clicked. It maintains a 'state' for the last clicked and available item. Custom icons can be set for each item as well. Simple to use: set the altXML of fld ListXML to {XMLstring} Features: The XMLTreeView control lets you: ?Customize the + and - expand/contract buttons. Just replace the images: imgMinus and imgPlus with ones you wish to use. ?Change the Font Name, Size and Style. Just be sure to check the 'Fixed Line Height' checkbox. ?Assign different icons for different list items. Any element can have an icon attribute, which when set to an image, will display for its' respective list item. Use the fixedLineHeight property settings to expand the line to accomodate different sizes of icons ?Assign handler with a custom parameter for a list item. Any element can have an attribute which lists a handler to call when clicked on along with a custom parameter if so desired. ?Support for unlimited(?) nested elements. (Currently only tested to around 5, but it should work as the parser is iterative). -------------- next part -------------- An HTML attachment was scrubbed... URL: From evans at evans.pgh.pa.us Sun Jan 6 20:26:00 2002 From: evans at evans.pgh.pa.us (Arthur Evans Jr) Date: Sun Jan 6 20:26:00 2002 Subject: What is the difference between clicking and "send mouseup" In-Reply-To: References: Message-ID: At 11:08 AM -0500 1/6/02, Victor Eijkhout wrote: >What is the difference between clicking on a button with a >"mouseup" handler, and typing in the >message box, the latter divided up in cases where the hand and the >pointer tool are enabled? Here are two differences in Hypercard; I'll gues they apply to Rev. If the button is a member of a button family, clicking on it will hilite it and unhilite others in the family; sending mouseUp won't. If the button is autoHilite, clicking on it will deselect anything already selected; sending mouseUp won't. I spend a lot of time once debugging that first difference before I realized what was happeing. Art Evans From sarahr at genesearch.com.au Sun Jan 6 22:33:00 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 6 22:33:00 2002 Subject: Multiple windows Message-ID: I want to be able to open multiple copies of the same stack/window at the same time. These will be palettes showing different charts and I can't tell how many I will need at a time although I know the maximum number I would need. Firstly, can I open copies of the same window? Rev does this with multiple script editor windows open at a time but can I do this through scripting? If that doesn't work, I can probably create new stacks on the fly, but I found that using the "create stack" command always gives a new mainStack when I want a new subStack. If none of these are possible, I guess I'll just have to create the maximum number in advance but show or hide them according to demand, but this isn't a very neat solution. Any help would be much appreciated. Sarah From shaosean at unitz.ca Sun Jan 6 23:04:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Sun Jan 6 23:04:01 2002 Subject: Multiple windows References: Message-ID: <00b801c19730$00452380$88b15bd1@dreamlanpc> i did something similiar.. i can't find the code that i used, but here is something that should work code in the button or function that will display the palettes on mouseUp if (stackName is not among the lines of the openStacks()) then go to stack stackName in a new window else send "cloneMe" to stack stackName end if end mouseUp put this code in the stack script on cloneMe close this stack end cloneMe hope that helps From undo at cloud9.net Sun Jan 6 23:07:01 2002 From: undo at cloud9.net (andu) Date: Sun Jan 6 23:07:01 2002 Subject: Multiple windows References: Message-ID: <3C391DB3.81F85CAC@cloud9.net> Sarah Reichelt wrote: > > I want to be able to open multiple copies of the same stack/window at the > same time. These will be palettes showing different charts and I can't tell > how many I will need at a time although I know the maximum number I would > need. > > Firstly, can I open copies of the same window? Rev does this with multiple > script editor windows open at a time but can I do this through scripting? > > If that doesn't work, I can probably create new stacks on the fly, but I > found that using the "create stack" command always gives a new mainStack > when I want a new subStack. Create stacks and set their mainStack property to whatever you need. Also look up templateStack() function if that can be of any help. > > If none of these are possible, I guess I'll just have to create the maximum > number in advance but show or hide them according to demand, but this isn't > a very neat solution. > > Any help would be much appreciated. > > Sarah > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution -- __________________________ Regards, Andu From chipp at chipp.com Mon Jan 7 00:14:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Mon Jan 7 00:14:01 2002 Subject: New Altuit XML TreeView List Control beta In-Reply-To: Message-ID: I should mention, the XML TreeView control takes advantage of some new capabilities of RR1.1.1 beta engine which I believe is the same as MC 2.4.1 engine. This should work in MetaCard as well, but it WILL NOT WORK in RR 1.1 or below. -Chipp -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Chipp Walters Sent: Sunday, January 06, 2002 6:35 AM To: use-revolution at lists.runrev.com Subject: New Altuit XML TreeView List Control beta Just finished up the XML TreeView List Control beta. Hasn't been tested yet on Mac, but seems to work well on PC's. Can be found at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm I'll use this control to create an explorer-like outline viewer for processing data to/from the web (though you don't need the web to use this). Any feedback is welcome...even desired. See below. ---------------------------------------------------------------------------- -- Altuit's XML TreeView List Control can be set using a single command and XML string. Along with customized rendering options, it can also automatically process handlers with parameters based upon which line is clicked. It maintains a 'state' for the last clicked and available item. Custom icons can be set for each item as well. Simple to use: set the altXML of fld ListXML to {XMLstring} Features: The XMLTreeView control lets you: ?Customize the + and - expand/contract buttons. Just replace the images: imgMinus and imgPlus with ones you wish to use. ?Change the Font Name, Size and Style. Just be sure to check the 'Fixed Line Height' checkbox. ?Assign different icons for different list items. Any element can have an icon attribute, which when set to an image, will display for its' respective list item. Use the fixedLineHeight property settings to expand the line to accomodate different sizes of icons ?Assign handler with a custom parameter for a list item. Any element can have an attribute which lists a handler to call when clicked on along with a custom parameter if so desired. ?Support for unlimited(?) nested elements. (Currently only tested to around 5, but it should work as the parser is iterative). -------------- next part -------------- An HTML attachment was scrubbed... URL: From gcanyon at inspiredlogic.com Mon Jan 7 01:51:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 7 01:51:01 2002 Subject: audioclips on a Mac In-Reply-To: References: Message-ID: >Surely this has been address before, but I couldn't find anything relevant by searching my email archives or those athttp://lists.runrev.com/pipermail/use-revolution/ of use-revolution (BTW, aren't there any good search tools available for these archives?) I did find this question asked weeks ago, but could not find any response. > >HOW DO I IMPORT AN AUDIOCLIP INTO A STACK AND PLAY IT CORRECTLY, on a Mac? > 16 bit, 11kHz, uncompressed AIFF works fine for me, just using the play command. Mac OS 9.0.4. I haven't tried wav files. regards, Geoff From sunshine at public.kherson.ua Mon Jan 7 04:13:01 2002 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 7 04:13:01 2002 Subject: VXCMD b8 -> b9 In-Reply-To: Message-ID: on 1/6/02 5:21, Peter McConachie at pmccon at bigpond.net.au wrote: > Problem2 > VXCMD 1.8.10b8 2Jan2002 > Have perfectly satisfactory MetaCard Classic application and database > running with Valentina Engine 1.8.9r7. Now substitute Valentina Engine > 1.8.10b8. > > MetaCard crashes with 1010 type error at following command. > get Valentina("SetDebugLevel", 3) > This is the first Valentina command called. Database is unencrypted. > > Reviewed latest documentation. Appears as if level 3 has been dropped. Tried > get Valentina("SetDebugLevel", 2). Once again crashed with type 1010 error. Hi Peter, Please download 1.8.10b9. It fix this problem. Also note, that there is 2 archives now: VXCMD Classic, xfcn for HP and SC VXCMD Carbon, for MetaCard and Revolution. Second archive now use NOT xfcn, but CODE resource. So if you use MC Carbon you need remove from your stack xfcn Valentina And copy from my example stack CODE. If you work with HP, or MC Classic you need to use VXCMD Classic shared lib And still use xfcn resource. Note, that xfcn is not able use Carbon shared lib. -- Best regards, Ruslan Zasukhin ------------------------- Paradigma. e-mail: ruslan at paradigmasoft.com web : http://www.paradigmasoft.com To subscribe to the Valentina mail list send a letter to valentina-on at lists.macserve.net From g.castre at wanadoo.fr Mon Jan 7 05:01:00 2002 From: g.castre at wanadoo.fr (Guillaume CASTRE) Date: Mon Jan 7 05:01:00 2002 Subject: Videoclip to resize Message-ID: <3C396F80.3080209@wanadoo.fr> Hello from france, I import a videoclip into my application. I can play it into the stack with "Play videoclip "test.mov"". I can modify the position of the display with "at 30,30" But I can't find how to modify the size of the file when I play it ! (for example half the original size). Thank you for your help. From david.bovill at opn-technologies.com Mon Jan 7 08:17:05 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Mon Jan 7 08:17:05 2002 Subject: Converting colour names: Hex & RGB colour values... In-Reply-To: Message-ID: Thanks Chip, this (I think) works for the mouseColor (which seems to always return RGB triplets), but if you have a button which has the background colour set to "red" - then (unfortunately) the backgroundcolor of that button is "red" - not "255,0,0" Baseconvert does not like "red"... so how do you force a function to return an RGB triplet? Or better still given MC can understand RGB, HTML/Hex and "red" - how do you convert between them without writing your own lookup table for all those MC colour names? > From: "Chipp Walters" > Subject: RE: Converting colour names: Hex & RGB colour values... > > > on mouseDown > put the mouseColor into thecolor > > set the numberFormat to "##" > > put formathex(baseConvert(item 1 of thecolor,10,16)) into R > put formathex(baseConvert(item 2 of thecolor,10,16)) into G > put formathex(baseConvert(item 3 of thecolor,10,16)) into B > > > put thecolor into cd fld "rgb" of cd "stageLg" of stack "HemTools" > put "#" & R & G & B into cd fld "hex" of cd "stageLg" of stack "HemTools" > go to cd "stage" of stack "Hemtools" > click at the loc of btn "Open Button" > set the menuHistory of button "tabs" to 2 > > end mouseDown > > function formathex thevalue > if the length of thevalue is 1 > then put "0" before thevalue > return thevalue > end formathex From lists at retiariusenterprises.com Mon Jan 7 10:23:01 2002 From: lists at retiariusenterprises.com (Retiarius) Date: Mon Jan 7 10:23:01 2002 Subject: File Attributes? Message-ID: I'd like to get the Creation Date of the files listed inside a specified DefaultFolder (Mac and Windows). Is there a way to do that with Rev? Thanks for your help. -- David Retiarius Enterprises From lists at retiariusenterprises.com Mon Jan 7 10:23:18 2002 From: lists at retiariusenterprises.com (Retiarius) Date: Mon Jan 7 10:23:18 2002 Subject: Switching between Card & Group Message-ID: Is there a keyboard shortcut for switching between the Card level and Group (Background)? Many Thanks. -- David Retiarius Enterprises From rolfk at vetvir.unizh.ch Mon Jan 7 10:26:01 2002 From: rolfk at vetvir.unizh.ch (Rolf Kocherhans) Date: Mon Jan 7 10:26:01 2002 Subject: OptionMenu Button Message-ID: I have a button (popup) with the style OptionMenu. The text of it contaions for example: Red Green Yello How can I with a "SCRIPT" send a message to the button so that Green gets selected, and all the scripts in the button (on menuPick pWhich etc.) will run ? Cheers Rolf -- \|/ (o o) ________________________________oOo__(_)__oOo_________________________________ ___/\_ | Rolf Kocherhans mailto:rolfk at vetvir.unizh.ch / o \/| | University Inst.for Virology http://www.vetvir.unizh.ch/ / _| | Winterthurerstr. 266a Telephone: (+41) 1 6358720 /_/\__/-\/ | 8057 Zurich SWITZERLAND Faximile : (+41) 1 6358911 ______________________________________________________________________________ Remember: Put a little Jazz in the job, but don't get the Blues... ______________________________________________________________________________ From benr_mc at cogapp.com Mon Jan 7 10:36:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon Jan 7 10:36:01 2002 Subject: Card vs Sub Stack? In-Reply-To: Message-ID: on 5/1/02 5:23 PM, Rob Cozens at rcozens at pon.net wrote: > In an application where each card serves as the user interface to a file of > records (ie: there is one card per record type rather than one card per > record a la HyperCard rolodex), what are the pros & cons of creating the > cards as individual substacks vs all cards in a single stack? My $0.02, FWIW: I have an application such as this, and used seperate substacks for each type, mainly so that the different types could be edited in different windows. It turned out that while some of my users appreciated this, some found it made their lives more confusing, and I ended up having to implement a 'pin windows' functionality which made all windows the same size and position (so that you could only see one at a time) and which arranged that when in this mode, dragging any (obviously the front most) would drag the others to the same position (so that they remained hidden behind it). In effect this was reverting to the position of having separate cards of one stack. Depending on your userbase, more functionality may not imply more productivity. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr_mc at cogapp.com Mon Jan 7 10:40:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon Jan 7 10:40:01 2002 Subject: encrypting game questions In-Reply-To: Message-ID: on 6/1/02 1:42 AM, Houdek, Ritch (MED) at Ritch.Houdek at med.ge.com wrote: > Ideally the data file would be encrypted and not readable by a text editor. > The stack would understand how to read the file and decrypt its contents. If you just want to prevent casual reading with a text editor, and don't need to implement high security: see the compress/decompress functions. (Be sure to use binary mode when reading and writing the file.) Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From rcozens at pon.net Mon Jan 7 11:05:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 11:05:01 2002 Subject: Anyone going to MacWorld? In-Reply-To: References: Message-ID: >Thursday it is. Shall we meet at the Revolution booth at 5:45pm? (the >close of the show for that day is 6pm) Rob, that doesn't work for you Geoff, et al: If you can determine where the function will take place and let me know by 2:00 PM Thursday (707) 895-2584, I'll meet you there. I have Geoff's cell #; so if I havn't heard by 2 I'll call him for confirmation. Unless someone has a better idea, how about the Garden Court at the Sheraton Palace on Broadway? I believe it's within a short walk from Moscone Center. Rob Cozens CCW, Serendipity Software Company "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) From niklas_almesjo at yahoo.com Mon Jan 7 11:49:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Mon Jan 7 11:49:01 2002 Subject: call a function? In-Reply-To: <200201070412.XAA01011@www.runrev.com> Message-ID: <20020107164648.35307.qmail@web12306.mail.yahoo.com> Hello, I've created a function, but don't quite get how to call it. Does the function have to be in the same object from where it's called. I placed it in the stack script but it doesn't seem to get called when I call it from an object, thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From rcozens at pon.net Mon Jan 7 12:25:14 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 12:25:14 2002 Subject: Finding In-Reply-To: References: Message-ID: >When I said, "way too slow" before, that was because I need to perform (on >average) ten such searches per user request...since the user is often >searching on ten different variables per request. So if it took 1 second per >search, that would total 10 seconds...and that's before the results are even >analyzed. It's just too long. Richard, If the data you are searching is relatively static, you might considerindexing it (& thus increasing the RAM requirements to store data AND index). If the data is dynamic, I'd need to know more particulars before offering another suggestion. Rob Cozens CCW, Serendipity Software Company "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) From rcozens at pon.net Mon Jan 7 12:25:50 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 12:25:50 2002 Subject: How transform a spreadsheet in an array ? In-Reply-To: <20020104210403.1DA884%00000000@laposte.net> Message-ID: Ludovic: >I've a big list like this : > >Name name1 name2 name3 >Data1 1 0 10 >Data2 10 1 0 >Data3 0 1 10 > >how transform it in one array ? Geoff: >Revolution doesn't support multi-dimension arrays. While the array routines may not support multi-dimension arrays, it is possible to create and manipulate arrays of virtually any dimension. Ludovic's data can be represented as a nine-element array, three lines, each containing three words. To find, for example, the fifth element of the "array", one specifies "word 2 of line 2 of". To deal with three dimensions one can reference "word 2 of line 2 of item 1", etc. If the array data is numeric one can use each character except "0"-"9" and "-" & "." as an itemDelimiter. Each itemDelimiter adds a new dimension to the array. One note: If using words as an array dimension, make sure the array contains NO empty words (ie: put "0" into empty words). Rob Cozens CCW, Serendipity Software Company "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) From rcozens at pon.net Mon Jan 7 12:25:54 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 12:25:54 2002 Subject: Card vs Sub Stack? In-Reply-To: References: Message-ID: Thanks to Geoff & Ben for their comments. Ben: >FWIW: I have an application such as this, and used seperate >substacks for each type, mainly so that the different types could be edited >in different windows. Pardon my using the List to answer a question I could figure out on my own with a little research. What I'm reading into Ben's response is the card opens in the stack's current window while a substack opens in its own window. Is that correct? Is is always this way, or can one script it differently? TIA, Rob Cozens CCW, Serendipity Software Company "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) From rcozens at pon.net Mon Jan 7 12:59:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 12:59:00 2002 Subject: How transform a spreadsheet in an array ? Message-ID: >Name name1 name2 name3 >Data1 1 0 10 >Data2 10 1 0 >Data3 0 1 10 Moi:>Ludovic's data can be represented as a nine-element array, three lines, each containing three words. Oops! I left out the first field. So it's a twelve-element array: three lines each containing four words (assuming Data1 - Data3 contain no spaces. If that is not the case then restructure the array: Data1,1,0,10 Data2,10,1,0 Data3,0,1,10 and reference it "item x of line y of". Rob Cozens CCW, Serendipity Software Company "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) From shaosean at unitz.ca Mon Jan 7 13:26:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Mon Jan 7 13:26:01 2002 Subject: File Attributes? References: Message-ID: <001a01c197a8$5a45fa80$88b15bd1@dreamlanpc> take a look at the "Files" function and the extra parameter "detailed" the detailed files this will return a list of the files in the directory with a whack-load o' info about them (creation date being one of them, but only for MacOS, MacOSX and Windows) ----- Original Message ----- > I'd like to get the Creation Date of the files listed inside a specified > DefaultFolder (Mac and Windows). Is there a way to do that with Rev? From shaosean at unitz.ca Mon Jan 7 13:27:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Mon Jan 7 13:27:01 2002 Subject: Switching between Card & Group References: Message-ID: <002001c197a8$7f32a550$88b15bd1@dreamlanpc> ctrl+r allows you to edit the selected group (background) ----- Original Message ----- > Is there a keyboard shortcut for switching between the Card level and Group > (Background)? From shaosean at unitz.ca Mon Jan 7 13:28:00 2002 From: shaosean at unitz.ca (Shao Sean) Date: Mon Jan 7 13:28:00 2002 Subject: OptionMenu Button References: Message-ID: <002601c197a8$abb880e0$88b15bd1@dreamlanpc> menuHistory ----- Original Message ----- > How can I with a "SCRIPT" send a message to the button so that Green > gets selected, and all the scripts in the button (on menuPick pWhich > etc.) will run ? From shaosean at unitz.ca Mon Jan 7 13:33:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Mon Jan 7 13:33:01 2002 Subject: call a function? References: <20020107164648.35307.qmail@web12306.mail.yahoo.com> Message-ID: <003201c197a9$58fd7f80$88b15bd1@dreamlanpc> if your function is in the stack script, then it should be available to any object in the stack.. make sure that your function is really a function (ie. you're passing data to it and that it's returning something).. make sure that the code you are calling the function with "gets" returned data.. stack script: function cowSpeak pParam return "a cow says" && pParam end cowSpeak button script: on mouseUp -- one way of doing it get cowSpeak("quack") answer it -- another way answer cowSpeak("moo") end mouseUp you can create functions that have no parameters and return nothing (basically a handler) but you'll still need to call them with the "get" command ----- Original Message ----- > I've created a function, but don't quite get how to > call it. Does the function have to be in the same > object from where it's called. I placed it in the > stack script but it doesn't seem to get called when I > call it from an object, From kray at sonsothunder.com Mon Jan 7 13:49:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Mon Jan 7 13:49:01 2002 Subject: call a function? References: <20020107164648.35307.qmail@web12306.mail.yahoo.com> Message-ID: <009201c197ab$8481b7a0$9865fea9@mckinley.dom> Niklas, The function needs to be in the message passing order, and the stack script is a good place for it. Is it possible you're calling it like a command, not a function? For example: function foo myParam1,myParam2 put myParam1 * myParam2 into myVal return myVal end foo put foo(12,24) into myVar Hope this helps, Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Niklas Almesj?" To: Sent: Monday, January 07, 2002 10:46 AM Subject: call a function? > Hello, > I've created a function, but don't quite get how to > call it. Does the function have to be in the same > object from where it's called. I placed it in the > stack script but it doesn't seem to get called when I > call it from an object, > thanks, > /Niklas > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From rcozens at pon.net Mon Jan 7 14:04:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 14:04:01 2002 Subject: How transform a spreadsheet in an array ? In-Reply-To: Message-ID: Moi:>So it's a twelve-element array: three >lines each containing four words (assuming Data1 - Data3 contain no spaces. >If that is not the case then restructure the array: > >Data1,1,0,10 >Data2,10,1,0 >Data3,0,1,10 > >and reference it "item x of line y of". That assumes there are no commas in Data1-Data3. If THAT is not the case, then select some character that cannot appear in the array data and use it in place of comma as the itemDelimiter. I think I've covered all the possibilities this time. :{`) Rob Cozens CCW, Serendipity Software Company "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) From gcanyon at inspiredlogic.com Mon Jan 7 14:17:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 7 14:17:01 2002 Subject: File Attributes? In-Reply-To: References: Message-ID: At 8:21 AM -0700 1/7/02, Retiarius wrote: >I'd like to get the Creation Date of the files listed inside a specified >DefaultFolder (Mac and Windows). Is there a way to do that with Rev? Check out the "detailed files" I think this will do what you want. gc From gcanyon at inspiredlogic.com Mon Jan 7 14:32:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 7 14:32:01 2002 Subject: Switching between Card & Group In-Reply-To: References: Message-ID: At 8:21 AM -0700 1/7/02, Retiarius wrote: >Is there a keyboard shortcut for switching between the Card level and Group >(Background)? First, note that there can be more than one background/group on a card. It can be confusing at times, but it's a great capability. If you click on a group, command-R will open it for editing. There doesn't seem to be a keyboard equivalent for stopping editing. You can click the button in the toolbar, or select stop editing group on the object menu. regards, Geoff From rcozens at pon.net Mon Jan 7 14:44:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 7 14:44:01 2002 Subject: How transform a spreadsheet in an array ? Message-ID: Moi:>I think I've covered all the possibilities this time. :{`) Nope...I forgot to mention the whole scheme presupposes there are no return characters in Data1-Data3. If THAT is not the case, use unique itemDelimiters: Data1*1*0*10^Data2*10*1*0^Data3*0*1*10& Disclaimer: I have not started scripting in Transcript; so this is how I'd do it in HyperTalk: function getElement xCoord,yCoord,zCoord,xDelim,yDelim,zDelim,zaArray -- for drei dimensions, eh Mark? put the itemDelimiter into savedDelimiter set the itemDelimiter to zDelim get item zCoord of zaArray set the itemDelimiter to yDelim get item yCoord of it set the itemDelimiter to xDelim get item xCoord of it set the itemDelimiter to savedDelimiter return it end getElement Assuming zaArray contains a string formatted along the lines of the one above my disclaimer, get getElement(2,2,1,"*","^","&",zaArray) returns 10 Rob Cozens CCW, Serendipity Software Company "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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1155 bytes Desc: not available URL: From jdhardin at facstaff.wisc.edu Mon Jan 7 14:45:01 2002 From: jdhardin at facstaff.wisc.edu (Jeff Hardin) Date: Mon Jan 7 14:45:01 2002 Subject: QT 5 issues, Compiling video from stills Message-ID: Hi folks- Two quick questions: (1) Has there been any progress on the standard movie controller issue with QT 5 for Mac, or does anyone have a workaround? This is a pretty big issue for me. (2) Does anyone know of a way to compile a QuickTime movie from a folder of still images via RunRev? Thanks, Jeff -- ********************************* Jeff Hardin - Dept. of Zoology - Univ. of Wisconsin 1117 W. Johnson St. - Madison, WI 53706 USA voice: (608) 262-9634 (office)/ (608) 265-2520 (lab) fax: (608) 262-7319 email: jdhardin at facstaff.wisc.edu WWW: http://www.wisc.edu/zoology/faculty/fac/Har/Har.html ********************************* From SaultsJ at missouri.edu Mon Jan 7 14:46:00 2002 From: SaultsJ at missouri.edu (J. Scott Saults) Date: Mon Jan 7 14:46:00 2002 Subject: RAPID SEQUENCE of audioclips on a Mac In-Reply-To: <200201070408.XAA00755@www.runrev.com> References: <200201070408.XAA00755@www.runrev.com> Message-ID: I appreciate hearing from Mike Brown and Geoff Canyon regarding audio formats for playing in Revolution. I can confirm that 16-bit aiff plays fine at several sampling rates, but 16-bit wave does not, at least on a Mac. I'd gotten into a habit of using WAVE only under Windows 98 simply because that format is required by externals commands (the MCPsych DLLs) that I have to use to play sequences of sounds in memory research software I've developed for PCs. Unfortunately, the these DLLs are for Windows only. I 'd like to find a solution for the Mac OS, or I may have to (reluctantly) either abandon the Mac OS, or Revolution / Metacard, in my research. Let me explain my difficulty accomplishing a seeming simple task in Revolution. For more than 12 years I've used HyperCard and SuperCard to present sequences of sounds, usually recorded speech but occasionally tones, to be used as stimuli in STM memory research. Arbitrary sequences of up to 20 sound resources can be played by simply issuing a series of 'play' commands. While the first sound begins playing, the remaining sounds are quickly loaded and cued to play in order, one immediately after the other. This provides a reasonably clean, reliable and precise sequence of sounds in which the onset-to-onset times, determined by the duration of the digitized samples, can be controlled within a few milliseconds. I can accomplish the same basic task in Revolution on the PC only by using the external commands of the MCPsych. DLLs, as far as I know. How can I do this in Revolution on a Mac, with or (preferably) without external commands? Simply put, this is my specific QUESTION: In Revolutionn on a Mac, with or without help from external commands, how can I play an arbitrary list of several different, brief (<250 ms) sounds so they are presented as a rapid (at least 4/second), regular SEQUENCE. In Revolutions on the my Mac, at least, the results of a simple series of 'play' and 'wait' commands, like the following, are FAR too slow and erratic. (Of course, without the waits, the successive play commands simply interrupt each other, because Revolution cannot, to my knowledge, cue the sounds.) ## soundList is just a list of names of the audioclips put 250 into onsetToOnset Repeat with i = 1 to 5 put milliseconds() into onsetTime play line i of soundList wait until milliseconds() - onsetTime > onsetToOnset end repeat Neither getting the milliseconds after the 'play' command, nor using 'wait until the sound is "done"' works any better in my tests. Does anyone have any suggestions for how to accomplish this better? Many thanks in advance for any new ideas. Desperately seeking answers, Scott Saults J. Scott Saults, Ph.D. Research Associate email: SaultsJ at missouri.edu Department of Psychology 210 McAlester Hall From gcanyon at inspiredlogic.com Mon Jan 7 14:50:02 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 7 14:50:02 2002 Subject: Card vs Sub Stack? In-Reply-To: References: Message-ID: At 3:33 PM +0000 1/7/02, Ben Rubinstein wrote: >My $0.02, FWIW: I have an application such as this, and used seperate >substacks for each type, mainly so that the different types could be edited >in different windows. It turned out that while some of my users appreciated >this, some found it made their lives more confusing, and I ended up having >to implement a 'pin windows' functionality which made all windows the same >size and position (so that you could only see one at a time) and which >arranged that when in this mode, dragging any (obviously the front most) >would drag the others to the same position (so that they remained hidden >behind it). In effect this was reverting to the position of having separate >cards of one stack. > >Depending on your userbase, more functionality may not imply more >productivity. Note that you can avoid this by using: go stack "someOtherStack" in the window of this stack That way only one stack window will ever be open, and you don't have to manage a bunch of windows. regards, Geoff From benr_mc at cogapp.com Mon Jan 7 15:31:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon Jan 7 15:31:01 2002 Subject: Card vs Sub Stack? In-Reply-To: Message-ID: on 7/1/02 7:49 PM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > go stack "someOtherStack" in the window of this stack Thanks Geoff, I didn't know about that construction. I'll look into it. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From Doug_Ivers at lord.com Mon Jan 7 16:01:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Mon Jan 7 16:01:01 2002 Subject: use-revolution digest, Vol 1 #98 - 16 msgs Message-ID: <6150F6099DBED111852E0008C7241464049B355D@NTSRV-CRD04> 1. What would be the best way to implement a popup menu when the user right-clicks over a standard button or over a field? Should I have a hidden popup-style button that I re-locate and show wherever the mouse was clicked? 2. Seems that the word parser is little more than an item parser with the itemDelimiter set to " ", except for the stupid behavior with quotes. I would like a true word parser. Or a parser for which we can specify multiple delimiters. Like a java token function. What is the best/fastest way to parse words even in the presence of quotes and punctuation? 3. Did I see a comment somewhere that the Rev folks are working on fields with multiple columns? If so, when should we expect to see it? I love the added features of Rev over HC, but it makes me eager for more. -- D From gcanyon at inspiredlogic.com Mon Jan 7 16:12:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 7 16:12:00 2002 Subject: RAPID SEQUENCE of audioclips on a Mac In-Reply-To: References: <200201070408.XAA00755@www.runrev.com> Message-ID: At 1:45 PM -0600 1/7/02, J. Scott Saults wrote: >In Revolutions on the my Mac, at least, the results of a simple series of 'play' and 'wait' commands, like the following, are FAR too slow and erratic. (Of course, without the waits, the successive play commands simply interrupt each other, because Revolution cannot, to my knowledge, cue the sounds.) > >## soundList is just a list of names of the audioclips >put 250 into onsetToOnset >Repeat with i = 1 to 5 > put milliseconds() into onsetTime > play line i of soundList > wait until milliseconds() - onsetTime > onsetToOnset >end repeat > >Neither getting the milliseconds after the 'play' command, nor using 'wait until the sound is "done"' works any better in my tests. > >Does anyone have any suggestions for how to accomplish this better? > >Many thanks in advance for any new ideas. Two possibilities: Check out the playStopped message. You would do something like this: global gWhichSoundNext,gMySoundArray,gNumberOfSounds on mouseUp put 1 into gWhichSoundNext play gMySoundArray[1] end mouseUp on playStopped if gWhichSoundNext < gNumberOfSounds then add 1 to gWhichSoundNext play gMySoundArray[gWhichSoundNext] end if end playStopped ----------------------------------------- Check out the send to...in command. you would do something like this: global gMySoundArray, gNumberOfSounds, gPlaySoundMessage on mouseUp MySoundPlay 1 end mouseUp on MySoundPlay pWhichSound play gMySoundArray[pWhichSound] if pWhichSound < gNumberOfSounds then send ("MySoundPlay" && (pWhichSound + 1)) to me in 250 milliseconds put the result into gPlaySoundMessage end if end playStopped -------------------------------------------- regards, Geoff From gcanyon at inspiredlogic.com Mon Jan 7 16:35:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 7 16:35:00 2002 Subject: use-revolution digest, Vol 1 #98 - 16 msgs In-Reply-To: <6150F6099DBED111852E0008C7241464049B355D@NTSRV-CRD04> References: <6150F6099DBED111852E0008C7241464049B355D@NTSRV-CRD04> Message-ID: >1. >What would be the best way to implement a popup menu when the user >right-clicks over a standard button or over a field? Should I have a hidden >popup-style button that I re-locate and show wherever the mouse was clicked? You could do that. You can also pop a stack. Check out the popup entry in the help. >2. >Seems that the word parser is little more than an item parser with the >itemDelimiter set to " ", except for the stupid behavior with quotes. I >would like a true word parser. Or a parser for which we can specify >multiple delimiters. Like a java token function. What is the best/fastest >way to parse words even in the presence of quotes and punctuation? There are several ways. The brute force method shouldn't be dismissed -- try a repeat for each char C in myString and see if it meets your needs. Note that the repeat form is critical for performance. If you repeat with i = 1 to whatever, that will start fast and slow down quickly as the string grows. Repeat for each starts faster and stays fast no matter the size of the string. >3. >Did I see a comment somewhere that the Rev folks are working on fields with >multiple columns? If so, when should we expect to see it? Fields already support tabs -- check out tabstops in the help. If you want true columns, for now you're looking at multiple fields linked together, or some wicked math. Several have done it and posted examples. >I love the added features of Rev over HC, but it makes me eager for more. Aren't we all :-) regards, Geoff From scott at tactilemedia.com Mon Jan 7 19:45:00 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Mon Jan 7 19:45:00 2002 Subject: RAPID SEQUENCE of audioclips on a Mac In-Reply-To: Message-ID: Recently, J. Scott Saults wrote: > For more than 12 years I've used HyperCard and SuperCard to present > sequences of sounds, usually recorded speech but occasionally tones, > to be used as stimuli in STM memory research. Arbitrary sequences of > up to 20 sound resources can be played by simply issuing a series of > 'play' commands. While the first sound begins playing, the remaining > sounds are quickly loaded and cued to play in order, one immediately > after the other. This provides a reasonably clean, reliable and > precise sequence of sounds in which the onset-to-onset times, > determined by the duration of the digitized samples, can be > controlled within a few milliseconds. I can accomplish the same basic > task in Revolution on the PC only by using the external commands of > the MCPsych. DLLs, as far as I know. How can I do this in Revolution > on a Mac, with or (preferably) without external commands? As a developer, I would also like this ability in MC/REV, and have argued over the years that having the MetaCard folks maintain control over sound within MC would be much better than handing off audio support to QuickTime. QT does have some advantages for playback, but seamless playback of multiple clips is not one of them. One thing to confirm first is that your sounds can be present as imported audio clips, not as external files. I'm not sure about Hypercard but I know that SuperCard can only play multiple clips seamlessly when the clips are stored as internal sound resources. If your stack allows you to rely on imported sounds, the following script may work for you. I've done a couple of tests that seem to play imported multiple clips back-to-back seamlessly, something which I don't believe is doable with player objects due to inherent delay that results from loading an unloading file references. First, create a field named "cliplist" and enter all the names of your imported clips that you want to play, delimited with commas (myclip1,myclip2,myclip3,etc). Then create a playback button with this script: on mouseUp if the sound is not "done" then play stop set the uCurrClip of me to empty exit mouseUp end if set the uCurrClip of me to 1 runAudio end mouseUp Next, place this handler in your stack: on runAudio if the sound is "done" then if the uCurrClip of me > the number of items of fld cliplist then set the uCurrClip of me to empty exit runAudio end if play audioClip (item (the uCurrClip of me) of fld cliplist) set the uCurrClip of me to the uCurrClip of me + 1 end if send "runAudio" to me in 5 milliseconds end runAudio When clicking the playback button, the result should be that the clips in your cliplist are played seamlessly, back-to-back, with playback ceasing as the end of the cliplist is reached. The principle here is to establish a timer which constantly checks the state of sound playback in your stack; when any playing sound has finished, the next clip in your list is played. Hope this helps. Regards, Scott _____________________________________________________________________ Scott Rossi Tactile Media - Multimedia & Design Creative Director Email: scott at tactilemedia.com Web: http://www.tactilemedia.com From scott at tactilemedia.com Mon Jan 7 19:49:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Mon Jan 7 19:49:01 2002 Subject: RAPID SEQUENCE of audioclips on a Mac In-Reply-To: Message-ID: Recently, Scott Rossi wrote: > Next, place this handler in your stack: > > on runAudio > if the sound is "done" then > if the uCurrClip of me > the number of items of fld cliplist then > set the uCurrClip of me to empty > exit runAudio > end if > play audioClip (item (the uCurrClip of me) of fld cliplist) > set the uCurrClip of me to the uCurrClip of me + 1 > end if > send "runAudio" to me in 5 milliseconds > end runAudio I neglected to add this line at the beginning of the handler: if the uCurrClip of me is empty then exit runAudio Anyway, things should work as expected. Let us know if they don't. Regards, Scott _____________________________________________________________________ Scott Rossi Tactile Media - Multimedia & Design Creative Director Email: scott at tactilemedia.com Web: http://www.tactilemedia.com From sarahr at genesearch.com.au Mon Jan 7 20:10:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Mon Jan 7 20:10:01 2002 Subject: Multiple windows In-Reply-To: Message-ID: Thanks for the help, Shao & Andu. In case anyone else has the same requirements, here is what I have ended up with: In my main file, I have a main stack and a "Clone" stack. The Clone stack is never actually opened but is only a template for new stacks. On the main stack, I have buttons with various names that all use this script: on mouseUp cloneStack the short name of me end mouseUp The cloneStack handler is in the stack script of my main stack: on cloneStack newName if (newName is among the lines of the openStacks) then go to stack newName in a new window else clone stack "Clone" set the name of stack "Copy of Clone" to newName end if end cloneStack The original "Clone" stack is set to destroyStack & destroyWindow as these copies are for temporary displays only. This means that they disappear whenver their windows are closed and don't get saved with the rest. (Note: the Application Overview needs to be closed & re-opened before it stops showing "destroyed" stacks.) Sarah From jphurley at jps.net Mon Jan 7 21:11:00 2002 From: jphurley at jps.net (Jim Hurley) Date: Mon Jan 7 21:11:00 2002 Subject: Fixed width fonts on the PC In-Reply-To: <200201071951.OAA18602@www.runrev.com> References: <200201071951.OAA18602@www.runrev.com> Message-ID: I am porting a stack from the Mac to Windows. Unfortunately, I have little experience with Windows fonts. In particular I need to know what fixed width fonts are common on the PC. I have found one, "Courier New" ("Courier," the old version, is very jagged in the size I need.) What other fixed width fonts can I count on the user having on his or her machine? Thanks. Jim From cowhead at ztv.ne.jp Tue Jan 8 06:58:01 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Tue Jan 8 06:58:01 2002 Subject: Audioclips on a Mac Message-ID: <3C3ADEF2.A30BEB24@ztv.ne.jp> Someone wrote: >HOW DO I IMPORT AN AUDIOCLIP INTO A STACK AND PLAY IT CORRECTLY, on a Mac? >>> Used "SoundApp" (Mac shareware) to bulk convert all of the sound files you might want to import into a compatable format, like Sun/NeXt, which is supported on all platforms (this is nice if you have an inlination to go cross-platform later on). To do the bulk conversion, first launch soundApp, in the preferences you can select where you want the output of conversion to go...then command-click (or shift-click, I forget) the folder containing all of the sounds you want to convert and drag it and drop it on the SoundApp icon (soundApp must be already launched and running for this to work). Conversion of hundreds of short sounds will take less than a second and these can now be imported and played in meta/rev. Note the MPEG layer 3 (MP3) can be played with a player object, but cannot be directly imported and played (in my hands). If you have a lot of sounds to play, or they are long sounds, you might want to keep them in a separate file and use a player to play them. You can always make the player invisible. This keeps the size of your stack down and, I think, improves performance. That way, the sounds can be MP3's, which have the advantage of small size, and universal compatibility. iTunes, available as a free download from Apple, can convert many sound files to MP3 and can do this in bulk. mark mitchell japan From yvescoppe at skynet.be Tue Jan 8 08:03:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 8 08:03:01 2002 Subject: ctrl-clic Message-ID: Hello, 1) I've read something in the news but can't perform it : How can I on a mac have a ctrl-clic on a fld and a popUp opens at the mouse-clcik 2) on Hypercard with windowscript, you may set the style of a control to an integer and so call the appearance manag and set it for example to "175" to get a rectangle with a title, and so one. Is it possible with RR and how ? 3) How can you make in RR such a modern column fld such the example shows it here : Thanks. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: P08547B09 Type: image/png Size: 2255 bytes Desc: not available URL: From BradAllen at mac.com Tue Jan 8 09:00:01 2002 From: BradAllen at mac.com (Brad Allen) Date: Tue Jan 8 09:00:01 2002 Subject: ctrl-clic In-Reply-To: References: Message-ID: > >1) I've read something in the news but can't perform it : >How can I on a mac have a ctrl-clic on a fld and a popUp opens at >the mouse-clcik This works for me running Mac OS 9 and Rev 1.1.1b, as long as I'm using the pointer tool. If you're not able to produce any contextual menus in any program, you may want to check whether you have the Contextual Menu Extension in your System Folder/Extensions folder. -- From niklas_almesjo at yahoo.com Tue Jan 8 09:37:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Tue Jan 8 09:37:01 2002 Subject: call a function? In-Reply-To: <200201071952.OAA18629@www.runrev.com> Message-ID: <20020108143505.10317.qmail@web12306.mail.yahoo.com> Thanks for the answers about calling a function. Turns out the function does get called after all.. I had put a beep inside the function as a test, and I could never hear it.. but afther further checking more I found that the function does get called and return a value. I gather that that's the nature of functions that makes it skip the beep..? correct? - anyways, working as expected now. cheers, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From niklas_almesjo at yahoo.com Tue Jan 8 09:47:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Tue Jan 8 09:47:01 2002 Subject: installing quicktime? In-Reply-To: <200201071952.OAA18629@www.runrev.com> Message-ID: <20020108144526.96592.qmail@web12305.mail.yahoo.com> Hallo, Just thought I'd ask about the best way to install Quicktime. I'll let the user choose if he wants to start the installer locally, or download the installer (..suppose I'll just start up a browser at apple.com/quicktime/download for the latter) Now the tough part. What do I do while the installer is running (or being downloaded)? thought about pausing the program, put up a waiting for quicktime to be installed, and having a check every two seconds or so that checks "the qtversion"? does "the qtversion" get updated when the installer has quit? - kinda messy to try these things with trial and error so any tips are welcome, thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From kray at sonsothunder.com Tue Jan 8 10:16:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Tue Jan 8 10:16:01 2002 Subject: call a function? References: <20020108143505.10317.qmail@web12306.mail.yahoo.com> Message-ID: <011901c19856$e1219b50$9865fea9@mckinley.dom> Niklas, It is not the nature of functions to skip beeps. You might want to check your volume settings; perhaps your volume is very low or muted. You might want to open the Message Box and type "beep" and hit Enter. If you don't hear anything, it's probably your audio settings. Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Niklas Almesj?" To: Sent: Tuesday, January 08, 2002 8:35 AM Subject: Re: call a function? > Thanks for the answers about calling a function. Turns > out the function does get called after all.. I had put > a beep inside the function as a test, and I could > never hear it.. but afther further checking more I > found that the function does get called and return a > value. > I gather that that's the nature of functions that > makes it skip the beep..? correct? > - anyways, working as expected now. > cheers, > /Niklas > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From Doug_Ivers at lord.com Tue Jan 8 10:37:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Tue Jan 8 10:37:01 2002 Subject: stack ID problem Message-ID: <6150F6099DBED111852E0008C7241464049B3562@NTSRV-CRD04> I can't seem to refer to a substack via ID. put the id of this card -- results in 1031 put the id of this stack -- results in 1100 put the name of stack id 1100 -- error put the name of card id 1031 -- this works Why doesn't line 3 work? -- D From laya at inrets.fr Tue Jan 8 10:41:01 2002 From: laya at inrets.fr (Olivier Laya) Date: Tue Jan 8 10:41:01 2002 Subject: installing quicktime? In-Reply-To: <20020108144526.96592.qmail@web12305.mail.yahoo.com> References: <20020108144526.96592.qmail@web12305.mail.yahoo.com> Message-ID: >Hallo, >Just thought I'd ask about the best way to install >Quicktime. I'll let the user choose if he wants to >start the installer locally, or download the installer >(..suppose I'll just start up a browser at >apple.com/quicktime/download for the latter) >Now the tough part. What do I do while the installer >is running (or being downloaded)? thought about >pausing the program, put up a waiting for quicktime to >be installed, and having a check every two seconds or >so that checks "the qtversion"? does "the qtversion" >get updated when the installer has quit? >- kinda messy to try these things with trial and error >so any tips are welcome, >thanks, >/Niklas > >__________________________________________________ >Do You Yahoo!? >Send FREE video emails in Yahoo! Mail! >http://promo.yahoo.com/videomail/ >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution Just a word : intaller must often close all the other softs during intallation. I am not sure with QT , but we can have some problems due to this condition (RR and QT installer running at the same time). -- Olivier Laya Charg? de Recherche Laboratoire de Psychologie de la Conduite (L.P.C.) Institut National de Recherche sur les Transports et leur S?curit? (I.N.R.E.T.S.) 2, Av. du G?n?ral Malleret-Joinville 94114 ARCUEIL C?dex T?l: 01 47 40 73 79 Fax : 01 45 47 56 06 Phone (international): +33 1 47 40 73 79 Web site: http://www.inrets.fr Bienvenue! Welcome! From yvescoppe at skynet.be Tue Jan 8 13:03:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 8 13:03:00 2002 Subject: ctrl-clic In-Reply-To: References: Message-ID: >>1) I've read something in the news but can't perform it : >>How can I on a mac have a ctrl-clic on a fld and a popUp opens at >>the mouse-clcik > >This works for me running Mac OS 9 and Rev 1.1.1b, as long as I'm >using the pointer tool. > >If you're not able to produce any contextual menus in any program, >you may want to check whether you have the Contextual Menu Extension >in your System Folder/Extensions folder. >-- >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution No, that's not the problem ; iI want ot work with the contextual menu : on MouseDown theButton ! but in a fld ! -- From kray at sonsothunder.com Tue Jan 8 13:51:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Tue Jan 8 13:51:01 2002 Subject: stack ID problem References: <6150F6099DBED111852E0008C7241464049B3562@NTSRV-CRD04> Message-ID: <012c01c19874$f9e92900$9865fea9@mckinley.dom> I think it's because it's a substack; you need to have a longer query: put the name of stack id 1100 of stack id 1200 -- Assuming id 1200 is the mainstack Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Ivers, Doug E" To: Sent: Tuesday, January 08, 2002 9:34 AM Subject: stack ID problem > I can't seem to refer to a substack via ID. > > put the id of this card -- results in 1031 > put the id of this stack -- results in 1100 > put the name of stack id 1100 -- error > put the name of card id 1031 -- this works > > Why doesn't line 3 work? > > > -- D > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From raney at metacard.com Tue Jan 8 14:18:01 2002 From: raney at metacard.com (Scott Raney) Date: Tue Jan 8 14:18:01 2002 Subject: popups and tokens (was "Digest-something") In-Reply-To: <200201081450.JAA04590@www.runrev.com> Message-ID: On Mon, 7 Jan 2002 "Ivers, Doug E" wrote: > 1. > What would be the best way to implement a popup menu when the user > right-clicks over a standard button or over a field? Should I have a hidden > popup-style button that I re-locate and show wherever the mouse was clicked? No, use the popup command. In RR 1.1.1/MC 2.4.1 you can popup a button (required to get proper look and feel on MacOS). > 2. > Seems that the word parser is little more than an item parser with the > itemDelimiter set to " ", It's a bit more, because it also skips multiple spaces, and tabs and returns in addition to spaces (neither is possible with item chunks). > except for the stupid behavior with quotes. I > would like a true word parser. Or a parser for which we can specify > multiple delimiters. Like a java token function. What is the best/fastest > way to parse words even in the presence of quotes and punctuation? Use "token" chunks (e.g., "repeat for each token t in "). It's the same parser the engine uses for compiling scripts. > 3. > Did I see a comment somewhere that the Rev folks are working on fields with > multiple columns? If so, when should we expect to see it? Variable tabstops and grid lines are already supported. What's missing is support for clipping to "cell" boundaries, and column selection. Those are planned, but no schedule has been announced yet. Regards, Scott > I love the added features of Rev over HC, but it makes me eager for more. Keep those suggestions coming... Scott > -- D ******************************************************** Scott Raney raney at metacard.com http://www.metacard.com MetaCard: You know, there's an easier way to do that... From bmmeili at swissonline.ch Tue Jan 8 14:28:01 2002 From: bmmeili at swissonline.ch (bmmeili) Date: Tue Jan 8 14:28:01 2002 Subject: selectedchunk Message-ID: I've got a problem with the selectedchunk-function. In Revolution 1.0 the following handler works fine whereas it doesn't work neither in Revolution 1.1. nor in Revolution 1.1.1. on mouseup put the selectedchunk -- some text is marked in a card field end mouseup Is there somebody who can give me some advice? Martin From yvescoppe at skynet.be Tue Jan 8 15:41:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 8 15:41:00 2002 Subject: special visual Message-ID: Hello 1) In the application overview window, when you clic the "groups" and look at the right side of the window, you see a "widget" button at the bottom. When you clic it and change the view, you see a visual effect on a part of the window with the changing of the flds How can I write the same thing in a script ? 2) How can I make modern columns as they appear just above this button ? Thanks. -- From environgroup at mac.com Tue Jan 8 16:05:01 2002 From: environgroup at mac.com (Environ Group) Date: Tue Jan 8 16:05:01 2002 Subject: Evaluating Revolution for SQL front-end In-Reply-To: Message-ID: Hi List, At this point, I am just trying to figure out whether or not Revolution has what it takes and the approximate cost of development. How can I quickly determine whether or not Revolution could be used as a front-end to a postgreSQL database on a OSX server? What are the limitations compared to other SQL front-ends for OSX? Any resources available or demo's you would suggest? I am very good with Filemaker but am in very new territory here. I must make a decision before 1/15 so as to take advantage of the 80 percent off offer. Greg From sarahr at genesearch.com.au Tue Jan 8 18:50:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Tue Jan 8 18:50:01 2002 Subject: special visual In-Reply-To: Message-ID: > 1) In the application overview window, when you clic the "groups" and > look at the right side of the window, you see a "widget" button at > the bottom. When you clic it and change the view, you see a visual > effect on a part of the window with the changing of the flds > How can I write the same thing in a script ? This is done with the "move" command sliding groups in & out of view. Here is the script from the similar button on the stacks view in the application overview: move grp "Stack Field" relative 600,0 in 200 millisecs without waiting move grp "Stack Mover" relative -600,0 in 200 millisecs without waiting This moves the "Stack Field" group to the right & off the edge of the window, then slides the other group back in. > > 2) How can I make modern columns as they appear just above this button ? The columns are a normal scrolling field with tabStops set and the vertical grid showing. The headings above are individual buttons that have scripts to sort the scrolling field. The clever bit is putting the various icons & checkbox buttons in the right places in the list, but text only is quite simple. If you want to see how the Rev people do something, choose "Revolution UI Stacks in List" from the View menu. Then open the Application Overview and you can browse through all the rev stacks and their scripts. Alternatively, you can just open one of the built-in stacks as if it were a normal stack and look at it that way. Just make sure you don't save any changes unless you have a backup! Cheers, Sarah From tim11 at bellatlantic.net Tue Jan 8 20:07:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Tue Jan 8 20:07:01 2002 Subject: test Message-ID: This is a test. Please delete this. -- Tim From tim11 at bellatlantic.net Tue Jan 8 20:21:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Tue Jan 8 20:21:01 2002 Subject: Supertalk to Transcript Message-ID: Hi, I was wondering if there's an equivalent function to Supertalk's DESCRIBE function in Transcript, as in get describe(this bg,cards)? Does anyone know of a solution? Thanks, -- Tim From jeanne at runrev.com Wed Jan 9 00:38:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 9 00:38:01 2002 Subject: grayed out menu items In-Reply-To: Message-ID: At 11:50 PM -0800 1/5/2002, Brad Allen wrote: >Sometimes I find the following menu items mysteriously grayed out, >even in stacks I've newly created. It doesn't matter which tool I >have selected. > >Object -> Stack Properties >Object -> Card Properties >Object - > New Card Brad, is it possible your stack name begins with the string "rev"? Revolution special-cases that initial string in stack names (all Rev's own stacks' names start with those three characters) and disables certain items when such a stack is the defaultStack. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Wed Jan 9 00:38:24 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 9 00:38:24 2002 Subject: Creating an Icon Library In-Reply-To: References: <200201060013.TAA04625@www.runrev.com> Message-ID: At 10:08 PM -0800 1/5/2002, Terry Vogelaar wrote: >>> I'd like to create my own library of icons. >>> Is there a guide somewhere that steps you through the process? >>> Where can I find more info? >> >> First, be sure you are using 1.1.1B1. Then use the Image Library feature in >> the Development menu. > >OK, and then? Should I copy/paste? Should I paint? Should I import? You can do any of the above. To enlarge a little: 1. Choose Image Library from the Development menu. 2. Click "New Library" and give your icon library a name. 3. Open the stack with the images you want to put in the library, select them, and use either the "Move Selected Image to Library" or "Copy Selected Image to Library" button (depending on whether you want to leave them in the stack). You can create the images in any way you want - create them using the paint tools, or import them using the Import As Control item in the File menu. (Please note that there is a bug in 1.1.1b1 which may cause problems when moving images into an image library. This bug will be squashed in 1.1.1b2.) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From yvescoppe at skynet.be Wed Jan 9 02:18:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 02:18:00 2002 Subject: Import stack in another Message-ID: Hello, So I created a substack I use as DLOG. It's a complex DLOG and I'd like to use the same in another main stack without having to redraw it How can I import a substack from a main stack into another ? Thanks. -- From yvescoppe at skynet.be Wed Jan 9 02:18:27 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 02:18:27 2002 Subject: script limit Message-ID: Hello, is there as in HC a limit in the script length (32 K a in HC) Same question : is there a limit in a fld contains (32 K a in HC) ? Thanks -- From yvescoppe at skynet.be Wed Jan 9 02:19:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 02:19:01 2002 Subject: Desktop icon Message-ID: Hello, How can I assign a desktop icon for a stand alone app ? thanks. -- From jcuccio at pacbell.net Wed Jan 9 02:25:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Wed Jan 9 02:25:01 2002 Subject: serial port Message-ID: Mac OS 8.1 & Rev. 1.1 I am trying to get the serial port to work with rev. I just want to read from it. I know the port is opened because the thing that is hooked up to the computer does not get an error. But when I try to read from the port and put the contents into a field it is blank. Every things works fine in HC. -- button 1 put the serialcontrolstring into tmp set the serialcontrolstring to tmp -- I only need the default settings. open file "modem:" -- button 2 read from file "modem:" until eof put it into field 1 the only thing different from my HC stack and the one I am trying to do in Rev is I set the CTS to on. I did not see a setting for CTS in the serialcontrolstring Doc. Also: I tried to put a "for read" after open file command. The thing hooked up to the computer returned an error. Meaning the port was not openned. Even though rev returned it was openned. Closeing the port and re opennign it with out the for read after open file, worked fine. Also Sarah Reichelt offered to sent a sample stack of serial ports. Since I do not know your email address to ask. Can you send me the sample you offered in another post. Thank You John Cuccio e-mail jcuccio at pacbell.net From jcuccio at pacbell.net Wed Jan 9 02:31:00 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Wed Jan 9 02:31:00 2002 Subject: Where to post Beta reports. Message-ID: Not sure where to post or who to e-mail Beta problem reports. Loaded Rev 1.1.1 beta for Mac OS created a button pressed the script Icon. Rev Crashed Error type 3. Mac OS 8.1 From rjb at rz.uni-potsdam.de Wed Jan 9 03:57:01 2002 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Wed Jan 9 03:57:01 2002 Subject: popups and tokens (was "Digest-something") In-Reply-To: References: Message-ID: > > Did I see a comment somewhere that the Rev folks are working on fields with >> multiple columns? If so, when should we expect to see it? > >Variable tabstops and grid lines are already supported. What's >missing is support for clipping to "cell" boundaries, and column >selection. Those are planned, but no schedule has been announced yet. > Regards, > Scott Tab-stops and grid line work nicely. However, as far as I can tell, currently only left-aligned tab-stops are implemented. That is not enough for proper column support. For example, columns of numbers are normally right- or period-aligned. Robert From gcanyon at inspiredlogic.com Wed Jan 9 04:35:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 9 04:35:01 2002 Subject: script limit In-Reply-To: References: Message-ID: At 8:08 AM +0100 1/9/02, yves COPPE wrote: >is there as in HC a limit in the script length (32 K a in HC) >Same question : is there a limit in a fld contains (32 K a in HC) ? :-) Welcome to Revolution, my friend, where there are no limits. Actually, there are, but so far beyond anything practical as not to matter. I believe all scripts, fields, and a few other things share a 4GB limit overall. So as long as the sum of all your fields, variables, properties, scripts, etc., doesn't total more than 4GB, you're set. On a practical basis, I've seen scripts with about 100 handlers that totalled about 100k, and Revolution had no problem with that. regards, geoff From gcanyon at inspiredlogic.com Wed Jan 9 04:36:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 9 04:36:01 2002 Subject: Import stack in another In-Reply-To: References: Message-ID: At 8:16 AM +0100 1/9/02, yves COPPE wrote: >So I created a substack I use as DLOG. >It's a complex DLOG and I'd like to use the same in another main stack without having to redraw it >How can I import a substack from a main stack into another ? The stack mover. This is from memory -- open the application overview, click on a stack, click on the expansion triangle to open the application overview, then click on the small button at the bottom of the expanded section. regards, Geoff From martin at atwork.bdx.co.uk Wed Jan 9 06:55:01 2002 From: martin at atwork.bdx.co.uk (Martin Baxter) Date: Wed Jan 9 06:55:01 2002 Subject: geometry and multiple cards in a stack Message-ID: Hello, I'm learning revolution, so i daresay this is a dumb beginner question, To test various things I made a 3 card stack, and set up geometry management where appropriate for the objects on each card. Although the current card responds correctly when I resize the stack, the other cards don't know that anything has changed, and their objects still retain the dimensions that relate to the previous stack size. Is there a way to update the geometry of the other (or all) cards either when the stack is resized, or when I next go to one of them ? martin baxter m a r t i n martin baxter Cambridge UK From wow at together.net Wed Jan 9 08:17:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 9 08:17:01 2002 Subject: Image size In-Reply-To: Message-ID: Maybe I'm just missing something very simple, but I'm looking at an picture image that the palette says is 450x250. I'm looking at the exact same image in Fireworks. The image in Rev looks to be 60% the size of the Fireworks image, and the Fireworks image appears correctly (meaning it looks to be about six inches across). All my Rev images show up way too small on the screen. What am I missing? Richard Miller From wow at together.net Wed Jan 9 08:22:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 9 08:22:01 2002 Subject: Image size In-Reply-To: Message-ID: Never mind that last post. Solved the problem. I see that when setting an image control (which was located at the top left of a window) to a filename, Rev doesn't automatically make the adjustment and keep the topleft at 0,0. So part of the image just wasn't showing! I don't see why Rev doesn't default to the 0,0 location, but so be it. Richard > Maybe I'm just missing something very simple, but I'm looking at an picture > image that the palette says is 450x250. I'm looking at the exact same image > in Fireworks. The image in Rev looks to be 60% the size of the Fireworks > image, and the Fireworks image appears correctly (meaning it looks to be > about six inches across). All my Rev images show up way too small on the > screen. What am I missing? > > Richard Miller > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From Doug_Ivers at lord.com Wed Jan 9 08:39:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Wed Jan 9 08:39:01 2002 Subject: tokens and parsing Message-ID: <6150F6099DBED111852E0008C7241464049B3567@NTSRV-CRD04> > -----Original Message----- > From: Scott Raney [mailto:raney at metacard.com] > Sent: Tuesday, January 08, 2002 2:16 PM > To: use-revolution at lists.runrev.com > Subject: Re: popups and tokens (was "Digest-something") > > snip > > > 2. > > Seems that the word parser is little more than an item > parser with the > > itemDelimiter set to " ", > > It's a bit more, because it also skips multiple spaces, and tabs and > returns in addition to spaces (neither is possible with item chunks). > > > except for the stupid behavior with quotes. I > > would like a true word parser. Or a parser for which we can specify > > multiple delimiters. Like a java token function. What is > the best/fastest > > way to parse words even in the presence of quotes and punctuation? > > Use "token" chunks (e.g., "repeat for each token t in > "). > It's the same parser the engine uses for compiling scripts. > snip > I did a little testing of the token and it doesn't seem to weed out chars such as "." and "!". So it appears that I will have to write my own word parser. -- D From Doug_Ivers at lord.com Wed Jan 9 08:41:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Wed Jan 9 08:41:01 2002 Subject: Repeat speed and stripping chars Message-ID: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> > >2. > >Seems that the word parser is little more than an item > parser with the > >itemDelimiter set to " ", except for the stupid behavior > with quotes. I > >would like a true word parser. Or a parser for which we can specify > >multiple delimiters. Like a java token function. What is > the best/fastest > >way to parse words even in the presence of quotes and punctuation? > > There are several ways. The brute force method shouldn't be > dismissed -- try a repeat for each char C in myString and see > if it meets your needs. Note that the repeat form is critical > for performance. If you repeat with i = 1 to whatever, that > will start fast and slow down quickly as the string grows. > Repeat for each starts faster and stays fast no matter the > size of the string. > Thanks, Geoff! The speed of "repeat for each char..." is a valuable revelation for me! With this new understanding, what would be the most efficient code for a "stripChars(theText,theChars)" function? Normally, I would say "repeat with i = number of chars of theText down to 1" so that I can delete chars with out messing up the indexing. Is there a similar way to reverse the "repeat for each..."? If not, should I pull out the chars I want and assemble a new return string? -- D From benr_mc at cogapp.com Wed Jan 9 09:01:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 9 09:01:01 2002 Subject: Import stack in another In-Reply-To: Message-ID: on 9/1/02 9:35 AM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > The stack mover. This is from memory -- open the application overview, click > on a stack, click on the expansion triangle to open the application overview, > then click on the small button at the bottom of the expanded section. And - someone PLEASE correct me if I'm wrong, before I do something silly - despite the name and the other uses of the word 'move' in the tool, it doesn't move, but copy. Right? (If that is right, I do think it would be reassuring to re-word some parts of this tool...) Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From wmb at internettrainer.com Wed Jan 9 10:23:01 2002 From: wmb at internettrainer.com (Wolfgang M. Bereuter) Date: Wed Jan 9 10:23:01 2002 Subject: Card vs Sub Stack? In-Reply-To: <200201071952.OAA18629@www.runrev.com> Message-ID: am 07.01.2002 20:52 Uhr schrieb use-revolution-request at lists.runrev.com unter use-revolution-request at lists.runrev.com: > At 3:33 PM +0000 1/7/02, Ben Rubinstein wrote: >> My $0.02, FWIW: I have an application such as this, and used seperate >> substacks for each type, mainly so that the different types could be edited >> in different windows. It turned out that while some of my users appreciated >> this, some found it made their lives more confusing, and I ended up having >> to implement a 'pin windows' functionality which made all windows the same >> size and position (so that you could only see one at a time) and which >> arranged that when in this mode, dragging any (obviously the front most) >> would drag the others to the same position (so that they remained hidden >> behind it). In effect this was reverting to the position of having separate >> cards of one stack. >> >> Depending on your userbase, more functionality may not imply more >> productivity. > > Note that you can avoid this by using: > > go stack "someOtherStack" in the window of this stack > > That way only one stack window will ever be open, and you don't have to manage > a bunch of windows. > > regards, > > Geoff Thats it! I made all muy trainingsmap?-appl?s in this way, but with seperate stacks - not substacks... (that?s better to change, share, exchange or update parts of appl, if this is important for your project later on). Thats imho the best way to design a real userfriendly one-window UI. There is only one thing you have have to watch: "go back to the last visited card" If the card is in another stack, needs a different script like I expected. (This does not say much;) I can mail it to you... My ?0.02 regards Wolfgang M. Bereuter Learn easy with trainingsmaps? and outliner INTERNETTRAINER Wolfgang M. Bereuter Edelhofg. 17/11, A-1180 Wien, Austria ............................... http://www.internettrainer.com wmb at internettrainer.com ............................... Tel: ++43/1/ 961 0418 Fax: ++43/1/ 479 2539 From yvescoppe at skynet.be Wed Jan 9 10:31:03 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 10:31:03 2002 Subject: appearance Message-ID: Hello, On MacOS If you take for example the "find and replace" window in the edit menu, you see the "options" and "properties" title made in a appearance manage 9.x style. How can I access such a design ? I've looked in the revolutions UI stacks in list, but I don't understand how to access such a style? Can someone help me ? More generally, how can I access the appearance manage 9.x ? So for example this style here above in the "find and replace" window is the "175" in the toolbox; but there are full of others? Thanks. -- From yvescoppe at skynet.be Wed Jan 9 10:38:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 10:38:01 2002 Subject: drag and drop Message-ID: Hello, is it possible to drag and drop text from a fld to another in place of copy paste ? Do I need a script ? thanks. -- From jacque at hyperactivesw.com Wed Jan 9 11:59:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed Jan 9 11:59:01 2002 Subject: popups and tokens References: <200201090939.EAA24762@www.runrev.com> Message-ID: <3C3C7684.DDD0FD50@hyperactivesw.com> Scott Raney wrote: > > What would be the best way to implement a popup menu when the user > > right-clicks over a standard button or over a field? Should I have a hidden > > popup-style button that I re-locate and show wherever the mouse was clicked? > > No, use the popup command. In RR 1.1.1/MC 2.4.1 you can popup a > button (required to get proper look and feel on MacOS). Could you explain how to do that? What style should the button be on a Mac in order to contain menu items and still look correct on Mac OS? I can't find a style or a setting that makes the button both look right and show its contents. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at inspiredlogic.com Wed Jan 9 12:32:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 9 12:32:01 2002 Subject: Repeat speed and stripping chars In-Reply-To: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> References: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> Message-ID: At 8:38 AM -0500 1/9/02, Ivers, Doug E wrote: >Thanks, Geoff! The speed of "repeat for each char..." is a valuable >revelation for me! With this new understanding, what would be the most >efficient code for a >"stripChars(theText,theChars)" function? Normally, I would say "repeat with >i = number of chars of theText down to 1" so that I can delete chars with >out messing up the indexing. Is there a similar way to reverse the "repeat >for each..."? If not, should I pull out the chars I want and assemble a new >return string? Exactly: put empty into tResult repeat for each char C in tMyString if C is in tMyListOfAcceptableChars then put C after tResult end if end repeat --tResult is now the string you want. The repeat with i =... form will be much slower for large strings, and will get slower geometrically. The repeat for each form gets slower linearly. (both assessments are rough estimates) regards, Geoff From sims at ezpzapps.com Wed Jan 9 12:54:33 2002 From: sims at ezpzapps.com (sims) Date: Wed Jan 9 12:54:33 2002 Subject: SMTP AUTH In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> Message-ID: Am using smtp - sockets for sending email. I've run up against the need to include scripting/function which will enable me to do smtp authentication ( 550 error). Can anyone provide me with an example of how this is done? sims From yvescoppe at skynet.be Wed Jan 9 13:16:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 13:16:01 2002 Subject: Repeat speed and stripping chars In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> Message-ID: >At 8:38 AM -0500 1/9/02, Ivers, Doug E wrote: >>Thanks, Geoff! The speed of "repeat for each char..." is a valuable >>revelation for me! With this new understanding, what would be the most >>efficient code for a > >"stripChars(theText,theChars)" function? Normally, I would say "repeat with >>i = number of chars of theText down to 1" so that I can delete chars with >>out messing up the indexing. Is there a similar way to reverse the "repeat >>for each..."? If not, should I pull out the chars I want and assemble a new >>return string? > >Exactly: > >put empty into tResult >repeat for each char C in tMyString >if C is in tMyListOfAcceptableChars then >put C after tResult >end if >end repeat >--tResult is now the string you want. > >The repeat with i =... form will be much slower for large strings, >and will get slower geometrically. The repeat for each form gets >slower linearly. (both assessments are rough estimates) > I should try and test for speed the following : replace theChars with "" in TheText Hope it goes fast ! -- From raney at metacard.com Wed Jan 9 13:21:01 2002 From: raney at metacard.com (Scott Raney) Date: Wed Jan 9 13:21:01 2002 Subject: popups and tokens In-Reply-To: <200201091713.MAA31675@www.runrev.com> Message-ID: On Wed, 09 Jan 2002 "J. Landman Gay" wrote: > Scott Raney wrote: > > > > What would be the best way to implement a popup menu when the user > > > right-clicks over a standard button or over a field? Should I have a hidden > > > popup-style button that I re-locate and show wherever the mouse was clicked? > > > > No, use the popup command. In RR 1.1.1/MC 2.4.1 you can popup a > > button (required to get proper look and feel on MacOS). > > Could you explain how to do that? What style should the button be on a > Mac in order to contain menu items and still look correct on Mac OS? I > can't find a style or a setting that makes the button both look right > and show its contents. It has to be (not surprisingly) a popup button (i.e., menuMode popup, button contents set to the menu items you want to display, menuPick handler in its script). The other properties don't matter, and the button will typically be hidden or placed off screen. It does need to be in some open stack, though. Then, use the command "popup button whatever" in a mouseDown or mouseUp handler to open that button's menu panel at the mouse cursor location. Regards, Scott PS: as for the "tokens" question, check out the "replace" command to implement a stripChars(theText,theChars) function (replace with empty). Whether using that will be faster depends I'd guess on the number of chars in theChars. If just a few, use "replace". If a lot, use "repeat for each char" and "is in" to determine whether to keep or toss the character. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com ******************************************************** Scott Raney raney at metacard.com http://www.metacard.com MetaCard: You know, there's an easier way to do that... From gcanyon at inspiredlogic.com Wed Jan 9 13:53:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 9 13:53:01 2002 Subject: Repeat speed and stripping chars In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> Message-ID: At 7:15 PM +0100 1/9/02, yves COPPE wrote: >I should try and test for speed the following : >replace theChars with "" in TheText > >Hope it goes fast ! With replace you'd have to loop through each of the characters to get rid of. Not that that's a bad thing. It would probably be very fast. You could also do this in one command with the regular expression syntax. I haven't timed it to see which of the three is fastest. I suspect it depends on the details of how big a string you're working on, and how many characters you want to replace with nothing. regards, Geoff From webmaster at studioalice.se Wed Jan 9 14:37:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Wed Jan 9 14:37:01 2002 Subject: How to check the Checkbox? Message-ID: Hello This is probably basic knowledge. But I have tried "everthing" and it does not work. 1. I have a checkbox, next to it is a textfield. 2. Another button sends a command (on mouseUp) to the checkbox. Then.. 3. If the checkbox is "on", I want the text, in the field next to it, to be put in another textfield. 4. How do I check the checkbox? I tried this: on plusOrder if btn ID 1118 then put fld ID 1115 & tab & fld ID 1116 into field "order" end plusOrder I also tried the "selected"-property. But nothing happend. Not even error. One other thing, can I send a command (from a button) to a group (containing several checkboxies) and every checkbox react to the command? /magnus von br?msen -------------------------------------------------------------------------------------------------- "Tiden g?r och Macen best?r" -------------------------------------------------------------------------------------------------- Studio Alice Magnus von Br?msen 0702-212 495 0322-633 833 www.studioalice.se -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1045 bytes Desc: not available URL: From yvescoppe at skynet.be Wed Jan 9 15:07:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 9 15:07:01 2002 Subject: Repeat speed and stripping chars In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> Message-ID: >You could also do this in one command with the regular expression >syntax. I haven't timed it to see which of the three is fastest. I >suspect it depends on the details of how big a string you're working >on, and how many characters you want to replace with nothing. > >regards, > >Geoff > Dear Geoff I see you're expert in programming I've posted more than once two questions without answer. Can you help me ? 1) How can I assign a desktop icon to a stand alone application when I build a stack ? 2) Is it possible to access the appearance mgr with RR ? I see in some dlog or windows of RR typical rectangle with title in the appearance mgr of MacOS 9.x ? I've looked in the revolution UI Stacks list but I don't understand how it was made ?! I count on you? Thanks. -- From sarahr at genesearch.com.au Wed Jan 9 17:18:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Wed Jan 9 17:18:01 2002 Subject: How to check the Checkbox? In-Reply-To: Message-ID: > 1. I have a checkbox, next to it is a textfield. > 2. Another button sends a command (on mouseUp) to the checkbox. Then.. > 3. If the checkbox is "on", I want the text, in the field next to it, to > be put in another textfield. > > 4. How do I check the checkbox? I tried this: > > on plusOrder > if btn ID 1118 then put fld ID 1115 & tab & fld ID 1116 into field > "order" > end plusOrder > > I also tried the "selected"-property. But nothing happend. Not even > error. To set the check of a checkbox, use it's hilite property e.g. set the hilite of btn "My Checkbox" to true set the hilite of btn "Other Checkbox" to false In your other button that is controlling the checkbox, you need something like this: on mouseUp set the hilite of btn "My Checkbox" to true send mouseUp to btn "My Checkbox" end mouseUp Then in the checkbox itself: on mouseUp if the hilite of me then put fld "First" into fld "Second" end mouseUp > > One other thing, can I send a command (from a button) to a group > (containing several checkboxies) and every checkbox react to the command? I think you need to write a script in the group itself to do this. Here's one I tried: on doStuff repeat with b = 1 to the number of btns in me if the style of btn b of me = "checkBox" then -- do whatever you want with that checkbox end if end repeat end doStuff As this handler is in the group's script, "me" refers to the group. Then in your other button, have: send doStuff to group "Whatever" Cheers, Sarah From sarahr at genesearch.com.au Wed Jan 9 17:25:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Wed Jan 9 17:25:01 2002 Subject: appearance In-Reply-To: Message-ID: > On MacOS > If you take for example the "find and replace" window in the edit > menu, you see the "options" and "properties" title made in a > appearance manage 9.x style. > > How can I access such a design ? > I've looked in the revolutions UI stacks in list, but I don't > understand how to access such a style? > > Can someone help me ? > More generally, how can I access the appearance manage 9.x ? > So for example this style here above in the "find and replace" window > is the "175" in the toolbox; but there are full of others? The Options & Properties sections are groups with Show Name & Show Border switched on. Make a collection of buttons etc, select them all and choose "Group Selected" from the Object menu. Then open the Properties palette for the group and check Show Name & Show Border. I don't know if there is a way to access the Appearance manager directly. Cheers, Sarah From rrjlee at email.com Wed Jan 9 18:01:02 2002 From: rrjlee at email.com (Catnip) Date: Wed Jan 9 18:01:02 2002 Subject: Cross-platform Message-ID: Hi, I'm a Revolution newbie and found some, perhaps by now well-known problems, with the 1.1 Tutorial Getting Started section. I'll be reading the archives shortly to catch up. Meanwhile, I was curious about how successful a bit of basic testing on some of the supported platforms would be. I downloaded various engines and tried installing and starting revolution on 5 separate systems today: Win98/ia32 installed and started up fine. WinXP/ia64 started up fine, but InstallShield barfed reporting "WinExec failed: return 193". I managed it by zipping up the Win32 installed directory and ftp'd it to this machine to try starting it. rs6000 (I really feel this should be called AIX, but never mind) installed and started fine. Suse 7.1/ia32 installed and started fine. Linux SLES 7.1/PPC Unfortunately, I don't have console access so using remote X windows, I found my click on the Accept licence wasn't taken, so I had to just kill it. The performance with remote X windows on our 100baseTX switched ethernet was unbelievably bad with revolution (normally, remote X is fine for us), but I haven't had time to see what other factors might have caused/contributed to this. -- Catnip From saultsj at missouri.edu Wed Jan 9 19:52:01 2002 From: saultsj at missouri.edu (J. Scott Saults) Date: Wed Jan 9 19:52:01 2002 Subject: RAPID SEQUENCE of audioclips on a Mac In-Reply-To: <200201081448.JAA04510@www.runrev.com> Message-ID: <5.1.0.14.2.20020109053752.00a2a1e0@pop.email.missouri.edu> I want to thank both Scott Rossi and Geoff Canyon for their separate suggestions (in Mon, 7 Jan 2002, use-revolution at lists.runrev.com) regarding how to try playing a rapid sequence of sounds in Revolution. Although I really appreciate your efforts, neither procedure seems entirely adequate. My initial tests, on a mHz mhz Pentium 4 computer, seemed promising. However, the same scripts on a 250 mHz G3 Apple Mac were way too slow and erratic. Unless I'm missing something (I'm open to suggestions & corrections), the timing of the onsets of the sound clips, using either Scott's or Geoff's method, critically depends on how long it takes Revolution to load and begin playing a sound clip, after the play command is executed. A fast Pentium seems just about fast enough to (usually) play 250 ms sounds at about 4 sounds per second. But the Mac I tried is not even close. The onset-to-onset times were 300 or 400 ms or more, and furthermore, erratic and unpredictable (using either method). It might help if there were some way to reduce this latency (loading and playing a sound) and/or make it more regular and predictable so some kind of correction could be incorporated. If I can't do this simple task, then I may be wasting my time and money on Revoution. I really hope someone can help me work around this apparent limitation, even if I have to use external commands to do it. Perhaps (hopefully) I'm misunderstanding something about the methods suggested by Scott and Geoff. As soon as I can, I'll take a closer look at my implementation and tests of Scott's and Geoff's suggestions to see if I've made any mistakes.. I'm still new to Revolution, and I know it has features and capabilities that I'm not yet familiar with using. Surely Revolution can do this (play a rapid sequence), considering that I could do it well enough using HyperCard on an old Mac II many years ago. Or is Revolution/MetaCard really deficient in this regard? Thanks again for the help already offered, and for any additional suggestions anyone would like to share. Best regards, Scott Saults From wow at together.net Wed Jan 9 20:29:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 9 20:29:01 2002 Subject: Is Rev ready for commercial applications? In-Reply-To: Message-ID: As someone who has worked extensively with Hypercard, Supercard, OMO, and Toolbook, I'm impressed with Rev so far. It seems to have lots of potential. 1.1.1 appears much more stable. We're considering coming out with a CD based on Rev very shortly. Our product is mostly data, so the interface work can go very quickly. The big question: can 1.1.1 be used for a commercial product? Will this version time out or is it good to go? Can we expect a product built on a Mac using relatively simple Rev features to work reliably on Windows (if not Unix)? We appreciate any feedback on these issues. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info From rcozens at pon.net Wed Jan 9 20:33:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Wed Jan 9 20:33:01 2002 Subject: Creating an Icon Library In-Reply-To: Message-ID: >I'd like to create my own library of icons. > >Is there a guide somewhere that steps you through the process? > >Where can I find more info? Hi David, I don't know where to look in RunRev documentation; but the issue is addressed in the MetaCard User Guide Rev. 2.2 (pp 13 & 14). One point to note: "If you intend to distribute sets of custom cursors, patterns, icons, or brush shapes, contact MetaCard Corporation to reserve a block of ids for you to use to avoid conflicting with others' images." Rob Cozens CCW, Serendipity Software Company "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) From pixelbird at interisland.net Wed Jan 9 21:34:02 2002 From: pixelbird at interisland.net (Ken Norris) Date: Wed Jan 9 21:34:02 2002 Subject: geometry and multiple cards in a stack In-Reply-To: Message-ID: on 1/9/02 3:52 AM, Martin Baxter at martin at atwork.bdx.co.uk wrote: > Hello, > > I'm learning revolution, so i daresay this is a dumb beginner question, > > To test various things I made a 3 card stack, and set up geometry > management where appropriate for the objects on each card. > Although the current card responds correctly when I resize the stack, the > other cards don't know that anything has changed, and their objects still > retain the dimensions that relate to the previous stack size. > Is there a way to update the geometry of the other (or all) cards either > when the stack is resized, or when I next go to one of them ? ---------- Thanks for asking this question, Martin. I don't have the answer, but I'm very interested as well, so I'll be watching the thread and responding. Hope you don't mind. Best regards, Ken N. From sarahr at genesearch.com.au Wed Jan 9 21:44:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Wed Jan 9 21:44:01 2002 Subject: geometry and multiple cards in a stack In-Reply-To: Message-ID: > To test various things I made a 3 card stack, and set up geometry > management where appropriate for the objects on each card. > Although the current card responds correctly when I resize the stack, the > other cards don't know that anything has changed, and their objects still > retain the dimensions that relate to the previous stack size. > Is there a way to update the geometry of the other (or all) cards either > when the stack is resized, or when I next go to one of them ? > > martin baxter > > m a r t i n > > martin baxter Cambridge UK Try using the "revUpdateGeometry" command, I suggest in a preOpenCard handler. Sarah From jacque at hyperactivesw.com Wed Jan 9 22:33:00 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed Jan 9 22:33:00 2002 Subject: Repeat speed and stripping chars Message-ID: <3C3D0B07.2F4ACFEB@hyperactivesw.com> >>At 8:38 AM -0500 1/9/02, Ivers, Doug E wrote: >I should try and test for speed the following : >replace theChars with "" in TheText > >Hope it goes fast ! It will be lightening fast, and is recommended over any other method. I use it all the time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 9 22:38:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed Jan 9 22:38:01 2002 Subject: popups and tokens Message-ID: <3C3D0C42.A0FDA0B1@hyperactivesw.com> Scott Raney wrote: >It has to be (not surprisingly) a popup button (i.e., menuMode popup, >button contents set to the menu items you want to display, menuPick >handler in its script). The other properties don't matter, and the >button will typically be hidden or placed off screen. It does need to >be in some open stack, though. Then, use the command "popup button >whatever" in a mouseDown or mouseUp handler to open that button's menu >panel at the mouse cursor location. Is there a way to pop the menu up at a designated coordinate? Mac popup menus appear in a static location instead of at the cursor location. Also, on the base button (not the hidden one with the menus in it) is there a way to get the little down arrow at the right edge, or do we still need to implement it as a graphic? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 9 22:49:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed Jan 9 22:49:01 2002 Subject: geometry and multiple cards in a stack Message-ID: <3C3D0EDD.FC3F3C6F@hyperactivesw.com> >on 1/9/02 3:52 AM, Martin Baxter at martin at atwork.bdx.co.uk wrote: >> Although the current card responds correctly when I resize the stack, the >> other cards don't know that anything has changed, and their objects still >> retain the dimensions that relate to the previous stack size. >> Is there a way to update the geometry of the other (or all) cards either >> when the stack is resized, or when I next go to one of them ? The "resizeStack" message is sent only to the current card, and then on up the hierarchy. The other cards never receive the message. If you have only a few cards, you could resize them all at the same time by locking the screen and then using the "send" command to send a "resizeStack" message to each. If you have more than just a few though, that may take too long. In most cases I think you'd just want to send a "resizeStack" message in a preOpenCard handler. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From davethebrv at mac.com Wed Jan 9 22:55:01 2002 From: davethebrv at mac.com (David Beck) Date: Wed Jan 9 22:55:01 2002 Subject: Regular expressions In-Reply-To: <200201100242.VAA11381@www.runrev.com> Message-ID: 1) Where can I find some documentation on Revs implementation of regular expressions? 2) (related) I'm trying to convert the HTMLText of a field to standard HTML. Everything is peachy except that the font sizes go amuck because HTML doesn't use point sizes. So I'm looking for a way to convert the point sizes in the HTMLText of the field to standard HTML 1-9 sizes. I would like to do a replace like: replaceText "" with "" where f(x) returns an approximate conversion from point to HTML font sizes. If there is not a way to do this with Rev's regular expressions, does anyone have another solution to this problem? Thanks in advance, Dave From david.bovill at opn-technologies.com Thu Jan 10 00:11:01 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Thu Jan 10 00:11:01 2002 Subject: tokens and parsing In-Reply-To: <6150F6099DBED111852E0008C7241464049B3567@NTSRV-CRD04> Message-ID: Don't know if these help. I use them for the function "replaceWords". The function "knows" not to touch stuff inside quotes, etc... it's old, not optimised for speed etc), and I haven't checked it thoroughly so use with care: ------------------------------------------------------------------------ function wordDelim someChar -- version 9.0 -- could be much better! put quote & space & return & "!?':;()[]{}<>,." into test if someChar is in test then return true else return false end wordDelim function replacWords someWord, someText, newWord, evenWithinQuotes, startCharNum -- version replaceWords 9.1, 2/2/00 put space & someText & space into testText put the number of chars of someWord into someWordLength repeat set the cursor to busy put offsetAfter(someWord, testText, startCharNum) into startCharNum put startCharNum + someWordLength - 1 into endCharNum put endCharNum + 1 into charNumAfterWord put startCharNum - 1 into charNumBeforeWord put wordDelim(char charNumAfterWord of testText) and wordDelim(char charNumBeforeWord of testText) into wholeWord if startCharNum is 0 then delete char 1 of testText delete last char of testText return testText else if wholeWord is false then next repeat else if evenWithinQuotes is not true then get charToChunk(startCharNum, testText) put item 1 of it into wordNum put item 2 of it into itemNum put item 3 of it into lineNum put item 4 of it into charNumOfline put line lineNum of testText into testLine get char charNumOfline of testLine if withinQuotes(charNumOfline, testLine) is true then next repeat else end if else end if put newWord into char startCharNum to endCharNum of testText if newWord is empty then if char startCharNum of testText is in " " then delete char startCharNum of testText end if end if end if end repeat end replaceWords function charToChunk wordOrCharNum, someText -- version latest (for old times sake) if wordOrCharNum is not a number then put offset(wordOrCharNum, someText) into wordOrCharNum construct_LineChunk wordOrCharNum, someText, charOfLine, wordOfLine, itemOfLine, lineNum return wordOfLine & "," & itemOfLine & "," & lineNum & "," & charOfLine end charToChunk on construct_LineChunk charNum, someText, @charOfLine, @wordOfLine, @itemOfLine, @lineNum -- version latest,3/9/01 get char 1 to charNum of someText if someText is empty then put 1 into lineNum put 1 into itemOfLine put 1 into wordOfLine put 1 into charOfLine else put the number of lines of it into lineNum put the number of items of line lineNum of it into itemOfLine put the number of words of item itemOfLine of line lineNum of it into wordOfLine put the number of chars of line lineNum of it into charOfLine end if end construct_LineChunk function offsetAfter string, text, startChar -- version 9.0 if startChar < 0 then put 0 into startChar delete char 1 to startChar of text get offset(string, text) if it is 0 then return 0 else return it + startChar end offsetAfter function withinQuotes textOrOffset, someContainer -- version latest, 2/2/00 put item 1 of textOrOffset into startCharNum put item 2 of textOrOffset into endCharNum if endCharNum is empty then put startCharNum into endCharNum if startCharNum is a number and endCharNum is a number then else put offset(textOrOffset, someContainer) into startCharNum put startCharNum + the length of textOrOffset - 1 into endCharNum end if if startCharNum is 0 then return "Not Found" else put char 1 to (startCharNum - 1) of someContainer into textBefore put countStrings(quote, textBefore) into quotesBefore put the number of chars of someContainer into lastCharNum put char (endCharNum + 1) to lastCharNum of someContainer into textAfter put countStrings(quote, textAfter) into quotesAfter if isOdd(quotesBefore) and quotesAfter >= 1 then return true else return false end if end if end withinQuotes ------------------------------------------------------------------------ > From: "Ivers, Doug E" > Subject: RE: tokens and parsing > >> -----Original Message----- >> From: Scott Raney [mailto:raney at metacard.com] >> Subject: Re: popups and tokens (was "Digest-something") >> >> > snip >> >>> 2. >>> Seems that the word parser is little more than an item >> parser with the >>> itemDelimiter set to " ", >> >> It's a bit more, because it also skips multiple spaces, and tabs and >> returns in addition to spaces (neither is possible with item chunks). >> >>> except for the stupid behavior with quotes. I >>> would like a true word parser. Or a parser for which we can specify >>> multiple delimiters. Like a java token function. What is >> the best/fastest >>> way to parse words even in the presence of quotes and punctuation? >> >> Use "token" chunks (e.g., "repeat for each token t in >> "). >> It's the same parser the engine uses for compiling scripts. >> > snip >> > > I did a little testing of the token and it doesn't seem to weed out chars > such as "." and "!". So it appears that I will have to write my own word > parser. > > From david.bovill at opn-technologies.com Thu Jan 10 01:31:01 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Thu Jan 10 01:31:01 2002 Subject: geometry and multiple cards in a stack In-Reply-To: Message-ID: Either turn them into a group... Or use an "on preopenCard" handler to do the resizing... > From: Martin Baxter > Reply-To: use-revolution at lists.runrev.com > Date: Wed, 9 Jan 2002 11:52:40 +0000 > To: use-revolution at lists.runrev.com > Subject: geometry and multiple cards in a stack > > Hello, > > I'm learning revolution, so i daresay this is a dumb beginner question, > > To test various things I made a 3 card stack, and set up geometry > management where appropriate for the objects on each card. > Although the current card responds correctly when I resize the stack, the > other cards don't know that anything has changed, and their objects still > retain the dimensions that relate to the previous stack size. > Is there a way to update the geometry of the other (or all) cards either > when the stack is resized, or when I next go to one of them ? > > martin baxter > > m a r t i n > > martin baxter Cambridge UK > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From yvescoppe at skynet.be Thu Jan 10 03:02:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 10 03:02:01 2002 Subject: remove substack Message-ID: Hello, I've made a substack of a main stack, but with the further development, I don't need this substack anymore. How can I remove and delete the substack from the main stack ?? Thanks. -- From art at engr.uvic.ca Thu Jan 10 04:42:01 2002 From: art at engr.uvic.ca (Arthur Makosinski) Date: Thu Jan 10 04:42:01 2002 Subject: Selecting text Message-ID: Thanks for the suggestions on selecting a word by pointing. However the selecttext and selectchunk commands do not work when one tries to include a non alphabetic character such as in this case: %abc or *abc In Revolution, only the three characters "abc" are selected. I am trying to find a command or a trick to select the entire chunk which includes the "%" or "*". In Hypercard it worked when I did: click at the clickloc click at the clickloc put the selection into container However, when I try the above in Revolution, the computer freezes. The inclusion of the non-text characters are pretty important in my application, and I wonder if anyone has noticed this. Many thanks. Art -- ----------------------------------------------- Arthur Makosinski Manager of Laboratories Department of Mechanical Engineering, EOW 553 University of Victoria, Victoria, BC, V8W 3P6, Canada Tel: 250 721 6041, fax: 250 721 6051 http://www.me.uvic.ca/~art/ From koenner at t-online.de Thu Jan 10 06:48:02 2002 From: koenner at t-online.de (Ralf K=?ISO-8859-1?B?9g==?=nner) Date: Thu Jan 10 06:48:02 2002 Subject: FTP command - damaged file (german MacOS 9.2) Message-ID: Dear list, the following line does almost all the job: opening a connection, logging onto a server and sending a binary file: put URL "file:/HD/desktop folder/test.jpg" into URL "ftp://UserID:password at www.myServer.de/test.jpg" The only thing that fails is that the uploaded file can not be displayed in the browser. When trying to open the file, after downloading it back again from the server to my local HD via Fetch, PictureViewer and PhotoShop show up with a "Could not open - file is damaged" dialog. Any help is really welcome, thank you and best wishes, Ralf From nirs at mac.com Thu Jan 10 07:41:02 2002 From: nirs at mac.com (Nir Soffer) Date: Thu Jan 10 07:41:02 2002 Subject: finding the folder of a standalone Message-ID: <20020110124026.13266@mail.israsrv.net.il> Is this the only way to get the folder of the standalone application? on openStack local lFolder get matchText (the fileName of me , "^(.*)/[^/]+$" , lFolder ) set the defaultFolder to lFolder end openStack Since you can not use relative path without setting the defaultFolder I would expect the defaultFolder to be set automaticaly. Is there any way to make this code part of every project without pasting it inside? Nir Soffer -- Email: nirs at mac.com ICQ: 98571424 From rpresender at mail.earthlink.net Thu Jan 10 08:09:00 2002 From: rpresender at mail.earthlink.net (Robert Presender) Date: Thu Jan 10 08:09:00 2002 Subject: Is Rev ready for commercial applications? Message-ID: Richard wrote: References: Message-ID: >As someone who has worked extensively with Hypercard, Supercard, OMO, and >Toolbook, I'm impressed with Rev so far. It seems to have lots of potential. >1.1.1 appears much more stable. > >We're considering coming out with a CD based on Rev very shortly. Our >product is mostly data, so the interface work can go very quickly. > >The big question: can 1.1.1 be used for a commercial product? Will this >version time out or is it good to go? Can we expect a product built on a Mac >using relatively simple Rev features to work reliably on Windows (if not >Unix)? > >We appreciate any feedback on these issues. I've just released a dual platform CD-ROM developed using Rev 1.0. Rev 1.1 was still in beta testing and had a couple of show stoppers (for my project) which have been resolved in Rev 1.1.1. If you're interested in finding out a bit about the project (learning to draw and earn money from cartoons!), take a look at the following web site: http://www.getcartooning.com The cartooning course consists of 10 modules in Acrobat (launched by the Rev program on the CD), 32 mins of QT video (displayed within the Rev program screens using the Player object), 180+ cartoons with explanations and 60 tips in a pop-up window. Total size is about 580Mb on a hybrid CD-ROM that runs on Macs and Windows PCs. Even though Rev 1.0 didn't allow me to produce a native Mac OS X version, the "classic" version runs fine under Mac OS X as well as Mac OS 8/9 etc. The only problem I have is that under Win NT/2000/XP the Rev 1.0 revGoURL didn't work fully - it opens a browser, but doesn't actually go to the URL! This is fixed in Rev 1.1.1. Otherwise it runs fine on Macs (PPC), Win 95/98/98SE/ME as well as Win NT/2000/XP. As the GoURL feature is a very minor aspect of CD-ROM we're not rushing to replace the initial stock run just for this tiny blip! Cheers Peter From guy.jacquesson at wanadoo.fr Thu Jan 10 09:03:01 2002 From: guy.jacquesson at wanadoo.fr (guy jacquesson) Date: Thu Jan 10 09:03:01 2002 Subject: bad cursor selection? Message-ID: Hi all, Revolution is a very good program... I was using HC from the very beginning and enjoy to continue with RR and OS X! But a litlle question: when I click on a character in a string to select a chunk of it in the editor,(or elsewhere!) that char is NOT selected...the selection begins ALWAYS at the second - causing very often bug in my script! To have the whole thing selected, I must click ON the PREVchar... or EXACTLY between 2 chars... Never seen that before with HC. Is that "normal" or a know RR issue? I am working on a PowerBook G3 FWire, 320 Mo RAM, RR version 1.1, Mac OS X 10.1.1 Build 5M28. Regards, Guy Jacquesson college de PAMANDZI BP362 97615 PAMANDZI (Mayotte) guy.jacquesson at wanadoo.fr From webmaster at studioalice.se Thu Jan 10 09:29:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Thu Jan 10 09:29:01 2002 Subject: bad cursor selection? In-Reply-To: Message-ID: <072A232A-05D6-11D6-8A11-003065CCBD1A@studioalice.se> Hi, I had the same problem with v 1.1. But after upgrading to 1.1.1 (beta) the selection works just fine. And also the tool-tips works better in 1.1.1. You can download 1.1.1 at Runrev. /magnus On torsdag, januari 10, 2002, at 04:00 , guy jacquesson wrote: > Hi all, > > Revolution is a very good program... I was using HC from the very > beginning and enjoy to continue with RR and OS X! > > But a litlle question: > when I click on a character in a string to select a chunk of it in the > editor,(or elsewhere!) that char is NOT selected...the selection > begins ALWAYS at the second - causing very often bug in my script! To > have the whole thing selected, I must click ON the PREVchar... or > EXACTLY between 2 chars... > Never seen that before with HC. > > Is that "normal" or a know RR issue? > > I am working on a PowerBook G3 FWire, 320 Mo RAM, RR version 1.1, Mac > OS X 10.1.1 Build 5M28. > > Regards, > Guy Jacquesson > college de PAMANDZI BP362 > 97615 PAMANDZI (Mayotte) > guy.jacquesson at wanadoo.fr > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From wmb at internettrainer.com Thu Jan 10 10:06:01 2002 From: wmb at internettrainer.com (Wolfgang M. Bereuter) Date: Thu Jan 10 10:06:01 2002 Subject: use-revolution digest, Vol 1 #103 - 14 msgs In-Reply-To: <200201100238.VAA11326@www.runrev.com> Message-ID: am 10.01.2002 3:38 Uhr schrieb use-revolution-request at lists.runrev.com unter use-revolution-request at lists.runrev.com: > Dear Geoff > > I see you're expert in programming > I've posted more than once two questions without answer. Can you help me ? > > 1) How can I assign a desktop icon to a stand alone application when > I build a stack ? Hallo, Im not Geoff and far away from his knowledge about programming, but i can try to answer this "no" programming question. You can do this in the Distribution Builder: Open DB: Tab-> Windows options-> botton: Application icon -> Document icon (path to the icon on your hd) After building the distriburion you files have the icons On the Mac you can do it direct in the OS with copy and paste. Click in the information window on the symbol and paste your icon (Linux i dont know) hope this helps regards Wolfgang M. Bereuter Learn easy with trainingsmaps and outliner INTERNETTRAINER Wolfgang M. Bereuter Edelhofg. 17/11, A-1180 Wien, Austria ............................... http://www.internettrainer.com wmb at internettrainer.com ............................... Tel: ++43/1/ 961 0418 Fax: ++43/1/ 479 2539 From martin at atwork.bdx.co.uk Thu Jan 10 10:49:02 2002 From: martin at atwork.bdx.co.uk (Martin Baxter) Date: Thu Jan 10 10:49:02 2002 Subject: geometry and multiple cards in a stack Message-ID: >> Is there a way to update the geometry of the other (or all) cards either >> when the stack is resized, or when I next go to one of them ? >> >> martin baxter >> >> m a r t i n >> >> martin baxter Cambridge UK >From: Sarah Reichelt >Try using the "revUpdateGeometry" command, I suggest in a preOpenCard >handler. > >Sarah Tx on preopencard revupdategeometry end preopencard Does the trick fine, though I wouldn't really have suspected that from it's entry in the Transcript dictionary! FWIW, Sending the resizestack message also achieved the desired result but generated an error message. martin baxter From yvescoppe at skynet.be Thu Jan 10 11:22:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 10 11:22:01 2002 Subject: use-revolution digest, Vol 1 #103 - 14 msgs In-Reply-To: References: Message-ID: >Hallo, >Im not Geoff and far away from his knowledge about programming, but i can >try to answer this "no" programming question. > >You can do this in the Distribution Builder: >Open DB: Tab-> Windows options-> botton: Application icon -> Document icon >(path to the icon on your hd) >After building the distriburion you files have the icons >On the Mac you can do it direct in the OS with copy and paste. Click in the >information window on the symbol and paste your icon >(Linux i dont know) > >hope this helps > >regards >Wolfgang M. Bereuter On MacOs, the user can do the same : get info and cut the icon. No I want a desktop icon as resource Thanks for your help Do you have another idea ? -- From gcanyon at inspiredlogic.com Thu Jan 10 11:46:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 11:46:00 2002 Subject: FTP command - damaged file (german MacOS 9.2) In-Reply-To: References: Message-ID: At 12:36 PM +0100 1/10/02, Ralf K?nner wrote: >the following line does almost all the job: opening a connection, logging >onto a server and sending a binary file: > >put URL "file:/HD/desktop folder/test.jpg" into URL >"ftp://UserID:password at www.myServer.de/test.jpg" > >The only thing that fails is that the uploaded file can not be displayed in >the browser. When trying to open the file, after downloading it back again >from the server to my local HD via Fetch, PictureViewer and PhotoShop show >up with a "Could not open - file is damaged" dialog. > >Any help is really welcome, thank you and best wishes, It's possible the file isn't being uploaded as binary. Is it possible to trace the libURL stack to see what it's doing? gc From gcanyon at inspiredlogic.com Thu Jan 10 11:48:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 11:48:01 2002 Subject: finding the folder of a standalone In-Reply-To: <20020110124026.13266@mail.israsrv.net.il> References: <20020110124026.13266@mail.israsrv.net.il> Message-ID: At 2:40 PM +0200 1/10/02, Nir Soffer wrote: >Is this the only way to get the folder of the standalone application? > >on openStack > local lFolder > get matchText (the fileName of me , "^(.*)/[^/]+$" , lFolder ) > set the defaultFolder to lFolder >end openStack > >Since you can not use relative path without setting the defaultFolder I >would expect the defaultFolder to be set automaticaly. > >Is there any way to make this code part of every project without pasting >it inside? The defaultFolder is set automatically. It's just that it's set to the folder containing the app running the current stack. So when you build a standalone, it's the folder with the standalone. When you're developing, it's the folder with Revolution in it. I just put all my resources into the folder with Rev while I'm developing and with the standalone when I deliver. Others put in a script similar to the one you posted to make the localFolder default to where the stack is. regards, Geoff From gcanyon at inspiredlogic.com Thu Jan 10 11:51:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 11:51:01 2002 Subject: Revolution dinner at MacWorld tonight In-Reply-To: <20020110124026.13266@mail.israsrv.net.il> References: <20020110124026.13266@mail.israsrv.net.il> Message-ID: Any revolutionaries in the area can come by. We're meeting at the Revolution booth at 5:45 and leaving at the end of the show at 6pm. We should hit the restaurant about 6:30. We're heading to the Rainforest Cafe (145 Jefferson Street). It is like a cross between a simulated rain forest and Disneyland including some animatronics. The food prices seem reasonable. If anyone needs more information, send me email directly and I'll try to respond during the day. regards, Geoff From gcanyon at inspiredlogic.com Thu Jan 10 11:54:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 11:54:00 2002 Subject: Selecting text In-Reply-To: References: Message-ID: At 4:36 PM -0800 1/9/02, Arthur Makosinski wrote: >However the selecttext and selectchunk commands do not work when one tries to include a non alphabetic character such as in this case: > >%abc or *abc You could set the link style of the text (group has been deprecated). That would return whatever you want. gc From gcanyon at inspiredlogic.com Thu Jan 10 12:20:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 12:20:01 2002 Subject: Import stack in another In-Reply-To: References: Message-ID: At 1:59 PM +0000 1/9/02, Ben Rubinstein wrote: >And - someone PLEASE correct me if I'm wrong, before I do something silly - >despite the name and the other uses of the word 'move' in the tool, it >doesn't move, but copy. Right? > >(If that is right, I do think it would be reassuring to re-word some parts >of this tool...) I think you're right that it moves rather than copies. Check out the clone command. gc From chipp at chipp.com Thu Jan 10 12:23:06 2002 From: chipp at chipp.com (Chipp Walters) Date: Thu Jan 10 12:23:06 2002 Subject: FTP command - damaged file (german MacOS 9.2) In-Reply-To: Message-ID: try using "binfile:/HD/desktop" instead of "file:/HD/desktop" -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Ralf K?nner Sent: Thursday, January 10, 2002 5:37 AM To: use-revolution at lists.runrev.com Subject: FTP command - damaged file (german MacOS 9.2) Dear list, the following line does almost all the job: opening a connection, logging onto a server and sending a binary file: put URL "file:/HD/desktop folder/test.jpg" into URL "ftp://UserID:password at www.myServer.de/test.jpg" The only thing that fails is that the uploaded file can not be displayed in the browser. When trying to open the file, after downloading it back again from the server to my local HD via Fetch, PictureViewer and PhotoShop show up with a "Could not open - file is damaged" dialog. Any help is really welcome, thank you and best wishes, Ralf _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From chipp at chipp.com Thu Jan 10 12:23:12 2002 From: chipp at chipp.com (Chipp Walters) Date: Thu Jan 10 12:23:12 2002 Subject: FTP command - damaged file (german MacOS 9.2) In-Reply-To: Message-ID: I've a test FTP stack on this page: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm -Chipp -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Ralf K?nner Sent: Thursday, January 10, 2002 5:37 AM To: use-revolution at lists.runrev.com Subject: FTP command - damaged file (german MacOS 9.2) Dear list, the following line does almost all the job: opening a connection, logging onto a server and sending a binary file: put URL "file:/HD/desktop folder/test.jpg" into URL "ftp://UserID:password at www.myServer.de/test.jpg" The only thing that fails is that the uploaded file can not be displayed in the browser. When trying to open the file, after downloading it back again from the server to my local HD via Fetch, PictureViewer and PhotoShop show up with a "Could not open - file is damaged" dialog. Any help is really welcome, thank you and best wishes, Ralf _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From gcanyon at inspiredlogic.com Thu Jan 10 12:23:17 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 12:23:17 2002 Subject: Repeat speed and stripping chars In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B3568@NTSRV-CRD04> Message-ID: At 9:04 PM +0100 1/9/02, yves COPPE wrote: >1) How can I assign a desktop icon to a stand alone application when I build a stack ? I don't think this is built-in to Revolution yet. You need to use ResEdit (or similar) to do it. regards, Geoff From wow at together.net Thu Jan 10 12:23:23 2002 From: wow at together.net (Richard D. Miller) Date: Thu Jan 10 12:23:23 2002 Subject: Is Rev ready for commercial applications? In-Reply-To: Message-ID: Remaining questions: 1) Will 1.1.1 time out or is it viable for a product? 2) Does that version work fine under Unix? Can it be sold as something that will work under all Unix systems or does this need to be limited? Any other issues to be careful of in coming out with a cross-platform commercial product now? Thanks. Richard Miller > > I've just released a dual platform CD-ROM developed using Rev 1.0. > Rev 1.1 was still in beta testing and had a couple of show stoppers > (for my project) which have been resolved in Rev 1.1.1. If you're > interested in finding out a bit about the project (learning to draw > and earn money from cartoons!), take a look at the following web site: > > http://www.getcartooning.com > > The cartooning course consists of 10 modules in Acrobat (launched by > the Rev program on the CD), 32 mins of QT video (displayed within the > Rev program screens using the Player object), 180+ cartoons with > explanations and 60 tips in a pop-up window. Total size is about > 580Mb on a hybrid CD-ROM that runs on Macs and Windows PCs. Even > though Rev 1.0 didn't allow me to produce a native Mac OS X version, > the "classic" version runs fine under Mac OS X as well as Mac OS 8/9 > etc. > > The only problem I have is that under Win NT/2000/XP the Rev 1.0 > revGoURL didn't work fully - it opens a browser, but doesn't actually > go to the URL! This is fixed in Rev 1.1.1. Otherwise it runs fine > on Macs (PPC), Win 95/98/98SE/ME as well as Win NT/2000/XP. As the > GoURL feature is a very minor aspect of CD-ROM we're not rushing to > replace the initial stock run just for this tiny blip! > > Cheers > > Peter > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From gcanyon at inspiredlogic.com Thu Jan 10 12:23:29 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 10 12:23:29 2002 Subject: Repeat speed and stripping chars Message-ID: >At 9:04 PM +0100 1/9/02, yves COPPE wrote: >>1) How can I assign a desktop icon to a stand alone application when I build a stack ? > >I don't think this is built-in to Revolution yet. You need to use ResEdit (or similar) to do it. I should point out that when I wrote this I was thinking only of the Mac -- I'm a bit eccentric that way :-) gc From yvescoppe at skynet.be Thu Jan 10 12:44:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 10 12:44:01 2002 Subject: Repeat speed and stripping chars In-Reply-To: References: Message-ID: > >At 9:04 PM +0100 1/9/02, yves COPPE wrote: >>>1) How can I assign a desktop icon to a stand alone application >>>when I build a stack ? >> >>I don't think this is built-in to Revolution yet. You need to use >>ResEdit (or similar) to do it. > >I should point out that when I wrote this I was thinking only of the >Mac -- I'm a bit eccentric that way :-) > Don't matter, I'm a mac user ! -- From webmaster at studioalice.se Thu Jan 10 13:03:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Thu Jan 10 13:03:01 2002 Subject: How to check the Checkbox? In-Reply-To: Message-ID: > > I think you need to write a script in the group itself to do this. > Here's > one I tried: > > on doStuff > repeat with b = 1 to the number of btns in me > if the style of btn b of me = "checkBox" then > -- do whatever you want with that checkbox > end if > end repeat > end doStuff Sarah, I would appreciate a little more help about this. The group have this script: on plusOrder repeat with b = 1 to the number of buttons in me if the style of btn b of me = "checkbox" then send plusOrder to btn b -- if I specifiy a single buttons ID here it works end if end repeat end plusOrder In this group every single checkbox have this script: on plusOrder if the hilite of me then put fld id 1131 into fld "order" end plusOrder > > As this handler is in the group's script, "me" refers to the group. > > Then in your other button, have: > > send doStuff to group "Whatever" The button that will trigger the whole thing (I hope) have this script: on mouseUp send plusOrder to group "group1" end mouseUp When I click this button something happens because the "spinning wheel" shows. But not what want to happen. TIA Magnus > > Cheers, > Sarah > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1506 bytes Desc: not available URL: From kray at sonsothunder.com Thu Jan 10 13:15:00 2002 From: kray at sonsothunder.com (Ken Ray) Date: Thu Jan 10 13:15:00 2002 Subject: Revolution dinner at MacWorld tonight References: <20020110124026.13266@mail.israsrv.net.il> Message-ID: <002a01c19a02$31401560$9865fea9@mckinley.dom> Hey, Geoff! Any chance you can take a few pictures of the Rev people/booth and post them for us to see? Some of us didn't get a chance to go to MacWorld this year. (sigh) Thanks! Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Geoff Canyon" To: Sent: Thursday, January 10, 2002 10:50 AM Subject: Revolution dinner at MacWorld tonight > Any revolutionaries in the area can come by. > > We're meeting at the Revolution booth at 5:45 and leaving at the end of the show at 6pm. We should hit the restaurant about 6:30. > > We're heading to the Rainforest Cafe (145 Jefferson Street). It is like a cross between a simulated rain forest and Disneyland including some animatronics. The food prices seem reasonable. > > If anyone needs more information, send me email directly and I'll try to respond during the day. > > regards, > > Geoff > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From raney at metacard.com Thu Jan 10 15:21:01 2002 From: raney at metacard.com (Scott Raney) Date: Thu Jan 10 15:21:01 2002 Subject: popups and tokens In-Reply-To: <200201101406.JAA21666@www.runrev.com> Message-ID: On Wed, 09 Jan 2002 "J. Landman Gay" wrote: > Scott Raney wrote: > > >It has to be (not surprisingly) a popup button (i.e., menuMode popup, > >button contents set to the menu items you want to display, menuPick > >handler in its script). The other properties don't matter, and the > >button will typically be hidden or placed off screen. It does need to > >be in some open stack, though. Then, use the command "popup button > >whatever" in a mouseDown or mouseUp handler to open that button's menu > >panel at the mouse cursor location. > > Is there a way to pop the menu up at a designated coordinate? Hmm, it looks like "popup at " is supported for menu panels (stacks), but not for button popups. I'll bug report this. > Mac popup > menus appear in a static location instead of at the cursor location. First, let's get the terminology straight. There are actually three types of "popup" menus used on the Mac. The first is what in MC terminology are "option" menus (the Motif name for these things), which open over a button and allow you to make a selection from a list that replaces the button label. The second is the MetaCard standard definition of popup menus are, and they popup at the mouse loc (typically on the Mac by control-clicking). The third are those things you're talking about, which are actually more like pulldowns than popups because they open below the button clicked. > Also, on the base button (not the hidden one with the menus in it) is > there a way to get the little down arrow at the right edge, or do we > still need to implement it as a graphic? You need to implement it using a graphic (or image). Support for automatic drawing of that little arrow is on the feature-request list already but hasn't been scheduled yet. Regards, Scott > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com ******************************************************** Scott Raney raney at metacard.com http://www.metacard.com MetaCard: You know, there's an easier way to do that... From scott at tactilemedia.com Thu Jan 10 15:58:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Thu Jan 10 15:58:01 2002 Subject: [OT] Re: Revolution dinner at MacWorld tonight In-Reply-To: Message-ID: Recently, Geoff Canyon wrote: > Any revolutionaries in the area can come by. I went by the Rev booth yesterday to meet Kevin Miller and company in person and wish them well. I already know Kevin is very gregarious both personally and business-wise, but after only 5 minutes of chatting, he pulled out some Post-It(TM) notes began interrogating me about features I wanted to see added to Rev. For those folks who are concerned about lack of support from the Rev group, you have little to worry about, IMO. :-) Regards, Scott _____________________________________________________________________ Scott Rossi Tactile Media - Multimedia & Design Creative Director Email: scott at tactilemedia.com Web: http://www.tactilemedia.com From raney at metacard.com Thu Jan 10 16:45:01 2002 From: raney at metacard.com (Scott Raney) Date: Thu Jan 10 16:45:01 2002 Subject: FTP command - damaged file (german MacOS 9.2) In-Reply-To: <200201101714.MAA26423@www.runrev.com> Message-ID: > At 12:36 PM +0100 1/10/02, Ralf K?nner wrote: > >the following line does almost all the job: opening a connection, logging > >onto a server and sending a binary file: > > > >put URL "file:/HD/desktop folder/test.jpg" into URL > >"ftp://UserID:password at www.myServer.de/test.jpg" Ah, but you're *not* sending a binary file, unless you're working on a UNIX sytem. "file:" on Win32 and MacOS systems does line-delimiter translation. You probably want "binfile:". Regards, Scott ******************************************************** Scott Raney raney at metacard.com http://www.metacard.com MetaCard: You know, there's an easier way to do that... From pixelbird at interisland.net Thu Jan 10 18:42:01 2002 From: pixelbird at interisland.net (Ken Norris) Date: Thu Jan 10 18:42:01 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: Hello RR list, I just downloaded 1.1 because of the warning about the beta of 1.1.1. at the website. However, according to many of the recent posts I've been reading, it (1.1.1 beta) appears to have much fewer bugs than 1.1. So, I'm thinking I should have DL'd the 1.1.1 beta. Should I go ahead and trash 1.1 and DL 1.1.1 beta instead, and go ahead and use it for development? I'm just beginning with RR, but I've been using HC 2.4.1 for some time, and want to transfer the shells and rebuild the color with appropriate handler changes, etc. What say ye? Please note, I'm a bit intimidated by all the palettes, menu options, etc. I expect I'll be getting lost quite often for a while, so please be patient with 'dumb' questions. I'll be developing on a Mac. My goal with much of the software is to keep it simple and memory efficient enough to run on older machines, so impaired folks on fixed incomes can afford to use them. There are several things I need to know about RR: 1) Can I use it to control X-10 devices? Anything done with this type of thing yet? 2) I want to use it to send and receive text-only (for now, e.g., no attachments or graphics) eMail using something simple, like Claris. Or is it possible to build my own emailer with RR itself? How about this? 3) I need to develop full speech feedback for the vision impaired. I know this will need to be handled differently on each platform, but that's OK. Anyone done such a thing? Are there examples for PC's (I know relatively little about P.C.'s or Windows)? I'm quite excited about joining the group, using RR, et.al., and hope it's as friendly and helpful as the HC group. Thanks, and best regards Ken N. From sarahr at genesearch.com.au Thu Jan 10 19:20:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Thu Jan 10 19:20:01 2002 Subject: finding the folder of a standalone In-Reply-To: Message-ID: In a standalone, use "the address". This returns "computer name:path of current application". In development mode, this gives you the path to the Revolution app so you need to use a different method. Here is the script I use: if the environment = "development" then put word 2 to -1 of the long name of \ stack (the mainStack of this stack) into appPath replace quote with "" in appPath else set the itemDel to ":" put item 2 of the address into appPath end if This returns the complete path to the application, so you need to strip off the final section if you just want the folder name. Sarah > Is this the only way to get the folder of the standalone application? > > on openStack > local lFolder > get matchText (the fileName of me , "^(.*)/[^/]+$" , lFolder ) > set the defaultFolder to lFolder > end openStack > > Since you can not use relative path without setting the defaultFolder I > would expect the defaultFolder to be set automaticaly. > > Is there any way to make this code part of every project without pasting > it inside? > > > Nir Soffer > > -- > Email: nirs at mac.com > ICQ: 98571424 > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From niklas_almesjo at yahoo.com Thu Jan 10 19:31:00 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Thu Jan 10 19:31:00 2002 Subject: prevent from quit? In-Reply-To: <200201101714.MAA26423@www.runrev.com> Message-ID: <20020111002904.23404.qmail@web12302.mail.yahoo.com> hola, I can't get shutDownRequest to work.. If I've understood it correctly, you just put a handler for this message in the stackscript, rite? but hitting alt+f4 still quits the app.. what needs to be done? thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From gwills at ozemail.com.au Thu Jan 10 21:50:01 2002 From: gwills at ozemail.com.au (Greg Wills) Date: Thu Jan 10 21:50:01 2002 Subject: Printing to the right of the page width In-Reply-To: <200112301708.MAA26146@www.runrev.com> References: <200112301708.MAA26146@www.runrev.com> Message-ID: To those attending MacWorld, hope it is going brilliantly. To the rest of you, Hi also. Printing. I am trying to print the right side of a card that is beyond the printed page width. I have tied a number of print commands but have been unable to get the area I want to print - full size and starting at the left margin of the page. Any help gratefully appreciated. regards Greg Wills From sarahr at genesearch.com.au Fri Jan 11 00:45:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Fri Jan 11 00:45:01 2002 Subject: Converting colour names: Hex & RGB colour values... In-Reply-To: Message-ID: David, I was struggling with a way to do this also, but when I checked the Color palette, it just uses a custom property as a lookup table. Here's how to get the list: put the cREVColorTranslation of cd 1 of stack "revColors" into fld 1 This gives a list with each line having the following format: name,r,g,b I would like to be able to set a color using the name but then be able to read it as RGB. Cheers, Sarah > Thanks Chip, this (I think) works for the mouseColor (which seems to always > return RGB triplets), but if you have a button which has the background > colour set to "red" - then (unfortunately) the backgroundcolor of that > button is "red" - not "255,0,0" > > Baseconvert does not like "red"... so how do you force a function to return > an RGB triplet? Or better still given MC can understand RGB, HTML/Hex and > "red" - how do you convert between them without writing your own lookup > table for all those MC colour names? > >> From: "Chipp Walters" >> Subject: RE: Converting colour names: Hex & RGB colour values... >> >> >> on mouseDown >> put the mouseColor into thecolor >> >> set the numberFormat to "##" >> >> put formathex(baseConvert(item 1 of thecolor,10,16)) into R >> put formathex(baseConvert(item 2 of thecolor,10,16)) into G >> put formathex(baseConvert(item 3 of thecolor,10,16)) into B >> >> >> put thecolor into cd fld "rgb" of cd "stageLg" of stack "HemTools" >> put "#" & R & G & B into cd fld "hex" of cd "stageLg" of stack "HemTools" >> go to cd "stage" of stack "Hemtools" >> click at the loc of btn "Open Button" >> set the menuHistory of button "tabs" to 2 >> >> end mouseDown >> >> function formathex thevalue >> if the length of thevalue is 1 >> then put "0" before thevalue >> return thevalue >> end formathex > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From shaosean at unitz.ca Fri Jan 11 01:51:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 11 01:51:01 2002 Subject: Is Rev ready for commercial applications? References: Message-ID: <003d01c19a6c$03d264b0$88b15bd1@dreamlanpc> > 1) Will 1.1.1 time out or is it viable for a product? as far as i'm aware there's no timeout on each specific build of RunRev/MC.. i haven't seen anything otherwise.. > 2) Does that version work fine under Unix? Can it be sold as something that > will work under all Unix systems or does this need to be limited? there are specific *nix builds that are available (check the docs and the Distribution Builder) > Any other issues to be careful of in coming out with a cross-platform > commercial product now? different font sizes, different control looks, the way a program "feels" on a platform.. -- Sean From tim11 at bellatlantic.net Fri Jan 11 03:01:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Fri Jan 11 03:01:01 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: on 1/10/02 6:50 PM, Ken Norris at pixelbird at interisland.net wrote: > Hello RR list, > > I just downloaded 1.1 because of the warning about the beta of 1.1.1. at the > website. However, according to many of the recent posts I've been reading, > it (1.1.1 beta) appears to have much fewer bugs than 1.1. So, I'm thinking I > should have DL'd the 1.1.1 beta. I've downloaded the beta and it definitely seems considerably more stable than 1.1 on both Mac and W2K. > > Should I go ahead and trash 1.1 and DL 1.1.1 beta instead, and go ahead and > use it for development? I'm just beginning with RR, but I've been using HC > 2.4.1 for some time, and want to transfer the shells and rebuild the color > with appropriate handler changes, etc. I would, unless you enjoy frequent crashes ;-) > > What say ye? > > Please note, I'm a bit intimidated by all the palettes, menu options, etc. I > expect I'll be getting lost quite often for a while, so please be patient > with 'dumb' questions. I'll be developing on a Mac. My goal with much of the > software is to keep it simple and memory efficient enough to run on older > machines, so impaired folks on fixed incomes can afford to use them. > > There are several things I need to know about RR: > > 1) Can I use it to control X-10 devices? Anything done with this type of > thing yet? I'm also interested in that. I know there's more PC software to control x-10 than Mac software. I'd love to know if RR could communicate with any x-10 device. > > 2) I want to use it to send and receive text-only (for now, e.g., no > attachments or graphics) eMail using something simple, like Claris. Or is it > possible to build my own emailer with RR itself? How about this? You could probably use RR with AppleScript for Claris. Or do the latter. > > 3) I need to develop full speech feedback for the vision impaired. I know > this will need to be handled differently on each platform, but that's OK. > Anyone done such a thing? Are there examples for PC's (I know relatively > little about P.C.'s or Windows)? > > I'm quite excited about joining the group, using RR, et.al., and hope it's > as friendly and helpful as the HC group. > > Thanks, and best regards > Ken N. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From yvescoppe at skynet.be Fri Jan 11 03:38:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 11 03:38:00 2002 Subject: popUp Menu Message-ID: Hello, i'd like a popUp menu in a list fld with locked text on. So with a mouseStillDown script, it would be possible. How can I write the script ? When the user select an item of the popup menu, the selectedtext should come at the location of the clickedLine of the fld. Someone to help me ??? Thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From Frank.Barlow at ICL.com Fri Jan 11 03:55:01 2002 From: Frank.Barlow at ICL.com (Barlow Frank) Date: Fri Jan 11 03:55:01 2002 Subject: New Fields Message-ID: <9B7B6E6E6C76D311AAE10090272405B5013D9AB7@WWMESSD114> Now I don't create a new stack very often and the memory dims! But I had a little script in HyperCard to create New Fields and New Buttons. Something like On myFields repeat 10 times doMenuItem "New Field" of Menu "Tools" end repeat end myFields I have wasted an evening trying to write a script in Revolution to do this. Help please. Frank Barlow Unconundrum Ltd. frank at adsum.org From cyberscope at home.com Fri Jan 11 04:50:01 2002 From: cyberscope at home.com (Gene Kennedy) Date: Fri Jan 11 04:50:01 2002 Subject: use-revolution digest, Vol 1 #106 - 14 msgs References: <200201110022.TAA03820@www.runrev.com> Message-ID: <3C3EB28F.7AB6799@home.com> > From: Ken Norris > > There are several things I need to know about RR: > > 1) Can I use it to control X-10 devices? Anything done with this type of > thing yet? > > 2) I want to use it to send and receive text-only (for now, e.g., no > attachments or graphics) eMail using something simple, like Claris. Or is it > possible to build my own emailer with RR itself? How about this? > > 3) I need to develop full speech feedback for the vision impaired. I know > this will need to be handled differently on each platform, but that's OK. > Anyone done such a thing? Are there examples for PC's (I know relatively > little about P.C.'s or Windows)? Hi Ken, If you are targeting your applications for Mac then the answer is yes to all three items; and very easily. There are AppleScript scripting additions available for controling X-10 devices, sending e-mail and synthesizing speech. You can use all of these with RR's AppleScript/OSA support via the "Do" command. Alternatively, you should be able to develop your own e-mailer using RR only, after a little familiarization. There is also an external for RR that you can use for text-to-speech conversions. I too am new to RR but have no HC experience to build on. So, I'm learning a lot as I go. But what I've found so far is a development tool with extremely broad scope and depth. I'ts like the Swiss Army Knife of software. Or like the old Prego Spaghetti Sauce commercials used to say; "It's in there!" The X-10 scripting addition is available at http://www.seracsoftware.com/. Good hunting, Gene Kennedy From gcanyon at inspiredlogic.com Fri Jan 11 05:39:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Fri Jan 11 05:39:01 2002 Subject: Is it soup yet? In-Reply-To: References: Message-ID: At 3:50 PM -0800 1/10/02, Ken Norris wrote: >Should I go ahead and trash 1.1 and DL 1.1.1 beta instead, and go ahead and >use it for development? I'm just beginning with RR, but I've been using HC >2.4.1 for some time, and want to transfer the shells and rebuild the color >with appropriate handler changes, etc. > >What say ye? You're probably safe either way -- I'm using 1.1 for things I need to release immediately, 1.1.1 for anything that won't see the light of day for a month or two. >Please note, I'm a bit intimidated by all the palettes, menu options, etc. I >expect I'll be getting lost quite often for a while, so please be patient >with 'dumb' questions. I'll be developing on a Mac. My goal with much of the >software is to keep it simple and memory efficient enough to run on older >machines, so impaired folks on fixed incomes can afford to use them. > >There are several things I need to know about RR: > >1) Can I use it to control X-10 devices? Anything done with this type of >thing yet? Since I know SuperCard can do this, I'd bet Revolution can too. However, I haven't done it. >2) I want to use it to send and receive text-only (for now, e.g., no >attachments or graphics) eMail using something simple, like Claris. Or is it >possible to build my own emailer with RR itself? How about this? Revolution has socket access, but no built-in SMTP (yet). So rolling your own is definitely possible, but not particularly simple. You should be able to email using the default email client (on a Mac) using an Apple Event or an AppleScript. >3) I need to develop full speech feedback for the vision impaired. I know >this will need to be handled differently on each platform, but that's OK. >Anyone done such a thing? Are there examples for PC's (I know relatively >little about P.C.'s or Windows)? I think speech was part of the Externals, released by RunRev, but separately from Revolution. It's a little hard to find now (I don't remember where they put it and I'm offline right now, sorry. >I'm quite excited about joining the group, using RR, et.al., and hope it's >as friendly and helpful as the HC group. We try :-) regards, Geoff From gcanyon at inspiredlogic.com Fri Jan 11 05:39:12 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Fri Jan 11 05:39:12 2002 Subject: popUp Menu In-Reply-To: References: Message-ID: At 9:37 AM +0100 1/11/02, yves COPPE wrote: >i'd like a popUp menu in a list fld with locked text on. >So with a mouseStillDown script, it would be possible. >How can I write the script ? >When the user select an item of the popup menu, the selectedtext should come at the location of the clickedLine of the fld. >Someone to help me ??? If I understand correctly, would the popup command do the trick (without needing a mouseStillDown script)? You could store the clickLine in a global or a property, and then script the button you popup to make whatever changes you like based on that global or property. regards, Geoff From shaosean at unitz.ca Fri Jan 11 05:57:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 11 05:57:01 2002 Subject: New Fields References: <9B7B6E6E6C76D311AAE10090272405B5013D9AB7@WWMESSD114> Message-ID: <000701c19a8e$60a871d0$88b15bd1@dreamlanpc> even easier then that my friend.. on myFields repeat for 10 create field "MyFieldName" end repeat end myFields or if you already have a field you could just "clone" it (look clone up in the reference guide) From livfoss at blueyonder.co.uk Fri Jan 11 06:30:00 2002 From: livfoss at blueyonder.co.uk (Graham Samuel) Date: Fri Jan 11 06:30:00 2002 Subject: Is it soup yet? Message-ID: >On Thu, 10 Jan 2002 15:50:11 -0800 Ken Norris > wrote: > >Hello RR list, > >I just downloaded 1.1 because of the warning about the beta of 1.1.1. at the >website. However, according to many of the recent posts I've been reading, >it (1.1.1 beta) appears to have much fewer bugs than 1.1. So, I'm thinking I >should have DL'd the 1.1.1 beta. > >Should I go ahead and trash 1.1 and DL 1.1.1 beta instead, and go ahead and >use it for development? I'm just beginning with RR, but I've been using HC >2.4.1 for some time, and want to transfer the shells and rebuild the color >with appropriate handler changes, etc. > >What say ye? > >[...] I'd like to know the answer to this as well - I'm used to the idea that 'beta' implies 'not guaranteed to be working at industrial strength yet, but good enough for people to use and help the developer find the last few problems' - but it appears that this isn't what is meant in Revo's case. My own problem in learning Revolution is to convert from SuperCard on the Mac where I have some fairly simple published school applications (though still involving some thousands of lines of code). My idea is to produce the exact functional equivalent of the SC versions and then develop more advanced (and of course cross-platform) versions after becoming familiar with Revo. I'm just setting out - exciting! - and I'm about to start reading all the available material about converting from SC to Revo etc. Graham Samuel -- -------------------------------------------------------------------------- LFC Associates Ltd (The Living Fossil Co.) 39 Laurier Road, London NW5 1SH, UK. email: livfoss at blueyonder.co.uk tel. +44 207 485 7916; mobile: +44 7976 739 935; fax +44 207 813 9427 From livfoss at blueyonder.co.uk Fri Jan 11 06:50:01 2002 From: livfoss at blueyonder.co.uk (Graham Samuel) Date: Fri Jan 11 06:50:01 2002 Subject: Application Framework? Message-ID: Hi As I said in my previous mail, I'm just setting out to learn Revo from an experienced SuperCarder's viewpoint. I'm interested in looking at the Employee Database example, but I can't find it! I feel really stupid asking this, but could someone tell me where it is - doesn't seem to be in the download or on the Revo web site, but it's got to be somewhere! I don't know quite how much to expect from the Employee Database app anyway, but looking at the accompanying tutorial, I don't see much emphasis on some of the things which preoccupied me in my SuperCard days, when I had to construct a number of quite different applications for the same environment - has anyone developed an application framework which covers the main structure of a file-using app on Mac or Windows (I'm not used to Unix) - I mean a framework for a standalone which has for example: * the standard menus (e.g. File with Save, Save As. Page Setup, Print...; Edit with Cut, Copy, Paste, Clear; Help) * the standard actions implied by this (e.g. a file handling framework for saving, retrieving, naming, coping with errors etc; clipboard handling; invocation of the standard Help systems on the various platforms) * logic for launching the app either directly or by the user launching (double-clicking) one of its documents, including coping with launch attempts before and after the app is activated, handling (or refusing) multiple instances of open files, initial parameter setting and splash screens etc. * logic for quitting, including file saving, clean-up, quit enforced by the OS etc. Of course nobody could produce a complete 'one size fits all' framework which would work unmodified in a specific case, but there could be something that offers a flying start. I got this in SuperCard by studying various sample apps and by doing quite a lot of research (e.g. into event handling) but that was just on the Mac. Can anyone point me to something like this (maybe it's the Employee Database), or should I begin to think of constructing such a thing myself? I apologise if it's all there and I've just missed it. Graham -- -------------------------------------------------------------------------- LFC Associates Ltd (The Living Fossil Co.) 39 Laurier Road, London NW5 1SH, UK. email: livfoss at blueyonder.co.uk tel. +44 207 485 7916; mobile: +44 7976 739 935; fax +44 207 813 9427 From yvescoppe at skynet.be Fri Jan 11 07:34:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 11 07:34:01 2002 Subject: popUp Menu In-Reply-To: References: Message-ID: >If I understand correctly, would the popup command do the trick >(without needing a mouseStillDown script)? You could store the >clickLine in a global or a property, and then script the button you >popup to make whatever changes you like based on that global or >property. > >regards, > >Geoff it works fine, but? if I click an empty line in the fld, how can I know the number of the clicked line ? thanks. -- From gcanyon at inspiredlogic.com Fri Jan 11 12:54:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Fri Jan 11 12:54:01 2002 Subject: popUp Menu In-Reply-To: References: Message-ID: At 1:33 PM +0100 1/11/02, yves COPPE wrote: >it works fine, but? >if I click an empty line in the fld, how can I know the number of the clicked line ? If it's an actual line that simply has no text, for example, between the words "is" and "a" below: this is a test then the clickline will still return a valid result. If the user clicks below where there is any text, you can catch that with the mouseRelease message (and maybe a check to see if the mouse is still within the field) regards, geoff From wow at together.net Fri Jan 11 12:55:01 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 11 12:55:01 2002 Subject: Some kind of memory/purge error In-Reply-To: Message-ID: I'm encountering several problems with proper purging of stacks. Here's the simplest example: I have several stacks open (some are substacks). I close one stack (which has the destroystack and destroywindow commands in it) I check the revloadedstacks function and the Application Overview...both show the stack as being purged. No sign of it. I go to open a different stack which has the SAME stack name (but a different file name). I immediately get a dialog box asking what I want to do with the previous stack (i.e. which has the same stack name). This appears to be some kind of bug in the program. It is causing an inability to properly purge stacks from memory, as I'm continually opening and closing numerous stacks but some are not being fully purged. Obviously, it doesn't take long before I've got a serious memory problem. Is there a workaround for this, and has anyone else encountered it? Is this a known bug? Thanks. Richard Miller From yvescoppe at skynet.be Fri Jan 11 13:52:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 11 13:52:00 2002 Subject: popUp Menu In-Reply-To: References: Message-ID: >If it's an actual line that simply has no text, for example, between >the words "is" and "a" below: > >this >is > >a >test > >then the clickline will still return a valid result. If the user >clicks below where there is any text, you can catch that with the >mouseRelease message (and maybe a check to see if the mouse is still >within the field) > >regards, > Yes it works fine so for an empty fld I use the mouseRelease? I have some more questions without answer : 1) When I create a card from a script, I must write afterwards : place grouop xxx place group yyy the groups are not copied onto the new card systematically as it was with bg flds or bg btns in HC. Is it possible to have the flds and btns systematically copied in the new cd ? 2) How can I remove a substack from a main stack I don't need anymore ? 3) If I ask a divider in the object library and place it afterwards vertically, it looses his appearance as in the macOS 9.X appearance to become a common vertical black line. Can I do it otherwise ? 4) Is it possible to make a drag and drop of txt from a fld to another without having to copy/paste? thanks. please answer?I'm blocked in the developpement of my stacks?because of those questions? -- From mpetrides at earthlink.net Fri Jan 11 14:10:01 2002 From: mpetrides at earthlink.net (Marian Petrides) Date: Fri Jan 11 14:10:01 2002 Subject: Some kind of memory/purge error Message-ID: <20020111190748.348.qmail@earthlink.net> I have encountered this as well--dating back to v 1.0, although I have been ascribing it to my inability to conceptualize how Rev handles stacks vs stack files in memory. To me the whole issue of memory purging (or non-purging) is probably the single most frustrating problem with Rev--mainly because I am having trouble figuring out whether my actions are the problem or whether Rev is"'at fault." Sometimes I just purge then quit out of Rev, restart and then check Application Overview just to make sure everything is gone. Thanks, Richard, for putting into encapsulated form the problem I've been trying, albeit not always successfully, to work around. A specific request for the RunRev folks: I would find it immensely useful to be able to have all of my stack files have a main stack with the same generic name (for example MainApp) and have Rev not appear to get confused when I try to go from one stack file to another--as Richard set forth. Is this possible? Or is it already there but I'm making some sort of error and not getting setting things up the way they should be? Marian (PS sorry if my post is not as detailed as it should be but I've had no time to work with Rev in the last 2 months so details escape me.) -----Original Message----- From: "Richard D. Miller" Date: Fri, 11 Jan 2002 12:52:47 -0500 To: Subject: Some kind of memory/purge error > I'm encountering several problems with proper purging of stacks. Here's the > simplest example: > > I have several stacks open (some are substacks). > I close one stack (which has the destroystack and destroywindow commands in > it) > I check the revloadedstacks function and the Application Overview...both > show the stack as being purged. No sign of it. > I go to open a different stack which has the SAME stack name (but a > different file name). > I immediately get a dialog box asking what I want to do with the previous > stack (i.e. which has the same stack name). > > This appears to be some kind of bug in the program. It is causing an > inability to properly purge stacks from memory, as I'm continually opening > and closing numerous stacks but some are not being fully purged. Obviously, > it doesn't take long before I've got a serious memory problem. > > Is there a workaround for this, and has anyone else encountered it? Is this > a known bug? > > Thanks. > Richard Miller > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > -- From koenner at t-online.de Fri Jan 11 14:35:00 2002 From: koenner at t-online.de (Ralf K=?ISO-8859-1?B?9g==?=nner) Date: Fri Jan 11 14:35:00 2002 Subject: FTP command - damaged file (german MacOS 9.2) Message-ID: Thank you folks, "binfile:/HD/desktop" wokrs perfectly well. Best regards, Ralf > From: Scott Raney > > Ah, but you're *not* sending a binary file, unless you're working on a > UNIX sytem. "file:" on Win32 and MacOS systems does line-delimiter > translation. You probably want "binfile:". > Regards, > Scott ------------------------------------------------------------------------ > From: "Chipp Walters" > > I've a test FTP stack on this page: > http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm ------------------------------------------------------------------------ > From: "Chipp Walters" > > try using "binfile:/HD/desktop" instead of "file:/HD/desktop" ------------------------------------------------------------------------ >> Dear list, >> >> the following line does almost all the job: opening a connection, logging >> onto a server and sending a binary file: >> >> put URL "file:/HD/desktop folder/test.jpg" into URL >> "ftp://UserID:password at www.myServer.de/test.jpg" >> >> The only thing that fails is that the uploaded file can not be displayed in >> the browser. When trying to open the file, after downloading it back again >> from the server to my local HD via Fetch, PictureViewer and PhotoShop show >> up with a "Could not open - file is damaged" dialog. >> >> Any help is really welcome, thank you and best wishes, >> >> Ralf From Kim_Smith at byu.edu Fri Jan 11 15:31:01 2002 From: Kim_Smith at byu.edu (Kim L. Smith) Date: Fri Jan 11 15:31:01 2002 Subject: Resizing Graphic with Rev 1.1.1b1 Message-ID: <000201c19ade$7e5d8580$3e52bb80@smithkim> When I paste an image from the clipboard in Windows XP using the latest beta of Revolution and try to resize it, the image turns black. If I undo, it returns to the original images, unless I have gone to far. But if I link to a graphic file, it will resize with no problem. I don't know if this is a bug or just that I am doing something wrong. I might mention that here at Brigham Young University, we have three classes learning Revolution and Computer Assisted Instruction with close to 50 students. We teach it on both Mac and Windows computers. ====================== Mr. Kim L. Smith Humanities Research Center 3060 JKHB Brigham Young University Provo, UT 84602 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvescoppe at skynet.be Fri Jan 11 17:04:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 11 17:04:00 2002 Subject: ClickLine Message-ID: Hello, If the user click a line in a fld with the lockText property set to true, the selection stays on the clickedLine. I've tried to deselect the fld by writing in a script : select empty but it doesn't work Someone has an idea ??? -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From pixelbird at interisland.net Fri Jan 11 21:49:00 2002 From: pixelbird at interisland.net (Ken Norris) Date: Fri Jan 11 21:49:00 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: on 1/10/02 11:57 PM, Tim at tim11 at bellatlantic.net wrote: > I've downloaded the beta and it definitely seems considerably more stable > than 1.1 on both Mac and W2K. >> >> Should I go ahead and trash 1.1 and DL 1.1.1 beta instead, and go ahead and >> use it for development? I'm just beginning with RR, but I've been using HC >> 2.4.1 for some time, and want to transfer the shells and rebuild the color >> with appropriate handler changes, etc. > > I would, unless you enjoy frequent crashes ;-) ---------- This is the type of info I'm looking for...thanks. As soon as I get back to my office with the DSL connection, I'll DL 1.1.1. ---------- >> 2) I want to use it to send and receive text-only (for now, e.g., no >> attachments or graphics) eMail using something simple, like Claris. Or is it >> possible to build my own emailer with RR itself? How about this? > > You could probably use RR with AppleScript for Claris. Or do the latter. ---------- That's what I was thinking. I better get with some tutorials on AS. Thanks and best regards, Ken N. From pixelbird at interisland.net Fri Jan 11 22:09:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Fri Jan 11 22:09:01 2002 Subject: ClickLine In-Reply-To: Message-ID: on 1/11/02 2:01 PM, yves COPPE at yvescoppe at skynet.be wrote: > Hello, > > If the user click a line in a fld with the lockText property set to > true, the selection stays on the clickedLine. > I've tried to deselect the fld by writing in a script : > > select empty > > but it doesn't work > > Someone has an idea ??? > ---------- Try: select line 0 of field "whatever" Best regards, Ken N. From pixelbird at interisland.net Fri Jan 11 23:48:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Fri Jan 11 23:48:01 2002 Subject: Resizing Graphic with Rev 1.1.1b1 In-Reply-To: <000201c19ade$7e5d8580$3e52bb80@smithkim> Message-ID: on 1/11/02 12:28 PM, Kim L. Smith at Kim_Smith at byu.edu wrote: I might mention that here at Brigham Young University, we have three classes learning Revolution and Computer Assisted Instruction with close to 50 students. We teach it on both Mac and Windows computers. ----------- Any chance of taking the class online as independent study? One of my goals is to build interactive instruction media for the long term health care industry. Best regards, Ken Norris -------------- next part -------------- An HTML attachment was scrubbed... URL: From pixelbird at interisland.net Sat Jan 12 00:43:02 2002 From: pixelbird at interisland.net (Ken Norris) Date: Sat Jan 12 00:43:02 2002 Subject: Application Framework? In-Reply-To: Message-ID: Hi Graham, Your ideas are excellent. RR addresses many of the wish-list stuff HC'ers and even SC'ers want, but the features are so many and varied, plus a totally unfamiliar interface, as to make it a bit intimidating for me. I've been in and out of HC since version 1.0, and I guess I'm spoiled. Although I've never been a professional programmer, I now have some aspirations in that direction. I hope the adage "It's never too late" is true. I have a strong calling and specific purposes for what I want to do. But, even though I'm not at the "pro" level, and even though I often knock out little programs to help me a write other stuff on the fly, I'm a huge fan of structured programming. It helps me gain an overall picture of what I want to do. I'm a very visual oriented person, so I often use both outlines and schematics, sort of a flowchart-type storyboard approach, to develop my ideas. So, my big wish would be for RR to have a complete set of stacks that interactively demo all the "normal" operations. They could emulate, in steps, what a developer would do when designing; building parts, graphics, handlers, and functions, and assembling a color database stack, while the "student" follows along in real time. Such a thing would sure help me to learn the interface and library alteratives. I believe it was the original HyperCard development team that did, uh, what-was-it? "FocalPoint", I think. The thing was not only very functional in it's own right as a viable software product of its day, but if you hacked into it, it covered just about everything a person would need to know for complex scriptwriting. It's not that I lack confidence, even though there's still a lot I haven't yet learned about HC, much of which applies to RR, but, as I said, the interface and library functions are where I see trouble. I think, once I get used to it, I may even like it, but I'd rather do it with a GOOD ROAD MAP. Thanks, and warmest regards, Ken N. From pixelbird at interisland.net Sat Jan 12 01:10:01 2002 From: pixelbird at interisland.net (Ken Norris) Date: Sat Jan 12 01:10:01 2002 Subject: use-revolution digest, Vol 1 #106 - 14 msgs In-Reply-To: <3C3EB28F.7AB6799@home.com> Message-ID: on 1/11/02 1:38 AM, Gene Kennedy at cyberscope at home.com wrote: > Hi Ken, > > If you are targeting your applications for Mac then the answer is yes to all > three items; and very easily. > There are AppleScript scripting additions available for controling X-10 > devices, sending e-mail and > synthesizing speech. You can use all of these with RR's AppleScript/OSA > support via the "Do" command. > > Alternatively, you should be able to develop your own e-mailer using RR only, > after a little familiarization. > There is also an external for RR that you can use for text-to-speech > conversions. > > I too am new to RR but have no HC experience to build on. So, I'm learning a > lot as I go. But what I've found > so far is a development tool with extremely broad scope and depth. I'ts like > the Swiss Army Knife of software. > Or like the old Prego Spaghetti Sauce commercials used to say; "It's in > there!" > > The X-10 scripting addition is available at http://www.seracsoftware.com/. ---------- Thanks Gene. That's very helpful. FYI, HyperCard has been referred to many times as the "Swiss Army Knife" of software development tools over it's 16+ years of existence (from ver. 1.0 to the last and current ver. 2.4.1). I think I first heard the term applied to it back in '88. I would highly recommend getting a book called HYPERTALK 2.2 THE BOOK 2nd edition. Jeanne DeVoto is one of the co-authors and probably still has some lying around. Also, Bob Stelloh on the HC group list and at iHug has few left, too. I wouldn't be without it in any xCard/xTalk environment. Also, Danny Goodman's HYPERCARD MANUAL 2.0 is very good, probably has the best string manipulation instruction. Still, for me, it's mostly about learning the interface and all the library functions. In the way of finding where things are and how they work, it would probably be better if I didn't know HC, and was starting RR from scratch like you, so hang in there. Best regards, Ken N. From mons at knoware.nl Sat Jan 12 06:36:00 2002 From: mons at knoware.nl (Marten van den Berg) Date: Sat Jan 12 06:36:00 2002 Subject: Brightness and Contrast Message-ID: I want to control the brightness and contrast of images within revolution. Any suggestions how this can be done are welcome. Marten van den Berg From pixelbird at interisland.net Sat Jan 12 06:48:01 2002 From: pixelbird at interisland.net (Ken Norris) Date: Sat Jan 12 06:48:01 2002 Subject: New Fields In-Reply-To: <9B7B6E6E6C76D311AAE10090272405B5013D9AB7@WWMESSD114> Message-ID: on 1/11/02 12:52 AM, Barlow Frank at Frank.Barlow at ICL.com wrote: > > Now I don't create a new stack very often and the memory dims! > > But I had a little script in HyperCard to create New Fields and New Buttons. > > Something like > > On myFields > repeat 10 times > doMenuItem "New Field" of Menu "Tools" > end repeat > end myFields ---------- Not sure about RR, but in HyperTalk: on myFields repeat 10 times choose field tool doMenu "New Field" end repeat end myFields ...should work, but it will layer all 10 fields in the same spot in the middle of the screen. Again, I'm not sure about RR, but in HC, If you are using a Mac, it would probably be just as easy to choose the field tool, make a New Field and then just use the Option/click trick to make new ones, dragging them wherever you like. But, that depends on your purpose for making the new fields. Is your handler just to save time making new fields, or does it serve another scripting purpose? Also, if the latter, you could script where you want them to go using the 'loc' command, or locate and size them using the 'rect' command, but if the former, you could do the same thing, but I bet doing it with the Option/click method will be faster than writing and executing a script. HTH, yours truly, Ken N. From yvescoppe at skynet.be Sat Jan 12 11:39:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 12 11:39:01 2002 Subject: ClickLine In-Reply-To: References: Message-ID: >on 1/11/02 2:01 PM, yves COPPE at yvescoppe at skynet.be wrote: > >> Hello, >> >> If the user click a line in a fld with the lockText property set to >> true, the selection stays on the clickedLine. >> I've tried to deselect the fld by writing in a script : >> >> select empty >> >> but it doesn't work >> >> Someone has an idea ??? >> >---------- >Try: > >select line 0 of field "whatever" > >Best regards, >Ken N. > It doesn't work? another idea ? thanks. -- From jacque at hyperactivesw.com Sat Jan 12 12:17:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat Jan 12 12:17:01 2002 Subject: Application Framework? Message-ID: <3C406E28.D52B64FA@hyperactivesw.com> Ken Norris wrote: >I believe it was the original HyperCard development team that did, uh, >what-was-it? "FocalPoint", I think. FocalPoint was a commercial product written by Danny Goodman with HyperCard 1.2.5. When HyperCard 2.0 was released, there were so many incompatibilities introduced that Danny decided to stop selling it. He said there would have been thousands of changes he'd have to make in the scripts. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jcuccio at pacbell.net Sun Jan 13 02:10:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Sun Jan 13 02:10:01 2002 Subject: Lock Screen Message-ID: Mac OS 8.1 Rev 1.1 I am building a control stack and a database like stack. From pixelbird at interisland.net Sun Jan 13 02:10:16 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Sun Jan 13 02:10:16 2002 Subject: Application Framework? In-Reply-To: <3C406E28.D52B64FA@hyperactivesw.com> Message-ID: on 1/12/02 9:11 AM, J. Landman Gay at jacque at hyperactivesw.com wrote: > FocalPoint was a commercial product written by Danny Goodman with > HyperCard 1.2.5. ---------- OK. I wasn't sure. Thanks for the info. I know it was a commercial product, but I thought it came out earlier. I did look it over, though I can't remember much about it except that, at the time, I thought it was an impressive bit of programming for a HC thing. Anyway, I think what I was getting at was coming up with an interactive structured follow-along tutorial stack that demos the procedures and results as it goes, so old HC duffers like me can get a handle on the RR interface and library fubctions. Best regards, Ken N. From jeanne at runrev.com Sun Jan 13 02:53:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 02:53:01 2002 Subject: popUp Menu In-Reply-To: References: Message-ID: At 10:50 AM -0800 1/11/2002, yves COPPE wrote: >1) When I create a card from a script, I must write afterwards : >place grouop xxx >place group yyy > >the groups are not copied onto the new card systematically as it was >with bg flds or bg btns in HC. Is it possible to have the flds and >btns systematically copied in the new cd ? Yes. If you set a group's backgroundBehavior property to true, it will be placed on new cards automatically as in HyperCard. >3) If I ask a divider in the object library and place it afterwards >vertically, it looses his appearance as in the macOS 9.X appearance >to become a common vertical black line. >Can I do it otherwise ? Yes. Create a rectangle graphic and set its properties as follows: topColor should be "172,172,172" bottomColor should be "white" showBorder should be true borderWidth should be 1 height should be 2 This will create a graphic that has the proper appearance (gray with white underneath) for an incised line. >4) Is it possible to make a drag and drop of txt from a fld to >another without having to copy/paste? Not yet (only within a field). It might be possible to script something for this, though the appearance of the drag/drop process would not quite be standard. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 02:53:18 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 02:53:18 2002 Subject: bad cursor selection? In-Reply-To: Message-ID: At 7:00 AM -0800 1/10/2002, guy jacquesson wrote: >when I click on a character in a string to select a chunk of it in the >editor,(or elsewhere!) that char is NOT selected...the selection begins >ALWAYS at the second - causing very often bug in my script! To have the >whole thing selected, I must click ON the PREVchar... or EXACTLY between >2 chars... >Never seen that before with HC. > >Is that "normal" or a know RR issue? This is a known issue with 1.1. It is fixed in 1.1.1b1. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 02:54:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 02:54:00 2002 Subject: ClickLine In-Reply-To: Message-ID: At 2:01 PM -0800 1/11/2002, yves COPPE wrote: >If the user click a line in a fld with the lockText property set to >true, the selection stays on the clickedLine. >I've tried to deselect the fld by writing in a script : > >select empty > >but it doesn't work If this is a list field, try set the hilitedLines of field "Whatever" to empty -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 02:54:10 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 02:54:10 2002 Subject: Brightness and Contrast In-Reply-To: Message-ID: At 2:18 AM -0800 1/12/2002, Marten van den Berg wrote: >I want to control the brightness and contrast of images within revolution. >Any suggestions how this can be done are welcome. Hmmmm. I don't have a ready-made recipe for this (yet)... but you can control the image data directly via the imageData property, and you might look into altering the brightness and contrast by directly manipulating the actual RGB data. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 02:54:17 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 02:54:17 2002 Subject: Import stack in another In-Reply-To: Message-ID: At 11:16 PM -0800 1/8/2002, yves COPPE wrote: >So I created a substack I use as DLOG. >It's a complex DLOG and I'd like to use the same in another main >stack without having to redraw it >How can I import a substack from a main stack into another ? Like this: clone stack "My Dialog" set the name of it to "New Dialog" set the mainStack of it to "Other Main Stack" -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 03:03:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 03:03:01 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: At 3:21 AM -0800 1/11/2002, Graham Samuel wrote: >>On Thu, 10 Jan 2002 15:50:11 -0800 Ken Norris >> wrote: >>Should I go ahead and trash 1.1 and DL 1.1.1 beta instead, and go ahead and >>use it for development? > >I'd like to know the answer to this as well - I'm used to the idea >that 'beta' implies 'not guaranteed to be working at industrial >strength yet, but good enough for people to use and help the >developer find the last few problems' - but it appears that this >isn't what is meant in Revo's case. It's more that 1.1.1 is a maintenance release, with very few new or changed features. We've concentrated on bugfixing and improving stability for this release, and we don't have a lot of new features this time to be "beta-y" in quality. In other words, as a general rule, you're right that beta software is as you describe, but in the case of this particular release you'll see improvements in stability even at the beta stage. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From yvescoppe at skynet.be Sun Jan 13 04:32:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 13 04:32:01 2002 Subject: remove substack Message-ID: Hello, How can I remove a substack I don't need anymore from a mainstack ? Thanks. -- From yvescoppe at skynet.be Sun Jan 13 06:02:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 13 06:02:01 2002 Subject: scroll Message-ID: Hello, I have a vertical scrollbar controlling the scrolling of a few flds I write so the script of the scrollbar : on scrollBarDrag x lock messages repeat with a = 7 to 20 set the scroll of fld a to x end repeat unlock messages end scrollBarDrag It works but the scrolling of the scrollbar is not proportional to the scrolling of the flds : when teh flds are finished scrolling, the thumbnail of the scrollbar is half his way. the endvalue of the scrollbar is too high How can I solve this ? thanks. -- From yvescoppe at skynet.be Sun Jan 13 06:22:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 13 06:22:01 2002 Subject: tabstops in a fld Message-ID: Hello, If I have a list fld with tab stops, how can I know in wich column the user click ? Thanks. -- From k_major at osnabrueck.netsurf.de Sun Jan 13 08:02:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun Jan 13 08:02:01 2002 Subject: new fields... In-Reply-To: <200201121711.MAA03466@www.runrev.com> Message-ID: <6E6FCE1C-0787-11D6-8B5D-000A27B49A96@osnabrueck.netsurf.de> Hi Martin and all, what about: repeat 10 create field end repeat Have fun... :-) Regards Klaus Major k_major at osnabrueck.netsurf.de From jcuccio at pacbell.net Sun Jan 13 12:55:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Sun Jan 13 12:55:01 2002 Subject: Remove stack Message-ID: Go to the sub stack or have it the active stack. Type: delete this stack in the message box. Should delete the stack From webmaster at studioalice.se Sun Jan 13 13:32:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Sun Jan 13 13:32:01 2002 Subject: Change the Cursor? Message-ID: <66DF994B-0853-11D6-9B08-003065CCBD1A@studioalice.se> Hi I'm trying to change the cursor. In an image I have this script: on mouseEnter set the cursor to cross end mouseEnter But nothing happend. When I switch to the Browse-tool for testing, the cursor is always the little "pointing finger" (except when over editable textfields). I want to have some kind of signal to the user ("Click here"). Any other ideas? /Magnus From yvescoppe at skynet.be Sun Jan 13 13:34:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 13 13:34:00 2002 Subject: filepath Message-ID: Hello, I have a file which name is a date : dd/mm/yyyy If I want to open this file, open file filepathName RR considers this filename as a list of items leading to folders ! How can you save me from this hell ! Thanks -- From wow at together.net Sun Jan 13 13:48:00 2002 From: wow at together.net (Richard D. Miller) Date: Sun Jan 13 13:48:00 2002 Subject: Displaying a table In-Reply-To: Message-ID: Since Rev doesn't have a table object (like OMO did...a GREAT feature I'd recommend for Rev), how are people dealing with the display of tabular data? I know I can use a proportional font like Courier, but I'm hoping there's a better solution. I also played around a bit with tabstops, but that only gives left alignment within each tab stop. Richard Miller From andre.rombauts at win.be Sun Jan 13 14:07:01 2002 From: andre.rombauts at win.be (Andre Rombauts) Date: Sun Jan 13 14:07:01 2002 Subject: Change the Cursor? In-Reply-To: <66DF994B-0853-11D6-9B08-003065CCBD1A@studioalice.se> Message-ID: > But nothing happend. When I switch to the Browse-tool for testing, the > cursor is always the little "pointing finger" (except when over editable Use this: on mouseEnter set the cursor to hand lock cursor end mouseEnter on mouseLeave set the cursor to arrow lock cursor end mouseLeave Andr? From undo at cloud9.net Sun Jan 13 14:09:00 2002 From: undo at cloud9.net (andu) Date: Sun Jan 13 14:09:00 2002 Subject: Displaying a table References: Message-ID: <3C41D9C8.3CE67DD8@cloud9.net> "Richard D. Miller" wrote: > > Since Rev doesn't have a table object (like OMO did...a GREAT feature I'd > recommend for Rev), how are people dealing with the display of tabular data? > I know I can use a proportional font like Courier, but I'm hoping there's a > better solution. I also played around a bit with tabstops, but that only > gives left alignment within each tab stop. I have a full featured spreadsheet object in the works (90% done), unfortunately i put it on hold since I have a deadline coming up. If there are enough requests for such a thing I might publish it when it's done as a plug-in. Also, if there is interest in such a thing, I'd like to put together a features list. > > Richard Miller > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution -- __________________________ Regards, Andu From andre.rombauts at win.be Sun Jan 13 14:14:01 2002 From: andre.rombauts at win.be (Andre Rombauts) Date: Sun Jan 13 14:14:01 2002 Subject: Change the Cursor? In-Reply-To: <66DF994B-0853-11D6-9B08-003065CCBD1A@studioalice.se> Message-ID: > I want to have some kind of signal to the user ("Click here"). Any other > ideas? Try this: on mouseEnter set the text of field info to "Click here to..." end mouseEnter on mouseLeave set the text of field info to empty end mouseLeave Andr? From jeanne at runrev.com Sun Jan 13 14:29:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 14:29:01 2002 Subject: remove substack In-Reply-To: Message-ID: At 1:28 AM -0800 1/13/2002, yves COPPE wrote: >How can I remove a substack I don't need anymore from a mainstack ? Use the delete stack command. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From yvescoppe at skynet.be Sun Jan 13 14:58:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 13 14:58:01 2002 Subject: popUp button Message-ID: Hello, I have a tabbed button. I'd like to set in a script the selectedtext of this button. (Not always the first, but depending on a previous situation) How can I perform this ? Thanks. -- From yvescoppe at skynet.be Sun Jan 13 14:58:08 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 13 14:58:08 2002 Subject: Displaying a table In-Reply-To: <3C41D9C8.3CE67DD8@cloud9.net> References: <3C41D9C8.3CE67DD8@cloud9.net> Message-ID: >I have a full featured spreadsheet object in the works (90% done), >unfortunately i put it on hold since I have a deadline coming up. >If there are enough requests for such a thing I might publish it when >it's done as a plug-in. >Also, if there is interest in such a thing, I'd like to put together a >features list. > >> >> Richard Miller >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > >-- >__________________________ > Regards, Andu >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution I'm verry interested in this tool ! -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From chipp at chipp.com Sun Jan 13 15:45:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Sun Jan 13 15:45:01 2002 Subject: Brightness and Contrast In-Reply-To: Message-ID: You could use a black or white graphic over the image and use the alpha setting for the graphic to lighten or darken the original image. This will control the brightness but not the contrast. -c -----Original Message----- From: use-revolution-admin at lists.runrev.com [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Jeanne A. E. DeVoto Sent: Sunday, January 13, 2002 1:04 AM To: use-revolution at lists.runrev.com Subject: Re: Brightness and Contrast At 2:18 AM -0800 1/12/2002, Marten van den Berg wrote: >I want to control the brightness and contrast of images within revolution. >Any suggestions how this can be done are welcome. Hmmmm. I don't have a ready-made recipe for this (yet)... but you can control the image data directly via the imageData property, and you might look into altering the brightness and contrast by directly manipulating the actual RGB data. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From pixelbird at interisland.net Sun Jan 13 16:53:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Sun Jan 13 16:53:01 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: on 1/12/02 11:21 PM, Jeanne A. E. DeVoto at jeanne at runrev.com wrote: > It's more that 1.1.1 is a maintenance release, with very few new or changed > features. We've concentrated on bugfixing and improving stability for this > release, and we don't have a lot of new features this time to be "beta-y" > in quality. In other words, as a general rule, you're right that beta > software is as you describe, but in the case of this particular release > you'll see improvements in stability even at the beta stage. ---------- Thanks, that's good to know. Best regards, Ken N. From shaosean at unitz.ca Sun Jan 13 17:56:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Sun Jan 13 17:56:01 2002 Subject: ClickLine References: Message-ID: <004201c19c85$06c546e0$88b15bd1@dreamlanpc> > If this is a list field, try > set the hilitedLines of field "Whatever" to empty i put "select empty" in a mouseLeave handler if you're using a standard text field.. From tim11 at bellatlantic.net Sun Jan 13 18:31:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Sun Jan 13 18:31:01 2002 Subject: Transcript Reserved Words Utility Message-ID: Hi all, I'm building (actually modifying a SC utility) a free plugin for RR that will look up Transcript Reserved Words. I'm 95% done but need help with one last item: I need to call revhelp.rev from inside the utility's handler and send a string (word) to revhelp.rev (stack "revdocs", cd "transcript Dictionary"). The only thing I see now is revDocsDisplayTranscriptTerm termToFind,typeOfTerm. If anyone can clarify this, I'll finish the plugin and upload (post) it. Thanks, -- Tim From todd at geistinteractive.com Sun Jan 13 19:01:01 2002 From: todd at geistinteractive.com (Todd Geist) Date: Sun Jan 13 19:01:01 2002 Subject: Can you build Complex Database Apps with RR? In-Reply-To: Message-ID: Hello Everyone, I just got introduced to Runtime Revolution at MacWorld. So far it looks pretty cool. I was just wondering if anyone out there is building large complex database front ends with Runtime Revolution? Is it suitable for this type of development? You can be brief if you wish. I am just trying to get a feel for it's scalability. Thanks for you time. Todd *********************************************************** * Todd Geist todd at geistinteractive.com * * geist interactive www.geistinteractive.com * * v 720-872-0565 f 720-294-1226 * * FSA Member * *********************************************************** From preid at reidit.co.uk Sun Jan 13 19:08:01 2002 From: preid at reidit.co.uk (Peter Reid) Date: Sun Jan 13 19:08:01 2002 Subject: Network Access Problem Message-ID: Using Rev 1.0.1 I've developed a dual Mac/PC CD-ROM product that launches Acrobat to display a range of Acrobat files and the QuickTime Player for a series of QT movies. This works fine with both Mac and Windows systems when run locally. However, if I mount the CD-ROM on one system and make it a shared resource, things go wrong with access across the network. If I try activating my code to launch and display Acrobat files or QuickTime Player and QT files, nothing happens if the CD-ROM is being accessed over the network (even if the files are small). However, if I simply open a window to display the actual Acrobat and QuickTime files and then double-click them open it works fine! The network is reasonably fast (10/100 Ethernet) and whilst some files are very large (100Mb QT movies), others are very modest (175k-6.5Mb Acrobat files, plus 4.5Mb-30Mb QT files). It seems to be a problem with both the Rev Player object (for QT movies) and the ext_openFile command from the original Externals Collection. Any ideas about how I can get this to work over the network as well as locally or is this a bug in Rev? Cheers Peter -- Peter Reid Reid-IT Limited, Loughborough, Leics., UK Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576 E-mail: preid at reidit.co.uk Web: http://www.reidit.co.uk From sarahr at genesearch.com.au Sun Jan 13 19:25:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 13 19:25:01 2002 Subject: Displaying a table In-Reply-To: Message-ID: > Since Rev doesn't have a table object (like OMO did...a GREAT feature I'd > recommend for Rev), how are people dealing with the display of tabular data? > I know I can use a proportional font like Courier, but I'm hoping there's a > better solution. I also played around a bit with tabstops, but that only > gives left alignment within each tab stop. > > Richard Miller > I have been trying to do this too and I would love to see a table object appear in Revolution. Meanwhile, here's what I came up with, which isn't great but it works. - use the tabStops of the field & turn on the vertical grid. - for entries that might be too long to fit, make a hidden field that is the same size as the relevant column and has the same text settings. Before putting the text in the column use a function that does something like this: on checkSize theString put theString into fld "Format Check" repeat while the formattedWidth of fld "Format Check" > the width of fld "Format Check" delete last char of theString end repeat return theString end checkSize - for numeric columns which you want right-aligned, use the format function: put format("%6.2", theNum) into item y of line x fld "Table" This converts the numbers to a string, but pads them out so they appear right justified. Check the format function for more details on how to specify different formats. Cheers, Sarah From sarahr at genesearch.com.au Sun Jan 13 19:28:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 13 19:28:01 2002 Subject: popUp button In-Reply-To: Message-ID: > Hello, > I have a tabbed button. > I'd like to set in a script the selectedtext of this button. > (Not always the first, but depending on a previous situation) > > How can I perform this ? > > Thanks. set the menuHistory of btn "Tabbed" to x where x is the number of the tab you want to set. This sets the display and sends the menuPick message. If you only have the name of the tab you want to select, try this: get lineOffset(myTab, btn "Tabbed") set the menuHistory of btn "Tabbed" to it (For users of the Starter Kit, this can easily be shortened to a single line.) Sarah From sarahr at genesearch.com.au Sun Jan 13 19:42:02 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 13 19:42:02 2002 Subject: Checking for internet access Message-ID: I have a stack which grabs a web page using the get URL command. I need to check for internet access before wasting time downloading. I tried using "open socket" to check for a link. This was a fast way to check, but a failure caused an unexpected quit. The button doing the checking would stay hilighted for a while, then go off but without sending a "socketError" or "socketTimeOut" message. The next mouse click on anything, even the desktop, would trigger the unexpected quit. So, I have two problems: 1. I want to be able to check for an internet link before I start. 2. If the link drops out, I want the program to tell me, not quit. Rev 1.1.1B1, iBook 600, OS X 10.1.2 (Haven't tried it in OS 9) Cheers, Sarah From sarahr at genesearch.com.au Sun Jan 13 20:16:00 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 13 20:16:00 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: >> 2) I want to use it to send and receive text-only (for now, e.g., no >> attachments or graphics) eMail using something simple, like Claris. Or is it >> possible to build my own emailer with RR itself? How about this? > > Revolution has socket access, but no built-in SMTP (yet). So rolling your own > is definitely possible, but not particularly simple. You should be able to > email using the default email client (on a Mac) using an Apple Event or an > AppleScript. Outlook Express works very well with AppleScript. > >> 3) I need to develop full speech feedback for the vision impaired. I know >> this will need to be handled differently on each platform, but that's OK. >> Anyone done such a thing? Are there examples for PC's (I know relatively >> little about P.C.'s or Windows)? > > I think speech was part of the Externals, released by RunRev, but separately > from Revolution. It's a little hard to find now (I don't remember where they > put it and I'm offline right now, sorry. Again, this is possible using AppleScript, although for Mac only: on doSpeech theSpeech put "Victoria" into theVoice -- look in the Voices folder for a list of possibilities do "say " & quote & theSpeech & quote & " using " & quote & \ theVoice & quote as AppleScript end doSpeech Cheers, Sarah From shaosean at unitz.ca Sun Jan 13 21:31:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Sun Jan 13 21:31:01 2002 Subject: Checking for internet access References: Message-ID: <002b01c19ca3$10a27890$88b15bd1@dreamlanpc> hostNameToAddress(hostname()) if it's empty, there's no internet connection.. From pixelbird at interisland.net Sun Jan 13 21:31:22 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Sun Jan 13 21:31:22 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: on 1/13/02 5:14 PM, Sarah Reichelt at sarahr at genesearch.com.au wrote: >>> 2) I want to use it to send and receive text-only (for now, e.g., no >>> attachments or graphics) eMail using something simple, like Claris. Or is it >>> possible to build my own emailer with RR itself? How about this? >> >> Revolution has socket access, but no built-in SMTP (yet). So rolling your own >> is definitely possible, but not particularly simple. You should be able to >> email using the default email client (on a Mac) using an Apple Event or an >> AppleScript. > > Outlook Express works very well with AppleScript. ---------- OE uses too much memory for my purposes and I need text-only for now, but thanks. For my personal needs this is good news. ---------- >> I think speech was part of the Externals, released by RunRev, but separately >> from Revolution. It's a little hard to find now (I don't remember where they >> put it and I'm offline right now, sorry. > > Again, this is possible using AppleScript, although for Mac only: > > on doSpeech theSpeech > put "Victoria" into theVoice > -- look in the Voices folder for a list of possibilities > > do "say " & quote & theSpeech & quote & " using " & quote & \ > theVoice & quote as AppleScript > end doSpeech ---------- Thanks Sarah, What about Windows? There must be some kind of standard speech available. I'm trying to find out the nomenclature for such things in Windows, so I don't end up sifting through a million hits. Best regards, Ken N. From terry at discovery.nl Sun Jan 13 21:47:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Sun Jan 13 21:47:01 2002 Subject: filepath In-Reply-To: Message-ID: yves COPPE wrote: > I have a file which name is a date : dd/mm/yyyy > If I want to open this file, > open file filepathName > RR considers this filename as a list of items leading to folders ! > How can you save me from this hell ! You are using Mac OS classic, otherwise it wouldn't be possable to have a filename containing slashes. RR indeed sees the slash as path-item-delimiter, just like Unix, Mac OS and Internet. So whenever RR sees a slash in a foldername or filename, it is replaced by a colon (:), the Mac OS classic path-item-delimiter. So access the file using "dd:mm:yyyy" Terry From kevin at runrev.com Sun Jan 13 22:05:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 22:05:00 2002 Subject: RAPID SEQUENCE of audioclips on a Mac In-Reply-To: <5.1.0.14.2.20020109053752.00a2a1e0@pop.email.missouri.edu> Message-ID: On 9/1/02 4:51 am, J. Scott Saults wrote: > Perhaps (hopefully) I'm misunderstanding something about the methods > suggested by Scott and Geoff. As soon as I can, I'll take a closer look at > my implementation and tests of Scott's and Geoff's suggestions to see if > I've made any mistakes.. I'm still new to Revolution, and I know it has > features and capabilities that I'm not yet familiar with using. Surely > Revolution can do this (play a rapid sequence), considering that I could do > it well enough using HyperCard on an old Mac II many years ago. Or is > Revolution/MetaCard really deficient in this regard? > > Thanks again for the help already offered, and for any additional > suggestions anyone would like to share. Have you tried using the "prepare" command on all the audioClips before you attempt to run the script that Scott Rossi supplied? Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From sarahr at genesearch.com.au Sun Jan 13 22:16:00 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Sun Jan 13 22:16:00 2002 Subject: Checking for internet access In-Reply-To: Message-ID: > > hostNameToAddress(hostname()) > > if it's empty, there's no internet connection.. > This doesn't work for me. After a long delay (long enough to think the computer has hung), it returns empty even though I am definitely connected at the moment. hostName() by itself is the same. Any other ideas? Thanks, Sarah From shaosean at unitz.ca Sun Jan 13 22:34:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Sun Jan 13 22:34:01 2002 Subject: Checking for internet access References: Message-ID: <001e01c19cab$df311100$88b15bd1@dreamlanpc> that probably means you have no "name".. obviously this works fine for me, but that doesn't help you ;-) i'll keep looking into this for you, if anyone else has any ideas please share.. ----- Original Message ----- > This doesn't work for me. After a long delay (long enough to think the > computer has hung), it returns empty even though I am definitely connected > at the moment. hostName() by itself is the same. From kevin at runrev.com Sun Jan 13 23:07:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:01 2002 Subject: geometry and multiple cards in a stack In-Reply-To: Message-ID: On 10/1/02 7:47 am, Martin Baxter wrote: > on preopencard > revupdategeometry > end preopencard > > Does the trick fine, though I wouldn't really have suspected that from it's > entry in the Transcript dictionary! That will work, but even simpler is to select the card (either by double clicking it with the pointer tool, or by selecting card properties, then choosing the Geometry Manager tool). This allows you to set properties on the card, one of them is to apply geometry when opening the card if the stack has been resized. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:08 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:08 2002 Subject: Videoclip to resize In-Reply-To: <3C396F80.3080209@wanadoo.fr> Message-ID: On 7/1/02 1:50 am, Guillaume CASTRE wrote: > Hello from france, > I import a videoclip into my application. > I can play it into the stack with "Play videoclip "test.mov"". > I can modify the position of the display with "at 30,30" > But I can't find how to modify the size of the file when I play it ! > (for example half the original size). > Thank you for your help. Use a player object. (If you don?t want to use QT then you can still set the dontUseQT global property to true to use other play back facilities on those platforms that have them. Only a more limited range of movie options in supported without QT, but you can scale them with the player object.) Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:16 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:16 2002 Subject: QT 5 issues, Compiling video from stills In-Reply-To: Message-ID: On 7/1/02 11:43 am, Jeff Hardin wrote: > (1) Has there been any progress on the standard movie controller > issue with QT 5 for Mac, or does anyone have a workaround? This is a > pretty big issue for me. > > (2) Does anyone know of a way to compile a QuickTime movie from a > folder of still images via RunRev? As yet I can't really help beyond saying that we are looking at number 1 and you might be able to do number 2 with an appleScript or possibly an external if there is on, though I don't know. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:24 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:24 2002 Subject: Evaluating Revolution for SQL front-end In-Reply-To: Message-ID: On 8/1/02 1:02 pm, Environ Group wrote: > At this point, I am just trying to figure out whether or not Revolution has > what it takes and the approximate cost of development. > > How can I quickly determine whether or not Revolution could be used as a > front-end to a postgreSQL database on a OSX server? What are the limitations > compared to other SQL front-ends for OSX? At present we are missing driver support for accessing databases on OS X. Some types of database access will appear on OS X in the next beta of 1.1.1 shortly. Direct access to postgresql is planned soon, at present you can access it via ODBC on most OS platforms. Don't forget that the cross-grade offer includes updates for a year so you will get access to any features we add. > Any resources available or demo's you would suggest? Check out the Help tab in the Database Manager. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:30 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:30 2002 Subject: Supertalk to Transcript In-Reply-To: Message-ID: On 8/1/02 5:17 pm, Tim wrote: > I was wondering if there's an equivalent function to Supertalk's DESCRIBE > function in Transcript, as in get describe(this bg,cards)? Does anyone know > of a solution? The cardNames and the backGroundNames of whatever stack give you a list of cards, which you can then use with the repeat for each line l construct to build up any more information you might need. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:40 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:40 2002 Subject: Transcript Reserved Words Utility In-Reply-To: Message-ID: On 13/1/02 3:27 pm, Tim wrote: > I'm building (actually modifying a SC utility) a free plugin for RR that > will look up Transcript Reserved Words. I'm 95% done but need help with one > last item: I need to call revhelp.rev from inside the utility's handler and > send a string (word) to revhelp.rev (stack "revdocs", cd "transcript > Dictionary"). The only thing I see now is revDocsDisplayTranscriptTerm > termToFind,typeOfTerm. If anyone can clarify this, I'll finish the plugin > and upload (post) it. This would be a valid example: revDocsDisplayTranscriptTerm playStopped,message Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:47 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:47 2002 Subject: serial port In-Reply-To: Message-ID: On 8/1/02 11:23 pm, John Cuccio wrote: > read from file "modem:" until eof Serial ports do not have an eof character. Try until empty instead. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:07:56 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:07:56 2002 Subject: Where to post Beta reports. In-Reply-To: Message-ID: On 8/1/02 11:29 pm, John Cuccio wrote: > Not sure where to post or who to e-mail Beta problem reports. > > > Loaded Rev 1.1.1 beta for Mac OS created a button pressed the script Icon. > Rev Crashed Error type 3. Mac OS 8.1 To the improve list, or to your support contact if you are a pro user, your support is current, and you want a quick response. We will be changing (improving) the way we accept and process bug reports shortly. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:08:05 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:08:05 2002 Subject: Repeat speed and stripping chars In-Reply-To: Message-ID: On 10/1/02 9:04 am, Geoff Canyon wrote: >> 1) How can I assign a desktop icon to a stand alone application when I build >> a stack ? > > I don't think this is built-in to Revolution yet. You need to use ResEdit (or > similar) to do it. You can do this with Distribution Builder. Create a ResEdit file with the icons and it will copy it in automatically each time you build. For Windows you need to use Distribution Builder to link in a 16 color .ico file. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:08:15 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:08:15 2002 Subject: Application Framework? In-Reply-To: Message-ID: On 11/1/02 3:46 am, Graham Samuel wrote: > I feel > really stupid asking this, but could someone tell me where it is - > doesn't seem to be in the download or on the Revo web site, but it's > got to be somewhere! In the components/help/tutorials/exercises folder. It is also linked to from inside some of the tutorials. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:08:23 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:08:23 2002 Subject: Can you build Complex Database Apps with RR? In-Reply-To: Message-ID: On 13/1/02 3:59 pm, Todd Geist wrote: > I just got introduced to Runtime Revolution at MacWorld. So far it looks > pretty cool. > > I was just wondering if anyone out there is building large complex database > front ends with Runtime Revolution? Is it suitable for this type of > development? > > You can be brief if you wish. I am just trying to get a feel for it's > scalability. Yes, though at present we are aware that our report printing and table support needs to be improved. You can do both with scripting (there are various examples available) but as yet neither is point and click. We're working on it... Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Sun Jan 13 23:08:32 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 13 23:08:32 2002 Subject: Regular expressions In-Reply-To: Message-ID: On 9/1/02 7:53 pm, David Beck wrote: > 1) Where can I find some documentation on Revs implementation of regular > expressions? Open components/help/appendixes then the stack on regular expression syntax. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From jeanne at runrev.com Sun Jan 13 23:24:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 23:24:01 2002 Subject: filepath In-Reply-To: Message-ID: At 10:29 AM -0800 1/13/2002, yves COPPE wrote: >I have a file which name is a date : dd/mm/yyyy > >If I want to open this file, > >open file filepathName > >RR considers this filename as a list of items leading to folders ! > >How can you save me from this hell ! No problem, Yves. ;-) If your filename or path has a slash (/), you simply substitute a colon (:). Colon is not a legal character for Mac filenames, so there is no ambiguity. For example, if your file is named "1/13/2002", you would write something like open file "/Disk/Folder/1:13:2002" -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 23:24:08 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 23:24:08 2002 Subject: Application Framework? In-Reply-To: Message-ID: At 3:46 AM -0800 1/11/2002, Graham Samuel wrote: >As I said in my previous mail, I'm just setting out to learn Revo >from an experienced SuperCarder's viewpoint. I'm interested in >looking at the Employee Database example, but I can't find it! I feel >really stupid asking this, but could someone tell me where it is - >doesn't seem to be in the download or on the Revo web site, but it's >got to be somewhere! It certainly ought to be in there! If you go to card 13 of the Independent Study tutorial and click the "Open Example" button at the bottom, it should come up. If it doesn't for whatever reason, go to the Revolution folder and open the Components folder, then the Help folder inside it, then Tutorials, then Exercises. The "Employee Database.rev" file inside Exercises is the example stack you're looking for. I think you'll find the example contains the things you're asking for - a full menu bar and the logic to handle it, splash screen, a framework for saving database files, and so on. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 23:24:15 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 23:24:15 2002 Subject: Selecting a word In-Reply-To: Message-ID: At 10:15 PM -0800 12/20/2001, Stuart Milliken wrote: > (NOTE: "the doubleClickInterval" gives me a number apparently in >milliseconds, though the documentation says it should be in ticks on a >Mac. Perhaps this is somehow due to my non-Mac (Logitech) mouse. If this >is also the case for you, substitute literal value for a reasonable number >of ticks, like 20.) No, you're right, it's in milliseconds - regardless of what mouse you have. In a previous version, the value was given in ticks on the Mac, and the technical writer *cough* *ahem* somehow was not told about this change. It'll be fixed in the next documentation release. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 13 23:25:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 13 23:25:01 2002 Subject: Regular expressions In-Reply-To: References: <200201100242.VAA11381@www.runrev.com> Message-ID: At 7:53 PM -0800 1/9/2002, David Beck wrote: >1) Where can I find some documentation on Revs implementation of regular >expressions? Check the matchText, matchChunk, and replaceText functions. The See Also list in all these terms has a regular expressions reference that will give you all the operators supported. Rev's regex engine is greedy, so the sort of thing you want to do with HTML tags is a bit difficult (because the regular expression wants to grab everything up to the last >). About the best I can offer offhand is to use replaceText in a repeat loop, checking one possible font size every iteration. A bit ugly but it will get the job done. Maybe someone has a more elegant solution? -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From sarahr at genesearch.com.au Mon Jan 14 01:05:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Mon Jan 14 01:05:01 2002 Subject: Checking for internet access In-Reply-To: Message-ID: I thought I had a name :-( It may be relevant that I am behind a router which allocates me an IP address like 192.168.1.x by DHCP. The router uses NAT to translate the connections single IP address to different addresses on the network. I am assuming that if I had a direct connection, hostName() would give me an answer. Thanks for trying - I hope someone can come up with an answer. Sarah > that probably means you have no "name".. obviously this works fine for me, > but that doesn't help you ;-) i'll keep looking into this for you, if > anyone else has any ideas please share.. > >> This doesn't work for me. After a long delay (long enough to think the >> computer has hung), it returns empty even though I am definitely connected >> at the moment. hostName() by itself is the same. >>> >>> hostNameToAddress(hostname()) >>> >>> if it's empty, there's no internet connection.. >>> From undo at cloud9.net Mon Jan 14 01:42:01 2002 From: undo at cloud9.net (andu) Date: Mon Jan 14 01:42:01 2002 Subject: Checking for internet access References: Message-ID: <3C427C43.333DF79@cloud9.net> Sarah Reichelt wrote: > > I thought I had a name :-( > > It may be relevant that I am behind a router which allocates me an IP > address like 192.168.1.x by DHCP. The router uses NAT to translate the > connections single IP address to different addresses on the network. I am > assuming that if I had a direct connection, hostName() would give me an > answer. > > Thanks for trying - I hope someone can come up with an answer. I didn't follow this but you can do a host name to address translation with any host name: get hostnametoaddress("www.runrev.com") if the result is empty then put it else put the result > > Sarah > > > that probably means you have no "name".. obviously this works fine for me, > > but that doesn't help you ;-) i'll keep looking into this for you, if > > anyone else has any ideas please share.. > > > > >> This doesn't work for me. After a long delay (long enough to think the > >> computer has hung), it returns empty even though I am definitely connected > >> at the moment. hostName() by itself is the same. > > >>> > >>> hostNameToAddress(hostname()) > >>> > >>> if it's empty, there's no internet connection.. > >>> > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution -- __________________________ Regards, Andu From gcanyon at inspiredlogic.com Mon Jan 14 03:17:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 03:17:01 2002 Subject: Lock Screen In-Reply-To: References: Message-ID: At 11:07 PM -0800 1/12/02, John Cuccio wrote: >1. When I set the lockscreen to true I still get a flick of the screen. >White then back to the starting point. I am useing push & pop card. > >on handler >lock screen >push card >go to stack "order" >pop card >end handler I think this is a bug, but you can minimize the flash (on my computer, at least) by substituting actual references for the push and pop: on handler lock screen go stack "order" --do something, presumably go stack "original stack" end handler Another thing to consider is whether you actually need to go to the other stack. If you're not going to show the user something while you're there, just reference everything including a stack reference -- put "something" into fld "some field" of stack "order" That, or try the defaultStack property. regards, geoff From gcanyon at inspiredlogic.com Mon Jan 14 03:22:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 03:22:01 2002 Subject: scroll In-Reply-To: References: Message-ID: At 11:58 AM +0100 1/13/02, yves COPPE wrote: >It works but the scrolling of the scrollbar is not proportional to the scrolling of the flds : when teh flds are finished scrolling, the thumbnail of the scrollbar is half his way. >the endvalue of the scrollbar is too high set the endValue of the scrollbar to the appropriate value. I assume all the fields have the same number of lines in the contents, so you should be able to get the formattedHeight and go from there. gc From yvescoppe at skynet.be Mon Jan 14 03:23:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Mon Jan 14 03:23:01 2002 Subject: Tab stops in a list fld Message-ID: Hello, I have a fld with tab stops (irregular width of columns) and vertical grid visible; How can I know in which "column" the user clicks ? thanks. -- From gcanyon at inspiredlogic.com Mon Jan 14 03:24:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 03:24:01 2002 Subject: tabstops in a fld In-Reply-To: References: Message-ID: At 12:18 PM +0100 1/13/02, yves COPPE wrote: >If I have a list fld with tab stops, how can I know in wich column the user click ? Get the x,y coordinates and check the x against the tabstops for the field (I think you'll also need the left of the field). gc From yvescoppe at skynet.be Mon Jan 14 03:24:07 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Mon Jan 14 03:24:07 2002 Subject: scrolling Message-ID: Hello, I have three scrolling flds controlled with a one scrollbar. How can I "synchronize" the scrolling of this 3 flds with the scrolling of the scrollbar. I must set the endvalue of the scrollbar but don't understand how? I wrote a script in the scrollbar object : on scrollbarDrag x repeat with a = 1 to 3 set the vscroll of fld a to x end repeat end scrollbarDrag It scrolls but not synchronized ! The lines of fld 1 don't match with the lines of fld 2 and so on? Thanks. -- From gcanyon at inspiredlogic.com Mon Jan 14 03:36:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 03:36:01 2002 Subject: Displaying a table In-Reply-To: References: Message-ID: At 10:22 AM +1000 1/14/02, Sarah Reichelt wrote: >on checkSize theString > put theString into fld "Format Check" > repeat while the formattedWidth of fld "Format Check" > the width of fld >"Format Check" > delete last char of theString > end repeat > > return theString >end checkSize You can simplify this, and speed it up a bit, with the following: function truncateToFit theString put the string into fld "Format Check" return (line 1 of the formattedText of fld "Format Check") end truncateToFit From gcanyon at inspiredlogic.com Mon Jan 14 03:40:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 03:40:00 2002 Subject: Is it soup yet? In-Reply-To: References: Message-ID: At 6:38 PM -0800 1/13/02, Ken Norris (dialup) wrote: >What about Windows? There must be some kind of standard speech available. >I'm trying to find out the nomenclature for such things in Windows, so I >don't end up sifting through a million hits. The external collection available at: http://www.xworlds.com/metacard/ does text-to-speech on both Mac and Windows. regards, Geoff From gcanyon at inspiredlogic.com Mon Jan 14 03:57:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 03:57:01 2002 Subject: Repeat speed and stripping chars In-Reply-To: References: Message-ID: At 7:51 PM -0800 1/13/02, Kevin Miller wrote: >On 10/1/02 9:04 am, Geoff Canyon wrote: > >>> 1) How can I assign a desktop icon to a stand alone application when I build >>> a stack ? >> >> I don't think this is built-in to Revolution yet. You need to use ResEdit (or >> similar) to do it. > >You can do this with Distribution Builder. Create a ResEdit file with the >icons and it will copy it in automatically each time you build. For Windows >you need to use Distribution Builder to link in a 16 color .ico file. 'Doh! That's the sound Homer Simpson makes when he makes a stupid mistake, recently added to the OED: http://www.oed.com/public/news/0106_2.htm regards, gc From mons at knoware.nl Mon Jan 14 05:36:01 2002 From: mons at knoware.nl (Marten van den Berg) Date: Mon Jan 14 05:36:01 2002 Subject: Brightness and Contrast In-Reply-To: Message-ID: op 13-01-2002 08:04 schreef Jeanne A. E. DeVoto op jeanne at runrev.com: > At 2:18 AM -0800 1/12/2002, Marten van den Berg wrote: >> I want to control the brightness and contrast of images within revolution. >> Any suggestions how this can be done are welcome. > > Hmmmm. I don't have a ready-made recipe for this (yet)... but you can > control the image data directly via the imageData property, and you might > look into altering the brightness and contrast by directly manipulating the > actual RGB data. > > -- > Jeanne A. E. DeVoto ~ jeanne at runrev.com > http://www.runrev.com/ > Runtime Revolution Limited - Power to the Developer! > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution I could't find a description of the imageData property in my transcript dictionary (I'm using rev 1.1). When I try it in the message box the result is a single line of odd characters. Probably the result is in binary code... Can you give me a description of the imageData property and have you a suggestion where to look for further information on how this manipulation is done. thanks, Marten van den Berg From niklas_almesjo at yahoo.com Mon Jan 14 06:08:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Mon Jan 14 06:08:01 2002 Subject: files lost when building.. In-Reply-To: <200201140410.XAA04059@www.runrev.com> Message-ID: <20020114110526.88288.qmail@web12304.mail.yahoo.com> Ok, so if I would have read this message I would have had lots of doubts, but since it's the second time this happens to me I can not keep quiet.. the distribution-builder has *twice* deleted all the files in the folder where I choose to build. luckily I learned from the first time so now I only have to redo about half a days of work. but this is unacceptable!! the first time it happened was on a computer running Me and now it's on 95. Look into this please!! __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From yvescoppe at skynet.be Mon Jan 14 06:18:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Mon Jan 14 06:18:01 2002 Subject: colum in tabflds Message-ID: Hello, thanks Geoff for your help. Here is my script. It can help other people : When the user click a column in a tab list fld, this handler gives the number of the clicked column : put item 1 of the rect of me into HFldLoc put the mouseH-HFldLoc into myHpos put the tabStops of me&","&myHpos into theItemlist sort items of theItemlist numeric put itemOffset(myHpos, theItemlist) into nrCol nrCol gives the clicked column? Thank you. -- From rolfk at vetvir.unizh.ch Mon Jan 14 10:35:02 2002 From: rolfk at vetvir.unizh.ch (Rolf Kocherhans) Date: Mon Jan 14 10:35:02 2002 Subject: upperCase to lowerCase Message-ID: Can anyone help me to rewrite the function below so that it changes upperCase to lowerCase. This Function changes lowerCase to upperCase: function upperCase whatStr repeat with charNum = 1 to the number of chars in whatStr put charToNum(char charNum of whatStr) into thisChar if thisChar >= 97 AND thisChar <= 122 then put numToChar(thisChar - 32) into char charNum of whatStr end repeat return whatStr end upperCase TIA Cheers Rolf From gcanyon at inspiredlogic.com Mon Jan 14 10:51:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 10:51:00 2002 Subject: upperCase to lowerCase In-Reply-To: References: Message-ID: At 4:33 PM +0100 1/14/02, Rolf Kocherhans wrote: >Can anyone help me to rewrite the function below so that it changes upperCase to lowerCase. Check out the toLower() and toUpper() functions. regards, Geoff From rjb at rz.uni-potsdam.de Mon Jan 14 11:36:01 2002 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Mon Jan 14 11:36:01 2002 Subject: Some kind of memory/purge error In-Reply-To: References: Message-ID: >I'm encountering several problems with proper purging of stacks. Here's the >simplest example: > >I have several stacks open (some are substacks). >I close one stack (which has the destroystack and destroywindow commands in >it) >I check the revloadedstacks function and the Application Overview...both >show the stack as being purged. No sign of it. >I go to open a different stack which has the SAME stack name (but a >different file name). >I immediately get a dialog box asking what I want to do with the previous >stack (i.e. which has the same stack name). > >This appears to be some kind of bug in the program. It is causing an >inability to properly purge stacks from memory, as I'm continually opening >and closing numerous stacks but some are not being fully purged. Obviously, >it doesn't take long before I've got a serious memory problem. > >Is there a workaround for this, and has anyone else encountered it? Is this >a known bug? > >Thanks. >Richard Miller > Since you mention having substacks, check whether the problem is related to using them. I just discovered that destroystack and destroywindow properties apply only to mainstacks. Closing substacks does not completely remove them from memory (for example, 'there is a window' continues to return true -- one needs to use 'the mode' to check whether a substack is open or not). I also seem to see some side-effects if the mainstack is closed but its substacks remain open but haven't pinpointed anything specific. All this is a result of having substacks. Requiring unique names of mainstacks is a separate story. Robert From jan.decroos at groepvanroey.be Mon Jan 14 12:13:00 2002 From: jan.decroos at groepvanroey.be (Jan Decroos) Date: Mon Jan 14 12:13:00 2002 Subject: upperCase to lowerCase Message-ID: maybe this can help... In stead of changing char by char, you can replace every 'a' by 'A', 'b' by 'B', ... Replace is VERY fast. (if you want to force uppercase("?") to be "E", not to be (french ?, first char in ?l?ve for instance, you on mouseUp answer upperCase("this is text") answer lowerCase("THIS TOO") end mouseUp constant cLowerChars = "abcdefghijklmnopqrstuvwxyz" constant cUpperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" function upperCase pString set the casesensitive to true put 0 into xx repeat for each char lChar in cLowerChars add 1 to xx replace lChar with char xx of cUpperChars in pString end repeat return pString end upperCase function LowerCase pString set the casesensitive to true put 0 into xx repeat for each char lChar in cUpperChars add 1 to xx replace lChar with char xx of cLowerChars in pString end repeat return pString end LowerCase jan From rcozens at pon.net Mon Jan 14 12:27:02 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon Jan 14 12:27:02 2002 Subject: Can you build Complex Database Apps with RR? In-Reply-To: References: Message-ID: >I was just wondering if anyone out there is building large complex database >front ends with Runtime Revolution? Is it suitable for this type of >development? Hi Todd, I believe you will find RunRev exactly what you are looking for. It is SQL savy, if you want to go that route, or one can create a custom dataBase stack as I am doing. My original work was done in HyperCard, and the only working prototype I can point you to is in HyperCard. If you're working on a Mac platform you can download my demo at http://www.oenolog.com/apple_demo.htm. Included in the demo is a library stack containing db scripts and two example single-user databases. The demo itself shows you what kind of user interface one can build using HyperCard...wait 'til you see what I can do using Revolution. In any case, the interface allows user accses to any record in the db in six mouse-clicks or less from ANY screen and to process transaction entry without ever typing on the keyboard. Rob Cozens CCW, Serendipity Software Company "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) From chipp at chipp.com Mon Jan 14 14:24:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Mon Jan 14 14:24:01 2002 Subject: files lost when building.. In-Reply-To: <20020114110526.88288.qmail@web12304.mail.yahoo.com> Message-ID: Yep, I saw this too. It would delete the files at the root level of RR, thus requiring a new install. I tracked it down to doing a build distribution where the distribution folder was the same name as one built before, but the .exe file was missing (Windows, not Mac), then the files would get deleted. The fix was to NOT DELETE the old .exe file, just write over it OR use a NEW NAME for the new build. Hope this helps. Chipp > -----Original Message----- > From: use-revolution-admin at lists.runrev.com > [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Niklas > Almesjv > Sent: Monday, January 14, 2002 5:05 AM > To: use-revolution at lists.runrev.com > Subject: files lost when building.. > > > Ok, so if I would have read this message I would have > had lots of doubts, but since it's the second time > this happens to me I can not keep quiet.. > the distribution-builder has *twice* deleted all the > files in the folder where I choose to build. luckily I > learned from the first time so now I only have to redo > about half a days of work. but this is unacceptable!! > the first time it happened was on a computer running > Me and now it's on 95. > Look into this please!! > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From kevin at runrev.com Mon Jan 14 16:02:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Mon Jan 14 16:02:01 2002 Subject: Printing to the right of the page width In-Reply-To: Message-ID: On 10/1/02 10:30 pm, Greg Wills wrote: > Printing. I am trying to print the right side of a card that is > beyond the printed page width. I have tied a number of print commands > but have been unable to get the area I want to print - full size and > starting at the left margin of the page. Any help gratefully > appreciated. Use the print from point to point syntax. Eg.: print this card from 200,200 to 300,300 Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Mon Jan 14 16:02:16 2002 From: kevin at runrev.com (Kevin Miller) Date: Mon Jan 14 16:02:16 2002 Subject: Resizing Graphic with Rev 1.1.1b1 In-Reply-To: <000201c19ade$7e5d8580$3e52bb80@smithkim> Message-ID: On 11/1/02 12:28 pm, Kim L. Smith wrote: > When I paste an image from the clipboard in Windows XP using the latest beta > of Revolution and try to resize it, the image turns black. If I undo, it > returns to the original images, unless I have gone to far. But if I link to a > graphic file, it will resize with no problem. I don?t know if this is a bug or > just that I am doing something wrong. Please send me a copy of the stack off-list and I'll take a look. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Mon Jan 14 16:02:22 2002 From: kevin at runrev.com (Kevin Miller) Date: Mon Jan 14 16:02:22 2002 Subject: Brightness and Contrast In-Reply-To: Message-ID: On 12/1/02 2:18 am, Marten van den Berg wrote: > I want to control the brightness and contrast of images within revolution. > Any suggestions how this can be done are welcome. Check out the screenGamma property in the Transcript dictionary. It works on PNG images. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From sarahr at genesearch.com.au Mon Jan 14 18:13:09 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Mon Jan 14 18:13:09 2002 Subject: Displaying a table In-Reply-To: Message-ID: Thanks Geoff, that's a much neater answer. I hadn't discovered the "formattedText" yet. Sarah > > At 10:22 AM +1000 1/14/02, Sarah Reichelt wrote: >> on checkSize theString >> put theString into fld "Format Check" >> repeat while the formattedWidth of fld "Format Check" > the width of fld >> "Format Check" >> delete last char of theString >> end repeat >> >> return theString >> end checkSize > > You can simplify this, and speed it up a bit, with the following: > > function truncateToFit theString > put the string into fld "Format Check" > return (line 1 of the formattedText of fld "Format Check") > end truncateToFit From gcanyon at inspiredlogic.com Mon Jan 14 19:43:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 14 19:43:00 2002 Subject: Displaying a table In-Reply-To: References: Message-ID: At 8:07 AM +1000 1/15/02, Sarah Reichelt wrote: >Thanks Geoff, that's a much neater answer. I hadn't discovered the >"formattedText" yet. You're welcome. I only recently discovered formattedText (thanks to Scott Raney) myself, and it was a big pain, because I had written many routines to to do things that formattedText gets me (nearly) for free. :-) regards, gc From sarahr at genesearch.com.au Mon Jan 14 20:31:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Mon Jan 14 20:31:01 2002 Subject: Checking for internet access In-Reply-To: Message-ID: Thanks, Andu. That works OK, except that if there is no link, the computer looks like it has hung for 45 seconds. It stops completely and can't process any pending messages, even the menubar clock stops. Is there any way to shorten the timeout interval? The socketTimeOutInterval has no effect. Cheers, Sarah > Sarah Reichelt wrote: >> >> I thought I had a name :-( >> >> It may be relevant that I am behind a router which allocates me an IP >> address like 192.168.1.x by DHCP. The router uses NAT to translate the >> connections single IP address to different addresses on the network. I am >> assuming that if I had a direct connection, hostName() would give me an >> answer. >> >> Thanks for trying - I hope someone can come up with an answer. > > I didn't follow this but you can do a host name to address translation > with any host name: > get hostnametoaddress("www.runrev.com") > if the result is empty then put it > else put the result > >> >> Sarah >> >>> that probably means you have no "name".. obviously this works fine for me, >>> but that doesn't help you ;-) i'll keep looking into this for you, if >>> anyone else has any ideas please share.. >>> >> >>>> This doesn't work for me. After a long delay (long enough to think the >>>> computer has hung), it returns empty even though I am definitely connected >>>> at the moment. hostName() by itself is the same. >> >>>>> >>>>> hostNameToAddress(hostname()) >>>>> >>>>> if it's empty, there's no internet connection.. >>>>> >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > > -- > __________________________ > Regards, Andu > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From undo at cloud9.net Mon Jan 14 23:02:01 2002 From: undo at cloud9.net (andu) Date: Mon Jan 14 23:02:01 2002 Subject: Checking for internet access References: Message-ID: <3C43A844.5D4EE361@cloud9.net> Sarah Reichelt wrote: > > Thanks, Andu. That works OK, except that if there is no link, the computer > looks like it has hung for 45 seconds. It stops completely and can't process > any pending messages, even the menubar clock stops. > > Is there any way to shorten the timeout interval? The socketTimeOutInterval > has no effect. I don't think so, it's the system and it sounds like a Mac. > > Cheers, > Sarah > > > Sarah Reichelt wrote: > >> > >> I thought I had a name :-( > >> > >> It may be relevant that I am behind a router which allocates me an IP > >> address like 192.168.1.x by DHCP. The router uses NAT to translate the > >> connections single IP address to different addresses on the network. I am > >> assuming that if I had a direct connection, hostName() would give me an > >> answer. > >> > >> Thanks for trying - I hope someone can come up with an answer. > > > > I didn't follow this but you can do a host name to address translation > > with any host name: > > get hostnametoaddress("www.runrev.com") > > if the result is empty then put it > > else put the result > > > >> > >> Sarah > >> > >>> that probably means you have no "name".. obviously this works fine for me, > >>> but that doesn't help you ;-) i'll keep looking into this for you, if > >>> anyone else has any ideas please share.. > >>> > >> > >>>> This doesn't work for me. After a long delay (long enough to think the > >>>> computer has hung), it returns empty even though I am definitely connected > >>>> at the moment. hostName() by itself is the same. > >> > >>>>> > >>>>> hostNameToAddress(hostname()) > >>>>> > >>>>> if it's empty, there's no internet connection.. > >>>>> > >> > >> _______________________________________________ > >> use-revolution mailing list > >> use-revolution at lists.runrev.com > >> http://lists.runrev.com/mailman/listinfo/use-revolution > > > > -- > > __________________________ > > Regards, Andu > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution -- __________________________ Regards, Andu From pixelbird at interisland.net Mon Jan 14 23:27:00 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Mon Jan 14 23:27:00 2002 Subject: upperCase to lowerCase In-Reply-To: Message-ID: on 1/14/02 7:33 AM, Rolf Kocherhans at rolfk at vetvir.unizh.ch wrote: > Can anyone help me to rewrite the function below so that it changes > upperCase to lowerCase. > > > This Function changes lowerCase to upperCase: > > function upperCase whatStr > repeat with charNum = 1 to the number of chars in whatStr > put charToNum(char charNum of whatStr) into thisChar > if thisChar >= 97 AND thisChar <= 122 > then put numToChar(thisChar - 32) into char charNum of whatStr > end repeat > return whatStr > end upperCase ---------- Maybe I don't understand the question, but its just reversed, starting with the upper case char numbers and add 32. function upperCase whatStr repeat with charNum = 1 to the number of chars in whatStr put charToNum(char charNum of whatStr) into thisChar if thisChar >= 65 AND thisChar <= 90 then put numToChar(thisChar + 32) into char charNum of whatStr end repeat return whatStr end upperCase From dan at clearvisiontech.com Tue Jan 15 00:01:01 2002 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue Jan 15 00:01:01 2002 Subject: base64 Message-ID: Greetings once again... I am using the base64Encode/Decode as a way to do a simple encryption. All I really am trying to do is prevent the user from opening a text file in text editor and "see" the data. In doing this, I have experienced some problems on the Mac (the PC is fine). It "appears" that if the "Microsoft Component Library" is not installed, it fails (sometimes). Anyone ever heard of any problems with base64Encode on the Mac? Or, is there a better way I should be encrypting my text files? As always, I thank you in advance, Dan Friedman From pixelbird at interisland.net Tue Jan 15 00:06:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Tue Jan 15 00:06:01 2002 Subject: Is it soup yet? In-Reply-To: Message-ID: on 1/14/02 12:38 AM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > At 6:38 PM -0800 1/13/02, Ken Norris (dialup) wrote: >> What about Windows? There must be some kind of standard speech available. >> I'm trying to find out the nomenclature for such things in Windows, so I >> don't end up sifting through a million hits. > > The external collection available at: > > http://www.xworlds.com/metacard/ > > does text-to-speech on both Mac and Windows. ---------- Thanks Geoff, that's what I was looking for. One of the things I want to do is build a simple one button launch text-only email reader that speaks the text, for an old computer, for my mom who has macular degeneration, and can't really even get their HP computer turned on, let alone access her email and try to read it. I can use it as a foundation to add email capability to some other software I'm working on. Best regards, Ken N. From undo at cloud9.net Tue Jan 15 00:36:01 2002 From: undo at cloud9.net (andu) Date: Tue Jan 15 00:36:01 2002 Subject: upperCase to lowerCase References: Message-ID: <3C43BE30.EA0306A7@cloud9.net> "Ken Norris (dialup)" wrote: > > on 1/14/02 7:33 AM, Rolf Kocherhans at rolfk at vetvir.unizh.ch wrote: > > > Can anyone help me to rewrite the function below so that it changes > > upperCase to lowerCase. > > > > > > This Function changes lowerCase to upperCase: > > > > function upperCase whatStr > > repeat with charNum = 1 to the number of chars in whatStr > > put charToNum(char charNum of whatStr) into thisChar > > if thisChar >= 97 AND thisChar <= 122 > > then put numToChar(thisChar - 32) into char charNum of whatStr > > end repeat > > return whatStr > > end upperCase > ---------- > Maybe I don't understand the question, but its just reversed, starting with > the upper case char numbers and add 32. > > function upperCase whatStr > repeat with charNum = 1 to the number of chars in whatStr > put charToNum(char charNum of whatStr) into thisChar > if thisChar >= 65 AND thisChar <= 90 > then put numToChar(thisChar + 32) into char charNum of whatStr > end repeat > return whatStr > end upperCase toUpper(string) toLower(string) > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution -- __________________________ Regards, Andu From JohnRule at aol.com Tue Jan 15 09:25:02 2002 From: JohnRule at aol.com (JohnRule at aol.com) Date: Tue Jan 15 09:25:02 2002 Subject: open socket with message for function? Message-ID: <4a.4f3c8b8.2975953c@aol.com> Does anyone know how to open a socket with a message to call a function? I know that the "ACCEPT" (with message) can be used for ports, but what about sockets? What I want is for Revolution to call a function when I receive data on the open socket (this works fine with an open port), but I never get called with an open socket. I have to 'manually' get the data. I can poll an open socket for data, but even when using the send command, it still affects system performance. I don't mind getting the data manually (I'm getting kind of spoiled I guess with Revolution doing everything for me), but the performance is terrible. I think it is the combination of the "SEND" commands (every 100 ms), and all of the read requests from the socket buffer that is doing it...is there another way? Thanks, JR From niklas_almesjo at yahoo.com Tue Jan 15 09:34:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Tue Jan 15 09:34:01 2002 Subject: how to copy files? In-Reply-To: <200201141708.MAA16737@www.runrev.com> Message-ID: <20020115143204.47379.qmail@web12306.mail.yahoo.com> Is there any way to copy files? found delete file but nothing for copying.. thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From kaelin at acm.org Tue Jan 15 11:59:00 2002 From: kaelin at acm.org (Kaelin Colclasure) Date: Tue Jan 15 11:59:00 2002 Subject: Checking for internet access In-Reply-To: <3C43A844.5D4EE361@cloud9.net> Message-ID: On 1/14/02 7:55 PM, "andu" wrote: > Sarah Reichelt wrote: >> >> Thanks, Andu. That works OK, except that if there is no link, the computer >> looks like it has hung for 45 seconds. It stops completely and can't process >> any pending messages, even the menubar clock stops. >> >> Is there any way to shorten the timeout interval? The socketTimeOutInterval >> has no effect. > > I don't think so, it's the system and it sounds like a Mac. This is not a good way to check for a connection on any machine. What you are doing is sending a DNS request packet off into the ether. If you are connected (and your machine is correctly configured), you'll generally get a DNS response fairly quickly. But if you are not connected, the process making the request will hang in the resolver libraries for the full DNS request timeout. There is no *portable* way to tell if a host has a connection or not. And even the OS specific stuff (like querying and interface to see if it is up, or has a carrier) is not 100% reliable. After all I may plug my machine into a hub that isn't plugged into anything else. I'd suggest you take a tip from how mail clients deal with this issue: Just let the user tell you if she's working offline. Most will try a (non-blocking) request, and present a dialog to the user if there's no response within a reasonable timeout period. -- Kaelin > >> >> Cheers, >> Sarah >> >>> Sarah Reichelt wrote: >>>> >>>> I thought I had a name :-( >>>> >>>> It may be relevant that I am behind a router which allocates me an IP >>>> address like 192.168.1.x by DHCP. The router uses NAT to translate the >>>> connections single IP address to different addresses on the network. I am >>>> assuming that if I had a direct connection, hostName() would give me an >>>> answer. >>>> >>>> Thanks for trying - I hope someone can come up with an answer. >>> >>> I didn't follow this but you can do a host name to address translation >>> with any host name: >>> get hostnametoaddress("www.runrev.com") >>> if the result is empty then put it >>> else put the result >>> >>>> >>>> Sarah >>>> >>>>> that probably means you have no "name".. obviously this works fine for me, >>>>> but that doesn't help you ;-) i'll keep looking into this for you, if >>>>> anyone else has any ideas please share.. >>>>> >>>> >>>>>> This doesn't work for me. After a long delay (long enough to think the >>>>>> computer has hung), it returns empty even though I am definitely >>>>>> connected >>>>>> at the moment. hostName() by itself is the same. >>>> >>>>>>> >>>>>>> hostNameToAddress(hostname()) >>>>>>> >>>>>>> if it's empty, there's no internet connection.. >>>>>>> >>>> >>>> _______________________________________________ >>>> use-revolution mailing list >>>> use-revolution at lists.runrev.com >>>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >>> -- >>> __________________________ >>> Regards, Andu >>> _______________________________________________ >>> use-revolution mailing list >>> use-revolution at lists.runrev.com >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution From csilverm at acs.ryerson.ca Tue Jan 15 12:26:01 2002 From: csilverm at acs.ryerson.ca (Charles Silverman) Date: Tue Jan 15 12:26:01 2002 Subject: Help with videoclips In-Reply-To: <200201151708.MAA15099@www.runrev.com> Message-ID: Is there any way to get the following to work? on mouseup play videoclip "tempfile1" repeat if movie() = "done" then exit repeat end repeat end mouseup I'm running off a Powerbook Pismo with 384 megs lots of hard drive space and Mac OS 9.2. The file is a quicktime audio recording that I'm saving as a videoclip. I was able to get this working earlier. I'm trying to create my own "callbacks" approach for the embedded audio files. Any insights/help appreciated. Here's another, slightly different problem. If I record and then import in the same handler, it doesn't work. on mouseup get flushevents("all") put the seconds into tStart record sound file "tempfile1" as "MAC3" with good quality set the endvalue of scrollbar 1 to 6 set the thumbpos of scrollbar 1 to 0 repeat set the thumbpos of scrollbar 1 to (the seconds - tStart) if the seconds - tStart > 6 or the mouse is down then exit repeat end repeat stop recording import videoclip from file "tempfile1" end mouseup But if I reference another handler in place of the import line, it works. Both these things feel like bug/timing problems. All/any help appreciated. Charles Silverman From csilverm at acs.ryerson.ca Tue Jan 15 12:30:01 2002 From: csilverm at acs.ryerson.ca (Charles Silverman) Date: Tue Jan 15 12:30:01 2002 Subject: Script windows not appearing In-Reply-To: <200201151708.MAA15099@www.runrev.com> Message-ID: On many occasions the script palettes disappear. I can call them back by finding their stack names in the windows list, e.g. RevPropertyPalette33 and typing a show command. This was a problem in 1.0 and continues to be so in 1.1. Charles Silverman From undo at cloud9.net Tue Jan 15 12:52:01 2002 From: undo at cloud9.net (andu) Date: Tue Jan 15 12:52:01 2002 Subject: open socket with message for function? References: <4a.4f3c8b8.2975953c@aol.com> Message-ID: <3C446AD7.430FF497@cloud9.net> JohnRule at aol.com wrote: > > Does anyone know how to open a socket with a message to call a function? I > know that the "ACCEPT" (with message) can be used for ports, but what about > sockets? > > What I want is for Revolution to call a function when I receive data on the > open socket (this works fine with an open port), but I never get called with > an open socket. I have to 'manually' get the data. I can poll an open socket > for data, but even when using the send command, it still affects system > performance. I don't mind getting the data manually (I'm getting kind of > spoiled I guess with Revolution doing everything for me), but the performance > is terrible. I think it is the combination of the "SEND" commands (every 100 > ms), and all of the read requests from the socket buffer that is doing > it...is there another way? You can open socket with message but you still need to read the data coming in. open socket x with message "getdata" on getdata x read from socket x for end getdata > > Thanks, > JR > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution -- __________________________ Regards, Andu From gcanyon at inspiredlogic.com Tue Jan 15 13:52:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 15 13:52:01 2002 Subject: Help with videoclips In-Reply-To: References: Message-ID: At 12:23 PM -0500 1/15/02, Charles Silverman wrote: >on mouseup > play videoclip "tempfile1" > repeat > if movie() = "done" then exit repeat > end repeat >end mouseup > >I'm running off a Powerbook Pismo with 384 megs lots of hard drive space and >Mac OS 9.2. > >The file is a quicktime audio recording that I'm saving as a videoclip. >I was able to get this working earlier. I'm trying to create my own >"callbacks" approach for the embedded audio files. Any insights/help >appreciated. > >Here's another, slightly different problem. If I record and then import in >the same handler, it doesn't work. > >on mouseup > get flushevents("all") > put the seconds into tStart > record sound file "tempfile1" as "MAC3" with good quality > set the endvalue of scrollbar 1 to 6 > set the thumbpos of scrollbar 1 to 0 > repeat > set the thumbpos of scrollbar 1 to (the seconds - tStart) > if the seconds - tStart > 6 or the mouse is down then exit repeat > end repeat > stop recording > import videoclip from file "tempfile1" >end mouseup Check out the playStopped message for the first issue. In all cases, avoid using a repeat where you check the status of something. Instead, look at the send command and use the "send message to object in time" form to loop instead. regards, geoff From bmmeili at swissonline.ch Tue Jan 15 14:16:00 2002 From: bmmeili at swissonline.ch (bmmeili) Date: Tue Jan 15 14:16:00 2002 Subject: selectedchunk Message-ID: hi I've still got a problem with the selectedchunk-function. The following test-script works properly and I get the wished chunk-description. on mouseup select word random(50) of field 1 put the selectedchunk end mouseup But, if I select a word in field 1 myself and then press the button with the script???? on mouseup put the selectedchunk end mouseup ????? then I only get an empty message-box. In Rev. 1.0 the whole thing works fine. I already tried to get an answer to this problem from the use-rev-lists, but nobody answered. Isn't there really anybody out there who can help me? Martin From yvescoppe at skynet.be Tue Jan 15 16:01:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 15 16:01:01 2002 Subject: tabstops fld Message-ID: Hello, I' have a fld with columns (tabstop property). I'd like to pick the text of one column. There is a XFCN from Rinaldi put extractitems(fld "myFld",tab,"2") into txtofColumn2 Is it possible to write a script that goes even fast ? Is there a syntax in transcript ? Thanks -- From shaosean at unitz.ca Tue Jan 15 16:21:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Tue Jan 15 16:21:01 2002 Subject: tabstops fld References: Message-ID: <000b01c19e0a$326adbd0$88b15bd1@dreamlanpc> function extractItem pFieldName, pItemNumber set the itemDelimiter to TAB # TAB is a constant in the language return item pItemNumber of fld pFieldName end extractItem hope that helps.. ----- Original Message ----- > I' have a fld with columns (tabstop property). > I'd like to pick the text of one column. > There is a XFCN from Rinaldi > put extractitems(fld "myFld",tab,"2") into txtofColumn2 > Is it possible to write a script that goes even fast ? > Is there a syntax in transcript ? From yvescoppe at skynet.be Tue Jan 15 16:41:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 15 16:41:01 2002 Subject: tabstops fld In-Reply-To: <000b01c19e0a$326adbd0$88b15bd1@dreamlanpc> References: <000b01c19e0a$326adbd0$88b15bd1@dreamlanpc> Message-ID: >function extractItem pFieldName, pItemNumber > set the itemDelimiter to TAB # TAB is a constant in the language > return item pItemNumber of fld pFieldName >end extractItem > >hope that helps.. > >- So you extract the item pItemNumber of line 1 of fld pFieldName I'd like to extract the items pItemNumber of all the lines of fld pFieldName you can write a loop, but it is slow when the fld has many lines thanks. -- From Roger.E.Eller at sealedair.com Tue Jan 15 16:42:00 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Tue Jan 15 16:42:00 2002 Subject: FTP progress feedback Message-ID: Hi, I am using the put URL ftp command to transfer files. Can someone offer a suggestion of how to get the percent completed of an FTP in progress to show in a progress bar? Similarly, how can I get an object to move from screen location 200,35 to location 200, 450. What I want to do is animate an icon of the file being transferred to show movement of the file from one server to another geographically. Thanks. ~Roger From niklas_almesjo at yahoo.com Tue Jan 15 17:28:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Tue Jan 15 17:28:01 2002 Subject: files lost when building.. In-Reply-To: <200201151427.JAA11585@www.runrev.com> Message-ID: <20020115222552.14842.qmail@web12301.mail.yahoo.com> Great, so I am not crazy after all.. that part about the exe (or if it was the rev-file) was missing sounds familiar.. though the files that got deleted were in the build-directory in my case. Also I think the distribution builder deletes files even if you answer cancel to if you wish to overwrite a folder. /Niklas Message: 3 From: "Chipp Walters" To: Subject: RE: files lost when building.. Date: Mon, 14 Jan 2002 13:19:57 -0600 Reply-To: use-revolution at lists.runrev.com Yep, I saw this too. It would delete the files at the root level of RR, thus requiring a new install. I tracked it down to doing a build distribution where the distribution folder was the same name as one built before, but the .exe file was missing (Windows, not Mac), then the files would get deleted. The fix was to NOT DELETE the old .exe file, just write over it OR use a NEW NAME for the new build. Hope this helps. Chipp > -----Original Message----- > From: use-revolution-admin at lists.runrev.com > [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Niklas > Almesjv > Sent: Monday, January 14, 2002 5:05 AM > To: use-revolution at lists.runrev.com > Subject: files lost when building.. > > > Ok, so if I would have read this message I would have > had lots of doubts, but since it's the second time > this happens to me I can not keep quiet.. > the distribution-builder has *twice* deleted all the > files in the folder where I choose to build. luckily I > learned from the first time so now I only have to redo > about half a days of work. but this is unacceptable!! > the first time it happened was on a computer running > Me and now it's on 95. > Look into this please!! __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From drvaughan55 at mac.com Tue Jan 15 17:45:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Tue Jan 15 17:45:01 2002 Subject: tabstops fld In-Reply-To: Message-ID: <2F4DFBCB-0A09-11D6-A199-000393598038@mac.com> Yves When you say that would be slow, are you using the construct for the loop? As discussed in other threads, it is much faster than or whatever. I have very fast Split and Join XFCNs for column separation and joining under Hypercard but they are all history now. cheers David On Wednesday, January 16, 2002, at 08:36 , yves COPPE wrote: >> function extractItem pFieldName, pItemNumber >> set the itemDelimiter to TAB # TAB is a constant in the language >> return item pItemNumber of fld pFieldName >> end extractItem >> >> hope that helps.. >> >> - > > > So you extract the item pItemNumber of line 1 of fld pFieldName > > I'd like to extract the items pItemNumber of all the lines of fld > pFieldName > you can write a loop, but it is slow when the fld has many lines > > thanks. > -- _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From jeanne at runrev.com Tue Jan 15 18:14:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 15 18:14:00 2002 Subject: Brightness and Contrast In-Reply-To: References: Message-ID: At 2:30 AM -0800 1/14/2002, Marten van den Berg wrote: >I could't find a description of the imageData property in my transcript >dictionary (I'm using rev 1.1). I had forgotten, there's a bug in the 1.1 version. The imageData property is in there, though, and you can get to it by typing "imagePixmap" into the search box at the tiop of the dictionary, then pressing the left arrow to go back one card. Here's the info from the dictionary: --------------- The imageData property specifies the binary data that makes up the picture in an image object. Syntax: set the imageData of image to binaryData Examples: put the imageData of image ID 3577 into dateToAnalyze set the imageData of the mouseControl to the personalImage of this card Use the imageData property to process an image and display the processed version. Value: The imageData of an image consists of a sequence of binary values. Notes: Each pixel is represented by 32 bits (4 bytes) of image data, with pixels numbered from the top left corner of the image, left to right, then top to bottom. The first byte consists of zeroes, and the last three bytes encode the amount of red, green, and blue respectively. Since each pixel is represented by 4 bytes (4 characters), you can obtain the numeric value of any of the color channels for a given pixel using the charToNum function. For example, the numeric value of the red channel for the tenth pixel is given by the expression charToNum(char 10 + 1 of the imageData of image); the numeric value of the green channel is charToNum(char 10 + 2 of the imageData of image); and the numeric value of the blue channel is charToNum(char 10 + 3 of the imageData of image). --------------- I'm thinking it would be possible to process this data in a repeat loop, altering each run of four bytes and then writing out the altered values. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Tue Jan 15 18:14:18 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 15 18:14:18 2002 Subject: selectedchunk In-Reply-To: Message-ID: At 11:25 AM -0800 1/8/2002, bmmeili wrote: >In Revolution 1.0 the following handler works fine whereas it doesn't work >neither in Revolution 1.1. nor in Revolution 1.1.1. > >on mouseup >put the selectedchunk -- some text is marked in a card field >end mouseup This is just a guess, but is the above handler in a standard-style button, are you using a Mac, and is the lookAndFeel set to "Appearance Manager"? In this case, there's a problem where the hiliting of the button deselects any selected text. There are a number of workarounds, including using a different button style and setting the button's autoHilite property to false. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From sarahr at genesearch.com.au Tue Jan 15 18:16:00 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Tue Jan 15 18:16:00 2002 Subject: Checking for internet access In-Reply-To: Message-ID: > I'd suggest you take a tip from how mail clients deal with this issue: Just > let the user tell you if she's working offline. Most will try a > (non-blocking) request, and present a dialog to the user if there's no > response within a reasonable timeout period. That's what I would like to do. I just need to know HOW to do a non-blocking request. What Revolution command will check in a non-blocking & non-crashing manner. Sarah From shaosean at unitz.ca Wed Jan 16 01:41:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Wed Jan 16 01:41:01 2002 Subject: tabstops fld References: <000b01c19e0a$326adbd0$88b15bd1@dreamlanpc> Message-ID: <000b01c19e58$5fcac740$88b15bd1@dreamlanpc> sorry, it wasn't very clear what the original XCMD did, but here's something that should mimick the same features function extractItem pFieldName, pItemNumber local tempLine, vListToReturn set the itemDelimiter to TAB repeat for each line tempLine of fld pFieldName put item pItemNumber & LINEFEED of tempLine after vListToReturn end repeat return vListToReturn end extractItem From shaosean at unitz.ca Wed Jan 16 01:46:00 2002 From: shaosean at unitz.ca (Shao Sean) Date: Wed Jan 16 01:46:00 2002 Subject: Checking for internet access References: Message-ID: <001d01c19e59$116e6510$88b15bd1@dreamlanpc> i can't really test this due to my dedicated connection (and i'm not about to unhook it cause i'm trying to see how long i can push this machine before it finally dies ;-) in the description for "open socket" it looks like scripts should keep running (so it states).. perhaps try using the message feature (i remember going to use this for my socket, but didn't really understand it at the time) ----- Original Message ----- > That's what I would like to do. I just need to know HOW to do a non-blocking > request. What Revolution command will check in a non-blocking & non-crashing > manner. From yvescoppe at skynet.be Wed Jan 16 02:21:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 16 02:21:01 2002 Subject: Brightness and Contrast In-Reply-To: References: Message-ID: > >--------------- >The imageData property specifies the binary data that makes up the picture >in an image object. > >Syntax: >set the imageData of image to binaryData > >Examples: >put the imageData of image ID 3577 into dateToAnalyze >set the imageData of the mouseControl to the personalImage of this card > >Use the imageData property to process an image and display the processed >version. > >Value: >The imageData of an image consists of a sequence of binary values. > >Notes: >Each pixel is represented by 32 bits (4 bytes) of image data, with pixels >numbered from the top left corner of the image, left to right, then top to >bottom. The first byte consists of zeroes, and the last three bytes encode >the amount of red, green, and blue respectively. > >Since each pixel is represented by 4 bytes (4 characters), you can obtain >the numeric value of any of the color channels for a given pixel using the >charToNum function. For example, the numeric value of the red channel for >the tenth pixel is given by the expression charToNum(char 10 + 1 of the >imageData of image); the numeric value of the green channel is >charToNum(char 10 + 2 of the imageData of image); and the numeric value of >the blue channel is charToNum(char 10 + 3 of the imageData of image). >--------------- > is it possible to use de imagedata property to zzom in and out an image ? Thanks. -- Salutations. Yves COPPE Email : yvescoppe at skynet.be From gcanyon at inspiredlogic.com Wed Jan 16 03:24:20 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 16 03:24:20 2002 Subject: February Programmer's Challenge is open to us Message-ID: This month's programmer's challenge in MacTech magazine is open to us, and actually offers some advantage to users of high-level tools: up to a 25% bonus is offered for good presentation of the results and other niceties. I've given a bit of thought to what algorithm might work to solve the problem and I'd be happy to share with anyone who wants to tackle this. I suspect that anyone who's familiar with chip-design software algorithms will be way ahead of me, since the problem seems similar. It's due Feb. 1. The details are available at: regards, Geoff From gcanyon at inspiredlogic.com Wed Jan 16 03:32:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 16 03:32:01 2002 Subject: Brightness and Contrast In-Reply-To: References: Message-ID: At 7:58 AM +0100 1/16/02, yves COPPE wrote: >is it possible to use de imagedata property to zzom in and out an image ? It's easier than that. Just set the size of the image to whatever size you like. Revolution handles the scaling. regards, gc From gwills at ozemail.com.au Wed Jan 16 04:50:01 2002 From: gwills at ozemail.com.au (Greg Wills) Date: Wed Jan 16 04:50:01 2002 Subject: Printing to the right of the page width In-Reply-To: <200201151429.JAA11729@www.runrev.com> References: <200201151429.JAA11729@www.runrev.com> Message-ID: Thanks Kevin for your reply. I am using the syntax you suggest. The area I am asking is; print this card from 288,6 to 632,466 However only part of this area is printed and to the extreme right of the page. Half of the area to be printed is clipped by the edge of the paper. If I print it in landscape the whole area is printed, but again on the right of the page. I want it to print at the top and left of the page. Any suggestions? regards Greg Wills >On 10/1/02 10:30 pm, Greg Wills wrote: > >> Printing. I am trying to print the right side of a card that is >> beyond the printed page width. I have tied a number of print commands >> but have been unable to get the area I want to print - full size and >> starting at the left margin of the page. Any help gratefully >> appreciated. > >Use the print from point to point syntax. Eg.: > >print this card from 200,200 to 300,300 > >Kevin From mons at knoware.nl Wed Jan 16 05:25:01 2002 From: mons at knoware.nl (Marten van den Berg) Date: Wed Jan 16 05:25:01 2002 Subject: Brightness and Contrast In-Reply-To: Message-ID: op 15-01-2002 07:22 schreef Jeanne A. E. DeVoto op jeanne at runrev.com: > At 2:30 AM -0800 1/14/2002, Marten van den Berg wrote: >> I could't find a description of the imageData property in my transcript >> dictionary (I'm using rev 1.1). > > I had forgotten, there's a bug in the 1.1 version. The imageData property > is in there, though, and you can get to it by typing "imagePixmap" into the > search box at the tiop of the dictionary, then pressing the left arrow to > go back one card. > I'm thinking it would be possible to process this data in a repeat loop, > altering each run of four bytes and then writing out the altered values. > Thanks, I found the description linked by the alphaData property. I already tryed to perform such a repeat loop for the brigthess case, but an imagae has a lot of pixels to process. I works but is far to slow. For now I'm using a white and a black image blending over the original image which works fine for displaying, but actualy I want the possibility to alter the original image. In graphical editing programs these things can be done in realtime, so somehow this must be posible too in revolution, perhaps by an external. I'm inexperianced in writing code other than hypertalk/transcript. If anyone could help me out on this I would be very greatful! Marten van den Berg From wow at together.net Wed Jan 16 09:30:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 16 09:30:01 2002 Subject: Impressive In-Reply-To: Message-ID: I'm sure this has been said before, but I had to share my opinion as well. As someone who has used many Hypercard-like programs over the years, Revolution continues to impress me beyond my expectations. Yes...it definitely has its quirks and bugs, though I'm sure most of those will be worked out this year. But I'm amazed at the extent of features...both from a design/layout perspective and with respect to programming commands and functions. I mean, you guys outdid yourself in many areas! I keep bumping into new features, one after the next. And useful stuff, no less! I, for one, pray this software stays around a good while and keeps getting better. I haven't tried it on Windows yet, let alone Unix...but if it works almost as well on those platforms, the Rev guys deserve a medal. What a blessing. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info 802-238-5355 802-951-2534 fax From Roger.E.Eller at sealedair.com Wed Jan 16 09:40:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Wed Jan 16 09:40:01 2002 Subject: Impressive Message-ID: I have developed apps in Revolution on Windows NT 4.0, and they truly work exactly the same on MacOS9, MacOSX, intel Linux, and SGI irix with NO CODE CHANGES. I too am very happy with Revolution! ~Roger "Richard D. Miller" @lists.runrev.com on 01/16/2002 09:26:55 AM Please respond to use-revolution at lists.runrev.com Sent by: use-revolution-admin at lists.runrev.com To: cc: Subject: Impressive I'm sure this has been said before, but I had to share my opinion as well. As someone who has used many Hypercard-like programs over the years, Revolution continues to impress me beyond my expectations. Yes...it definitely has its quirks and bugs, though I'm sure most of those will be worked out this year. But I'm amazed at the extent of features...both from a design/layout perspective and with respect to programming commands and functions. I mean, you guys outdid yourself in many areas! I keep bumping into new features, one after the next. And useful stuff, no less! I, for one, pray this software stays around a good while and keeps getting better. I haven't tried it on Windows yet, let alone Unix...but if it works almost as well on those platforms, the Rev guys deserve a medal. What a blessing. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info 802-238-5355 802-951-2534 fax _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution From rpresender at earthlink.net Wed Jan 16 09:52:01 2002 From: rpresender at earthlink.net (Robert Presender) Date: Wed Jan 16 09:52:01 2002 Subject: how to copy files? References: <200201151708.MAA15108@www.runrev.com> Message-ID: <005001c19e9d$04aec060$ef42173f@oemcomputer> Niklas wrote: > Is there any way to copy files? found delete file but > nothing for copying.. > thanks, > /Niklas > Try clone command. Regards ... Bob --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002 From Roger.E.Eller at sealedair.com Wed Jan 16 11:31:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Wed Jan 16 11:31:01 2002 Subject: how to copy files? Message-ID: Actually, if I'm not mistaken, "clone" is for objects inside the stack. I have had some succes with the "put URL" command. Try this... put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" ~Roger >> Niklas wrote: >> Is there any way to copy files? found delete file but >> nothing for copying.. >> thanks, >> /Niklas >> >Try clone command. >Regards ... Bob From benr_mc at cogapp.com Wed Jan 16 13:34:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 16 13:34:01 2002 Subject: how to copy files? In-Reply-To: Message-ID: on 16/1/02 4:29 PM, Roger.E.Eller at sealedair.com at Roger.E.Eller at sealedair.com wrote: > put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" Depending on your needs, this may work fine; but note that it is not a general solution. It amounts to 'read text of source file into memory', 'write that text out to a destination file'. The file must fit into Revolution's memory, and the destination file may be different from the source file (because Revolution may switch line end markers, and possibly (?) high-ascii characters). You can partially fix the second problem using the "binfile:" 'protocol' instead of "file:", ie put URL "binfile:C:/myFile.txt" into "binfile:C:/myCopiedFile.txt" Revolution will still need enough memory to hold the contents of the file. With a bit more effort you can avoid the memory problem, using the open/read/write/close commands instead of the URL syntax to read the source file a bit at a time, write that bit out, and continue. Finally, if this needs to work for arbitrary files on MacOS, note that any of the above will only ever read the data fork of a file; so depending on the files you want to copy, you may still lose data using any of the variations of this approach noted above. So the only completely general solution is to avoid the approach of reading data into, and writing it back out of, Revolution. You can do this using the "shell" command on Windows and *nix, and using AppleEvents to instruct the Finder on MacOS. ... but all of this may not be necessary - just depends on what you need. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From scott at tactilemedia.com Wed Jan 16 13:44:00 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 16 13:44:00 2002 Subject: Brightness and Contrast In-Reply-To: <200201161711.MAA26717@indefatigable.cnchost.com> Message-ID: Recently, Marten van den Berg wrote: > I already tryed to perform such a repeat loop for the brigthess case, but an > imagae has a lot of pixels to process. I works but is far to slow. For now > I'm using a white and a black image blending over the original image which > works fine for displaying, but actualy I want the possibility to alter the > original image. Hi Marten: I'm wondering if you might be able to share the code you used to affect your image. Thanks & Regards, Scott _____________________________________________________________________ Scott Rossi Tactile Media - Multimedia & Design Creative Director Email: scott at tactilemedia.com Web: http://www.tactilemedia.com From troy at rpsystems.net Wed Jan 16 13:48:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Wed Jan 16 13:48:01 2002 Subject: how to copy files? In-Reply-To: Message-ID: Ben Rubinstein wrote: > So the only completely general solution is to avoid the approach of reading > data into, and writing it back out of, Revolution. You can do this using > the "shell" command on Windows and *nix, and using AppleEvents to instruct > the Finder on MacOS. I have found the most effective way to copy files is with the "rename" function. -- Troy RPSystems www.rpsystems.net From sjoerdoptland at mac.com Wed Jan 16 15:01:01 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Wed Jan 16 15:01:01 2002 Subject: base64 In-Reply-To: Message-ID: Dan Friedman wrote/ schreef: > Greetings once again... > > I am using the base64Encode/Decode as a way to do a simple encryption. All > I really am trying to do is prevent the user from opening a text file in > text editor and "see" the data. > > In doing this, I have experienced some problems on the Mac (the PC is fine). > It "appears" that if the "Microsoft Component Library" is not installed, it > fails (sometimes). > > Anyone ever heard of any problems with base64Encode on the Mac? Or, is > there a better way I should be encrypting my text files? No (I am on a Mac), and I even think this can't have anything to do with the MCL. When exactly do you experience the problems? What else can be causing the error messages? > As always, I thank you in advance, > > Dan Friedman Regards, / Groeten, Sjoerd From jeanne at runrev.com Wed Jan 16 15:41:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 16 15:41:01 2002 Subject: Printing to the right of the page width In-Reply-To: References: <200201151429.JAA11729@www.runrev.com> <200201151429.JAA11729@www.runrev.com> Message-ID: At 7:13 PM -0800 1/16/2002, Greg Wills wrote: >Thanks Kevin for your reply. I am using the syntax you suggest. The >area I am asking is; > >print this card from 288,6 to 632,466 > >However only part of this area is printed and to the extreme right of >the page. Half of the area to be printed is clipped by the edge of >the paper. If I print it in landscape the whole area is printed, but >again on the right of the page. I want it to print at the top and >left of the page. Try this: print this card from 288,6 to 632,466 into 0,0,344,460 -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From yvescoppe at skynet.be Wed Jan 16 15:44:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 16 15:44:01 2002 Subject: tabstops fld In-Reply-To: References: Message-ID: >Hello, > >I' have a fld with columns (tabstop property). >I'd like to pick the text of one column. >There is a XFCN from Rinaldi > >put extractitems(fld "myFld","2",tab) into txtofColumn2 > >Is it possible to write a script that goes even fast ? >Is there a syntax in transcript ? > >Thanks So, with the help of a few emails to the user.list and good answers from the readers, here is the final script to extract differents columns of a tab fld : function extractItem pFieldName, pItemNumber,delim local tempLine, tempItem,vListofItems,vListToReturn repeat for each line tempLine in pFieldName put "" into vListofItems repeat for each item tempItem in pItemNumber set itemDelimiter to delim put item tempItem of tempLine &delim after vListofItems set itemDelimiter to "," end repeat delete last char of vListofItems put vListofItems& return after vListToReturn end repeat set itemDelimiter to "," delete last char of vListToReturn return vListToReturn end extractItem Sample : put extractitem(fld 1,"1,2,6",TAB) into anyVar it extracts from fld 1 a tab-tab-return variable (=anyvar) with only the columns 1,2,6 and it works fine and fast For a fld of 50 lines with 10 columns, I reach on a PowerMac G4 800 MHZ the same speed in Revolution (counted in ticks) as with the external of Rinaldi in Hypercard. I haven't tried it yet on an iMac G3 400. I'll try it later and tell you. Thanks to all who helped me? -- Salutations. Yves COPPE Email : yvescoppe at skynet.be -------------- next part -------------- An HTML attachment was scrubbed... URL: From sjoerdoptland at mac.com Wed Jan 16 16:25:00 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Wed Jan 16 16:25:00 2002 Subject: how to copy files? In-Reply-To: Message-ID: Troy Rollins wrote/ schreef: > Ben Rubinstein wrote: > >> So the only completely general solution is to avoid the approach of reading >> data into, and writing it back out of, Revolution. You can do this using >> the "shell" command on Windows and *nix, and using AppleEvents to instruct >> the Finder on MacOS. > > I have found the most effective way to copy files is with the "rename" > function. Well, moving, not *copying*... Regards, / Groeten, Sjoerd From troy at rpsystems.net Wed Jan 16 16:54:00 2002 From: troy at rpsystems.net (Troy Rollins) Date: Wed Jan 16 16:54:00 2002 Subject: how to copy files? In-Reply-To: Message-ID: Sjoerd Op 't Land wrote: > Well, moving, not *copying*... Er... Right. Rename ending up being the solution I was looking for, but I was actually attempting to move rather than copy+delete original. -- Troy RPSystems www.rpsystems.net From k_major at osnabrueck.netsurf.de Wed Jan 16 17:23:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Wed Jan 16 17:23:01 2002 Subject: how to copy files? In-Reply-To: <200201161707.MAA05864@www.runrev.com> Message-ID: Hi Niklas, > Actually, if I'm not mistaken, "clone" is for objects inside the > stack. I > have > had some succes with the "put URL" command. > Try this... > > put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" > > ~Roger > > Niklas wrote: > Is there any way to copy files? found delete file but > nothing for copying.. > thanks, > /Niklas please note that script above copies only in textmode ! Ideal for plain text-files. To copy all other types of files use: put URL "binfile:C:/myFile.jpg" into "binfile:C:/myCopiedFile.jpg" On a Mac it is a bit more complex because of the "Type" and "Creator"-Code needed by the OS. (To correctly handle doubleclicks on that file etc...) Please drop a note if you would like to know the "mac-way", too :-) Regards Klaus Major From k_major at osnabrueck.netsurf.de Wed Jan 16 17:23:29 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Wed Jan 16 17:23:29 2002 Subject: how to copy files? Message-ID: <02B64360-0AB5-11D6-A82C-000A27B49A96@osnabrueck.netsurf.de> Hi Niklas, Actually, if I'm not mistaken, "clone" is for objects inside the stack. I have had some succes with the "put URL" command. Try this... put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" ~Roger Niklas wrote: Is there any way to copy files? found delete file but nothing for copying.. thanks, /Niklas please note that script above copies only in textmode ! Ideal for plain text-files. To copy all other types of files use: put URL "binfile:C:/myFile.jpg" into "binfile:C:/myCopiedFile.jpg" On a Mac it is a bit more complex because of the "Type" and "Creator"-Code needed by the OS. (To correctly handle doubleclicks on that file etc...) Please drop a note if you would like to know the "mac-way", too :-) Regards Klaus Major From kray at sonsothunder.com Wed Jan 16 17:33:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Wed Jan 16 17:33:01 2002 Subject: how to copy files? References: Message-ID: <005a01c19ebb$6927e620$9865fea9@mckinley.dom> You know, it sounds like it's worth adding an alternative to the "put URL into " command to Transcript. How about: copy file to [as binary] OR copy [binary] file to How's that sound to everyone? Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: To: Sent: Wednesday, January 16, 2002 10:29 AM Subject: Re: how to copy files? > > Actually, if I'm not mistaken, "clone" is for objects inside the stack. I > have > had some succes with the "put URL" command. > Try this... > > put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" > > ~Roger > > >> Niklas wrote: > >> Is there any way to copy files? found delete file but > >> nothing for copying.. > >> thanks, > >> /Niklas > >> > >Try clone command. > >Regards ... Bob > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From Roger.E.Eller at sealedair.com Wed Jan 16 17:59:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Wed Jan 16 17:59:01 2002 Subject: how to copy files? Message-ID: I would LOVE TO KNOW the "mac-way". ~Roger >> >> put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" >> > please note that script above copies only in textmode ! > Ideal for plain text-files. > > To copy all other types of files use: > > put URL "binfile:C:/myFile.jpg" into "binfile:C:/myCopiedFile.jpg" > > > On a Mac it is a bit more complex because of the "Type" and > "Creator"-Code > needed by the OS. (To correctly handle doubleclicks on that file etc...) > > Please drop a note if you would like to know the "mac-way", too :-) > > > Regards > > Klaus Major From niklas_almesjo at yahoo.com Wed Jan 16 18:16:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Wed Jan 16 18:16:01 2002 Subject: how to copy files? In-Reply-To: <200201161708.MAA06043@www.runrev.com> Message-ID: <20020116231329.59045.qmail@web12308.mail.yahoo.com> put would work if it was a text-file.. maybe it works for an exe-file aswell? but then you have to read the whole file to write it out again. can I add a feature request for a copy file command? /Niklas Message: 8 From: Roger.E.Eller at sealedair.com Subject: Re: how to copy files? To: use-revolution at lists.runrev.com Date: Wed, 16 Jan 2002 11:29:12 -0500 Reply-To: use-revolution at lists.runrev.com Actually, if I'm not mistaken, "clone" is for objects inside the stack. I have had some succes with the "put URL" command. Try this... put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt" ~Roger >> Niklas wrote: >> Is there any way to copy files? found delete file but >> nothing for copying.. >> thanks, >> /Niklas >> >Try clone command. >Regards ... Bob __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From Roger.E.Eller at sealedair.com Wed Jan 16 18:42:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Wed Jan 16 18:42:01 2002 Subject: Printing to the right of the page width Message-ID: I played with this approach and came up with the script below for a print button. So far, it has printed any size card SCALED to the width of a Letter sized page. ~Roger > Try this: > > print this card from 288,6 to 632,466 into 0,0,344,460 > > -- > Jeanne A. E. DeVoto ~ jeanne at runrev.com > http://www.runrev.com/ > Runtime Revolution Limited - Power to the Developer! # PRINT CARD TO FIT PAGE WIDTH on mouseUp put the rectangle of this card into myRectangle set itemDelimiter to "," put item 1 of myRectangle & itemDelimiter into myXYstartpoint put item 2 of myRectangle after myXYstartpoint put item 3 of myRectangle & itemDelimiter into myXYendpoint put item 4 of myRectangle after myXYendpoint print this card from myXYstartpoint to myXYendpoint into 10,10,600,800 end mouseUp From sarahr at genesearch.com.au Wed Jan 16 18:43:02 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Wed Jan 16 18:43:02 2002 Subject: Checking for internet access In-Reply-To: Message-ID: OK, I've got this working under OS 9. It quits unexpectedly under OS X and I haven't checked with any other platforms. Here is a slightly stripped down version of my script: on mouseUp put "" into fld 1 of cd 1 open socket "www.yahoo.com" with message "openSock" send checkLink to me in 6 seconds send mouseUp to me in 300 seconds end mouseUp on openSock put "Link OK" into fld 1 of cd 1 close socket "www.yahoo.com" end openSock on socketError put "Link down" into fld 1 of cd 1 end socketError on checkLink if fld 1 of cd 1 is empty then put "Link down" into fld 1 of cd 1 end if end checkLink I don't think the socketError handler ever gets called, so I just use the delayed checkLink to see if the openSock has happened. This is the only way I could find to check for a failure to connect. The open socket is very quick if it works and doesn't tie up the computer even if it fails. Thanks for everybody's ideas but it seems that my main difficulty was OS X. Cheers, Sarah > > i can't really test this due to my dedicated connection (and i'm not about > to unhook it cause i'm trying to see how long i can push this machine before > it finally dies ;-) > > in the description for "open socket" it looks like scripts should keep > running (so it states).. perhaps try using the message feature (i remember > going to use this for my socket, but didn't really understand it at the > time) > > ----- Original Message ----- >> That's what I would like to do. I just need to know HOW to do a > non-blocking >> request. What Revolution command will check in a non-blocking & > non-crashing >> manner. From kevin at runrev.com Wed Jan 16 19:12:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 16 19:12:01 2002 Subject: Script windows not appearing In-Reply-To: Message-ID: On 15/1/02 9:27 am, Charles Silverman wrote: > On many occasions the script palettes disappear. I can call them back by > finding their stack names in the windows list, e.g. RevPropertyPalette33 and > typing a show command. This was a problem in 1.0 and continues to be so in > 1.1. Can you send me an example or recipe or stack? If we can get this to happen here, we can fix it. Thanks, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From tsj at unimelb.edu.au Wed Jan 16 23:38:01 2002 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed Jan 16 23:38:01 2002 Subject: play player on openCard In-Reply-To: References: Message-ID: OK, so I finally managed to find out how to play a player object (couldn't locate the relevant info in the transcript dictionary) but now I'm having trouble getting it to play in an openCard handler. It seems my problem stems from the fact that I'm using a lock and unlock screen for the card to card transition. If I remove this, the player plays just fine - with it, nothing happens. Is there any way to work around this? Terry... As an aside, despite indications to the contrary in the Transcript dictionary, issuing a play vidioClip playerName command seems to work. Why? -- ___________________________________________________________________________ Dr Terry Judd Lecturer in Instructional Design / Multimedia Developer Biomedical Multimedia Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne Email: t.judd at bmu.unimelb.edu.au Phone: 03 9344 0187 Fax: 03 9344 4998 ___________________________________________________________________________ From pixelbird at interisland.net Thu Jan 17 03:13:00 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu Jan 17 03:13:00 2002 Subject: selectedchunk In-Reply-To: Message-ID: on 1/15/02 11:14 AM, bmmeili at bmmeili at swissonline.ch wrote: > hi > I've still got a problem with the selectedchunk-function. > > The following test-script works properly and I get the wished > chunk-description. > > on mouseup > select word random(50) of field 1 > put the selectedchunk > end mouseup > > But, if I select a word in field 1 myself and then press the button with the > script???? > > on mouseup > put the selectedchunk > end mouseup > > ????? then I only get an empty message-box. In Rev. 1.0 the whole thing > works fine. > > I already tried to get an answer to this problem from the use-rev-lists, but > nobody answered. > > Isn't there really anybody out there who can help me? ---------- Try: put the selection Best regards, Ken N. From wow at together.net Thu Jan 17 06:46:01 2002 From: wow at together.net (Richard D. Miller) Date: Thu Jan 17 06:46:01 2002 Subject: Installing a CD on Windows, Unix In-Reply-To: <20020117083441.28DE45CE3@pop1.euronet.nl> Message-ID: I'd appreciate suggestions on setting up a CD in Windows. Last time I did this (more than 5 years ago), our program required the user to enter the drive letter of their CD drive, so the part of the program loaded onto their hard drive would know where the CD portion was. What's the best way to handle this with Rev? Also, I'd like to hear recommendations on Windows installation programs. Which ones are best? Finally, how is this issue best addressed in Unix (no experience with that at all)? Thanks. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info 802-238-5355 802-951-2534 fax From wow at together.net Thu Jan 17 07:05:01 2002 From: wow at together.net (Richard D. Miller) Date: Thu Jan 17 07:05:01 2002 Subject: Creating a networkable version In-Reply-To: Message-ID: A related question to my last one... Suggestions on how to create a networkable version of a CD on Windows, where most of the program stays on a central server, but portions of it (that need to be modified by the user) are held on various local hard drives. Our software is educational in nature and used by schools and libraries. Thanks. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info 802-238-5355 802-951-2534 fax From Roger.E.Eller at sealedair.com Thu Jan 17 08:56:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Thu Jan 17 08:56:01 2002 Subject: FTP progress feedback Message-ID: Hi, I am using the put URL ftp command to transfer files to a server. Can someone offer a suggestion of how to get the percent completed of an FTP in progress to show in a progress bar? Thanks. ~Roger From tsimmons at employmentlawadvisors.com Thu Jan 17 09:20:01 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Thu Jan 17 09:20:01 2002 Subject: Installing a CD on Windows, Unix References: Message-ID: <008e01c19f61$9cc53ae0$d7aa343f@elanet> Here's something that will help on your question relating to installation programs. I totally recommend Setup Specialist - it's fast, easy, builds flawless installer files for Windows, and is very reasonably-priced ($87.23 on their site, and the installer files you create are royalty-free). Check it out at http://www.us.setupspecialist.com/en/. HTH, Tommy Simmons Employment Law Advisory Network, Inc. www.employmentlawadvisors.com ----- Original Message ----- From: Richard D. Miller To: Sent: Thursday, January 17, 2002 5:41 AM Subject: Installing a CD on Windows, Unix > I'd appreciate suggestions on setting up a CD in Windows. Last time I did > this (more than 5 years ago), our program required the user to enter the > drive letter of their CD drive, so the part of the program loaded onto their > hard drive would know where the CD portion was. What's the best way to > handle this with Rev? Also, I'd like to hear recommendations on Windows > installation programs. Which ones are best? Finally, how is this issue best > addressed in Unix (no experience with that at all)? > > Thanks. > > -- > Richard Miller > The Wood Exchange.info > http://www.thewoodexchange.info > 802-238-5355 > 802-951-2534 fax From steve at messimercomputing.com Thu Jan 17 10:33:01 2002 From: steve at messimercomputing.com (Steve Messimer) Date: Thu Jan 17 10:33:01 2002 Subject: Windows distributions Message-ID: Hi, I am building a app that needs to be on the Windows and Mac platforms. The mac build is fine and the performance of the standalone is great. When I build Windows distributions I have two problems: 1) Performance is not good. I think that this might have to do with some sort of conversion that the standalone engine has to perform at start up. The documentation suggests saving the rev project in Windows before building a distribution. Any one had relevant experience w this? Are there any other things that I should know that might be helpful? 2) When I build a Windows distribution I seem to loose the path to my QT movies. I have a set of stack scripts that work on the Mac side w/o problems. Is there some other procedure I need to use on the Windows side so that the QT movies are accessed properly? Steve Messimer From Roger.E.Eller at sealedair.com Thu Jan 17 11:29:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Thu Jan 17 11:29:01 2002 Subject: Windows distributions Message-ID: Steve, I think that I can address your problem #2. > 2) When I build a Windows distribution I seem to loose the path to my QT > movies. I have a set of stack scripts that work on the Mac side w/o > problems. Is there some other procedure I need to use on the Windows side so > that the QT movies are accessed properly? > > Steve Messimer Here is a script that I put into apps that need to work on multiple platforms. if the platform is "SGI IRIS" then put "/usr/myprograms/videos/" into PathToMovies else if the platform is "Linux" then put "/usr/myprograms/videos/" into PathToMovies else if the platform is "MacOS" then put "/Macintosh HD/myprograms/videos/" into PathToMovies else if the platform is "Win32" then put "C:/myprograms/videos/" into PathToMovies end if end if end if end if ~Roger From usher at iqcisp.com Thu Jan 17 11:39:01 2002 From: usher at iqcisp.com (Philip Usher) Date: Thu Jan 17 11:39:01 2002 Subject: print cd In-Reply-To: <200201162348.SAA17684@www.runrev.com> Message-ID: on 1/16/02 5:48 PM, Roger.E.Eller at sealedair.com wrote: > > # PRINT CARD TO FIT PAGE WIDTH > on mouseUp > put the rectangle of this card into myRectangle > set itemDelimiter to "," > put item 1 of myRectangle & itemDelimiter into myXYstartpoint > put item 2 of myRectangle after myXYstartpoint > put item 3 of myRectangle & itemDelimiter into myXYendpoint > put item 4 of myRectangle after myXYendpoint > print this card from myXYstartpoint to myXYendpoint into 10,10,600,800 > end mouseUp Rodger, say some wear on your fingers: on mouseUp get the rect of this cd print this cd from item 1 of it, item 2 of it to item 3 of it, item 4 of it into 10,10,600,800 end mouseUp regards, Philip From scott at tactilemedia.com Thu Jan 17 12:30:00 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Thu Jan 17 12:30:00 2002 Subject: Installing a CD on Windows, Unix In-Reply-To: Message-ID: Recently, Richard D. Miller wrote: > I'd like to hear recommendations on Windows installation programs. I've used WiseInstall for a couple of years (recommended by Richard Gaskin). Last I checked it was about $200 for basic install features and $400 for editable scripts. I started with the basic version but quickly realized script editing was key. I've used it to created several moderately complex installs and it has worked well for me. Regards, Scott _____________________________________________________________________ Scott Rossi Tactile Media - Multimedia & Design Creative Director Email: scott at tactilemedia.com Web: http://www.tactilemedia.com From shaosean at unitz.ca Thu Jan 17 14:14:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Thu Jan 17 14:14:01 2002 Subject: Installing a CD on Windows, Unix References: Message-ID: <004101c19f8a$cb4ed910$88b15bd1@dreamlanpc> the externals collection http://www.xworlds.com/metacard/external.htm has the ability to detect the cd-roms available under windows.. "CD ROMs - get a list of currently available CD ROM drives" under mac os i guess you would just look for the "drive" with the cd name under linux you may almost do the same as the mac, or check in the /mnt directory (i used *nix once two years ago, so anyone with more experience can clarify on this).. From shaosean at unitz.ca Thu Jan 17 14:18:00 2002 From: shaosean at unitz.ca (Shao Sean) Date: Thu Jan 17 14:18:00 2002 Subject: Creating a networkable version References: Message-ID: <004d01c19f8b$5c48ccf0$88b15bd1@dreamlanpc> perhaps run it all from the server, including the editable parts (just have a system where you make copies of the editable stacks from a template, if that's what's needed).. if there's a tcp/ip network in place, that'd be one of doing it and it will support mixed environments.. if you're in a single environment, just "share" the server and access it over the OS network protocol.. From niklas_almesjo at yahoo.com Thu Jan 17 15:20:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Thu Jan 17 15:20:01 2002 Subject: how to copy files In-Reply-To: <200201171710.MAA29752@www.runrev.com> Message-ID: <20020117201745.40689.qmail@web12305.mail.yahoo.com> So when I try to do a shell command (to copy a file) it chokes with the following: ? There was an Execution Error at 9:11:19 PM Error description: Handler: can't find handler Object: button id 1003 of card id 1002 of stack "C:/WINDOWS/Skrivbord/test/test.rev" -------------------- shell(datext) -------------------- Value: shell Anyone know why? thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From yvescoppe at skynet.be Thu Jan 17 16:26:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 17 16:26:01 2002 Subject: DLOG Message-ID: Hello, I've made a substack of a main stack. This substack is used as DLOG in the script : ?? ?? modal stack "MyDLOG" --There I'm waiting fo the user click --and I go further put fld 1 of stack "MyDLOG"&return&fld 2 of stack "MyDLOG" into myNewVar ?? ?? In the substack "MyDLOG", there is a button "OK" and a button "Cancel" How can I know which of this two button has being clicked ?? thanks. -- From nirs at mac.com Thu Jan 17 16:55:00 2002 From: nirs at mac.com (Nir Soffer) Date: Thu Jan 17 16:55:00 2002 Subject: Crashing in OS 9 In-Reply-To: <200201171710.MAA29752@www.runrev.com> References: <200201171710.MAA29752@www.runrev.com> Message-ID: <20020117215326.20428@mail.israsrv.net.il> I find Revolution unuseble on my Mac OS 9. It crashes all the time. The only way I can develop somthing is work on my PC. I tried it on both G3 w G4 Upgrade and Powerbook G3, both running OS 9.1 with Hebrew addition (produced by Apple Israel). I did not test it with standard 9.1 OS. Most of the crashes are of type 1, 2 which are memory problem, so I gave it more memory but its did not help. I tested it very little on OS X and it seems ok there, but I dont use this system for other reasons. I wonder if it is my setup or other expirience the same? Nir Soffer -- Email: nirs at mac.com ICQ: 98571424 From Roger.E.Eller at sealedair.com Thu Jan 17 17:32:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Thu Jan 17 17:32:01 2002 Subject: Crashing in OS 9 Message-ID: I too have seen this in OS 9.1 on a blue/white G3. However, I did my development on a PC and only built the Mac executable on the G3. The standalone runs fine for a while, then quits unexpectedly with a type 2 error. You are also correct that changing the memory allocation makes no difference. ~Roger > Most of the crashes are of type 1, 2 which are memory problem, so I gave > it more memory but its did not help. > > I wonder if it is my setup or other expirience the same? > > Nir Soffer > > -- > Email: nirs at mac.com > ICQ: 98571424 From bvlahos at jpl.nasa.gov Thu Jan 17 17:42:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Thu Jan 17 17:42:01 2002 Subject: Crashing in OS 9 In-Reply-To: <20020117215326.20428@mail.israsrv.net.il> Message-ID: <0DEB5962-0B9B-11D6-B63E-003065E6E4BC@jpl.nasa.gov> Nir, Are you using version 1.1 or 1.1.1 B1? The beta version seems to be much more stable. I'm using Revolution under OS X and 8.6 and while I'm not having many stability problems myself, others are with 1.1. Bill Vlahos Jet Propulsion Laboratory On Thursday, January 17, 2002, at 01:53 PM, Nir Soffer wrote: > I find Revolution unuseble on my Mac OS 9. It crashes all the time. The > only way I can develop somthing is work on my PC. > > I tried it on both G3 w G4 Upgrade and Powerbook G3, both running OS 9.1 > with Hebrew addition (produced by Apple Israel). I did not test it with > standard 9.1 OS. > > Most of the crashes are of type 1, 2 which are memory problem, so I gave > it more memory but its did not help. > > I tested it very little on OS X and it seems ok there, but I dont use > this system for other reasons. > > I wonder if it is my setup or other expirience the same? > > Nir Soffer > > -- > Email: nirs at mac.com > ICQ: 98571424 > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From tsj at unimelb.edu.au Thu Jan 17 18:30:01 2002 From: tsj at unimelb.edu.au (Terry Judd) Date: Thu Jan 17 18:30:01 2002 Subject: play player on openCard Message-ID: >OK, so I finally managed to find out how to play a player object >(couldn't locate the relevant info in the transcript dictionary) but >now I'm having trouble getting it to play in an openCard handler. It >seems my problem stems from the fact that I'm using a lock and >unlock screen for the card to card transition. If I remove this, the >player plays just fine - with it, nothing happens. Is there any way >to work around this? > For the records, the above problem can be solved by using a send command in the openCard handler... on openCard send playIt to this cd in 1 secs... end openCard on playIt play player end playIt -- ___________________________________________________________________________ Dr Terry Judd Lecturer in Instructional Design / Multimedia Developer Biomedical Multimedia Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne Email: t.judd at bmu.unimelb.edu.au Phone: 03 9344 0187 Fax: 03 9344 4998 ___________________________________________________________________________ From sarahr at genesearch.com.au Thu Jan 17 19:01:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Thu Jan 17 19:01:01 2002 Subject: DLOG In-Reply-To: Message-ID: Write mouseUp scripts for the 2 buttons that do different things. If you are returning myNewVar as a global then have the Cancel button set it to empty and the OK button fill it with your data. Both scripts should end with "close this stack", then you can check myNewVar in your main routine. Sarah > Hello, > > I've made a substack of a main stack. > This substack is used as DLOG > > in the script : > > ?? > ?? > modal stack "MyDLOG" > > --There I'm waiting fo the user click > --and I go further > > put fld 1 of stack "MyDLOG"&return&fld 2 of stack "MyDLOG" into myNewVar > ?? > ?? > > > > In the substack "MyDLOG", there is a button "OK" and a button "Cancel" > How can I know which of this two button has being clicked ?? > > > thanks. > -- > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From katir at hindu.org Thu Jan 17 20:04:00 2002 From: katir at hindu.org (Sivakatirswami) Date: Thu Jan 17 20:04:00 2002 Subject: "start using libURL" not needed in REV In-Reply-To: <200201171708.MAA29641@www.runrev.com> Message-ID: is "start using libURL" not needed in REV? and if not, then why? Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From jeanne at runrev.com Fri Jan 18 01:11:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Fri Jan 18 01:11:00 2002 Subject: DLOG In-Reply-To: Message-ID: At 1:22 PM -0800 1/17/2002, yves COPPE wrote: >In the substack "MyDLOG", there is a button "OK" and a button "Cancel" >How can I know which of this two button has being clicked ?? There are several methods, but probably the easiest is to use the dialogData property. Set it in the script of the buttons in the dialog box, and check its value when your script continues. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Fri Jan 18 01:12:34 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Fri Jan 18 01:12:34 2002 Subject: how to copy files In-Reply-To: <20020117201745.40689.qmail@web12305.mail.yahoo.com> References: <200201171710.MAA29752@www.runrev.com> Message-ID: At 12:17 PM -0800 1/17/2002, Niklas "Almesj?" wrote: >So when I try to do a shell command (to copy a file) it >chokes with the following: > > ? There was an Execution Error at 9:11:19 PM >Error description: Handler: can't find handler >Object: button id 1003 of card id 1002 of stack >"C:/WINDOWS/Skrivbord/test/test.rev" >-------------------- >shell(datext) Remember, shell is a function, not a command. You need to have a command in the statement in order to make it a legal statement. So something like this will work: get shell(datext) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From sjoerdoptland at mac.com Fri Jan 18 02:10:01 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Fri Jan 18 02:10:01 2002 Subject: play player on openCard In-Reply-To: Message-ID: Terry Judd wrote/ schreef: > OK, so I finally managed to find out how to play a player object > (couldn't locate the relevant info in the transcript dictionary) but > now I'm having trouble getting it to play in an openCard handler. It > seems my problem stems from the fact that I'm using a lock and unlock > screen for the card to card transition. If I remove this, the player > plays just fine - with it, nothing happens. Is there any way to work > around this? > > Terry... > > As an aside, despite indications to the contrary in the Transcript > dictionary, issuing a play vidioClip playerName command seems to > work. Why? What scripts are in the card, background(s) and stack(s) which can affect locking- unlocking screen? Regards, / Groeten, Sjoerd From gwills at ozemail.com.au Fri Jan 18 07:34:01 2002 From: gwills at ozemail.com.au (Greg Wills) Date: Fri Jan 18 07:34:01 2002 Subject: Printing to the right of the page width In-Reply-To: <200201162350.SAA17854@www.runrev.com> References: <200201162350.SAA17854@www.runrev.com> Message-ID: Thanks Jeanne. I had tried this previously (and have just tried it again to make sure!), but I still don't get what I am after. This line prints the area I want to print, but not at the left hand side of the page. With - print this card from 288,6 to 632,466 into 0,0,344,460 I end up with the area I am after, but off centered at the top of the page. It looks as though the area to the left of the selected area is included in the print area, but just not printed. This is confirmed when I use the line; print this card into 0,0,344,460 (This gives me the whole card printed with the area I had previously specified in the exact same position.) Is this a bug, or am I missing something? (Rev 1.1 OS 9) regards Greg >At 7:13 PM -0800 1/16/2002, Greg Wills wrote: >>Thanks Kevin for your reply. I am using the syntax you suggest. The >>area I am asking is; >> >>print this card from 288,6 to 632,466 >> >>However only part of this area is printed and to the extreme right of >>the page. Half of the area to be printed is clipped by the edge of >>the paper. If I print it in landscape the whole area is printed, but >>again on the right of the page. I want it to print at the top and >>left of the page. > >Try this: > > print this card from 288,6 to 632,466 into 0,0,344,460 > From wow at together.net Fri Jan 18 07:40:01 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 07:40:01 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: Is there a reliable way to test a Rev project on a Mac in a simulated Unix environment? I use virtual PC and that seems to do a good job of emulating the Windows environment. Is there something similar for Unix on Max OSX? Secondly...since I don't work much under Windows, I'm not familiar with CD expectations there. Is it essentially required that upon insertion of a new CD in Windows, installation starts up automatically...or is it still acceptable to have the user start up a "startup" file manually? Is it possible to create something in Rev that will start up automatically under Windows? I'm thinking that an easy way to install a small "editable" portion of my program under Windows and have it know where the CD drive is located would be to have Rev control this process. The CD goes in...a Rev installer program is started (either manually or by some simple Windows installer program)...the Rev program copies certain (small) stacks from the CD to the users hard drive (using the PUT URL INTO command) ...it sets the drive letter in the editable stacks now on the users drive (since it can determine the drive letter of the CD through its path name). Sounds easy. Seems to make sense. Does it make sense? Will this work the same under Unix? I'm not worried about this issue on a Mac. Thanks. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info 802-238-5355 802-951-2534 fax From terry at discovery.nl Fri Jan 18 07:52:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Fri Jan 18 07:52:01 2002 Subject: Which XCMDs obsolete in RR? Message-ID: Hello Like most HC-users, I frequently used XCMDs. But since Revolution is more complete, many XCMDs became obsolete. Now my question is: couldn't we make a list of which XCMD is replaced by which internal RR-function? Also, such a list could be placed on the Runtime website or in the Revolution documentation. Terry From troy at rpsystems.net Fri Jan 18 08:13:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Fri Jan 18 08:13:01 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: Richard D. Miller wrote: > Is there a reliable way to test a Rev project on a Mac in a simulated Unix > environment? I use virtual PC and that seems to do a good job of emulating > the Windows environment. Is there something similar for Unix on Max OSX? While not specifically UNIX, Virtual PC can run Linux as well as Windows. Mandrake runs fine, last I heard Red Hat still has installation issues in VPC. -- Troy RPSystems www.rpsystems.net From mcmanusm at kramergraphics.com Fri Jan 18 08:21:59 2002 From: mcmanusm at kramergraphics.com (Mike McManus) Date: Fri Jan 18 08:21:59 2002 Subject: replacetext Message-ID: Why does the line replaceText((line n of textToParse),"red","blue") always generate the error: Expression: missing ')' before factor. The error comes up with or without the internal parans, and if I use a variable instead of a chunk. I even get it when I use a simple quoted string. What am I missing here. It seems I ran into this before using one of the search or replace commands and I ended up using another command. But I really need the regex here. ideas? Oh...II love having hyercard tools back in my life. Thanks!!! From wow at together.net Fri Jan 18 08:25:22 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 08:25:22 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: Troy: Thanks for the feedback. Of course, I (like probably many other folks here) no nothing about the Unix environment. When you say Linux is not specifically UNIX, what does that mean? Is it significantly similar? Is Rev supposed to run under Linux? What about Mandrake? How does that fit in? Which UNIX system will we most likely encounter out there...in other words, which UNIX environments would most likely be accessing multimedia-based CD's? Thanks. Richard > Richard D. Miller wrote: > >> Is there a reliable way to test a Rev project on a Mac in a simulated Unix >> environment? I use virtual PC and that seems to do a good job of emulating >> the Windows environment. Is there something similar for Unix on Max OSX? > > While not specifically UNIX, Virtual PC can run Linux as well as Windows. > Mandrake runs fine, last I heard Red Hat still has installation issues in > VPC. From benr_mc at cogapp.com Fri Jan 18 08:52:00 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 18 08:52:00 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: on 18/1/02 12:37 PM, Richard D. Miller at wow at together.net wrote: > Is there a reliable way to test a Rev project on a Mac in a simulated Unix > environment? I use virtual PC and that seems to do a good job of emulating > the Windows environment. Is there something similar for Unix on Max OSX? Dunno about MacOSX specifically, but Virtual PC comes or used to come with Linux as an option (and of course you can in principle run eg MkLinux on PPC Macs). > Is it possible to create something in Rev that will start up automatically > under Windows? Yes - autoplay is very straightforward on Windows (sadly another thing Apple screwed up on). Search for "autoplay" in google and you'll get details - basically you just create a simple text file at the top level of the CD which can set things like the icon and label of the CD, and what app if any to launch when the CD is inserted/autoplayed. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From troy at rpsystems.net Fri Jan 18 09:05:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Fri Jan 18 09:05:01 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: Richard D. Miller wrote: > Thanks for the feedback. Of course, I (like probably many other folks here) > no nothing about the Unix environment. When you say Linux is not > specifically UNIX, what does that mean? Is it significantly similar? Is Rev > supposed to run under Linux? What about Mandrake? How does that fit in? > Which UNIX system will we most likely encounter out there...in other words, > which UNIX environments would most likely be accessing multimedia-based > CD's? Linux is not specifically Unix in that Linux is based on open source code. Functionally, and for most purposes, they can be considered the same, though low level code which specifically addresses the kernel may in fact need to be different. Others may have more details on this. If I had to guess, I would certainly think that there are more consumer level, multimedia users on the Linux platform than Unix. Unix is still large in certain industries and Gov't, but Linux is virtually free - and therefore prevalent on personal desktops. Linux is available as "distributions". Distributions are basically made by companies who take the Linux core, and add some utilities and installers - which then enables them to "sell" linux because of their "value add" - they are not actually selling Linux - they are selling their add-ons and support services. Mandrake is one such company, and they sell the "Mandrake distribution". This is just Linux, with the Mandrake installers and extra features (desktop managers, other freeware). You can purchase Mandrake as a boxed set of Cds in comptuer stores or online. The last I checked, Mandrake was the recommended distribution to install on Virtual PC. I went that route, and it installed and runs fine. I have not yet tested Revolution in that environment, but I wouldn't expect any problems. Such an installation will certainly give you a good test bed for Linux and Unix compatibility during software construction - but I would recommend that you test in native machines as a final check up, before distribution. -- Troy RPSystems www.rpsystems.net From wow at together.net Fri Jan 18 09:14:00 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 09:14:00 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: And on this same note... Does one just put a UNIX-compatible version of a Rev program on the same CD as the Windows and Mac versions? Any guidance on how to do that? Richard From troy at rpsystems.net Fri Jan 18 09:34:00 2002 From: troy at rpsystems.net (Troy Rollins) Date: Fri Jan 18 09:34:00 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: Richard D. Miller wrote: > Does one just put a UNIX-compatible version of a Rev program on the same CD > as the Windows and Mac versions? Any guidance on how to do that? This I have not tried. I know that Linux can read ISO formatted discs, but multi-formatted... Not sure. -- Troy RPSystems www.rpsystems.net From niklas_almesjo at yahoo.com Fri Jan 18 11:06:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Fri Jan 18 11:06:01 2002 Subject: closeRequest with starter-kit? In-Reply-To: <200201181319.IAA12943@www.runrev.com> Message-ID: <20020118160400.32354.qmail@web12305.mail.yahoo.com> So I have to check a condition if I should allow the app to quit or not. Does anyone have a tip on how you can squeeze in the closeRequest handler if you are using the starterkit? Problem is I am already using onOpenCard and onPreOpenCard so the lines are runnin out, and "pass closeStackRequest" can't be in a function or in another object it seems (must be in the cardscript). Here's the script; global sPrefs on preOpenCard send "setStuff" to field "setStuff" end preOpenCard on openCard send "checkReg true" to field "daReg" end openCard on closeStackRequest -- squeeze in a condition, and pass closeStackRequest here :) end closeStackRequest any tip appreciated, thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From slu at cycast.com Fri Jan 18 11:07:00 2002 From: slu at cycast.com (steve lu) Date: Fri Jan 18 11:07:00 2002 Subject: How do I add reference to externals? Message-ID: <000f01c1a039$bf86b120$9865fea9@office.comscore.com> Hi, I could not figure out how "External tutorial.rev" added a reference to external named "external" without a full path to the DLL on Windows platform. It does not seem to work for me when I add a path to my own DLL and calling a XFNT within it. any ideas? Thanks, steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvescoppe at skynet.be Fri Jan 18 11:12:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 18 11:12:01 2002 Subject: copy a image Message-ID: Hello, I've read some messages in the user.list about copying. I've tried to copy an image file (Jpeg) on a mac from a folder into another folder So I write : put URL "file:"&tfilename into file NewfilePath where tfilename is the pathway to the existing image newfilePath is the pathway to a file that doesn't exist yet but has to be created to copy the image in it? it doesn't work ! thanks for your help -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From bvlahos at jpl.nasa.gov Fri Jan 18 11:27:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Fri Jan 18 11:27:01 2002 Subject: Network broadcasts Message-ID: How can I listen for network broadcasts? The Open, Close, and Read socket commands looks like they need to know the specific host and I don't care (at least for the moment) where the broadcast is coming from. I want to listen for NTP (Network Time Protocol) broadcasts which are TCP and UDP port 123. Bill Vlahos From wow at together.net Fri Jan 18 11:48:01 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 11:48:01 2002 Subject: Stack size In-Reply-To: Message-ID: Curious to know what size folks are building their stacks to be, particularly under Windows. It looks like one has to allocate room for the title and any menus at the top (40 pixels?) and the task bar at the bottom (30 pixels or so?). So shooting for 800x600 display, that leaves about 730 for the height. Right? Richard Miller From wow at together.net Fri Jan 18 11:49:01 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 11:49:01 2002 Subject: Stack size In-Reply-To: Message-ID: Sorry....meant 530 for the height. Richard From k_major at osnabrueck.netsurf.de Fri Jan 18 12:18:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Fri Jan 18 12:18:01 2002 Subject: closeRequest with starter-kit? In-Reply-To: <20020118160400.32354.qmail@web12305.mail.yahoo.com> Message-ID: <6F508E2C-0C35-11D6-A693-000A27B49A96@osnabrueck.netsurf.de> Hi Niklas, > So I have to check a condition if I should allow the app to > quit or not. Does anyone have a tip on how you can squeeze > in the closeRequest handler if you are using the > starterkit? Problem is I am already using onOpenCard and > onPreOpenCard so the lines are runnin out, and "pass > closeStackRequest" can't be in a function or in another > object it seems (must be in the cardscript). Here's the > script; > > global sPrefs > on preOpenCard > send "setStuff" to field "setStuff" > end preOpenCard > on openCard > send "checkReg true" to field "daReg" > end openCard > on closeStackRequest > -- squeeze in a condition, and pass closeStackRequest here > :) > end closeStackRequest > > any tip appreciated, > thanks, > /Niklas it looks like you got the StarterKit limitations wrong ? The limits are 10 statements per script and not 10 lines all together in one script ! So in your script above there are only 3 (three) statements :-D So keep on typing :-) I hope this is happy news to you... (I also hope that i understood your question right ;-) May the script be with you... :-) Klaus Major k_major at osnabrueck.netsurf.de From k_major at osnabrueck.netsurf.de Fri Jan 18 12:18:19 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Fri Jan 18 12:18:19 2002 Subject: copy a image In-Reply-To: Message-ID: Bonjour Yves, Hello, I've read some messages in the user.list about copying. I've tried to copy an image file (Jpeg) on a mac from a folder into another folder So I write : put URL "file:"&tfilename into file NewfilePath where tfilename is the pathway to the existing image newfilePath is the pathway to a file that doesn't exist yet but has to be created to copy the image in it? it doesn't work ! thanks for your help -- Greetings. Yves COPPE try this: put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) Note the syntax. The brackets are necessary for the URL command to work properly. It needs 1 (one) string, so the 2 strings have to be concatenated first. Au revoir... A votre service:-) Klaus Major k_major at osnabrueck.netsurf.de From bvlahos at jpl.nasa.gov Fri Jan 18 12:33:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Fri Jan 18 12:33:01 2002 Subject: Testing under Unix, installing under Windows In-Reply-To: Message-ID: <0D91C955-0C39-11D6-B63E-003065E6E4BC@jpl.nasa.gov> (Standing on soapbox) Richard, While Linux has made good progress as a server platform, it is almost non-existent on the desktop. It is too hard to install, too difficult to use, and there is very little "consumer type" software available for most users to work with. The first two items will take a long time to get better but I believe they eventually will. These limitations also constrain the types of customers currently using it to potentially a very different demographic than what you might be used to. The last item illustrates the importance of Revolution in overcoming the lack of software for Linux (and other Unixes like Solaris). No other programming environment makes it possible, let alone easy, to build rich software for anything other than Windows and Macintosh. I have built some simple applications here on the Mac in Rev and built standalones for virtually all of the platforms without any problems from the same code base. These were not multimedia though; and QuickTime is more limited for Linux and Solaris. Someone please correct me if I'm wrong here. The most popular Linux seems to be the Red Hat distribution on x86 hardware (i.e. Intel, AMD, etc). Mandrake is also based on Red Hat. We also have a small number of other distributions (SuSE, Yellow Dog, etc) and people running it on PPCs too. One of the potential pitfalls for the Linux consumer market is that the users don't really want to pay for software (including their OS) and want to put it on the cheapest hardware they can find (PCs). It will be interesting to see how successful people who write software are at actually getting money from these folks. Another interesting point is that Apple is now the largest distribution of Unix OS with OS X. Bill Vlahos (Stepping off soapbox) On Friday, January 18, 2002, at 05:20 AM, Richard D. Miller wrote: > Troy: > > Thanks for the feedback. Of course, I (like probably many other folks > here) > no nothing about the Unix environment. When you say Linux is not > specifically UNIX, what does that mean? Is it significantly similar? Is > Rev > supposed to run under Linux? What about Mandrake? How does that fit in? > Which UNIX system will we most likely encounter out there...in other > words, > which UNIX environments would most likely be accessing multimedia-based > CD's? > > Thanks. > Richard > >> Richard D. Miller wrote: >> >>> Is there a reliable way to test a Rev project on a Mac in a simulated >>> Unix >>> environment? I use virtual PC and that seems to do a good job of >>> emulating >>> the Windows environment. Is there something similar for Unix on Max >>> OSX? >> >> While not specifically UNIX, Virtual PC can run Linux as well as >> Windows. >> Mandrake runs fine, last I heard Red Hat still has installation issues >> in >> VPC. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From wow at together.net Fri Jan 18 12:42:01 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 12:42:01 2002 Subject: Displaying menus beyond the first card In-Reply-To: <0D91C955-0C39-11D6-B63E-003065E6E4BC@jpl.nasa.gov> Message-ID: I must be missing something simple, but I can't figure it out. I've get the standard set of menus (File, Edit, Help) showing on the first card of my stack. Works fine on Mac and Windows. I go to the second card (and every other card) and the menus are not there. What have I missed? Richard Miller From yvescoppe at skynet.be Fri Jan 18 13:05:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 18 13:05:01 2002 Subject: copy a image In-Reply-To: References: Message-ID: >Bonjour Yves, > >Hello, > >I've read some messages in the user.list about copying. >I've tried to copy an image file (Jpeg) on a mac from a folder into >another folder > > > >try this: > >put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) > >Note the syntax. The brackets are necessary for the URL command >to work properly. It needs 1 (one) string, so the 2 strings have to be >concatenated first. > >Au revoir... > >A votre service:-) >Klaus Major >k_major at osnabrueck.netsurf.de So something is copied into the right folder but this "something" is not an image (jpeg file) but something unreadable. I'd like the destination file is also a jpeg image file. Thanks. P.S. : Merci pour les commentaires en Fran?ais ! -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From shaosean at unitz.ca Fri Jan 18 13:10:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 18 13:10:01 2002 Subject: Testing under Unix, installing under Windows References: Message-ID: <002001c1a04a$edd5f250$88b15bd1@dreamlanpc> > users hard drive (using the PUT URL INTO command) ...it sets the drive > letter in the editable stacks now on the users drive (since it can determine make sure you remember to unlock the stack after it has been copied from the cd.. it's usually little things like this that end up biting you in the butt ;-) From shaosean at unitz.ca Fri Jan 18 13:14:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 18 13:14:01 2002 Subject: replacetext References: Message-ID: <003f01c1a04b$8f8676b0$88b15bd1@dreamlanpc> i get this all the time.. if you're sending parameters to a function you do not need the ()'s.. so your code should just be: replaceText line n of textToParse, "red", "blue i personally prefer wrapping the parameters with ()'s but it seems that RunRev chokes with them.. if your function only requires one parameter, then there doesn't seem to be a problem with the ()'s.. example: answer doubleThisNumber(10) From shaosean at unitz.ca Fri Jan 18 13:25:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 18 13:25:01 2002 Subject: copy a image References: Message-ID: <006301c1a04d$1f304e70$88b15bd1@dreamlanpc> your code was: > > >put URL "file:"&tfilename into file NewfilePath klaus said to re-write as such: > >put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) and then you said: > So something is copied into the right folder but this "something" is > not an image (jpeg file) but something unreadable. > I'd like the destination file is also a jpeg image file. notice that in klaus' code he uses "binfile" not just "file" (as you have in your code).. because JPEGs are binary files you need to treat them as such otherwise there will be conversion done to the data that makes up the file (as you are currently experiencing).. From shaosean at unitz.ca Fri Jan 18 13:28:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 18 13:28:01 2002 Subject: Network broadcasts References: Message-ID: <007201c1a04d$699c6e30$88b15bd1@dreamlanpc> if you're expecting someone to be sending you something over the network, take a look at the "accept" parameter on "open sockets" if you're listening for data coming back from a server, you will need to connect to the server and then use the "read from socket" command.. From wow at together.net Fri Jan 18 13:28:09 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 13:28:09 2002 Subject: Displaying menus beyond the first card In-Reply-To: Message-ID: OK. I see that I actually have to copy and paste the menubar group onto each card. I suppose that makes sense...just different from other programs I've worked with. Richard > I must be missing something simple, but I can't figure it out. I've get the > standard set of menus (File, Edit, Help) showing on the first card of my > stack. Works fine on Mac and Windows. I go to the second card (and every > other card) and the menus are not there. What have I missed? > > Richard Miller > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From katir at hindu.org Fri Jan 18 13:35:01 2002 From: katir at hindu.org (Sivakatirswami) Date: Fri Jan 18 13:35:01 2002 Subject: Rev Player engine In-Reply-To: <200201181316.IAA12736@www.runrev.com> Message-ID: Is there a "player" engine of rev that we can distribute like the mc engine without the home stack so that users can boot a rev stack without access to the development environment and without need to have that in use being a stand alone... thanks Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org From david.bovill at opn-technologies.com Fri Jan 18 13:42:00 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Fri Jan 18 13:42:00 2002 Subject: Network broadcasts In-Reply-To: Message-ID: You have to know "where" the "broadcast" is coming from to connect using TCP/IP (ie sockets) - so you will have to find the address of a server? > From: Bill Vlahos > Subject: Network broadcasts > > How can I listen for network broadcasts? > > The Open, Close, and Read socket commands looks like they need to know > the specific host and I don't care (at least for the moment) where the > broadcast is coming from. I want to listen for NTP (Network Time > Protocol) broadcasts which are TCP and UDP port 123. > > Bill Vlahos > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From k_major at osnabrueck.netsurf.de Fri Jan 18 13:45:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Fri Jan 18 13:45:01 2002 Subject: copy a image In-Reply-To: Message-ID: Bonjour Yves, > Hello, > > I've read some messages in the user.list about copying. > I've tried to copy an image file (Jpeg) on a mac from a folder into > another folder > > So I write : > > put URL "file:"&tfilename into file NewfilePath > where > > tfilename is the pathway to the existing image > > newfilePath is the pathway to a file that doesn't exist yet but has to > be created to copy the image in it? > > it doesn't work ! > thanks for your help > -- Greetings. > > Yves COPPE try this: put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) Note the syntax. The brackets are necessary for the URL command. Au revoir... A votre service:-) Klaus Major k_major at osnabrueck.netsurf.de From Roger.E.Eller at sealedair.com Fri Jan 18 14:04:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Fri Jan 18 14:04:01 2002 Subject: Displaying menus beyond the first card Message-ID: Do you have "Background Behavior" checked on the last tab of the properties of the menubar group? This works for fields and such to become shared on all cards, so I figured it would for menus as well. ~Roger > OK. I see that I actually have to copy and paste the menubar group onto each > card. I suppose that makes sense...just different from other programs I've > worked with. > > Richard >> I must be missing something simple, but I can't figure it out. I've get the >> standard set of menus (File, Edit, Help) showing on the first card of my >> stack. Works fine on Mac and Windows. I go to the second card (and every >> other card) and the menus are not there. What have I missed? >> >> Richard Miller >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution From shaosean at unitz.ca Fri Jan 18 14:05:02 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 18 14:05:02 2002 Subject: Displaying menus beyond the first card References: Message-ID: <000b01c1a052$bc6a73a0$88b15bd1@dreamlanpc> try turning the "backgroundBehaviour" of the menubar group to TRUE and then creating the new cards.. if you've alrady got the cards built, i guess copy and paste is the only way.. From k_major at osnabrueck.netsurf.de Fri Jan 18 14:13:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Fri Jan 18 14:13:01 2002 Subject: copy a image In-Reply-To: Message-ID: <2B7E60CC-0C47-11D6-A693-000A27B49A96@osnabrueck.netsurf.de> Bonjour Yves, > So something is copied into the right folder but this "something" is > not an image (jpeg file) but something unreadable. > > I'd like the destination file is also a jpeg image file. > > Thanks. > > P.S. : Merci pour les commentaires en Fran?ais ! De rien ;-) a little question. Are you working on a mac ? Sounds like. I am going to post a solution especially for the mac (it is a bit more complex because of the type and creator code...) on the weekend. (I am quite busy in the moment.) Devin A. is waiting for that, too :-) But maybe someone on the list is faster than me... (Volunteers ? :-) Anyway, stay tuned... Regards Klaus Major k_major at osnabrueck.netsurf.de P.S. What you got is definitively a jpg-file, anyway... Try to set the filename of an MC image to that file et voila... :-D From k_major at osnabrueck.netsurf.de Fri Jan 18 14:18:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Fri Jan 18 14:18:01 2002 Subject: Displaying menus beyond the first card In-Reply-To: Message-ID: Hi Richard, > OK. I see that I actually have to copy and paste the menubar group onto > each > card. I suppose that makes sense...just different from other programs > I've > worked with. No, no don't copy and paste, please... Really not necessary, honestly ;-) Do the following: Select your group In the property palette check "Background behaviour" (!) Go to the card where you want to place that group. Select menu: Backgrounds... Select the name of your group in the lower field click "place", and there you go... Hope this helps. If not, please drop a line and i will supply further info. Peace :-) Klaus Major k_major at osnabrueck.netsurf.de From yvescoppe at skynet.be Fri Jan 18 14:26:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 18 14:26:01 2002 Subject: copy a image In-Reply-To: <006301c1a04d$1f304e70$88b15bd1@dreamlanpc> References: <006301c1a04d$1f304e70$88b15bd1@dreamlanpc> Message-ID: >your code was: >> > >put URL "file:"&tfilename into file NewfilePath > >klaus said to re-write as such: > > >put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) > >and then you said: >> So something is copied into the right folder but this "something" is >> not an image (jpeg file) but something unreadable. > > I'd like the destination file is also a jpeg image file. > >notice that in klaus' code he uses "binfile" not just "file" (as you have in >your code).. because JPEGs are binary files you need to treat them as such >otherwise there will be conversion done to the data that makes up the file >(as you are currently experiencing).. > >put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) the new created file is not a jpeg file but something unreadable I'd like the destination file is also a jpeg image file. thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From yvescoppe at skynet.be Fri Jan 18 14:27:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 18 14:27:01 2002 Subject: copy a image In-Reply-To: <2B7E60CC-0C47-11D6-A693-000A27B49A96@osnabrueck.netsurf.de> References: <2B7E60CC-0C47-11D6-A693-000A27B49A96@osnabrueck.netsurf.de> Message-ID: >Bonjour Yves, > >>So something is copied into the right folder but this "something" >>is not an image (jpeg file) but something unreadable. >> >>I'd like the destination file is also a jpeg image file. >> >>Thanks. >> >>P.S. : Merci pour les commentaires en Fran?ais ! > >De rien ;-) > >a little question. Are you working on a mac ? > >Sounds like. > >I am going to post a solution especially for the mac (it is a bit >more complex because of the type and creator code...) on the weekend. >(I am quite busy in the moment.) > >Devin A. is waiting for that, too :-) > >But maybe someone on the list is faster than me... > >(Volunteers ? :-) > >Anyway, stay tuned... > >Regards > >Klaus Major >k_major at osnabrueck.netsurf.de > > >P.S. What you got is definitively a jpg-file, anyway... >Try to set the filename of an MC image to that file >et voila... :-D > Yes I'm working on a Mac Thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From ludovic.thebault at laposte.net Fri Jan 18 14:34:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Fri Jan 18 14:34:01 2002 Subject: replacetext In-Reply-To: References: Message-ID: <20020118202952.707098%00000000@laposte.net> Mike McManus wrote: >replaceText((line n of textToParse),"red","blue") > >always generate the error: Expression: missing ')' before factor. The >error comes up with or without the internal parans, and if I use a >variable instead of a chunk. I even get it when I use a simple quoted >string. Try : replace "red" with "blue" in line n of textToParse From shaosean at unitz.ca Fri Jan 18 14:46:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri Jan 18 14:46:01 2002 Subject: copy a image References: <2B7E60CC-0C47-11D6-A693-000A27B49A96@osnabrueck.netsurf.de> Message-ID: <003c01c1a058$69d4e250$88b15bd1@dreamlanpc> try adding this code after you create the new file open file pathToNewFile set the fileType to "crtrJPEG" -- where crtr is the creator code and JPEG is the type code -- you may change the creator code to suit your needs.. close file pathToNewFile From wow at together.net Fri Jan 18 15:12:01 2002 From: wow at together.net (Richard D. Miller) Date: Fri Jan 18 15:12:01 2002 Subject: Doesn't operate properly in Windows, answer command In-Reply-To: <20020118202952.707098%00000000@laposte.net> Message-ID: Well, I guess this is how it often goes. Almost all set on the Mac side, send it over to Windows, and it's a mess. First problem. I created it in Mac OS 9.1. Using 1.1.1b. Dragged the Rev file over to my VirtualPC window. Opened the 1.1.1 Rev beta in Windows. Opened the stack (actually tried it with all my stacks). Can't edit anything in any of the stacks. Application Overview seems to see it (most of the time), but the Message box doesn't see it. The pointer tool just causes the stack to respond as if it was in browse mode. Anyone been down this route, specifically building 1.1.1b stacks first on the Mac, then transferring them to VirtualPC? Secondly, I can't get the Answer command to work at all during runtime on Mac or Windows. ASK works fine, but Answer does nothing. Works fine in development mode, but not during Runtime. Help. Richard Miller From scott at tactilemedia.com Fri Jan 18 15:24:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Fri Jan 18 15:24:01 2002 Subject: Doesn't operate properly in Windows, answer command In-Reply-To: Message-ID: Recently, Richard D. Miller wrote: > Secondly, I can't get the Answer command to work at all during runtime on > Mac or Windows. ASK works fine, but Answer does nothing. Works fine in > development mode, but not during Runtime. The answer dialog is simply an additional stack that you need to include in your own stack if you're going to distribute your stack separately from the development environment. I think it's called "Distribution Builder" in Rev or something similar -- make sure review all the options here when building your stacks as standalones. Regards, Scott _____________________________________________________________________ Scott Rossi Tactile Media - Multimedia & Design Creative Director Email: scott at tactilemedia.com Web: http://www.tactilemedia.com From yvescoppe at skynet.be Fri Jan 18 16:15:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Fri Jan 18 16:15:01 2002 Subject: copy a image In-Reply-To: <003c01c1a058$69d4e250$88b15bd1@dreamlanpc> References: <2B7E60CC-0C47-11D6-A693-000A27B49A96@osnabrueck.netsurf.de> <003c01c1a058$69d4e250$88b15bd1@dreamlanpc> Message-ID: >try adding this code after you create the new file > >open file pathToNewFile >set the fileType to "crtrJPEG" -- where crtr is the creator code and JPEG >is the type code >-- you may change the creator code to suit your needs.. >close file pathToNewFile > >_______________________________________________ No no?it doesn't work? another idea ? Thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From niklas_almesjo at yahoo.com Fri Jan 18 18:26:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Fri Jan 18 18:26:01 2002 Subject: closeRequest with starter-kit? In-Reply-To: <200201181921.OAA26298@www.runrev.com> Message-ID: <20020118232407.36464.qmail@web12306.mail.yahoo.com> That's what I get for never reading the manual.. And I have been adding these objects calling each other like crazy.. ten statements makes everything soo much easier! :) cheers, /Niklas "it looks like you got the StarterKit limitations wrong ? The limits are 10 statements per script and not 10 lines all together in one script ! So in your script above there are only 3 (three) statements :-D So keep on typing :-) I hope this is happy news to you... (I also hope that i understood your question right ;-) May the script be with you... :-)" Klaus Major k_major at osnabrueck.netsurf.de __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From brasmussen at earthlink.net Fri Jan 18 20:43:01 2002 From: brasmussen at earthlink.net (Bob Rasmussen) Date: Fri Jan 18 20:43:01 2002 Subject: replacetext References: Message-ID: <3C48CE74.FB237B23@earthlink.net> It seems like this type of mistake keeps coming up. I've hit it myself more than once. Your problem is that replaceText is a function, not a command. You have to use it in an expression. For example, get replaceText((line n of textToParse),"red","blue") --^^^ To Rev documentation folks: Given the subtle distinction between commands and functions, I think it would be a good idea in the Rev documentation to give examples only of usage in proper context. That is, please don't show functions alone on a line in a way that makes them look like commands. I also think, given the apparent frequency of this problem, that the error message could be more helpful. For instance, if Revolution is going to complain about "factors", it would be nice to explain what a factor is, and give us a hint about what might be wrong. More generally, some documentation about what error messages mean and common causes of errors would be very useful. Thanks RR Mike McManus wrote: > Why does the line > > replaceText((line n of textToParse),"red","blue") > > always generate the error: Expression: missing ')' before factor. The > error comes up with or without the internal parans, and if I use a > variable instead of a chunk. I even get it when I use a simple quoted > string. > > What am I missing here. It seems I ran into this before using one of the > search or replace commands and I ended up using another command. But I > really need the regex here. > > ideas? > > Oh...II love having hyercard tools back in my life. Thanks!!! > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From jeanne at runrev.com Fri Jan 18 21:02:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Fri Jan 18 21:02:01 2002 Subject: replacetext In-Reply-To: Message-ID: At 5:11 AM -0800 1/18/2002, Mike McManus wrote: >Why does the line > >replaceText((line n of textToParse),"red","blue") > >always generate the error: Expression: missing ')' before factor. It's because it's not a complete Transcript statement. Every valid statement starts with a command, and replaceText isn't a command - it's a function. You can fix this by simply changing it to something like put replaceText ((line n of textToParse),"red","blue") into line n of textToParse -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From kevin at runrev.com Fri Jan 18 21:44:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 18 21:44:00 2002 Subject: "start using libURL" not needed in REV In-Reply-To: Message-ID: On 17/1/02 8:02 pm, Sivakatirswami wrote: > is "start using libURL" not needed in REV? and if not, then why? Its not needed. The UI does this automatically, and Distribution Builder also installs the library in such a way that it is not needed in a distribution either. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Fri Jan 18 21:49:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 18 21:49:01 2002 Subject: Rev Player engine In-Reply-To: Message-ID: On 18/1/02 1:32 pm, Sivakatirswami wrote: > Is there a "player" engine of rev that we can distribute like the mc engine > without the home stack so that users can boot a rev stack without access to > the development environment and without need to have that in use being a > stand alone... The revolution or revolution.exe file will do this. Or you can build yourself a simple standalone that loads stacks - with your own icons and creator if you prefer. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From terry at discovery.nl Sat Jan 19 04:08:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Sat Jan 19 04:08:01 2002 Subject: Multilingual interface Message-ID: Hi all, Who has bright ideas on how to handle multilingual projects? Creating two (or more) separate stacks gives a lot of extra work; especially during development. I was thinking about some kind of a language-preference that gives all the buttons another label and give some fields another content. The main problem is that I don't understand how I can change the content of a menu. There is something about dynamically changing a menu in the Rev Encyclopedia: About menus and the menu bar. I have to put a mousedown handler in the group. But what should it contain? Are there any examples of it? Also, would I need to extend the switch stucture like: on menuPick pWhich switch pWhich case "Save" case "Bewaar" -- Dutch for 'Save' saveStuff break case "Quit" case "Stop" -- Dutch; well that doesn't have to be explained quitStuff break end switch end menuPick Finally, can I discover what language the OS is, so I can set the standard language preference setting of my stack to it? Terry From wow at together.net Sat Jan 19 06:31:00 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 19 06:31:00 2002 Subject: Doesn't operate properly in Windows, answer command In-Reply-To: Message-ID: Scott: What you say is true...if you use the Distribution builder. If you try running a stack by simply launching it first without Rev running, the Answer command is not available. I understand what is happening now, but it should either be pointed out or corrected. I like to think I can launch the stack first and test it that way without going through the Distribution build process. But maybe that's the only way with Rev. Richard > Recently, Richard D. Miller wrote: > >> Secondly, I can't get the Answer command to work at all during runtime on >> Mac or Windows. ASK works fine, but Answer does nothing. Works fine in >> development mode, but not during Runtime. > > The answer dialog is simply an additional stack that you need to include in > your own stack if you're going to distribute your stack separately from the > development environment. I think it's called "Distribution Builder" in Rev > or something similar -- make sure review all the options here when building > your stacks as standalones. > > Regards, > > Scott > > _____________________________________________________________________ > Scott Rossi Tactile Media - Multimedia & Design > Creative Director Email: scott at tactilemedia.com > Web: http://www.tactilemedia.com > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From wow at together.net Sat Jan 19 06:32:00 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 19 06:32:00 2002 Subject: Doesn't operate properly in Windows In-Reply-To: Message-ID: I'd really like to know if others are running it this. Is it possible to build a stack on the MacOS side and then edit the same stack on the Windows side? Perhaps I'm encountering a problem exclusive to VirtualPC? Thanks. Richard > First problem. I created it in Mac OS 9.1. Using 1.1.1b. Dragged the Rev > file over to my VirtualPC window. Opened the 1.1.1 Rev beta in Windows. > Opened the stack (actually tried it with all my stacks). Can't edit anything > in any of the stacks. Application Overview seems to see it (most of the > time), but the Message box doesn't see it. The pointer tool just causes the > stack to respond as if it was in browse mode. Anyone been down this route, > specifically building 1.1.1b stacks first on the Mac, then transferring them > to VirtualPC? From dcragg at lacscentre.co.uk Sat Jan 19 07:03:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Sat Jan 19 07:03:01 2002 Subject: FTP progress feedback In-Reply-To: References: Message-ID: At 8:54 am -0500 17/1/02, Roger.E.Eller at sealedair.com wrote: >Hi, > >I am using the put URL ftp command to transfer files to a server. >Can someone offer a suggestion of how to get the percent completed of an >FTP in progress to show in a progress bar? > > Hi. Tracking the urlStatus isn't "officially" supported for ftp uploads at present. (But coming soon.) However, you might try something this (no guarantees.). local lcCanCheck on mouseUp #whatever put unto tUrl put into tUploadData put true into lcCanCheck send "ftpCheckStatus" && quote & tUrl & quote to me in 50 milliseconds put tUploaddata into url tUrl put false into lcCanCheck #whatever" end mouseUp on ftpCheckStatus pUrl get urlStatus(pUrl) put it ##or whatever if lcCanCheck then send "ftpCheckStatus" && quote & pUrl & quote to me in 50 milliseconds end if end ftpCheckStatus It's important that the "send" command comes before the "put" command, as the put command will block until the upload completes. Cheers Dave Cragg (Runtime Revolution -- It's got the power.) From wow at together.net Sat Jan 19 08:35:01 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 19 08:35:01 2002 Subject: Does destroystack work? In-Reply-To: Message-ID: I'd like to know the verdict on destroystack. I simply cannot get it to work in the development environment in OS9. Does it work during Runtime on a Mac? Does it work properly in Windows...during development and runtime? I've got several thousand images I prefer to imbed in relatively small stacks, rather than leave on the CD as external files. I need to copy an image from one of those stacks into my main stack without having that image stack stay in memory. I've got the destroystack and destroywindow in each image stack, set to operate on the closestack command. My main stack copies the image then sends a closestack command to each image stack. But the memory remains unpurged (at least according to the revloadedstacks function in Mac OS9 development and the Application Overview window). Feedback on this problem would be appreciated. If this isn't a reliable way of going, I'll have to stay with external files. Thanks. Richard Miller From aurelien at truebaseball.com Sat Jan 19 09:19:01 2002 From: aurelien at truebaseball.com (Aur=?ISO-8859-1?B?6Q==?=lien Durand) Date: Sat Jan 19 09:19:01 2002 Subject: Printing field text In-Reply-To: <200201191339.IAA06896@www.runrev.com> Message-ID: Hello, Do you know how i can print just the content (text) of a field, and not the complete card, with the command "print"? Thanx AD From k_major at osnabrueck.netsurf.de Sat Jan 19 11:03:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sat Jan 19 11:03:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: Bonjour Yves, hi Devin and all, >> P.S. What you got is definitively a jpg-file, anyway... >> Try to set the filename of an MC image to that file >> et voila... :-D > > Yes I'm working on a Mac > > Thanks. > -- Greetings. > > Yves COPPE here is the promised explanation of how to copy an image (any binary file) on a mac correctly. It's a bit long. So be warned :-) On the mac, the OS needs some specific information about a file, to correctly handle doubleclicks etc... We exspect Photoshop to be lauched, when we doubleclick a .PSD-file (with or without the file extension, which is not necessary on the mac, as long as we see that eye-icon !). But the OS looks for the information about the "Type" (what kind of file is it) and "Creator" code (what app created that file) INSIDE that namely file. These info is stored in the "resource-fork" of an file. But a "resource-fork" is something totally unknown on windows, so it doesnt appear when copying a file from mac to win. And that's the reson why a file looks "corrupt" when we copy it back from win to mac. The resource-fork really got lost. Windows simply trashed it :-( (Hey, what's that ? That's not the kind of file i know ! Two parts in one file ? Sorry ma'm, no way... Bye... :-) So when using MC to copy files on a mac, one has to set the "filetype", which is a series of 8 chars, describing exactly the above mentioned. First 4 chars represent the creator , the last four the type. Example: A jpeg-file created by Photoshop has "8BIM" as its "signature" and "JPEG" as the default code for jpg-files. Filetype: 8BIMJPEG A photoshop gif-file: 8BIM GIFf So, noone can know all the filetypes, but we need that info to get an exact copy of a file :-( No problem, lets MC do the work :-) Here we go: ##OldfilePath is the path to the file to copy ## We need to set the filetype BEFORE we copy the file. ##Here is a little function that will do the dirty work :-) on mouseup ##or whatsoever set the filetype to ye_olde_filetype(OldfilePath) ##this function will get one argument, the path to the file ##and will return the exact filetype :-D put URL ("binfile:" & OldfilePath) into URL ("binfile:" & NewfilePath) end mouseup function ye_olde_filetype el_patho put the directory into old_dir ##always a good idea to save and restore the original directory ! ##a MUST if you work with relative paths for images etc... set the itemdel to "/" put last item of el_patho into the_file ##the filename delete last item of el_patho set the directory to el_patho ##now we are in the folder where the file resides put the long files into all_files ##take a look in the reference about "the long files" ##that returns a list with lots of infos about the content of a folder ##(divided by a comma) ##like the filename, date of last modification, last saved ... ##and the filetype as the last item of each line get line(lineoffset(the_file, all_files)) of all_files ##now we extract that line containing the filename set the itemdel to "," ##restore the old itemdel. very important set the directory to old_dir ##restore the old directory return last item of it ##that's it end ye_olde_filetype Hope that helps. Have a nice weekend. Best from rainy germany Klaus Major k_major at osnabrueck.netsurf.de From yvescoppe at skynet.be Sat Jan 19 11:12:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 11:12:01 2002 Subject: Printing field text In-Reply-To: References: Message-ID: >Hello, >Do you know how i can print just the content (text) of a field, and not the >complete card, with the command "print"? > >Thanx > >AD > _ Simply use "revPrintField fieldDescriptor" BUT ! 1) use first : revShowPrintDialog true,true -- shows both dialogs so you can use the page setUp Dialog and the Print Dialog 2) fieldDescriptor = something like : the name of field "xxx" and not fld "xxx" 3) if you want some text before or after your field then use "revPrintText" : ? --put something into myTx put myTx into toPrint put return & fld "xxx" after toPrint put whatever into theHeader put the short date into theFooter revPrintText ToPrint, theHeader, theFooter That's one way to perfomr it There are other possibilities But I find that the print possibilities of revolution are limited. I used "PrintReport" XCMD in hypercard with much more formating possibilities. I hope it comes soon?! Cheers -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From rcozens at pon.net Sat Jan 19 11:33:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat Jan 19 11:33:01 2002 Subject: Multilingual interface In-Reply-To: Message-ID: >Who has bright ideas on how to handle multilingual projects? Hi Terry, Here is how I handle them: * Dates, times, and numbers are are stored unformatted in a database and are formated when displayed according to Mac OS Control Panel specifications. * Data labels and other on-screen literal text are replaced with icons. * The application is 100% button driven, and the function of each active button is displayed in a Help field when the cursor enters the button. * There is a Translation screen where the user is presented each button prompt & other help message in turn, and can translate them to another language. * There is a Configuration screen where the user selects a language and the help prompts & other text for that language are loaded into the stack. * The user manual is written in html so the user can translate it with any html editor. To see my design in action (in HyperCard), download the Mac demo at http://www.oenolog.com/apple_demo.htm. When OenoLog Version III was released, I touted it to the press as the world's first "globalized" business application: capable of end-user translation and world-wide distribution (on Macs) in a single version. I can't help you with the menu bar, since my application hides it. I know the Mac Human Interface Guideline police don't like that but: A. OenoLog softwqre was originally designed as a dedicated driver for specialized instrument, not as a cooperative application to work seamlessly with other Mac apps; and B. Frankly, I consider the menubar of today to be the DOS Prompt (">") of yesteryear. The menubar GUI was developed close to 30 years ago. Ever notice how most major software apps use a palette in addition to the menubar today? I believe "point & click" is superior to "pull down & select" in most user interfaces, and I find a button-driven interface MUCH easier to program than a menu-driven interface...especially one where the menubar changes with different tool selections. Rob Cozens CCW, Serendipity Software Company "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) From niklas_almesjo at yahoo.com Sat Jan 19 11:44:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Sat Jan 19 11:44:01 2002 Subject: checking if a path is relative? In-Reply-To: <200201191339.IAA06896@www.runrev.com> Message-ID: <20020119164123.27367.qmail@web12304.mail.yahoo.com> Is there any way to check if a path is relative or absolute? On windows I think an absolute path always contain a ":", and a relative can not contain ":". But on Mac.. an absolute path does not contain ":". Anything else you can check for? any ideas appreciated, Revolution rocks! /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From benr_mc at cogapp.com Sat Jan 19 12:24:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sat Jan 19 12:24:01 2002 Subject: Doesn't operate properly in Windows, answer command In-Reply-To: Message-ID: on 19/1/02 11:28 AM, Richard D. Miller at wow at together.net wrote: > What you say is true...if you use the Distribution builder. If you try > running a stack by simply launching it first without Rev running, the Answer > command is not available. I understand what is happening now, but it should > either be pointed out or corrected. I like to think I can launch the stack > first and test it that way without going through the Distribution build > process. But maybe that's the only way with Rev. (Caveat; I've not started using 1.1b1 on Windows yet - you may be getting special problems with that.) That caveat aside, Rev works fine on Windows; I mostly work on Mac, but I distribute my work cross platform, always take it over to either VPC or a real PC, and do final testing there - before building a standalone. There is a particular gotcha, which exists in a lesser form on Mac but is worse on Windows. On the Mac, if you double-click a stack before Rev is launched, it launches the basic engine (which opens your stack) but doesn't load the Revolution environment. In consequence you are severely restricted. Solution is either to launch Rev first, then double-click the stack in the Finder; or open the stack from within Rev. On Windows, it's similar but worse. If you double-click on the stack when Rev isn't running, you get the engine opening the stack, without the IDE - just like on Mac. If you launch Rev, then double-click on the stack - you get the same thing! (actually Windows launches a second instance of the engine, which opens the stack without the IDE). This is actually then very confusing, because you still have Revolution running; and you have the stack open; and it's not immediately obvious that they aren't connected. On Windows the only way to open the stack in the IDE is to open it using Revolution's commands. Summary: three ways to launch a stack (double-click before Rev launched, double-clicked after Rev launched, open inside Rev): on the Mac, only the second and third allow you to work properly in the IDE; on Windows, only the third. This may be nothing to do with the problems you're experiencing - but it might be relevant. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From gcanyon at inspiredlogic.com Sat Jan 19 13:06:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sat Jan 19 13:06:00 2002 Subject: Does destroystack work? In-Reply-To: References: Message-ID: At 8:22 AM -0500 1/19/02, Richard D. Miller wrote: >I've got several thousand images I prefer to imbed in relatively small >stacks, rather than leave on the CD as external files. I need to copy an >image from one of those stacks into my main stack without having that image >stack stay in memory. I've got the destroystack and destroywindow in each >image stack, set to operate on the closestack command. My main stack copies Are the image stacks their own mainstacks (in their own files)? DestroyStack only takes effect if all the substacks of a mainstack (and the mainstack are closed. If the stacks are their own mainstacks, and the destroystack property is true, then all you should need is to close the stacks when you are done. regards, Geoff From gcanyon at inspiredlogic.com Sat Jan 19 13:12:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sat Jan 19 13:12:00 2002 Subject: copy a image/binary file on a mac In-Reply-To: References: Message-ID: At 5:01 PM +0100 1/19/02, Klaus Major wrote: >But the OS looks for the information about the "Type" (what kind of file is it) >and "Creator" code (what app created that file) INSIDE that namely file. > >These info is stored in the "resource-fork" of an file. File type and creator are stored in the directory structure by the OS, not in the resource fork. Note that a SimpleText file has no resource fork, but does have a type and a creator. regards, Geoff From benr_mc at cogapp.com Sat Jan 19 13:18:00 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sat Jan 19 13:18:00 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: on 19/1/02 4:01 PM, Klaus Major at k_major at osnabrueck.netsurf.de wrote: > (long description of how to copy a binary file on a Mac, without losing > the type and creator codes snipped) This is perfectly good as far as it goes, but will still lose anything that might be in the resource fork of the file. If you're going to go to that much trouble to make a mac-specific file copy routine, you might as well get the Finder to do it for you, which is a complete solution. Some gotcha's along the way: AppleScript of course doesn't understand about the Revolution use of the Unix filename conventions, so you have to switch them; and as far as I could tell, there isn't directly a way to tell the Finder to copy a file with right destination and name. So you have to copy it, then rename it. The following script works as far as I can tell, with two exceptions I can foresee - see below. It has the advantage over the variations of using "put URL ... into URL" that it doesn't require Rev to have enough memory to load the whole file at one lump; it preserves the type and creator codes, but also other information like the file date; and it preserves the resource fork, which I don't think is possible using any solution entirely in Transcript. function copyFileMac srcPath, dstPath -- first need to work out whether the destination is available -- (and whether the the source file is valid) if there is not a file srcPath then return "Source file does not exist" else if there is a file dstPath then return "Destination file exists!" -- an alternative implementation would delete the existing file end if -- we also only deal with absolute paths, only with files if (first char of srcPath <> "/") or (first char of dstPath <> "/") then return "invalid source or destination path (must be absolute)" else if (last char of srcPath = "/") or (last char of dstPath = "/") then return "invalid source or destination path (must be files)" end if -- separate file names from folder paths, find out if source -- and destination are in the same folder, check source folder -- exists set the itemDelimiter to "/" put last item of dstPath into dstName delete last item of dstPath if there is not a folder dstPath then return "invalid destination path (folder doesn't exist)" end if put ((item 1 to -2 of srcPath) = dstPath) into sameFolder put resPathToMacPath(dstPath) into dstPath put resPathToMacPath(srcPath) into srcPath -- create the applescript put "tell application" && quote & "Finder" & quote & return into asCom if sameFolder then put "duplicate file" && quote & srcPath & quote & return after asCom else put "copy file" && quote & srcPath & quote \ && "to folder" && quote & dstPath & quote & return after asCom end if put "set newFile to the result" & return after asCom put "set the name of newFile to" && quote & dstName & quote \ & return after asCom put "end tell" & return after asCom -- do the work do ascom as applescript return the result end copyFileMac function resPathToMacPath p --> p delete first char of p -- "/" -- can't just do [replace "/" with ":" in p], because -- wouldn't handle real "/" in file/folder names set the itemDelimiter to "/" put empty into macPath repeat for each item i in p replace ":" with "/" in i put ":" & i after macPath end repeat delete first char of macPath -- ":" return macPath end resPathToMacPath One exception I can foresee is that quotes within the path will not be handled correctly. I imagine that this could be handled - I don't know enough about how characters can be escaped in AppleScript, or how variables can be passed in from Transcript. Secondly, because it first copies the file into the destination directory, then renames it, it would fail if the destination directory already has a file with the same name as the source (but not the destination name). This could obviously be scripted round. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From scott at tactilemedia.com Sat Jan 19 13:22:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Sat Jan 19 13:22:01 2002 Subject: Multilingual interface In-Reply-To: Message-ID: Recently, Terry Vogelaar wrote: > Who has bright ideas on how to handle multilingual projects? I don't know if they're bright ideas, but here's what we did. We used a single stack to display content, with all text content, button labels, alerts, etc stored in external text files. All the files were grouped in folders by language, and were provided by the client's translators. The benefit of this arrangement was the client could edit content as often as they wanted, and all we had to do was swap the new text files with the old. We could also give development versions of the stack to the client, and they could edit text and see the results of the editing in place, without having to know anything about MC. The stack had a language selection screen presented at startup. Selecting a language simply told the stack which set of external content to use when loading the content into fields on various cards. Alert/error dialog messages were all stored in a single text file for each language, and were read into a global variable at startup for easy access. This setup seemed to work ok, especially since text translators were located all over the place and had different schedules for turning around translations. It is a lot of external files to manage, but if there's going to be a lot of editing taking place, external files are much easier to deal with. FWIW, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From scott at tactilemedia.com Sat Jan 19 13:25:00 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Sat Jan 19 13:25:00 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: Recently, Geoff Canyon wrote: > Note that a SimpleText file has no resource fork, but does have a type and a > creator. This is not actually the case. If you add any style (bold, italic, etc) of other style edits, flags are added to the resource fork. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From aurelien at truebaseball.com Sat Jan 19 13:27:01 2002 From: aurelien at truebaseball.com (Aur=?ISO-8859-1?B?6Q==?=lien Durand) Date: Sat Jan 19 13:27:01 2002 Subject: use-revolution digest, Vol 1 #125 - 5 msgs In-Reply-To: <200201191708.MAA10347@www.runrev.com> Message-ID: Thanks a lot Yves!!!:) Effectivly Rev is sometimes limited but it's a real pleasure for an HyperCard lover to be able to use millioncolors graphics and quicktime movies!!! That's definitivly the Holy Grail i was looking for!;) Thanks again! AD (Yves is a french name, right? Because je suis moi-m?me fran?ais so? Is the rev community full of french people?) From yvescoppe at skynet.be Sat Jan 19 13:32:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 13:32:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: References: Message-ID: Hello, > >function ye_olde_filetype el_patho > put the directory into old_dir >##always a good idea to save and restore the original directory ! >##a MUST if you work with relative paths for images etc... > > set the itemdel to "/" > put last item of el_patho into the_file >##the filename > > delete last item of el_patho > set the directory to el_patho >##now we are in the folder where the file resides > > put the long files into all_files >##take a look in the reference about "the long files" >##that returns a list with lots of infos about the content of a folder >##(divided by a comma) >##like the filename, date of last modification, last saved ... >##and the filetype as the last item of each line > > get line(lineoffset(the_file, all_files)) of all_files >##now we extract that line containing the filename > > set the itemdel to "," >##restore the old itemdel. very important > set the directory to old_dir >##restore the old directory > > return last item of it >##that's it >end ye_olde_filetype > > >Hope that helps. > >Have a nice weekend. > > >Best from rainy germany > >Klaus Major >k_major at osnabrueck.netsurf.de > The function ye_olde_filetype doesn't work. But your explication is correct. So I write : set the fileType to "8BIMJPEG" BEFORE copying the image and it works fine. The problem comes from the fact that your funciton doesn't return a filetype. it only returns empty ! So if you can ameliorate your function, it will be possible to copy just?anything? -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From tsimmons at employmentlawadvisors.com Sat Jan 19 14:14:01 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Sat Jan 19 14:14:01 2002 Subject: copy a image/binary file on a mac - digression References: Message-ID: <002001c1a11c$edcee500$2daa343f@elanet> OK, I've withstood my curiousity long enough - what do the uppercase "S" letters stand for in text like the excerpt below: "So if you can ameliorate your function, it will be possible to copy justSanythingS" I've seen that use of the uppercase "S" in a few posts recently - is this a new Internet thing that I'm just too behind the times to get, or is it a different character set that's not coming across on my PC, or what? Hey, I don't mind asking dumb questions! Tommy Simmons Employment Law Advisory Network, Inc. www.employmentlawadvisors.com ----- Original Message ----- From: yves COPPE To: Sent: Saturday, January 19, 2002 12:29 PM Subject: Re: copy a image/binary file on a mac > Hello, > > So if you can ameliorate your function, it will be possible to copy > justSanythingS > -- > Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be From k_major at osnabrueck.netsurf.de Sat Jan 19 14:27:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sat Jan 19 14:27:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> Hi Yves, > Hello, > >> >> function ye_olde_filetype el_patho >> put the directory into old_dir >> ##always a good idea to save and restore the original directory ! >> ##a MUST if you work with relative paths for images etc... >> >> set the itemdel to "/" >> put last item of el_patho into the_file >> ##the filename >> >> delete last item of el_patho >> set the directory to el_patho >> ##now we are in the folder where the file resides >> >> put the long files into all_files >> ##take a look in the reference about "the long files" >> ##that returns a list with lots of infos about the content of a folder >> ##(divided by a comma) >> ##like the filename, date of last modification, last saved ... >> ##and the filetype as the last item of each line >> >> get line(lineoffset(the_file, all_files)) of all_files >> ##now we extract that line containing the filename >> >> set the itemdel to "," >> ##restore the old itemdel. very important >> set the directory to old_dir >> ##restore the old directory >> >> return last item of it >> ##that's it >> end ye_olde_filetype >> >> >> Hope that helps. >> >> Have a nice weekend. >> >> >> Best from rainy germany >> >> > > > > The function ye_olde_filetype doesn't work. > But your explication is correct. > So I write : > > set the fileType to "8BIMJPEG" BEFORE copying the image and it works > fine. > > The problem comes from the fact that your funciton doesn't return a > filetype. > it only returns empty ! > Funny thing. It works for me here on my mac... ?! I always test my scripts before posting ;-) Regards Klaus Major k_major at osnabrueck.netsurf.de > So if you can ameliorate your function, it will be possible to copy > just?anything? > -- Greetings. > Wow, i do not have a dictionary at hand. What does that mean: ameliorate ? Wait, since i had latin at school, melior means better ;-) So if i could make my script better... See above... ??? From troy at rpsystems.net Sat Jan 19 14:45:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Sat Jan 19 14:45:01 2002 Subject: copy a image/binary file on a mac - digression In-Reply-To: <002001c1a11c$edcee500$2daa343f@elanet> Message-ID: William T. Simmons wrote: > "So if you can ameliorate your function, it will be possible to copy > justSanythingS" Odd. Actually on the Mac this shows as an "ellipsis" e.g. "..." "So if you can ameliorate your function, it will be possible to copy just?anything?" Er, no William - actually yesS, of courseS, we hip peopleS do this all the timeS. :) -- Troy RPSystems www.rpsystems.net From SaultsJ at missouri.edu Sat Jan 19 14:59:01 2002 From: SaultsJ at missouri.edu (J. Scott Saults) Date: Sat Jan 19 14:59:01 2002 Subject: RAPID SEQUENCE of audioclips using the PREPARE command In-Reply-To: <200201140409.XAA03269@www.runrev.com> References: <200201140409.XAA03269@www.runrev.com> Message-ID: In use-revolution digest, Vol 1 #112, Kevin Miller wrote: >Have you tried using the "prepare" command on all the audioClips before you >attempt to run the script that Scott Rossi supplied? > >Kind regards, > >Kevin I made a couple of attempts to incorporate the 'prepare' command into the scripts Scott Rossi (Thank you, Scott) supplied to play a sequence of audioclips. First, I tried to 'prepare' the next audioClip right after playing one audioClip: on runAudio if the sound is "done" then if the uCurrClip of me > the number of items of fld cliplist then set the uCurrClip of me to empty exit runAudio end if play audioClip (item (the uCurrClip of me) of fld cliplist) set the uCurrClip of me to the uCurrClip of me + 1 prepare audioClip (item (the uCurrClip of me) of fld cliplist) end if send "runAudio" to me in 5 milliseconds end runAudio The 'play' commands begins playing its audioClip, which is quickly interrupted by the 'prepare' command playing the same sound. (Putting a 'wait until done' after the prepare command simply results in the complete sound being played twice and taking twice as long.) Next, I tried to 'prepare' the complete set of audioClips in the initial mouseUp handler: on mouseUp if the sound is not "done" then play stop set the uCurrClip of me to empty exit mouseUp end if repeat with i = 1 to the number of items of field "clipList" prepare audioclip (item 2 of field "clipList") wait until the sound is "done" end repeat set the uCurrClip of me to 1 runAudio end mouseUp The successive 'prepare' commands plays each of the 10 sounds (presumably loading them into memory, as well) Then 'runAudio' plays the sounds at a rate of a little more than 500 ms per audioClip, when the audioClips are each 250 ms long. That rate (2/second), pretty erratic and about half what it should be (4/sec), is not significantly different from what I get without using the 'prepare' command. In summary, using Scott Rossi's scripts, Revolution could only play the 250 ms audioclips at a rate of about 2/second, and the prepare command did make it any faster. (I was running on a Mac PowerPC G3 220 MHz cpu under OS 9.0.4. Naturally, it's faster on a faster Pentium 4.) In fact, I can't tell if the 'prepare' command works any differently than the 'play' command! Keven suggested "you should try the "prepare" command, it will buffer audioClips before playback. Let me know if that works for you?" Well, it does not seem to work. Is this a bug? How is 'prepare' supposed to work? I'm still open to suggestions, but it looks like I'll have to work on extracting and combining the audio file data, as suggested by Geoff Canyon and Sjoerd Op 't Land (Both have supplied useful information that I still need to digest and apply.) Thanks and best regards, Scott Saults J. Scott Saults, Ph.D. Research Associate email: SaultsJ at missouri.edu Department of Psychology 210 McAlester Hall From wow at together.net Sat Jan 19 15:26:01 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 19 15:26:01 2002 Subject: Building in serial number scheme In-Reply-To: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> Message-ID: I'd appreciate hearing any thoughts on ways to build in serial number protection...at least into one main opening stack. I'm not concerned with a "foolproof" system (should one even exist!)...just something that will stop most folks from running my program without a correct serial number. Is there a "standard" approach to this? Last time I did this (five years ago), I simply had a list of some 50 numbers in a text field inside the program. Users had to have one of them to get into the program. Worked OK. Certainly not very elegant. Of course, that means there were only 50 numbers out there, making it fairly easy for someone to get into the program if they caught onto what was going on. But for the most part, it kept people out. Suggestions? Thanks. Richard Miller From yvescoppe at skynet.be Sat Jan 19 15:33:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 15:33:01 2002 Subject: copy a image/binary file on a mac - digression In-Reply-To: <002001c1a11c$edcee500$2daa343f@elanet> References: <002001c1a11c$edcee500$2daa343f@elanet> Message-ID: >OK, I've withstood my curiousity long enough - what do the uppercase "S" >letters stand for in text like the excerpt below: > >"So if you can ameliorate your function, it will be possible to copy >justSanythingS" > >I've seen that use of the uppercase "S" in a few posts recently - is this a >new Internet thing that I'm just too behind the times to get, or is it a >different character set that's not coming across on my PC, or what? Hey, I >don't mind asking dumb questions! > >Tommy Simmons >Employment Law Advisory Network, Inc. >www.employmentlawadvisors.com No I haven't type any "S", and I don't know why it comes on your mail. I think it's because I use a Mac and you a PC and the translation may fail elsewhere? I hope you can read my mail without too many added chars ! -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From yvescoppe at skynet.be Sat Jan 19 15:33:13 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 15:33:13 2002 Subject: use-revolution digest, Vol 1 #125 - 5 msgs In-Reply-To: References: Message-ID: >Thanks a lot Yves!!!:) >Effectivly Rev is sometimes limited but it's a real pleasure for an >HyperCard lover to be able to use millioncolors graphics and quicktime >movies!!! That's definitivly the Holy Grail i was looking for!;) > >Thanks again! > >AD > Salut, je suis belge. Ma langue maternelle est le "bilinguisme" ! (Fran?ais-N?erlandais) Je suis d'accord avec toi, Revolution est vraiment le digne successeur d'Hypercard qu'on attendait depuis longtemps. Encore quelques bugs ? corriger et quelques fonctionnalit?s ? impl?menter (entre autre au niveau du print ou de la pr?sentation en "table" ou encore l'acc?s direct au appearance mgr sur mac) et ce sera presque parfait? -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From yvescoppe at skynet.be Sat Jan 19 15:33:23 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 15:33:23 2002 Subject: copy a image/binary file on a mac In-Reply-To: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> References: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> Message-ID: Hello, Sorry Klaus, my English is absolutely not perfect? ameliorate means better your script indeed doesn't work on my mac but your theory is correct; If I write "set the typefile to "8BIMJPEG" ?it works fine? I'll work on it further? I want to thank you very much for your help in this big problem on mac. Without you I surely wouldn' have found any solution? -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From yvescoppe at skynet.be Sat Jan 19 15:37:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 15:37:00 2002 Subject: copy a image/binary file on a mac In-Reply-To: References: Message-ID: Hello J'y pense : au lieu de m'exciter ? ?crire le plus correctement possible en anglais, je peux ?crire directement en fran?ais. L? il n'y aura pas de fautes ! Comprenne qui pourra? -- Salutations. Yves COPPE Email : yvescoppe at skynet.be From yvescoppe at skynet.be Sat Jan 19 16:02:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 16:02:01 2002 Subject: sort container Message-ID: Hello, in the doc, I read : The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the major sort categories. I can't apply it to the following problem : Let's suppose a tabstop fld the first column contains dates the second text I'd like to sort the fld so that it's sorted by date (first column) and afterwards sorted by text (alphabetically) in this case the sortkey changes first it's item 1 of fld "xxx" and then it's item 2 of fld "xxx" How ? thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From yvescoppe at skynet.be Sat Jan 19 16:23:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 19 16:23:01 2002 Subject: Type and Creator - Klaus Major Message-ID: Hello, I've found why your function doesn't work : function ye_olde_filetype el_patho put the directory into old_dir set the itemdel to "/" put last item of el_patho into the_file delete last item of el_patho set the directory to el_patho put the long files into all_files get line(lineoffset(the_file, all_files)) of all_files set the itemdel to "," set the directory to old_dir return last item of it end ye_olde_filetype the FileName of el_patho contains a date : DD/MM/YYYY so you will see what kind of strange chars are returned with : put the long files into all_files That's why otherwise the function is correct? thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be -------------- next part -------------- An HTML attachment was scrubbed... URL: From rcozens at pon.net Sat Jan 19 16:44:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat Jan 19 16:44:01 2002 Subject: Multilingual interface Message-ID: >Who has bright ideas on how to handle multilingual projects? Terry, et al: You should also take a look at Revolution's Profile Manager Tutorial. From drvaughan55 at mac.com Sat Jan 19 17:09:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sat Jan 19 17:09:01 2002 Subject: copy a image/binary file on a mac - digression In-Reply-To: Message-ID: Well, I'm on a Mac (OS X 10.1.2) and I get the funny "?" as well. Mine have a little mark atop them. Perhaps it is a PC mail handler in between us. No worries. What with Yves testing my French and Klaus calling on Latin (and happily not saying so in Deutsch) this site is fascinatingly diverse as well as informative. cheers David On Sunday, January 20, 2002, at 07:22 , yves COPPE wrote: >> OK, I've withstood my curiousity long enough - what do the uppercase >> "S" >> letters stand for in text like the excerpt below: >> >> "So if you can ameliorate your function, it will be possible to copy >> justSanythingS" >> >> I've seen that use of the uppercase "S" in a few posts recently - is >> this a >> new Internet thing that I'm just too behind the times to get, or is >> it a >> different character set that's not coming across on my PC, or what? >> Hey, I >> don't mind asking dumb questions! >> >> Tommy Simmons >> Employment Law Advisory Network, Inc. >> www.employmentlawadvisors.com > > > No I haven't type any "S", and I don't know why it comes on your mail. > I think it's because I use a Mac and you a PC and the translation may > fail elsewhere? > I hope you can read my mail without too many added chars ! > -- Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1534 bytes Desc: not available URL: From rcozens at pon.net Sat Jan 19 17:11:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat Jan 19 17:11:01 2002 Subject: Building in serial number scheme In-Reply-To: References: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> Message-ID: >I'd appreciate hearing any thoughts on ways to build in serial number >protection...at least into one main opening stack. Hi Richard, Before I describe my approach, let me point out its limitations: 1. It is Mac-specific. 2. It only works on hardware/OS combos where the Apple System Profiler returns the computer serial number. 3. It works for me because my product is designed and priced for a limited marketplace. That being said, the AppleScript script: on getSerial() tell application "Apple System Profiler" launch copy SerialNumber to myNumber quit application "Apple System Profiler" end tell return myNumber end getSerial will return the Mac's serial #. (BTW, Apple System Profiler does NOT quit; but that's another issue.) When a winemaker orders, or subscribes to, OenoLog, the license is specific to the her/his Mac by serial number...which he/she retrieves using the System Profiler and includes on the order form. I burn a CD for that specific installation with the serial # encrypted in the stack. As I look to the future, I must determine which of the Mac-specific features in OenoLog can be reprogramed to be platform independent, and which must be given up if I am to achieve cross-platform compatability. It would be nice if Revolution had a built-in method of uniquely identifying the computer it's running on. Some people have suggested the Ethernet address as a possibility; but for my purposes the serial # is more easily retrieved by the user. I'd be happy to participate in any effort address the issue by RunRev or MetaCard staff and/or users. I'd also be interested in hearing from anyone who knows what toolbox call ASP uses to retrieve the serial # (some argument to gestalt(??)). If I knew that, I could ditch AppleScript; but I'm too cheap to pay Apple $200 so I can ask them directly. Rob Cozens CCW, Serendipity Software Company "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) From kevin at runrev.com Sat Jan 19 17:41:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Sat Jan 19 17:41:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: On 19/1/02 1:11 pm, Geoff Canyon wrote: >> But the OS looks for the information about the "Type" (what kind of file is >> it) >> and "Creator" code (what app created that file) INSIDE that namely file. >> >> These info is stored in the "resource-fork" of an file. > > File type and creator are stored in the directory structure by the OS, not in > the resource fork. Note that a SimpleText file has no resource fork, but does > have a type and a creator. We will include a revCopyFile command in 1.1.1 which will copy a file on any OS including the correct creator type and the resource fork, without loading the entire file into memory if it is large either. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From eijkhout at cs.utk.edu Sat Jan 19 19:42:00 2002 From: eijkhout at cs.utk.edu (Victor Eijkhout) Date: Sat Jan 19 19:42:00 2002 Subject: what does "clone" do? Message-ID: I type clone button "some button of mine" and I get Script compile error: Error description: How on earth can that be? Is some message being sent to the new button? -- Victor Eijkhout tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/ From shaosean at unitz.ca Sat Jan 19 19:50:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Sat Jan 19 19:50:01 2002 Subject: what does "clone" do? References: Message-ID: <006101c1a14c$01827d80$88b15bd1@dreamlanpc> where are you typing that? in a script, just do something like this: on cloneMyButton clone button "myButton" of cd "myCard" of stack "myStack" end cloneMyButton (if this script is running from the same card where the button is located, you don't need the cd and stack part) if you're running the code from the message box, you'll need to type in the full thing: clone button "myButton" of cd "myCard" of stack "myStack" From tsimmons at employmentlawadvisors.com Sat Jan 19 22:23:01 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Sat Jan 19 22:23:01 2002 Subject: copy a image/binary file on a mac - digression References: <002001c1a11c$edcee500$2daa343f@elanet> Message-ID: <00cf01c1a161$4ec4bb20$ae81343f@elanet> Thanks, Yves - it's good to know I haven't missed an Internet trend! ;-) Tommy Simmons Employment Law Advisory Network, Inc. www.employmentlawadvisors.com ----- Original Message ----- From: yves COPPE To: Sent: Saturday, January 19, 2002 2:22 PM Subject: Re: copy a image/binary file on a mac - digression > >OK, I've withstood my curiousity long enough - what do the uppercase "S" > >letters stand for in text like the excerpt below: > > > >"So if you can ameliorate your function, it will be possible to copy > >justSanythingS" > > > >I've seen that use of the uppercase "S" in a few posts recently - is this a > >new Internet thing that I'm just too behind the times to get, or is it a > >different character set that's not coming across on my PC, or what? Hey, I > >don't mind asking dumb questions! > > > >Tommy Simmons > >Employment Law Advisory Network, Inc. > >www.employmentlawadvisors.com > > > No I haven't type any "S", and I don't know why it comes on your > mail. I think it's because I use a Mac and you a PC and the > translation may fail elsewhereS > I hope you can read my mail without too many added chars ! > -- > Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be From jcuccio at pacbell.net Sun Jan 20 00:55:02 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Sun Jan 20 00:55:02 2002 Subject: How to Window Standalone Message-ID: Mac OS 8.1 rev 1.1 I tried to build a windows standalone. It said can not find engine. What file do I need & where can I get them. To build a windows standalone on Mac. From jcuccio at pacbell.net Sun Jan 20 01:36:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Sun Jan 20 01:36:01 2002 Subject: serial number Message-ID: I have also been thinking of this. For the Mac I was planning on haveing a Set-up util for the prgram that would except any valid number sceam that I picked and then save a hidden file that the main program would look for. If the program did not find the file then it would be set to demo mode. I would like to know how to save a hidden file in windows. From gcanyon at inspiredlogic.com Sun Jan 20 02:39:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 20 02:39:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: References: Message-ID: At 10:23 AM -0800 1/19/02, Scott Rossi wrote: >Recently, Geoff Canyon wrote: > >> Note that a SimpleText file has no resource fork, but does have a type and a >> creator. > >This is not actually the case. If you add any style (bold, italic, etc) of >other style edits, flags are added to the resource fork. Bother -- that's what I get for not following through. It is true that a SimpleText file _created by SimpleText_ has a resource fork. Unfortunately for me, I didn't look at any SimpleText files created by SimpleText. The default fileType property in Revolution is "ttxtTEXT" which specifies a SimpleText file. If you open a new file and write to it, the resulting file has a type and creator, but no resource fork. If you drag it onto ResEdit, you'll get a dialog asking if you want to create a resource fork for the file, because it has none. If you use ResEdit to get info on the file, you'll see that it nevertheless has a type of "TEXT" and a creator of "ttxt" You can also see from the file's icon that it's a SimpleText document. regards Geoff From jeanne at runrev.com Sun Jan 20 02:43:06 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 20 02:43:06 2002 Subject: Displaying menus beyond the first card In-Reply-To: References: Message-ID: At 10:00 AM -0800 1/18/2002, Richard D. Miller wrote: >OK. I see that I actually have to copy and paste the menubar group onto each >card. I suppose that makes sense...just different from other programs I've >worked with. No, no, don't copy and paste - this puts a separate group on each card, so if you ever make changes to the menu bar, you'll need to do it once for each card. Instead, you need to place the group onto each card (which you can do with the place command, or the Place Group item in the Object menu). This causes the same group to appear on each card where you place it, so changes you make on one card are reflected on all the others (since there's only one group that appears on multiple cards). (The backgroundBehavior property, as some people have already mentioned, does this automatically when you create a new card. The result is the same, it's just automatic instead of manual.) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 20 02:43:18 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 20 02:43:18 2002 Subject: replacetext In-Reply-To: <3C48CE74.FB237B23@earthlink.net> References: Message-ID: At 5:40 PM -0800 1/18/2002, Bob Rasmussen wrote: >To Rev documentation folks: > >Given the subtle distinction between commands and functions, I think >it would be a good idea in the Rev documentation to give examples >only of usage in proper context. That is, please don't show functions >alone on a line in a way that makes them look like commands. I've thought about doing this, especially since the problem has cropped up on the list twice now. The problem with it is that embedding the function in a complete statement makes it more complicated - especially when the function call itself is complex, I'm concerned about it causing confusion. Of course, I could just stick "get" in front of all the examples, but that doesn't always make a statement you'd actually use in a real-world handler. And I'm a little concerned about new developers getting the impression that "get" is the only way to use a function, as opposed to using it in a conditional, etc. Does anyone else have an opinion about this? Any other ways to make it crystal clear that a function can't be used as a complete statement, and avoid confusing people? -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Sun Jan 20 02:44:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun Jan 20 02:44:00 2002 Subject: sort container In-Reply-To: Message-ID: At 12:59 PM -0800 1/19/2002, yves COPPE wrote: >Let's suppose a tabstop fld > >the first column contains dates >the second text > >I'd like to sort the fld so that >it's sorted by date (first column) >and afterwards sorted by text (alphabetically) > >in this case the sortkey changes first it's item 1 of fld "xxx" and >then it's item 2 of fld "xxx" > >How ? set the itemDelimiter to tab sort lines of field "Stuff" by item 2 of each sort lines of field "Stuff" dateTime by item 1 of each -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From gcanyon at inspiredlogic.com Sun Jan 20 02:51:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 20 02:51:00 2002 Subject: sort container In-Reply-To: References: Message-ID: At 9:59 PM +0100 1/19/02, yves COPPE wrote: >in the doc, I read : >The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the major sort categories. > > >I can't apply it to the following problem : > >Let's suppose a tabstop fld > >the first column contains dates >the second text > >I'd like to sort the fld so that >it's sorted by date (first column) >and afterwards sorted by text (alphabetically) > >in this case the sortkey changes first it's item 1 of fld "xxx" and then it's item 2 of fld "xxx" If I understand what you want correctly, then something like this should do the trick: set the itemDelimiter to tab sort fld "someField" by item 2 of each sort fld "someField" dateTime by item 1 of each The stable sort aspect allows this to work: the first sort orders the lines of the field by the text. The second sort order the lines of the field by the date, and where the date is the same, leaves the order unchanged, which means those lines will still be sorted by the text. regards, Geoff From zink at newmex.com Sun Jan 20 03:05:01 2002 From: zink at newmex.com (Nelson Zink) Date: Sun Jan 20 03:05:01 2002 Subject: Building in serial number scheme In-Reply-To: <200201200559.AAA27055@www.runrev.com> Message-ID: Richard, > I'd appreciate hearing any thoughts on ways to build in serial number > protection. Have the serial number met one or more tests. Credit card numbers aren't random, they're selected (generated?) to fulfill several tests. The following will authenticate a 16 digit credit card number such as Visa. This is what stops someone from making up a number and using it online. put the CreditCardNumber into temp repeat with zz=1 to 8 put 2*(char ((2*zz)-1) of temp) into CC if CC>=10 then put (cc mod 10)+1 into char ((2*zz)-1) of temp else put CC into char ((2*zz)-1) of temp end repeat put empty into TT # sum all digits repeat with zz=1 to the number of chars of temp add char zz of temp to TT end repeat if TT mod 10 is not 0 then put "Number in error, re-enter Credit Card" number." As long as you're not going for ultra security, the kinds of tests can be about anything you can devise. The even digits totaled mod something and the odd digits totaled mod something. Every third digit totaled has to end in 7. And so on. The scheme for Revolution uses your name, etc. Some charToNum stuff going on there. It could be as simple as using your name and company name to generate a number, the serial number. When entered, all must match. Nelson From drvaughan55 at mac.com Sun Jan 20 03:12:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sun Jan 20 03:12:01 2002 Subject: replacetext In-Reply-To: Message-ID: <23C7A68E-0D7D-11D6-A912-000393598038@mac.com> On Sunday, January 20, 2002, at 06:21 , Jeanne A. E. DeVoto wrote: > Does anyone else have an opinion about this? Any other ways to make it > crystal clear that a function can't be used as a complete statement, and > avoid confusing people? > > -- > Jeanne A. E. DeVoto ~ jeanne at runrev.com > http://www.runrev.com/ > Runtime Revolution Limited - Power to the Developer! Yes. Put "Function" or "Command" in large print just after the command or function title in the Transcript entry......oh, you've already done this. So, some people aren't reading it and are then complaining. Do they also expect instructions on a milk carton saying "Do not invert after opening"? I feel as entitled as anyone to ask simple questions when I'm, learning the product but if someone has actually read to the Transcript example then I consider it reasonable to assume they have first read the title and either understand the distinction between Command and Function or will ask about it without blaming the documentation. regards David From gcanyon at inspiredlogic.com Sun Jan 20 03:31:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Sun Jan 20 03:31:00 2002 Subject: Building in serial number scheme In-Reply-To: References: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> Message-ID: At 2:08 PM -0800 1/19/02, Rob Cozens wrote: >on getSerial() > tell application "Apple System Profiler" > launch > copy SerialNumber to myNumber > quit application "Apple System Profiler" > end tell > return myNumber >end getSerial Funny that quit doesn't work. On my computer, at least, this does: close window 1 Try that instead of the quit command. I started out way back when with a serial number scheme based on the user's name. I was fairly pleased with the algorithm, but I don't use serial number protection any more. If someone's curious, I'll dig it out. regards, Geoff From niklas_almesjo at yahoo.com Sun Jan 20 07:34:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Sun Jan 20 07:34:01 2002 Subject: revCopyFile in 1.1.1 In-Reply-To: <200201200559.AAA27055@www.runrev.com> Message-ID: <20020120123203.57701.qmail@web12303.mail.yahoo.com> - Great news! I sure need it. Messing with the dos prompt has never been one of my abilities. /Niklas We will include a revCopyFile command in 1.1.1 which will copy a file on any OS including the correct creator type and the resource fork, without loading the entire file into memory if it is large either. Kind regards, Kevin __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From k_major at osnabrueck.netsurf.de Sun Jan 20 07:59:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun Jan 20 07:59:01 2002 Subject: Type and Creator - Klaus Major In-Reply-To: Message-ID: <579A77C4-0DA5-11D6-9FE7-000A27B49A96@osnabrueck.netsurf.de> Bonjour Yves, > Hello, > > I've found why your function doesn't work? : > > function ye_olde_filetype el_patho > ? put the directory into old_dir > ? set the itemdel to "/" > ? put last item of el_patho into the_file > ? delete last item of el_patho > ? set the directory to el_patho > ? put the long files into all_files > ? get line(lineoffset(the_file, all_files)) of all_files > ? set the itemdel to "," > ? set the directory to old_dir > ? return last item of it > end ye_olde_filetype > > the FileName of el_patho contains a date : > DD/MM/YYYY > > so you will see what kind of strange chars are returned with : > put the long files into all_files > > That's why > otherwise the function is correct? > > thanks. > > -- > > Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be thank you for easing my mind :-) It had to be something wrong with the filename/path supplied in the function. MC reserved the "/" for its pathdelimiter (like the dafault on unix/linux/OS X). BTW: I don't think that your idea to post anything directly in french is good one ;-) Or just if you also accept replies in dutch or esperanto :-D Have a nice sunday... Klaus Major k_major at osnabrueck.netsurf.de From k_major at osnabrueck.netsurf.de Sun Jan 20 08:07:00 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun Jan 20 08:07:00 2002 Subject: copy a image/binary file on a mac - digression In-Reply-To: Message-ID: <71AE15A6-0DA6-11D6-9FE7-000A27B49A96@osnabrueck.netsurf.de> Hi David, > Well, I'm on a Mac (OS X 10.1.2) and I get the funny "?" as well. Mine > have a little mark atop them. Perhaps it is a PC mail handler in > between us. No worries. What with Yves testing my French and Klaus > calling on Latin (and happily not saying so in Deutsch) this site is > fascinatingly diverse as well as informative. > > cheers > David i am also working with OS X and see the capital s with a funny litte hat on top of it. You can turn it off if you are using the "Mail" app on OS X. Menu: Format -> Text-Coding -> Westernxxx(ISO Latin1) (Mabe the name of the menuitems differ a bit, i have a german system) Unfortunately the OS X mailapp does not have a preference for setting the textcoding. So you have to set it for every message maually everytime you display it... And it even cannot decode "AppleDouble" encoded messages, the default setting of "Outlook Express/Entourage" in OS 9.xx. But thats another story... ;-) Regards Klaus Major k_major at osnabrueck.netsurf.de From Zzyzx at Relia.Net Sun Jan 20 10:09:01 2002 From: Zzyzx at Relia.Net (Josh Dye) Date: Sun Jan 20 10:09:01 2002 Subject: Building in serial number scheme References: Message-ID: <001301c1a1c4$0f7ff2f0$7400a8c0@ws1> I couldn't figure out how to use that Syntax that you gave us. How would you use it? Button Script? What? - Josh Dye ----- Original Message ----- From: "Nelson Zink" To: Sent: Sunday, January 20, 2002 1:01 AM Subject: Re: Building in serial number scheme > Richard, > > > I'd appreciate hearing any thoughts on ways to build in serial number > > protection. > > Have the serial number met one or more tests. Credit card numbers aren't > random, they're selected (generated?) to fulfill several tests. The > following will authenticate a 16 digit credit card number such as Visa. This > is what stops someone from making up a number and using it online. > > put the CreditCardNumber into temp > repeat with zz=1 to 8 > put 2*(char ((2*zz)-1) of temp) into CC > if CC>=10 then put (cc mod 10)+1 into char ((2*zz)-1) of temp > else put CC into char ((2*zz)-1) of temp > end repeat > put empty into TT # sum all digits > repeat with zz=1 to the number of chars of temp > add char zz of temp to TT > end repeat > if TT mod 10 is not 0 then put "Number in error, re-enter Credit Card" > number." > > As long as you're not going for ultra security, the kinds of tests can be > about anything you can devise. The even digits totaled mod something and the > odd digits totaled mod something. Every third digit totaled has to end in 7. > And so on. The scheme for Revolution uses your name, etc. Some charToNum > stuff going on there. It could be as simple as using your name and company > name to generate a number, the serial number. When entered, all must match. > > Nelson > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From cowhead at ztv.ne.jp Sun Jan 20 10:30:01 2002 From: cowhead at ztv.ne.jp (mark mitchell) Date: Sun Jan 20 10:30:01 2002 Subject: Auto-sizing Text Message-ID: I'm looking for essentially the opposite of "set the height of field XXX to the formattedHeight/width". I want to keep the fields the same size, but resize the text so that it is the maximum size that still fits in a given field. The following script does work (at least most of the time) but surely there is a better way? Thanks in advance! set the textSize of field wordShower to 200 put the width of field wordShower into zaWide put the height of field wordShower into zaHigh put the textSize of field wordShower into mySize put the formattedWidth of field wordShower into thisSize if thisSize > zaWide then repeat until thisSize < zaWide subtract 10 from mySize set the textSize of field wordShower to mySize put the formattedWidth of field wordShower into thisSize end repeat end if put the formattedHeight of field wordShower into thisSize2 if thisSize2 > zaHigh then repeat until thisSize2 < zaHigh subtract 10 from mySize set the textSize of field wordShower to mySize put the formattedHeight of field wordShower into thisSize2 end repeat end if end repeat -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1243 bytes Desc: not available URL: From k_major at osnabrueck.netsurf.de Sun Jan 20 10:35:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun Jan 20 10:35:01 2002 Subject: Building in serial number scheme In-Reply-To: <001301c1a1c4$0f7ff2f0$7400a8c0@ws1> Message-ID: <03814D86-0DBB-11D6-9FE7-000A27B49A96@osnabrueck.netsurf.de> Hi Josh, >> Richard, >> >> I'd appreciate hearing any thoughts on ways to build in serial number >> protection. >> >> Have the serial number met one or more tests. Credit card numbers >> aren't >> random, they're selected (generated?) to fulfill several tests. The >> following will authenticate a 16 digit credit card number such as Visa. >> This >> is what stops someone from making up a number and using it online. >> >> put the CreditCardNumber into temp >> repeat with zz=1 to 8 >> put 2*(char ((2*zz)-1) of temp) into CC >> if CC>=10 then put (cc mod 10)+1 into char ((2*zz)-1) of temp >> else put CC into char ((2*zz)-1) of temp >> end repeat >> put empty into TT # sum all digits >> repeat with zz=1 to the number of chars of temp >> add char zz of temp to TT >> end repeat >> if TT mod 10 is not 0 then put "Number in error, re-enter Credit >> Card" >> number." >> >> > I couldn't figure out how to use that Syntax that you gave us. How > would you > use it? Button Script? What? > > > - Josh Dye c'mon... In the script where you want top check the number. Could be in a buttonscript on mouseup, but not necessarily... ;-) If you are really clueless: Somenone enters a creditcard-number in a field and hits the button "Validate or die(dye :-)...". -> put fld "The creditcard number" into temp... That's where the script comes up. Regards Klaus Major k_major at osnabrueck.netsurf.de From evans at evans.pgh.pa.us Sun Jan 20 11:41:01 2002 From: evans at evans.pgh.pa.us (Arthur Evans Jr) Date: Sun Jan 20 11:41:01 2002 Subject: replacetext In-Reply-To: References: Message-ID: At 23:21 -0800 2002.01.19, Jeanne A. E. DeVoto wrote: >I've thought about doing this, especially since the problem has cropped up >on the list twice now. The problem with it is that embedding the function >in a complete statement makes it more complicated - especially when the >function call itself is complex, I'm concerned about it causing confusion. > >Of course, I could just stick "get" in front of all the examples, but that >doesn't always make a statement you'd actually use in a real-world handler. >And I'm a little concerned about new developers getting the impression that >"get" is the only way to use a function, as opposed to using it in a >conditional, etc. Good point. >Does anyone else have an opinion about this? Any other ways to make it >crystal clear that a function can't be used as a complete statement, and >avoid confusing people? Sure: put replaceText((line n of textToParse),"red","blue") into ... That shows replaceText being used a function and doesn't clutter up your example with where the returned value is placed. Art Evans From rcozens at pon.net Sun Jan 20 12:09:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sun Jan 20 12:09:01 2002 Subject: Building in serial number scheme In-Reply-To: References: <44488403-0D12-11D6-9FD6-000A27B49A96@osnabrueck.netsurf.de> Message-ID: >Funny that quit doesn't work. On my computer, at least, this does: > >close window 1 > >Try that instead of the quit command. Geoff Canyon and (offlist) Bill Vlahos motivated me to play around with the AppleScript. This retrieves the serial # AND quits ASP: on getSerial() tell application "Apple System Profiler" run copy SerialNumber to myNumber close window 1 end tell return myNumber end getSerial I presume the difference has something to do with the use of "run" instead of "launch." Rob Cozens CCW, Serendipity Software Company "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) From eijkhout at cs.utk.edu Sun Jan 20 12:40:00 2002 From: eijkhout at cs.utk.edu (Victor Eijkhout) Date: Sun Jan 20 12:40:00 2002 Subject: "remove from memory" doesn't Message-ID: I have a stack in file "foo.rev". Revolution is open; I save the stack and do "close and remove from memory". In the finder I copy foo.rev => foo copy.rev; I drag this stack onto Revolution. Now if I click a button for editing I get a message "A stack with the same name as the one you are trying to load is already open" What the? I closed it *and removed from memory"! Furthermore, it goes on "Before loading foo.rev what do you want to do with stack foo copy.rev?" I dont' get that. If I'm loading anything, it's foo copy, and foo should be one to be purged. Yeah, I guess I can close Rev everytime I want to operate on a copy, but I'd have more peace of mind if I understood what was going on here. -- Victor Eijkhout tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/ From cowhead at ztv.ne.jp Sun Jan 20 14:11:01 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Sun Jan 20 14:11:01 2002 Subject: Saving Standalones and files Message-ID: <3C4B1640.51F38061@ztv.ne.jp> I finally got this and thought I would share it with the list. If you must save changes to your standalone, make the parts that are saved 'substacks' of some mainstack (which can just be a splashscreen and nothing more). This much has been mentioned on this list before. But when you build the standalone, you must click the box "save substacks in separate folder". If you don't do this, the changes made during running of the app are not permanently saved. Also, in metacard, if you had the engine on the computer, you did not have to make a standalone. Rather, you could just click directly on the file (without first opening metacard) and it would usually run pretty well, including saving changes if you had that scripted in (e.g. on closeStack, save me). However, Revolution seems to require that you use the Distribution builder, and actually build a distribution as a "File" (rather than the standalone option). If you do this, scripted saving will work, and the "ask" dialogue will also function etc. I don't know what you would call this 'file'. It seems to be a 'semi- standalone'. It has the advantage that such stacks seem to function well on the Mac, whether opened with OS X or OS classic (although the appearance is different in each environment). So, for example, you can make one 'semi-standalone' and then share this on a LAN, even if some of those computers are running OSX and others classic. There is one big BUT however, and that is externals. The externals are specific to the OS. If you try to call a 'classic' extrernal under OS X, it will crash the program. So if you are using externals, you will still have to make two different stacks for each environment (unless there is a clever work-around that I don't know about.) Kanpai! mark mitchell japan From usher at iqcisp.com Sun Jan 20 14:24:01 2002 From: usher at iqcisp.com (Philip Usher) Date: Sun Jan 20 14:24:01 2002 Subject: the Rev community In-Reply-To: <200201192002.PAA17075@www.runrev.com> Message-ID: on 1/19/02 2:02 PM, Durand wrote: >? Is the > rev community full of french people?) the rev community is full of cool people on the cutting edge :) -- Philip From cowhead at ztv.ne.jp Sun Jan 20 14:43:00 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Sun Jan 20 14:43:00 2002 Subject: Multi-linugal interface Message-ID: <3C4B1DD4.C77F35EA@ztv.ne.jp> Terry V wrote: Who has bright ideas on how to handle multilingual projects? I don't have any bright ideas, just a warning. If you plan to include Japanese, unlike Hypercard, Rev and Meta just hate those 2 byte characters. Here's the (kinda) work-around: Normally you would set a field to a Japanese font, and then type happily away into that field. Metacard will sometimes let you get away with this (but don't try to edit what you wrote!) but Rev will not. Instead, set the font to a normal English type font, then (on the Mac, anyway) you can type Japanese using the special separate Japanese input (called kotoeri on the Mac...and this is now an optional install with OSX). When you hit return, this Japanese will be entered into the english field, and will appear as gobbledy goop. Now, using a script, transfer this goop to another field whose font is set to a Japanese font and you will be able to read it just fine. But again, don't try to edit it! good luck, mark mitchell japan From yvescoppe at skynet.be Sun Jan 20 15:44:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 20 15:44:01 2002 Subject: database and standalone Message-ID: Hello, I have a stack with many filled flds full of data I've built the stack in a standalone Now I'd like to change the program. How can I modify (update) my standalone without loosing the data ? I have worked on the scripts in a .rev file but how can I recover the data from the standalone ? Thanks. -- From drvaughan55 at mac.com Sun Jan 20 21:26:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sun Jan 20 21:26:01 2002 Subject: Read serial data? Message-ID: Is it possible to read serial data on a Mac with USB ports? In the Transcript dictionary it refers only to reading Modem and Printer ports which are the old Serial/LocalTalk ports, and I am wondering if these commands will transpose to reading from the USB or if there is another command or technique. thanks David Vaughan From terry at discovery.nl Sun Jan 20 22:54:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Sun Jan 20 22:54:01 2002 Subject: "remove from memory" doesn't In-Reply-To: Message-ID: > I have a stack in file "foo.rev". Revolution is open; I save the > stack and do "close and remove from memory". > > In the finder I copy foo.rev => foo copy.rev; I drag this stack onto > Revolution. > > Now if I click a button for editing I get a message "A stack with the > same name as the one you are trying to load is already open" What really is happening here is that the "name" of the file is not the name of the stack. So both 'foo.rev' and 'foo copy.rev' are probably called "foo" in RR. That confuses both RR and us humans. The solution is that you purge the stack in the application manager before opening the copy. Groetjes, Terry From drvaughan55 at mac.com Mon Jan 21 00:34:00 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon Jan 21 00:34:00 2002 Subject: "remove from memory" doesn't In-Reply-To: Message-ID: <29BA9C29-0E30-11D6-A912-000393598038@mac.com> On Monday, January 21, 2002, at 02:50 , Terry Vogelaar wrote: > The solution is that you purge the stack in the application manager > before > opening the copy Sorry, Terry, but can you explicate a little further please? I did not see "Application Manager" or "Purge" in the Rev UI nor in the Transcript dictionary so I am not sure to what you are referring. thanks David From terry at discovery.nl Mon Jan 21 01:04:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Mon Jan 21 01:04:01 2002 Subject: "remove from memory" doesn't In-Reply-To: <29BA9C29-0E30-11D6-A912-000393598038@mac.com> Message-ID: >> The solution is that you purge the stack in the application manager >> before >> opening the copy > > Sorry, Terry, but can you explicate a little further please? I did not > see "Application Manager" or "Purge" in the Rev UI nor in the Transcript > dictionary so I am not sure to what you are referring. My fault. "Application overview" of course. Terry From sjoerdoptland at mac.com Mon Jan 21 01:08:01 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Mon Jan 21 01:08:01 2002 Subject: Read serial data? In-Reply-To: Message-ID: David Vaughan wrote/ schreef: > Is it possible to read serial data on a Mac with USB ports? In the > Transcript dictionary it refers only to reading Modem and Printer ports > which are the old Serial/LocalTalk ports, and I am wondering if these > commands will transpose to reading from the USB or if there is another > command or technique. At present, this is not possible with RR itself and I don't know about some external for this. > thanks > David Vaughan Regards, / Groeten, Sjoerd From drvaughan55 at mac.com Mon Jan 21 01:47:00 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon Jan 21 01:47:00 2002 Subject: Read serial data? In-Reply-To: Message-ID: <54F7CDBE-0E3A-11D6-906F-000393598038@mac.com> Sjoerd and everyone Looking back through previous posts I found a reference where someone wanted to control X-10 devices from their Mac. This led me to http://www.seracsoftware.com/ where they offer shareware scripting additions for Applescript for serial port access. Whether it works properly with USB, I don't yet know but I will let the list know if it does (give me a week). cheers David On Monday, January 21, 2002, at 05:04 , Sjoerd Op 't Land wrote: > David Vaughan wrote/ schreef: > >> Is it possible to read serial data on a Mac with USB ports? In the >> Transcript dictionary it refers only to reading Modem and Printer ports >> which are the old Serial/LocalTalk ports, and I am wondering if these >> commands will transpose to reading from the USB or if there is another >> command or technique. > At present, this is not possible with RR itself and I don't know about > some > external for this. > >> thanks >> David Vaughan > Regards, / Groeten, > Sjoerd > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kmajor at metascape.org Mon Jan 21 03:01:01 2002 From: kmajor at metascape.org (Klaus) Date: Mon Jan 21 03:01:01 2002 Subject: Multilingual interface In-Reply-To: Message-ID: Dag Terry, > Hi all, > > Who has bright ideas on how to handle multilingual projects? Creating two > (or more) separate stacks gives a lot of extra work; especially during > development. > > I was thinking about some kind of a language-preference that gives all the > buttons another label and give some fields another content. > > The main problem is that I don't understand how I can change the content of > a menu. There is something about dynamically changing a menu in the Rev > Encyclopedia: About menus and the menu bar. I have to put a mousedown > handler in the group. But what should it contain? Are there any examples of > it? i can just give some general hints on how to create multilingual projects. A good way is to store all the strings in text-files and reading them in e.g. after the user chose his favoutie language. Won't take too long, it's MetaCard, you know? ;-) Takes some time for planning the whole thing, but lateron, you just have to replace the textfiles or add some new languages. If you do not have any idea on how to achieve this, drop a line :-) > Also, would I need to extend the switch stucture like: > > on menuPick pWhich > switch pWhich > case "Save" > case "Bewaar" -- Dutch for 'Save' > saveStuff > break > case "Quit" > case "Stop" -- Dutch; well that doesn't have to be explained > quitStuff > break > end switch > end menuPick Here the "menuhistory" could be a solution. It returns the number of the menu picked !!! So if you know that (what language ever) the menuitem "save" (of "Bewaar", als jij daarvan houdt ;-) is the first item, you could use: on menupick switch the menuhistory of me case 1 ##your save stuff here break .... I think you get the picture... This way the menus could even be kisuaheli and they will work nevertheless. > Finally, can I discover what language the OS is, so I can set the standard > language preference setting of my stack to it? Jammer, no idea ;-) > Terry Greetings/groetjes Klaus Major MetaScape GmbH From kevin at runrev.com Mon Jan 21 03:56:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Mon Jan 21 03:56:01 2002 Subject: Printing field text In-Reply-To: Message-ID: On 19/1/02 11:10 am, yves COPPE wrote: > But I find that the print possibilities of revolution are limited. > I used "PrintReport" XCMD in hypercard with much more formating possibilities. > I hope it comes soon?! Its more that you have to script them than that they are that limited. Watch out for better GUI-based report printing soon... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From Marian.Petrides at sm14.texas.rr.com Mon Jan 21 04:27:01 2002 From: Marian.Petrides at sm14.texas.rr.com (Marian.Petrides at sm14.texas.rr.com) Date: Mon Jan 21 04:27:01 2002 Subject: "remove from memory" doesn't In-Reply-To: Message-ID: <695E9B0E-0DD4-11D6-B8AA-000A27D91A2A@earthlink.net> I have experienced the same thing numerous times and never figured out what the underlying problem is. And I agree it is a major source of discomfort to me not understanding. Marian On Sunday, January 20, 2002, at 11:37 AM, Victor Eijkhout wrote: > I have a stack in file "foo.rev". Revolution is open; I save the stack > and do "close and remove from memory". > > In the finder I copy foo.rev => foo copy.rev; I drag this stack onto > Revolution. > > Now if I click a button for editing I get a message "A stack with the > same name as the one you are trying to load is already open" > > What the? I closed it *and removed from memory"! > > Furthermore, it goes on "Before loading foo.rev what do you want to do > with stack foo copy.rev?" > > I dont' get that. If I'm loading anything, it's foo copy, and foo > should be one to be purged. > > Yeah, I guess I can close Rev everytime I want to operate on a copy, > but I'd have more peace of mind if I understood what was going on here. > -- Victor Eijkhout > tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) > http://www.cs.utk.edu/~eijkhout/ > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > > Marian Petrides, M.D. mpetrides at earthlink.net mpetrides at pathology.umsmed.edu From yvescoppe at skynet.be Mon Jan 21 04:29:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Mon Jan 21 04:29:01 2002 Subject: Printing field text In-Reply-To: References: Message-ID: > >Its more that you have to script them than that they are that limited. >Watch out for better GUI-based report printing soon... > >Kevin > > What means "GUI-based" ? I don't understand "GUI" Thanks -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From kmajor at metascape.org Mon Jan 21 05:02:01 2002 From: kmajor at metascape.org (Klaus) Date: Mon Jan 21 05:02:01 2002 Subject: Printing field text In-Reply-To: Message-ID: Bonjour Yves, >> >> Its more that you have to script them than that they are that limited. >> Watch out for better GUI-based report printing soon... >> >> Kevin >> >> > > > What means "GUI-based" ? > > I don't understand "GUI" > > Thanks GUI stands for "graphical user interface". Sometimes misspelled as "graphical user in-yer-face" ;-) Regards Klaus Major MetaScape GmbH From yvescoppe at skynet.be Mon Jan 21 05:12:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Mon Jan 21 05:12:00 2002 Subject: sort dateTime Message-ID: Hello, Here a list of date (european format). I've asked : sort lines of fld "whatever" dateTime that's the result !! 25/01/2001 19/04/2001 15/05/2001 13/08/2002 27/07/2001 02/03/2001 05/01/2001 12/02/2001 12/06/2001 01/08/2002 04/05/2002 12/05/2002 11/05/2003 What is the solution ?? -- From niklas_almesjo at yahoo.com Mon Jan 21 07:02:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesjö) Date: Mon Jan 21 07:02:01 2002 Subject: Read serial data + Kagi? In-Reply-To: <200201211005.FAA22012@www.runrev.com> Message-ID: <20020121115940.92683.qmail@web12304.mail.yahoo.com> On a related note, has anyone sold shareware through Kagi? if so: - Does it work well? - Have you used pregenerated codes? thanks, /Niklas __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From wow at together.net Mon Jan 21 07:42:01 2002 From: wow at together.net (Richard D. Miller) Date: Mon Jan 21 07:42:01 2002 Subject: Font menu In-Reply-To: Message-ID: Do we really have to writing the coding to include a Font menu in our program? Anyone done that yet? Sure would appreciate the best coding for that... Thanks. Richard Miller From wow at together.net Mon Jan 21 08:05:00 2002 From: wow at together.net (Richard D. Miller) Date: Mon Jan 21 08:05:00 2002 Subject: Font menu In-Reply-To: Message-ID: Never mind that last request. I just went ahead and did it. Certainly not very difficult. But it seems like it would be helpful to have some of the basic menus already coded...maybe available inside the Menu Manager. It's still taking me time to think of menus as just buttons! It's an interesting approach, just different from other programs. Richard > Do we really have to writing the coding to include a Font menu in our > program? Anyone done that yet? Sure would appreciate the best coding for > that... > > Thanks. > Richard Miller > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From ludovic.thebault at laposte.net Mon Jan 21 08:11:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Mon Jan 21 08:11:01 2002 Subject: Font menu In-Reply-To: References: Message-ID: <20020121140756.A81E8%00000000@laposte.net> Richard D. Miller wrote: >Do we really have to writing the coding to include a Font menu in our >program? Anyone done that yet? Sure would appreciate the best coding for >that... just : put the fontnames into theMenu From cowhead at ztv.ne.jp Mon Jan 21 08:17:01 2002 From: cowhead at ztv.ne.jp (cowhead) Date: Mon Jan 21 08:17:01 2002 Subject: Database and standalone Message-ID: <3C4C14D8.F6B646FA@ztv.ne.jp> Yves wrote: >>>>>>>>>>>>> I have a stack with many filled flds full of data I've built the stack in a standalone Now I'd like to change the program. How can I modify (update) my standalone without loosing the data ? I have worked on the scripts in a .rev file but how can I recover the data from the standalone ? >>>>>>>>>>>>>>>>>>>>>> When you built the standalone, did you choose the option "save substacks in separate data folder"? If you want to save the data, you have to do this anyway, as far as I can tell. Your standalone main stack should/could be nothing more than a title (and of course a menu/buttons to get at the substacks). The substacks are where you want the meat/data to be kept. If these are saved in a separate folder, they remain stacks and your data can be saved by your standalone while it is running. Subsequently, Revolution can still open and play with them. Just choose "open stack" , go into the 'data' folder of your standalone, then the 'components' and the substacks should appear. Good luck. mark mitchell japan From wow at together.net Mon Jan 21 08:28:01 2002 From: wow at together.net (Richard D. Miller) Date: Mon Jan 21 08:28:01 2002 Subject: Font menu In-Reply-To: <20020121140756.A81E8%00000000@laposte.net> Message-ID: Thanks, but I wish it were just that simple. It's text font, size, style, and alignment...and then creating the appropriate buttons to accommodate those four under one menu. Takes a bit of time that is better spent elsewhere... So be it. Richard > Richard D. Miller wrote: >> Do we really have to writing the coding to include a Font menu in our >> program? Anyone done that yet? Sure would appreciate the best coding for >> that... > > > just : put the fontnames into theMenu From wow at together.net Mon Jan 21 10:16:00 2002 From: wow at together.net (Richard D. Miller) Date: Mon Jan 21 10:16:00 2002 Subject: Recommended Windows location for a text file In-Reply-To: <3C4C14D8.F6B646FA@ztv.ne.jp> Message-ID: Where is the recommended location to place a very small "preferences" text file on a Windows box? I'd prefer not to ask the user about it. It contains only their CD drive letter and a serial number. Richard Miller From tsimmons at employmentlawadvisors.com Mon Jan 21 10:31:01 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Mon Jan 21 10:31:01 2002 Subject: sort dateTime References: Message-ID: <008c01c1a290$1eee2b40$e9aa343f@elanet> Yves, Did you want those dates in a different order, or is that the order you were looking for? Tommy Simmons Employment Law Advisory Network, Inc. www.employmentlawadvisors.com ----- Original Message ----- From: yves COPPE To: Sent: Monday, January 21, 2002 4:10 AM Subject: sort dateTime > Hello, > > Here a list of date (european format). > I've asked : > > sort lines of fld "whatever" dateTime > that's the result !! > > 25/01/2001 > 19/04/2001 > 15/05/2001 > 13/08/2002 > 27/07/2001 > 02/03/2001 > 05/01/2001 > 12/02/2001 > 12/06/2001 > 01/08/2002 > 04/05/2002 > 12/05/2002 > 11/05/2003 > > What is the solution ?? > -- > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From kmajor at metascape.org Mon Jan 21 10:37:01 2002 From: kmajor at metascape.org (Klaus) Date: Mon Jan 21 10:37:01 2002 Subject: Recommended Windows location for a text file In-Reply-To: Message-ID: Hi Richard, > Where is the recommended location to place a very small "preferences" text > file on a Windows box? I'd prefer not to ask the user about it. It contains > only their CD drive letter and a serial number. > > Richard Miller i would suggest some subfolder of the windows folder. e.g SYSTEM, there are about 1000 to 2000 files, so one more or less won't make the difference :-) -> specialfolderpath(system) & "SYSTEM" And it is unlikely that average pc-user will ever take a look in that folder. (It is frightening for a power-user, too ;-) Hint: Give your file a strange name like "iso_443_ad_tz.ini"... Know what i mean ? ;-) BTW: to be used in MC, text-files do not have to have the extension .txt !!! Take .ini or .prf. Might also prevent users from doubleclicking that file. Hope that helps. Regards Klaus Major MetaScape GmbH From Radical at electricmtn.com Mon Jan 21 11:01:00 2002 From: Radical at electricmtn.com (Tom Raddemann) Date: Mon Jan 21 11:01:00 2002 Subject: FileMaker replacement? Message-ID: Do any of you have experience using Revolution to replace FileMaker? I'm a (frustrated) FileMaker developer of 8 years. I look for something from time to time which can replace FileMaker. I have looked ant other database tools and find the learning curve too steep for my tastes (and smartness quotient). Here is what I'd need Revolution to do: Run in a multi-user environment. Access a relational database engine. Print reports. Have some type of password security. I'd be nice for the data and structure to be separate files for easy upgrading. Thanks in advance for any feedback on my quest. Tom Raddemann From wmb at internettrainer.com Mon Jan 21 11:09:01 2002 From: wmb at internettrainer.com (Wolfgang M. Bereuter) Date: Mon Jan 21 11:09:01 2002 Subject: use-revolution digest, Vol 1 #130 - 17 msgs In-Reply-To: <200201211005.FAA22012@www.runrev.com> Message-ID: am 21.01.2002 11:05 Uhr schrieb use-revolution-request at lists.runrev.com unter use-revolution-request at lists.runrev.com: > What means "GUI-based" ? > > I don't understand "GUI" > Graphical User Interface regards Wolfgang M. Bereuter Learn easy with trainingsmaps and outliner INTERNETTRAINER Wolfgang M. Bereuter Edelhofg. 17/11, A-1180 Wien, Austria ............................... http://www.internettrainer.com wmb at internettrainer.com ............................... Tel: ++43/1/ 961 0418 Fax: ++43/1/ 479 2539 From cyberscope at home.com Mon Jan 21 11:37:01 2002 From: cyberscope at home.com (Gene Kennedy) Date: Mon Jan 21 11:37:01 2002 Subject: Serial Ports and RR References: <200201211005.FAA22012@www.runrev.com> Message-ID: <3C4C43A2.D72E73DC@home.com> Hi David, Yes it is possible to use RR to control/communicate with devices over serial porst using a USB-only Mac. You need to buy a KeySpan USB to Serial adapter (or some other competing device). If you buy a new one you can configure the adapter to emulate both the "Printer" and Modem" ports which are then accessable through RR. If you buy an older version of the adapter (through ebay or some such outlet) you can will be able to access the printer port but probably not the modem port. KeySpan's drivers were updated along the way to provide modem port emulation. I have not tried an adapter with the X-10 software yet but, I do have a number of RR applications running 24/7 using serial communications via KeySpan adapters. Best regards, Gene Kennedy > Message: 7 > Date: Mon, 21 Jan 2002 13:24:10 +1100 > Subject: Read serial data? > From: David Vaughan > To: use-revolution at lists.runrev.com > Reply-To: use-revolution at lists.runrev.com > > Is it possible to read serial data on a Mac with USB ports? In the > Transcript dictionary it refers only to reading Modem and Printer ports > which are the old Serial/LocalTalk ports, and I am wondering if these > commands will transpose to reading from the USB or if there is another > command or technique. > > thanks > David Vaughan From eijkhout at cs.utk.edu Mon Jan 21 12:37:01 2002 From: eijkhout at cs.utk.edu (Victor Eijkhout) Date: Mon Jan 21 12:37:01 2002 Subject: "remove from memory" doesn't Message-ID: > > I have a stack in file "foo.rev". Revolution is open; I save the > > stack and do "close and remove from memory". >> >> In the finder I copy foo.rev => foo copy.rev; I drag this stack onto >> Revolution. >> >> Now if I click a button for editing I get a message "A stack with the >> same name as the one you are trying to load is already open" > >What really is happening here is that the "name" of the file is not the name >of the stack. So both 'foo.rev' and 'foo copy.rev' are probably called "foo" >in RR. That confuses both RR and us humans. > >The solution is that you purge the stack in the application manager before >opening the copy. Ok. But what on earth does "close and purge from memory" do? It sounds pretty definite to me. It sounds like it would close it and purge it from memory. -- Victor Eijkhout tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) http://www.cs.utk.edu/~eijkhout/ From gcanyon at inspiredlogic.com Mon Jan 21 13:01:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 21 13:01:01 2002 Subject: Read serial data + Kagi? In-Reply-To: <20020121115940.92683.qmail@web12304.mail.yahoo.com> References: <20020121115940.92683.qmail@web12304.mail.yahoo.com> Message-ID: At 3:59 AM -0800 1/21/02, Niklas "Almesj?" wrote: >On a related note, has anyone sold shareware through Kagi? >if so: >- Does it work well? >- Have you used pregenerated codes? >thanks, >/Niklas I do. They were a little rough in the beginning, but now that everything's set up, it's been fine for the past year. I haven't used unlock codes with them, as I have to ship a cd to everyone who buys the software. regards, Geoff From zink at newmex.com Mon Jan 21 13:20:01 2002 From: zink at newmex.com (Nelson Zink) Date: Mon Jan 21 13:20:01 2002 Subject: sort dateTime Message-ID: Yves, >sort lines of fld "whatever" dateTime >that's the result !! If all else fails, covert to seconds, sort, covert back to date. Nelson From yvescoppe at skynet.be Mon Jan 21 13:32:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Mon Jan 21 13:32:00 2002 Subject: sort dateTime In-Reply-To: <008c01c1a290$1eee2b40$e9aa343f@elanet> References: <008c01c1a290$1eee2b40$e9aa343f@elanet> Message-ID: >Yves, >Did you want those dates in a different order, or is that the order you were >looking for? >Tommy Simmons >Employment Law Advisory Network, Inc. >www.employmentlawadvisors.com I'd like the dates are sorted in the good order that's the result the command gives but it isn't the order I want (obviously) >----- Original Message ----- >From: yves COPPE >To: >Sent: Monday, January 21, 2002 4:10 AM >Subject: sort dateTime > > >> Hello, >> >> Here a list of date (european format). >> I've asked : >> >> sort lines of fld "whatever" dateTime >> that's the result !! >> >> 25/01/2001 >> 19/04/2001 >> 15/05/2001 >> 13/08/2002 >> 27/07/2001 >> 02/03/2001 >> 05/01/2001 >> 12/02/2001 >> 12/06/2001 >> 01/08/2002 >> 04/05/2002 >> 12/05/2002 >> 11/05/2003 >> >> What is the solution ?? >> -- >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution -- From kevin at runrev.com Mon Jan 21 13:45:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Mon Jan 21 13:45:01 2002 Subject: How to Window Standalone In-Reply-To: Message-ID: On 20/1/02 12:52 am, John Cuccio wrote: > Mac OS 8.1 rev 1.1 > > I tried to build a windows standalone. It said can not find engine. > > What file do I need & where can I get them. To build a windows standalone on > Mac. It should download the engine automatically. Does it not? Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Mon Jan 21 13:45:10 2002 From: kevin at runrev.com (Kevin Miller) Date: Mon Jan 21 13:45:10 2002 Subject: checking if a path is relative? In-Reply-To: <20020119164123.27367.qmail@web12304.mail.yahoo.com> Message-ID: On 19/1/02 11:41 am, Almesj? Niklas wrote: > Is there any way to check if a path is relative or > absolute? On windows I think an absolute path always > contain a ":", and a relative can not contain ":". But on > Mac.. an absolute path does not contain ":". Anything else > you can check for? > any ideas appreciated, You're right about Windows, and on the Mac and other platforms (not Windows) check for a leading slash. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From katir at hindu.org Mon Jan 21 14:02:01 2002 From: katir at hindu.org (Sivakatirswami) Date: Mon Jan 21 14:02:01 2002 Subject: Font menu In-Reply-To: <200201211706.MAA29343@www.runrev.com> Message-ID: Richard: this may get you part way there: "hack" the REV UI. Go to preferences check "Revolution Stack appear in Stack Lists" Then go to the application overview, click on "revMenuBar.rev" then on the card "revmenubar" then you will see among the controls revolution's own text tools menu button... grab that (click and get the rev text menu button properties up... then copy out the button contents and script to some note pad and paste to your own button later) and rework for your needs. i.e. You probably already know this, but for newbies: another super value of Rev is that it's interface comprises a massive (phenomenal?!) "tool box/scripting examples" resource for the developer. > Thanks, but I wish it were just that simple. It's text font, size, style, > and alignment...and then creating the appropriate buttons to accommodate > those four under one menu. Takes a bit of time that is better spent > elsewhere... So be it. > > Richard > >> Richard D. Miller wrote: >>> Do we really have to writing the coding to include a Font menu in our >>> program? Anyone done that yet? Sure would appreciate the best coding for >>> that... Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From tsimmons at employmentlawadvisors.com Mon Jan 21 14:23:01 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Mon Jan 21 14:23:01 2002 Subject: sort dateTime References: <008c01c1a290$1eee2b40$e9aa343f@elanet> Message-ID: <014901c1a2b0$9400aaa0$e9aa343f@elanet> Yves, I'm sorry - I misread your dates the first time - that's what I get for trying to do an all-nighter... :-( Tommy Simmons Employment Law Advisory Network, Inc. www.employmentlawadvisors.com ----- Original Message ----- From: yves COPPE To: Sent: Monday, January 21, 2002 10:01 AM Subject: Re: sort dateTime > >Yves, > >Did you want those dates in a different order, or is that the order you were > >looking for? > >Tommy Simmons > >Employment Law Advisory Network, Inc. > >www.employmentlawadvisors.com > > > I'd like the dates are sorted in the good order > that's the result the command gives but it isn't the order I want (obviously) > > >----- Original Message ----- > >From: yves COPPE > >To: > >Sent: Monday, January 21, 2002 4:10 AM > >Subject: sort dateTime > > > >> Hello, > >> > >> Here a list of date (european format). > >> I've asked : > >> > >> sort lines of fld "whatever" dateTime > >> that's the result !! > >> > >> 25/01/2001 > >> 19/04/2001 > >> 15/05/2001 > >> 13/08/2002 > >> 27/07/2001 > >> 02/03/2001 > >> 05/01/2001 > >> 12/02/2001 > >> 12/06/2001 > >> 01/08/2002 > >> 04/05/2002 > >> 12/05/2002 > >> 11/05/2003 > >> > >> What is the solution ?? From katir at hindu.org Mon Jan 21 16:26:00 2002 From: katir at hindu.org (Sivakatirswami) Date: Mon Jan 21 16:26:00 2002 Subject: Global Names sans Rev Globals? In-Reply-To: <200201211003.FAA21823@www.runrev.com> Message-ID: when in development you query the message box put the globalNames it returns All of revs globals... how can we contrain this to return only the globals of the stack we are creating/working on? Sivakatirswami From drvaughan55 at mac.com Mon Jan 21 16:42:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon Jan 21 16:42:01 2002 Subject: Serial Ports and RR In-Reply-To: <3C4C43A2.D72E73DC@home.com> Message-ID: <7592CF8E-0EB7-11D6-94EA-000393598038@mac.com> Gene Thanks for that. So far I have failed to get the Script Editor to compile and use even the sample scripts provided with the Serac additions but then I am not an Applescript user anyway. I was sold a Taiwanese thingy as a functional equivalent of the Keyspan. It is recognised by the system profiler and I should find out today if it works under OS X. If I can capture data, as I hope, using ZTerm then I will try using Rev accessing a "modem" port. In case of idle interest, my application is logging charge/discharge data from Schulze and Orbit NiCd/NiMH/LiIon fast chargers as used for electric flight and 1/10th model car racing. Their data ports use only TxD, RxD and Gnd at 9600b/s so the interface is uncomplicated once I get the drivers right. The factory-supplied apps are fairly basic and run only under Windows, whereas I want to examine multiple data sets in Data Desk, to compare charging rates and methods as well as the batteries themselves. regards David On Tuesday, January 22, 2002, at 03:36 , Gene Kennedy wrote: > Hi David, > > Yes it is possible to use RR to control/communicate with devices over > serial porst > using a USB-only Mac. You need to buy a KeySpan USB to Serial adapter > (or some > other competing device). If you buy a new one you can configure the > adapter to > emulate both the "Printer" and Modem" ports which are then accessable > through RR. > If you buy an older version of the adapter (through ebay or some such > outlet) you > can will be able to access the printer port but probably not the modem > port. > KeySpan's drivers were updated along the way to provide modem port > emulation. I > have not tried an adapter with the X-10 software yet but, I do have a > number of RR > applications running 24/7 using serial communications via KeySpan > adapters. > > Best regards, > Gene Kennedy > > > >> Message: 7 >> Date: Mon, 21 Jan 2002 13:24:10 +1100 >> Subject: Read serial data? >> From: David Vaughan >> To: use-revolution at lists.runrev.com >> Reply-To: use-revolution at lists.runrev.com >> >> Is it possible to read serial data on a Mac with USB ports? In the >> Transcript dictionary it refers only to reading Modem and Printer ports >> which are the old Serial/LocalTalk ports, and I am wondering if these >> commands will transpose to reading from the USB or if there is another >> command or technique. >> >> thanks >> David Vaughan > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From michaell at unimelb.edu.au Mon Jan 21 17:53:01 2002 From: michaell at unimelb.edu.au (Michael J. Lew) Date: Mon Jan 21 17:53:01 2002 Subject: messages to buttons when the mouse is already down Message-ID: I would like to track the movement of the mouse through an array of buttons by hilighting each button that the mouse (button already down) passes over. However, the mouseEnter, mouseMove, mouseWithin messages are only sent to the first button because that button receives the mouseDown event and is the target. Similarly the mouseControl function (yes, it took me a couple of tries to notice that it was a function and not a message!) only returns the target. How can I get the other buttons to hilight without requiring the user to click each individually? -- Michael J. Lew Senior Lecturer Department of Pharmacology The University of Melbourne Parkville 3010 Victoria Australia Phone +613 8344 8304 ** New email address: michaell at unimelb.edu.au ** From tsj at unimelb.edu.au Mon Jan 21 18:06:01 2002 From: tsj at unimelb.edu.au (Terry Judd) Date: Mon Jan 21 18:06:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: References: Message-ID: >I would like to track the movement of the mouse through an array of >buttons by hilighting each button that the mouse (button already >down) passes over. However, the mouseEnter, mouseMove, mouseWithin >messages are only sent to the first button because that button >receives the mouseDown event and is the target. Similarly the >mouseControl function (yes, it took me a couple of tries to notice >that it was a function and not a message!) only returns the target. > >How can I get the other buttons to hilight without requiring the >user to click each individually? How about using an idle handler and checking whether the cursor is within the rect of the individual buttons - or better still convert the mouseloc to an integer reflecting a button position in the array - and then set the hilite of the target button (and turn off the hilite of any previous target). Terry... >-- >Michael J. Lew > >Senior Lecturer >Department of Pharmacology >The University of Melbourne >Parkville 3010 >Victoria >Australia > >Phone +613 8344 8304 > >** >New email address: michaell at unimelb.edu.au >** >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution -- ___________________________________________________________________________ Dr Terry Judd Lecturer in Instructional Design / Multimedia Developer Biomedical Multimedia Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne Email: t.judd at bmu.unimelb.edu.au Phone: 03 9344 0187 Fax: 03 9344 4998 ___________________________________________________________________________ From wow at together.net Mon Jan 21 18:28:01 2002 From: wow at together.net (wow at together.net) Date: Mon Jan 21 18:28:01 2002 Subject: Hiding data Message-ID: I'd appreciate suggestions on how to hide a data file. I've got a 7 mb primary data file (1650 rows and 130 columns) that's read into memory at startup. I'd like to make it more difficult for prying users to get at that data. Right now it's just sitting on the CD. I can't think of any ways to put it into a Rev stack, though that would be a fine solution if there's a reasonable way of doing it. Any creative solutions? It has to work on Windows and Mac. Thanks. Richard Miller -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From scott at tactilemedia.com Mon Jan 21 18:29:00 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Mon Jan 21 18:29:00 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: <57EEE63E-0EC6-11D6-B204-0003934902A2@tactilemedia.com> On Monday, January 21, 2002, at 02:50 PM, Michael J. Lew wrote: > I would like to track the movement of the mouse through an array of > buttons by hilighting each button that the mouse (button already down) > passes over. However, the mouseEnter, mouseMove, mouseWithin messages > are only sent to the first button because that button receives the > mouseDown event and is the target. Similarly the mouseControl function > (yes, it took me a couple of tries to notice that it was a function and > not a message!) only returns the target. Not sure exactly what your difficulty is here. The mouseEnter and mouseLeave messages should be enough to do what you want. If you know the names of all the buttons you want to respond and they're unique, you could do something like the following: First, establish a custom property stack to store the names of all your buttons: set the uTrackButtonNames of this stack to "buttonName1, buttonName2, buttonName3" etc. Then place the following in the stack script: on mouseEnter if word 1 of the name of the target is not "button" then exit mouseEnter if short name of the target is in the uTrackButtonNames of this stack then \ set the hilite of the target to true end mouseEnter on mouseLeave if word 1 of the name of the target is not "button" then exit mouseLeave if short name of the target is in the uTrackButtonNames of this stack then \ set the hilite of the target to false end mouseLeave These handlers will only respond to button mouse events and even then only when the button names are part of the master name list stored in the custom property. Also, if you want to update which buttons respond and which don't, simply update the master list. Regards, Scott Rossi Creative Director, Tactile Media From drvaughan55 at mac.com Mon Jan 21 18:33:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon Jan 21 18:33:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: Terry's suggested use of the idle handler will probably draw another response about 'avoid idle" but there are times like these when it is useful. What is needed is a better way to handle it. Under HyperCard I wrote a set of XCMDs/XFCNs to manage a "task space" efficiently and make it easy to add and remove tasks without the fiddles and inefficiency which grow when you try to script "on idle". I am busy at work at the moment but should be able to post some scripts this evening for doing it directly in Rev. Incidentally, "send message in " is very useful but there are times when you just want to act in time complementary to the user's activity, rather than forcing the action at a given time, and idle can be useful for this if used sparingly. So, Michael, Terry's suggestion is good and if you'll give me a few hours I hope to give you a better way of doing it. cheers David On Tuesday, January 22, 2002, at 10:03 , Terry Judd wrote: >> I would like to track the movement of the mouse through an array of >> buttons by hilighting each button that the mouse (button already down) >> passes over. However, the mouseEnter, mouseMove, mouseWithin messages >> are only sent to the first button because that button receives the >> mouseDown event and is the target. Similarly the mouseControl function >> (yes, it took me a couple of tries to notice that it was a function >> and not a message!) only returns the target. >> >> How can I get the other buttons to hilight without requiring the user >> to click each individually? > > How about using an idle handler and checking whether the cursor is > within the rect of the individual buttons - or better still convert the > mouseloc to an integer reflecting a button position in the array - and > then set the hilite of the target button (and turn off the hilite of > any previous target). > > Terry... > >> -- >> Michael J. Lew >> >> Senior Lecturer >> Department of Pharmacology >> The University of Melbourne >> Parkville 3010 >> Victoria >> Australia >> >> Phone +613 8344 8304 >> >> ** >> New email address: michaell at unimelb.edu.au >> ** >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > > > -- > ___________________________________________________________________________ > Dr Terry Judd > > Lecturer in Instructional Design / Multimedia Developer > Biomedical Multimedia Unit > Faculty of Medicine, Dentistry & Health Sciences > The University of Melbourne > Email: t.judd at bmu.unimelb.edu.au > Phone: 03 9344 0187 > Fax: 03 9344 4998 > ___________________________________________________________________________ > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From jcuccio at pacbell.net Mon Jan 21 19:30:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Mon Jan 21 19:30:01 2002 Subject: Re Hiding Data Message-ID: Do you need to save and access the data file. You could put the data file into another rev stack.That way it can not be access by other. Place a field on one card then put the data in that field. If the data is to big maybe different cards. Then when you need the data call it from your main stack. You need to do a little bit more codeing to access the stack. It needs to be in the default folder or else it needs to be loaded into memory. on getdata put line 2 of field "data" of card 1 of stack "datafile" into var -- do what ever with the data end getdata Another idea put the data file somewhere else. Win: in the window file. Mac: Pref file. From usher at iqcisp.com Mon Jan 21 19:43:01 2002 From: usher at iqcisp.com (Philip Usher) Date: Mon Jan 21 19:43:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: <200201212334.SAA08715@www.runrev.com> Message-ID: on 1/21/02 5:34 PM, "Michael J. Lew" wrote: > How can I get the other buttons to hilight without requiring the user > to click each individually? Michael, try this in the card script on mouseDown repeat while the mouse is down get the mouseLoc repeat with n = 1 to the number of btns if it is within the rect of btn n then set the hilite of btn n to true else set the hilite of btn n to false end if end repeat end repeat end mouseDown Cheers, Philip From tsj at unimelb.edu.au Mon Jan 21 19:47:01 2002 From: tsj at unimelb.edu.au (Terry Judd) Date: Mon Jan 21 19:47:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: References: Message-ID: >Terry's suggested use of the idle handler will probably draw another >response about 'avoid idle" but there are times like these when it >is useful. What is needed is a better way to handle it. Under >HyperCard I wrote a set of XCMDs/XFCNs to manage a "task space" >efficiently and make it easy to add and remove tasks without the >fiddles and inefficiency which grow when you try to script "on >idle". I am busy at work at the moment but should be able to post >some scripts this evening for doing it directly in Rev. >Incidentally, "send message in " is very useful but there are >times when you just want to act in time complementary to the user's >activity, rather than forcing the action at a given time, and idle >can be useful for this if used sparingly. So, Michael, Terry's >suggestion is good and if you'll give me a few hours I hope to give >you a better way of doing it. > Or you could use a repeat loop in a mouseDown handler... From usher at iqcisp.com Mon Jan 21 19:51:01 2002 From: usher at iqcisp.com (Philip Usher) Date: Mon Jan 21 19:51:01 2002 Subject: How to Window Standalone In-Reply-To: <200201212334.SAA08715@www.runrev.com> Message-ID: On 20/1/02 12:52 am, John Cuccio wrote: >> Mac OS 8.1 rev 1.1 >> >> I tried to build a windows standalone. It said can not find engine. >> >> What file do I need & where can I get them. To build a windows standalone on >> Mac. John, did you check the 'Auto-download any required software' button in the Distribution Builder -- Philip From jcuccio at pacbell.net Mon Jan 21 19:55:00 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Mon Jan 21 19:55:00 2002 Subject: Window Standalone. Message-ID: Mac OS 8.1 Rev 1.1 I think I got it working. The file does not come with rev that you download from the site. Rev has to download the file. Do not know why. When the builder ask do you want to down load the windows engine you need to say yes. It downloaded the file. From wow at together.net Mon Jan 21 20:03:01 2002 From: wow at together.net (Richard D. Miller) Date: Mon Jan 21 20:03:01 2002 Subject: Re Hiding Data In-Reply-To: Message-ID: John: > Do you need to save and access the data file. I need to read it into memory at startup. I don't need to write to it. >You could put the data file > into another rev stack.That way it can not be access by other. Place a field > on one card then put the data in that field. If the data is to big maybe > different cards. Then when you need the data call it from your main stack. I believe the maximum per field is 64k. That would take very many fields (over 100), and I think too long to read into memory initially. > > You need to do a little bit more codeing to access the stack. It needs to be > in the default folder or else it needs to be loaded into memory. > > > on getdata > put line 2 of field "data" of card 1 of stack "datafile" into var > -- do what ever with the data > end getdata > > Another idea put the data file somewhere else. Win: in the window file. Mac: > Pref file. Still too easy for folks to get at. This data file is the heart of my program (it took six years to put together). Other ideas? Richard From drvaughan55 at mac.com Mon Jan 21 20:11:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon Jan 21 20:11:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: <8AEC219B-0ED4-11D6-94EA-000393598038@mac.com> True, but the mouseDown handler will capture any mouseDown passed, not only those you want, so different approaches have their own advantages. I will post my stuff later anyway. cheers David On Tuesday, January 22, 2002, at 11:45 , Terry Judd wrote: >> Terry's suggested use of the idle handler will probably draw another >> response about 'avoid idle" but there are times like these when it is >> useful. What is needed is a better way to handle it. Under HyperCard I >> wrote a set of XCMDs/XFCNs to manage a "task space" efficiently and >> make it easy to add and remove tasks without the fiddles and >> inefficiency which grow when you try to script "on idle". I am busy at >> work at the moment but should be able to post some scripts this >> evening for doing it directly in Rev. Incidentally, "send message in >> " is very useful but there are times when you just want to act >> in time complementary to the user's activity, rather than forcing the >> action at a given time, and idle can be useful for this if used >> sparingly. So, Michael, Terry's suggestion is good and if you'll give >> me a few hours I hope to give you a better way of doing it. >> > > Or you could use a repeat loop in a mouseDown handler... > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From scott at tactilemedia.com Mon Jan 21 20:15:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Mon Jan 21 20:15:01 2002 Subject: Re Hiding Data In-Reply-To: Message-ID: <28D3E88E-0ED5-11D6-81C2-0003934902A2@tactilemedia.com> Another option is continue using the source file externally but either 1) encoding it, such as using base 64 or some other encoding scheme and/or compression, or 2) placing the data within a user property of a stack, and password protecting the stack. FWIW, Scott Rossi Creative Director, Tactile Media From wow at together.net Mon Jan 21 20:29:01 2002 From: wow at together.net (Richard D. Miller) Date: Mon Jan 21 20:29:01 2002 Subject: Re Hiding Data In-Reply-To: <28D3E88E-0ED5-11D6-81C2-0003934902A2@tactilemedia.com> Message-ID: Scott: > Another option is continue using the source file externally but either > 1) encoding it, such as using base 64 or some other encoding scheme How would I do that? And would it be possible to un-encode it in, say, 10 seconds when the program is starting up? > and/or compression It seems it would take a bit too long to uncompress it during startup...would you agree? It's quite a bit of data. >, or 2) placing the data within a user property of a > stack, and password protecting the stack. That sounds like an interesting idea. Can a user property really hold that much data? Is password protection available through Rev? Thanks. Richard > > FWIW, > > Scott Rossi > Creative Director, Tactile Media From jcuccio at pacbell.net Mon Jan 21 20:54:00 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Mon Jan 21 20:54:00 2002 Subject: sort Date Message-ID: Try changeing the itemdelimiter to "/" then sort each item the may you want it. Day: item 1 Month: item 2 Year:item3 on Handler set the Itemdelimiter to "/" sort lines of field 1 ascending numeric by item 1 of each sort lines of field 1 ascending numeric by item 2 of each sort lines of field 1 ascending numeric by item 3 of each end handler I think this is the order you are looking for. If not change the item numbers the way you want them. From raney at metacard.com Mon Jan 21 21:12:01 2002 From: raney at metacard.com (Scott Raney) Date: Mon Jan 21 21:12:01 2002 Subject: sort dateTime In-Reply-To: <200201211707.MAA29439@www.runrev.com> Message-ID: On Mon, 21 Jan 2002 yves COPPE wrote: > Here a list of date (european format). > I've asked : > > sort lines of fld "whatever" dateTime > that's the result !! > > 25/01/2001 > 19/04/2001 > 15/05/2001 > 13/08/2002 > 27/07/2001 > 02/03/2001 > 05/01/2001 > 12/02/2001 > 12/06/2001 > 01/08/2002 > 04/05/2002 > 12/05/2002 > 11/05/2003 > > What is the solution ?? This should work if you set the useSystemDate property to true, but you do need to use the same delimiter as the system formatted date (which is not / with most D-M-Y formats). It's also a 2.4.1 engine feature, so you probably need to be using 1.1.1 to do this. Regards, Scott ******************************************************** Scott Raney raney at metacard.com http://www.metacard.com MetaCard: You know, there's an easier way to do that... From jeanne at runrev.com Mon Jan 21 23:07:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Mon Jan 21 23:07:01 2002 Subject: Multilingual interface In-Reply-To: References: Message-ID: At 11:59 PM -0800 1/20/2002, Klaus wrote: >i can just give some general hints on how to create multilingual projects. > >A good way is to store all the strings in text-files and reading them in >e.g. after the user chose his favoutie language. Easier I think to create a custom property set for each language, and store strings in that. Then you can just switch custom property sets. Everything is stored with the stack so no messy extra files to get lost, and it's only one command. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Mon Jan 21 23:07:21 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Mon Jan 21 23:07:21 2002 Subject: Hiding data In-Reply-To: Message-ID: At 3:26 PM -0800 1/21/2002, wow at together.net wrote: >I'd appreciate suggestions on how to hide a data file. I've got a 7 mb >primary data file (1650 rows and 130 columns) that's read into memory >at startup. I'd like to make it more difficult for prying users to get at >that >data. Right now it's just sitting on the CD. I can't think of any ways to put >it into a Rev stack, though that would be a fine solution if there's a >reasonable way of doing it. Any creative solutions? It has to work on >Windows and Mac. I'm not sure why you can't just put this data in your stack, given that the whole thing is being read into memory anyway. Is there some problem with putting it into a custom property? -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From pixelbird at interisland.net Tue Jan 22 00:41:00 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Tue Jan 22 00:41:00 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: on 1/21/02 2:50 PM, Michael J. Lew at michaell at unimelb.edu.au wrote: > I would like to track the movement of the mouse through an array of > buttons by hilighting each button that the mouse (button already > down) passes over. However, the mouseEnter, mouseMove, mouseWithin > messages are only sent to the first button because that button > receives the mouseDown event and is the target. Similarly the > mouseControl function (yes, it took me a couple of tries to notice > that it was a function and not a message!) only returns the target. > > How can I get the other buttons to hilight without requiring the user > to click each individually? ---------- Hi Michael, You can replace 'the target' with 'me' if you want each button to have its own script, or leave it like it is. on mouseEnter -- you can put the rest of this in an offscreen handler repeat until the mouseClick if the mouseLoc is within the rect of the target then set the hilite of the target to true else set the hilite of the target to false end if -- do your thing here when the mouse is released end mouseEnter ...should work. HTH and best regards, Ken N. From pixelbird at interisland.net Tue Jan 22 00:56:00 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Tue Jan 22 00:56:00 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: on 1/21/02 4:40 PM, Philip Usher at usher at iqcisp.com wrote: > on 1/21/02 5:34 PM, "Michael J. Lew" wrote: > >> How can I get the other buttons to hilight without requiring the user >> to click each individually? > > Michael, try this in the card script > > on mouseDown > repeat while the mouse is down > get the mouseLoc > repeat with n = 1 to the number of btns > if it is within the rect of btn n then > set the hilite of btn n to true > else > set the hilite of btn n to false > end if > end repeat > end repeat > end mouseDown > > Cheers, Philip ------------ When Michael says he has an 'array' of buttons, I assume he means a LOT of buttons. Your handler will work, uh, sort of, but if there are, say, 100 buttons, it'll have to go through them all to check for a hit before it makes its decision, so the thing'll react way slow. He doesn't need an idle handler to poll the mouseloc, either. I posted what should be the right solution. Check it out. Best regards, Ken N. From shaosean at unitz.ca Tue Jan 22 00:58:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Tue Jan 22 00:58:01 2002 Subject: Global Names sans Rev Globals? References: Message-ID: <000a01c1a309$66c4ef20$88b15bd1@dreamlanpc> try this function: function getGlobalNames local vTempGlobals, vTempSortedGlobals, vGlobalItem put the globalNames into vTempGlobals repeat for each item vGlobalItem in vTempGlobals if ((char 1 of vGlobalItem = "$") or (char 1 to 3 of vGlobalItem = "rev")) then next repeat else put vGlobalItem & comma after vTempSortedGlobals end if end repeat if (last char of vTempSortedGlobals = comma) then delete last char of vTempSortedGlobals end if return vTempSortedGlobals end getGlobalNames ----- Original Message ----- > when in development you query the message box > put the globalNames > it returns All of revs globals... how can we contrain this to return only > the globals of the stack we are creating/working on? From chipp at chipp.com Tue Jan 22 01:22:01 2002 From: chipp at chipp.com (Chipp Walters) Date: Tue Jan 22 01:22:01 2002 Subject: passwords in fields? Message-ID: Not sure how to create a field where typing a password is automatically replaced with ********* during the typing? Is this not a property of a field? Like set the password of fld 1 to true? Any ideas? thx, Chipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From drvaughan55 at mac.com Tue Jan 22 01:40:00 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Tue Jan 22 01:40:00 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: <90DCC266-0F02-11D6-94EA-000393598038@mac.com> Ken wrote: "I posted what should be the right solution. Check it out." referring to on mouseEnter -- you can put the rest of this in an offscreen handler repeat until the mouseClick if the mouseLoc is within the rect of the target then set the hilite of the target to true else set the hilite of the target to false end if -- do your thing here when the mouse is released end mouseEnter Er...no it isn't Ken. I tested it. I think this is what you meant (card scripts) on mouseEnter if word 1 of the target = "button" then set the hilite of the target to true end if end mouseEnter on mouseLeave if word 1 of the target = "button" then set the hilite of the target to false end if end mouseLeave Note the button test because mouseEnter/Leave messages will also be sent for fields and for the card. No repeat loop is needed. Action handlers would presumably be button-specific, on mouseUp, or relatively generic in the card script with "the target" again able to identify exactly which button was clicked. cheers David On Tuesday, January 22, 2002, at 05:04 , Ken Norris (dialup) wrote: > on 1/21/02 4:40 PM, Philip Usher at usher at iqcisp.com wrote: > >> on 1/21/02 5:34 PM, "Michael J. Lew" wrote: >> >>> How can I get the other buttons to hilight without requiring the user >>> to click each individually? >> >> Michael, try this in the card script >> >> on mouseDown >> repeat while the mouse is down >> get the mouseLoc >> repeat with n = 1 to the number of btns >> if it is within the rect of btn n then >> set the hilite of btn n to true >> else >> set the hilite of btn n to false >> end if >> end repeat >> end repeat >> end mouseDown >> >> Cheers, Philip > ------------ > When Michael says he has an 'array' of buttons, I assume he means a LOT > of > buttons. Your handler will work, uh, sort of, but if there are, say, 100 > buttons, it'll have to go through them all to check for a hit before it > makes its decision, so the thing'll react way slow. > > He doesn't need an idle handler to poll the mouseloc, either. > > I posted what should be the right solution. Check it out. > > Best regards, > Ken N. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2514 bytes Desc: not available URL: From jcuccio at pacbell.net Tue Jan 22 02:45:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Tue Jan 22 02:45:01 2002 Subject: hiding Data Message-ID: >I believe the maximum per field is 64k. That would take very many fields >(over 100), and I think too long to read into memory initially. I thought Rev had not limits. Just how big the hard drive space was. From jeanne at runrev.com Tue Jan 22 02:50:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 22 02:50:00 2002 Subject: passwords in fields? In-Reply-To: Message-ID: At 10:19 PM -0800 1/21/2002, Chipp Walters wrote: > Not sure how to create a field where typing a password is >automatically replaced with ********* during the typing? Is this not a >property of a field? Like set the password of fld 1 to true? Any ideas? > thx, Chipp It's not a field property, no. (You may be thinking of the ask password command - this puts up an ask dialog that replaces typed text with asterisks.) To do it in a field, I'd use a rawKeyDown handler in the field that takes typed characters and appends them to a local variable or custom property of the field, and inserts an asterisk in the field. Backspace you'd handle by removing a character from the local or custom property and removing an asterisk. Or you could take a look at the card script in the ask password dialog. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From pixelbird at interisland.net Tue Jan 22 04:22:15 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Tue Jan 22 04:22:15 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: on 1/21/02 9:48 PM, Ken Norris (dialup) at pixelbird at interisland.net wrote: > on mouseEnter -- you can put the rest of this in an offscreen handler > repeat until the mouseClick > if the mouseLoc is within the rect of the target then > set the hilite of the target to true > else > set the hilite of the target to false > end if > -- do your thing here when the mouse is released > end mouseEnter ---------- OOPS! Not only did I forget 'end repeat', but I misread that the mouse is already 'down'. SORREEE! Let me try again, please. 1) If your buttons are in a grid (or matrix as it's sometimes referred to), and are all equal in size, I think I may be able to meld a couple handlers written by Mark Schonewille and DunbarX from the HC list, using mouseMove. 2) If the above isn't so, you may have to use an idle handler as others have suggested, unless you just have a few buttons From gslj at intergate.ca Tue Jan 22 04:50:01 2002 From: gslj at intergate.ca (Gareth Jones) Date: Tue Jan 22 04:50:01 2002 Subject: Menu madness Message-ID: Hello, people I've opened a HyperCard stack and foolishly created a menubar group on the first card only. I'd like to add the menubar to each card. From what I can glean from postings to this group, and experimentation, the procedure looks like this: 1. open the stack 2. Click the disclosure triangle for the stack in the Application Overview window 3. Click the disclosure triangle for "Cards" 4. Click the ID of the first card of the stack 5. Scroll down to "Addresses menu" (my menubar group) and double-click 6. Click the "Group" tab in the properties window that opens 7. Click the "backgroundBehaviour" checkbox and close the window 8. To add the menu to an existing card now, go to that card and select Object/Place Group/Addresses menu However, there are 97 cards in the stack, so this could get laborious. Are there any suggestions about doing this in one go? -Gareth Jones -- From mark_mitchell at kmug.org Tue Jan 22 04:53:00 2002 From: mark_mitchell at kmug.org (Mark Mitchell) Date: Tue Jan 22 04:53:00 2002 Subject: passwords in fields In-Reply-To: <200201220623.BAA16017@www.runrev.com> References: <200201220623.BAA16017@www.runrev.com> Message-ID: chip writes: Not sure how to create a field where typing a password is automatically replaced with ********* during the typing? Is this not a property of a field? Like set the password of fld 1 to true? Any ideas? You can trap the keydown message in a card script before it gets to the field. Or put the keydown handler in the password field itself. on keydown whichKey global thisPassword put whichKey after thisPassword put "*" after field "passwordField" end keyDown Alternatively, if you control the fonts on the computer, you can just set the textFont property to something like 'webdings'. goodluck, mark From kmajor at metascape.org Tue Jan 22 05:20:01 2002 From: kmajor at metascape.org (Klaus) Date: Tue Jan 22 05:20:01 2002 Subject: Menu madness In-Reply-To: Message-ID: Hi Gareth, > Hello, people > > I've opened a HyperCard stack and foolishly created a menubar group > on the first card only. I'd like to add the menubar to each card. > From what I can glean from postings to this group, and > experimentation, the procedure looks like this: > > 1. open the stack > 2. Click the disclosure triangle for the stack in the Application > Overview window > 3. Click the disclosure triangle for "Cards" > 4. Click the ID of the first card of the stack > 5. Scroll down to "Addresses menu" (my menubar group) and double-click > 6. Click the "Group" tab in the properties window that opens > 7. Click the "backgroundBehaviour" checkbox and close the window > 8. To add the menu to an existing card now, go to that card and > select Object/Place Group/Addresses menu > > However, there are 97 cards in the stack, so this could get > laborious. Are there any suggestions about doing this in one go? > > -Gareth Jones write a little script... (presuming that that group is already placed on the first cd.) on mouseup put the num of cds into anzahl repeat with i = 2 to anzahl place background "your_bg_name_here" onto card i end repeat end mouseup Hope that helps... Regards Klaus Major MetaScape GmbH From pixelbird at interisland.net Tue Jan 22 05:26:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Tue Jan 22 05:26:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: <90DCC266-0F02-11D6-94EA-000393598038@mac.com> Message-ID: on 1/21/02 10:37 PM, David Vaughan at drvaughan55 at mac.com wrote: > Er...no it isn't Ken. I tested it. ---------- Well, you're right, but it's much worse than that. See my apolgetic. The script I wrote was intended to not only hilite on entry, but also execute whatever the button is supposed to do when clicked, all in one handler. It didn't work, as far as it went, because I forgot to put in the last repeat. Howsomever...Michael was asking for the buttons to hilite with the mouse button already down, so my thing failed from the get-go. If the buttons are a grid, all the same size and equally spaced, we can determine which one the cursor is in because we already know those numbers, and the formula, something like: (round((item 1 of mouseLoc)/100)+1) & comma & (round((item 2 of mouseLoc)/100)+1) for, uh, 50 pixel square buttons, I think, should get a match, once you've initialized the grid. I haven't looked this over, but you can modify it. Solving this equation will be much faster than looking through an entire array of button rects, but it does depend on the sameness of a matrix. Another non-idle-handler solution might be to speed up the mouseMove/button rect search by initializing a string with item-delimited chunks to hold all the button rects and, say, their ID numbers. I think a well written script could chew up a string that is in memory and spit out a match faster than searching the buttons themselves. Just an idea... Best regards, Ken N. From drvaughan55 at mac.com Tue Jan 22 06:35:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Tue Jan 22 06:35:01 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: On Tuesday, January 22, 2002, at 09:34 , Ken Norris (dialup) wrote: > Another non-idle-handler solution might be to speed up the > mouseMove/button > rect search by initializing a string with item-delimited chunks to hold > all > the button rects and, say, their ID numbers. I think a well written > script > could chew up a string that is in memory and spit out a match faster > than > searching the buttons themselves. My own mouseEnter/Leave solution fails for the same reason as Ken's original script - the message isn't sent when the mouse is down. Michael, does the mouse have to be down? Otherwise, mouseLoc is still sent and "Repeat for each line buttonRects of buttonList" etc may be fast enough. Of course, once you have identified the first button entered, it is simply a matter of watching to see when the user leaves that particular rect before making another search for the new button rect (and there are only max nine of them if you want to push the refinement). Michael, we have not heard from you since your first enquiry. Are we solving your problem? Do you have enough material now? regards David From wow at together.net Tue Jan 22 07:50:01 2002 From: wow at together.net (Richard D. Miller) Date: Tue Jan 22 07:50:01 2002 Subject: Another distribution build question In-Reply-To: Message-ID: I have six stacks in my project that are part of the program interface, but another 2,000 that are just sources of data. I see that the six stacks are changed during the build process, even though only one is the actual startup/standalone stack. My question concerns the other 2,000 stacks. Is there any reason to include them in the build process or can they just be put on a CD as they are...since they are only used for data? My first tests running my project on Windows seemed fine with these data stacks left "un-built." I'd like to think these data stacks can be used cross-plaftform without any modification. Thanks. Richard Miller From wow at together.net Tue Jan 22 08:07:00 2002 From: wow at together.net (Richard D. Miller) Date: Tue Jan 22 08:07:00 2002 Subject: Distribution build question In-Reply-To: Message-ID: Following the distribution build, it appears as though only the single standalone stack is different from one platform to the next. My other stacks have all been modified from before the build, but each specific stack appears to be the same after the build regardless of whether they are destined for Mac, Windows, Linux, etc. Is this correct? Are they all interchangeable (except for the standalone) after the build? (I'm not using any special options on these stacks during the build process). Thanks. Richard Miller From info at multicopy.org Tue Jan 22 09:37:01 2002 From: info at multicopy.org (MultiCopy Rotterdam-Zuid) Date: Tue Jan 22 09:37:01 2002 Subject: How do modal dialog stacks interfere with main stack? Message-ID: I was trying to figure out how a modal dialog stack interferes with the main stack, so I looked it up in the documentation (Transcript dict.: dialogData). There was the advise to take a look at te license.rev stack, but the script of that (main)stack is password-protected. So I still don't know. Any suggestions? Terry -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvescoppe at skynet.be Tue Jan 22 10:01:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 22 10:01:01 2002 Subject: How do modal dialog stacks interfere with main stack? In-Reply-To: References: Message-ID: >I was trying to figure out how a modal dialog stack interferes with >the main stack, so I looked it up in the documentation (Transcript >dict.: dialogData). There was the advise to take a look at te >license.rev stack, but the script of that (main)stack is >password-protected. So I still don't know. Any suggestions? > >Terry its' a fantastic way to manage DLOG You can place in the dialogData just anything you want in your script before calling the Modal stack : set the dialogDat to xx&","&yy --and so on go to stack "MyDLOG" on the preopenstack of the DLOG stack put item 1 of the dialogData into fld a of stack "MyDLOG" put item 1 of the dialogData into fld b of stack "MyDLOG" --so you can pre-fill some flds in your DLOG stack in the cancel btn of your DLOG stack : set the DialogData to empty in the OK btn of your DLOG stack : set the DialogData to fld aa&","&fld bb --and so on in the script which calls the DLOG you go further if the dialogsata = empty then -- the user clicked cancel exit to top end if put item 1 of the dialogData into varOne put item 2 of the dialogData into varTwo --and so on cheers -- Greetings. Yves COPPE Email : yvescoppe at skynet.be -------------- next part -------------- An HTML attachment was scrubbed... URL: From wow at together.net Tue Jan 22 10:12:00 2002 From: wow at together.net (Richard D. Miller) Date: Tue Jan 22 10:12:00 2002 Subject: hiding Data In-Reply-To: Message-ID: I believe the limit per field is 64k, but I'd like to know if that's not the case. If I was to put the 7 mb of data into the custom property of a stack, for example, I suppose I could open it as invisible at startup. The question is, would accessing a particular item in that data be any slower than if the data was just sitting in a global variable? Or it is better to open that stack at startup, read the data from the custom property into a variable, and then close the stack (with its destroystack set to true)? Thanks. Richard >> I believe the maximum per field is 64k. That would take very many fields >> (over 100), and I think too long to read into memory initially. > > I thought Rev had not limits. Just how big the hard drive space was. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From mark_mitchell at kmug.org Tue Jan 22 10:23:00 2002 From: mark_mitchell at kmug.org (Mark Mitchell) Date: Tue Jan 22 10:23:00 2002 Subject: use-revolution digest, Vol 1 #134 - 13 msgs In-Reply-To: <200201221502.KAA24163@www.runrev.com> References: <200201221502.KAA24163@www.runrev.com> Message-ID: >> > However, there are 97 cards in the stack, so this could get >> laborious. Are there any suggestions about doing this in one go? >> >> -Gareth Jones > >write a little script... >(presuming that that group is already placed on the first cd.) > >on mouseup put the num of cds into anzahl repeat with i = 2 to anzahl place background "your_bg_name_here" onto card i end repeat end mouseup Well, it's been said before but it is worth repeating. We are like Dorothy (wiz of oz). We've had the power all along. Nothing is really laborious in a scripting GUI environment like this. If something is truely repetitive, just script it. That's the beauty of it. mark mitchell japan From mbleed at yahoo.com Tue Jan 22 10:42:00 2002 From: mbleed at yahoo.com (Mike Bleed) Date: Tue Jan 22 10:42:00 2002 Subject: how to list what fields are in a stack? Message-ID: <20020122153927.57979.qmail@web14202.mail.yahoo.com> I have a bunch of fields that are dynamically created in a script to label a graph. I was wondering what the best way was to delete these fields each time so that I may recreate them in a subsequent running of the script. There can be varying number of fields each time and they are created with a nmaing convention of "DynamicField"&fieldNum...I guess I am looking for a function that returns the names of the fields in a stack, similar to the openStacks() function...thank you in advance. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From kevin at runrev.com Tue Jan 22 11:09:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 22 11:09:01 2002 Subject: How to Window Standalone In-Reply-To: Message-ID: On 21/1/02 7:48 pm, Philip Usher wrote: >>> I tried to build a windows standalone. It said can not find engine. >>> >>> What file do I need & where can I get them. To build a windows standalone on >>> Mac. > > John, did you check the 'Auto-download any required software' button in the > Distribution Builder In fact we have found an issue related to this in 1.1.1B1 which will be fixed in b2. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 22 11:09:15 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 22 11:09:15 2002 Subject: Multi-linugal interface In-Reply-To: <3C4B1DD4.C77F35EA@ztv.ne.jp> Message-ID: On 20/1/02 2:43 pm, cowhead wrote: > Who has bright ideas on how to handle multilingual projects? Note that at present there are various workarounds that let you display two byte text, but we are working on getting this right (including text entry and editing) cross-platform as a top priority. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 22 11:09:25 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 22 11:09:25 2002 Subject: Read serial data? In-Reply-To: Message-ID: On 21/1/02 1:04 am, Sjoerd Op 't Land wrote: >> Is it possible to read serial data on a Mac with USB ports? In the >> Transcript dictionary it refers only to reading Modem and Printer ports >> which are the old Serial/LocalTalk ports, and I am wondering if these >> commands will transpose to reading from the USB or if there is another >> command or technique. > At present, this is not possible with RR itself and I don't know about some > external for this. Actually, it should be possible to do this with open driver. At present support for this isn't perfect (lack of documentation and support on OS X) but we're working on it and it shouldn't be long... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 22 11:09:35 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 22 11:09:35 2002 Subject: hiding Data In-Reply-To: Message-ID: On 22/1/02 2:43 am, John Cuccio wrote: >> I believe the maximum per field is 64k. That would take very many fields >> (over 100), and I think too long to read into memory initially. > > I thought Rev had not limits. Just how big the hard drive space was. Indeed - there is no such limit. Fields can handle as much as you have RAM for, and you can store the data off screen as binary in a custom property. Again it all gets loaded into memory when the stack is opened, so make sure you have enough RAM available, or use separate stacks, external files or a database. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 22 11:09:46 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 22 11:09:46 2002 Subject: Menu madness In-Reply-To: Message-ID: On 22/1/02 5:18 am, Klaus wrote: >> However, there are 97 cards in the stack, so this could get >> laborious. Are there any suggestions about doing this in one go? >> >> -Gareth Jones > > write a little script... > (presuming that that group is already placed on the first cd.) Also note that you can do this using the Application Overview - in the Groups section there is a Place on All Cards option. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From gcanyon at inspiredlogic.com Tue Jan 22 11:35:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 22 11:35:01 2002 Subject: Another distribution build question In-Reply-To: References: Message-ID: At 7:47 AM -0500 1/22/02, Richard D. Miller wrote: >I have six stacks in my project that are part of the program interface, but >another 2,000 that are just sources of data. I see that the six stacks are >changed during the build process, even though only one is the actual >startup/standalone stack. My question concerns the other 2,000 stacks. Is >there any reason to include them in the build process or can they just be >put on a CD as they are...since they are only used for data? My first tests >running my project on Windows seemed fine with these data stacks left >"un-built." I'd like to think these data stacks can be used cross-plaftform >without any modification. They can be used without modification cross-platform. There is a translation that occurs, I think to account for byte-order(?) or somesuch, when you open a stack on a different platform. The build might be doing that for you. The only consequence of it is to slow down opening the stacks slightly, so if performance is acceptable then no, you don't have to include them in the build. regards, Geoff From gcanyon at inspiredlogic.com Tue Jan 22 11:40:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 22 11:40:01 2002 Subject: hiding Data In-Reply-To: References: Message-ID: At 10:09 AM -0500 1/22/02, Richard D. Miller wrote: >I believe the limit per field is 64k, but I'd like to know if that's not the >case. > >If I was to put the 7 mb of data into the custom property of a stack, for >example, I suppose I could open it as invisible at startup. The question is, >would accessing a particular item in that data be any slower than if the >data was just sitting in a global variable? Or it is better to open that >stack at startup, read the data from the custom property into a variable, >and then close the stack (with its destroystack set to true)? The limit for fields, as for most storage items, is a shared 4GB (yes -- four gigabytes -- ain't it grand?) space. That means that the sum of all your fields, scripts, and a number of other things must be less than 4GB. In practice, you'll never run into this limit. :-) Global variables are supposed to be somewhat faster than properties, and both are _much_ faster than fields. In order to get the data into the fastest storage (globabl variable) without duplicating the memory requirement, your last option (or storing the data in a standard file and reading it in) sounds like the way to go. regards, Geoff From rcozens at pon.net Tue Jan 22 12:28:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Tue Jan 22 12:28:01 2002 Subject: Global Names sans Rev Globals? In-Reply-To: <000a01c1a309$66c4ef20$88b15bd1@dreamlanpc> References: Message-ID: >>put the globalNames >>it returns All of revs globals... how can we contrain this to return only >>the globals of the stack we are creating/working on? > >try this function: > >function getGlobalNames > local vTempGlobals, vTempSortedGlobals, vGlobalItem > put the globalNames into vTempGlobals > repeat for each item vGlobalItem in vTempGlobals > if ((char 1 of vGlobalItem = "$") or (char 1 to 3 of vGlobalItem = >"rev")) then > next repeat > else ... If I am interpreting the script correctly, it will identify & remove any RR & MC engine globals; but it will NOT identify globals declared by any other handler that has run since the main application opened. In addition, it will not list stack globals unique to any stack handler(s) that has not run. If you want a comprehensive list of all stack globals, I can see no way of producing one except to write a handler to read through all scripts of all objects in the stack and build a table based on the "global" statements it encounters. I'm puzzled as to why this would be needed...globals are declared application-wide; so I would want to be aware of all possible conflicting (or cooperative) uses of the same global name whether used in the existing staxk or not. Rob Cozens CCW, Serendipity Software Company "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) From gslj at intergate.ca Tue Jan 22 12:34:01 2002 From: gslj at intergate.ca (Gareth Jones) Date: Tue Jan 22 12:34:01 2002 Subject: Menu madness In-Reply-To: References: Message-ID: >On 22/1/02 5:18 am, Klaus wrote: > >>> However, there are 97 cards in the stack, so this could get >>> laborious. Are there any suggestions about doing this in one go? >>> >>> -Gareth Jones >> >> write a little script... >> (presuming that that group is already placed on the first cd.) > >Also note that you can do this using the Application Overview - in the >Groups section there is a Place on All Cards option. You've mentioned this to me before, Kevin, but it doesn't work for me. I'll send you a screen shot of the Application Overview when I have my menu group selected: the "Place" button is greyed out and inaccessible. I'd imagine that the "Groups" tab of the Properties Window would be another place to look for "Place on All Cards," but there's nothing there, either. -Gareth > >Kevin > >Kevin Miller >Runtime Revolution Limited - Power to the Developer! >Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution -- From rcozens at pon.net Tue Jan 22 12:42:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Tue Jan 22 12:42:00 2002 Subject: how to list what fields are in a stack? In-Reply-To: <20020122153927.57979.qmail@web14202.mail.yahoo.com> Message-ID: >I have a bunch of fields that are dynamically created >in a script to label a graph. I was wondering what >the best way was to delete these fields each time so >that I may recreate them in a subsequent running of >the script. There can be varying number of fields >each time and they are created with a nmaing >convention of "DynamicField"&fieldNum...I guess I am >looking for a function that returns the names of the >fields in a stack, similar to the openStacks() >function...thank you in advance. Hi Mike, If all the fields are created on a single card, this might be easier: Assuming permFieldCount = the number of fields that remain permanently on the card, repeat with x = permFieldCount+1 to the number of fields delete field x end repeat should do what you want. PS: I'm still just getting into Transcript; so take this as an algorithm, not a literal script. Where but America can the person who lost the popular vote become President without a coup? From shaosean at unitz.ca Tue Jan 22 12:46:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Tue Jan 22 12:46:01 2002 Subject: Global Names sans Rev Globals? References: Message-ID: <000d01c1a36c$44d06cb0$88b15bd1@dreamlanpc> > > if ((char 1 of vGlobalItem = "$") or (char 1 to 3 of vGlobalItem = > >"rev")) then one small correction on this line: (char 1 to 4 of vGlobalItem = "gREV") > If I am interpreting the script correctly, it will identify & remove any RR > & MC engine globals; but it will NOT identify globals declared by any other > handler that has run since the main application opened. In addition, it > will not list stack globals unique to any stack handler(s) that has not run. this works fine for me except for one thing.. if the global has no data in it, it will not be returned in the list of globalNames From mark_mitchell at kmug.org Tue Jan 22 12:48:01 2002 From: mark_mitchell at kmug.org (Mark Mitchell) Date: Tue Jan 22 12:48:01 2002 Subject: use-revolution digest, Vol 1 #135 - 10 msgs In-Reply-To: <200201221704.MAA28653@www.runrev.com> References: <200201221704.MAA28653@www.runrev.com> Message-ID: Kevin writes: Note that at present there are various workarounds that let you display two byte text, but we are working on getting this right (including text entry and editing) cross-platform as a top priority. Excellent! Because I just found another, potentially major problem with the current setup. The Ask dialog seems to inherit the system font, which will be Osaka, on the older (eg 8.5) Japanese OS's. Now, as you probably know, Rev does not let you type anything, English or Japanese, into a field set to the Osaka font. Thus, if you try to run a Rev standalone on an older Japanese OS, and your standalone contains the "ask" dialog, you are screwed. It doesn't work. I just got through replacing 'ask' with my own field (set to a different font) so that I could work around this. Please please please! If you can get 2 byte to work as well as it does in hypercard (which even 'knows' that a 'character' is 2byte when dealing with Japanese) I will drink nothing but Scottish brew, for the next year, in your honor :) p.s. I'll also be happy to translate everything, and be your 'official' Japanese Rev rep! mark mitchell japan From rcozens at pon.net Tue Jan 22 13:35:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Tue Jan 22 13:35:01 2002 Subject: how to list what fields are in a stack? In-Reply-To: References: <20020122153927.57979.qmail@web14202.mail.yahoo.com> Message-ID: My apologies to all for not getting my name before my quote in in my signature. Rob From rcozens at pon.net Tue Jan 22 13:46:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Tue Jan 22 13:46:01 2002 Subject: Global Names sans Rev Globals? In-Reply-To: <000d01c1a36c$44d06cb0$88b15bd1@dreamlanpc> References: Message-ID: >> If I am interpreting the script correctly, it will identify & remove any >RR >> & MC engine globals; but it will NOT identify globals declared by any >other >> handler that has run since the main application opened. In addition, it >> will not list stack globals unique to any stack handler(s) that has not >run. >this works fine for me except for one thing.. if the global has no data in >it, it will not be returned in the list of globalNames The original request, though titled "Global Names sans Rev Globals" actually asked "to return only the globals of the stack we are creating/working on?" My points are: 1. Any non-Rev globals referenced in any handler that was run before the particular stack was opened will be included; while 2. Any globals only referenced in handlers in the particular stack that have NOT been run will NOT be included. Rob Cozens CCW, Serendipity Software Company "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) From bvlahos at jpl.nasa.gov Tue Jan 22 13:47:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Tue Jan 22 13:47:01 2002 Subject: Serial Ports and RR In-Reply-To: <3C4C43A2.D72E73DC@home.com> Message-ID: <10F39C12-0F68-11D6-B5DF-003065E6E4BC@jpl.nasa.gov> Gene, Have you been able to use the KeySpan USB to Serial adapter under OS X yet? Bill Vlahos On Monday, January 21, 2002, at 08:36 AM, Gene Kennedy wrote: > Hi David, > > Yes it is possible to use RR to control/communicate with devices over > serial porst > using a USB-only Mac. You need to buy a KeySpan USB to Serial adapter > (or some > other competing device). If you buy a new one you can configure the > adapter to > emulate both the "Printer" and Modem" ports which are then accessable > through RR. > If you buy an older version of the adapter (through ebay or some such > outlet) you > can will be able to access the printer port but probably not the modem > port. > KeySpan's drivers were updated along the way to provide modem port > emulation. I > have not tried an adapter with the X-10 software yet but, I do have a > number of RR > applications running 24/7 using serial communications via KeySpan > adapters. > > Best regards, > Gene Kennedy > > > >> Message: 7 >> Date: Mon, 21 Jan 2002 13:24:10 +1100 >> Subject: Read serial data? >> From: David Vaughan >> To: use-revolution at lists.runrev.com >> Reply-To: use-revolution at lists.runrev.com >> >> Is it possible to read serial data on a Mac with USB ports? In the >> Transcript dictionary it refers only to reading Modem and Printer ports >> which are the old Serial/LocalTalk ports, and I am wondering if these >> commands will transpose to reading from the USB or if there is another >> command or technique. >> >> thanks >> David Vaughan > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From kray at sonsothunder.com Tue Jan 22 14:00:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Tue Jan 22 14:00:01 2002 Subject: Read serial data? References: Message-ID: <003201c1a376$7fe02930$7c00a8c0@mckinley.dom> Kevin, when you say "open driver", what do you mean? This isn't in the docs... Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Kevin Miller" To: Sent: Tuesday, January 22, 2002 9:47 AM Subject: Re: Read serial data? > On 21/1/02 1:04 am, Sjoerd Op 't Land wrote: > > >> Is it possible to read serial data on a Mac with USB ports? In the > >> Transcript dictionary it refers only to reading Modem and Printer ports > >> which are the old Serial/LocalTalk ports, and I am wondering if these > >> commands will transpose to reading from the USB or if there is another > >> command or technique. > > At present, this is not possible with RR itself and I don't know about some > > external for this. > > Actually, it should be possible to do this with open driver. At present > support for this isn't perfect (lack of documentation and support on OS X) > but we're working on it and it shouldn't be long... > > Kevin > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From gcanyon at inspiredlogic.com Tue Jan 22 14:22:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 22 14:22:00 2002 Subject: how to list what fields are in a stack? In-Reply-To: References: Message-ID: At 9:36 AM -0800 1/22/02, Rob Cozens wrote: > repeat with x = permFieldCount+1 to the number of fields > delete field x > end repeat Note that this will go much faster if you lock the screen first, and if you happen to be doing it from another stack, set the defaultStack property rather than doing delete field x of stack "whatever" regards, Geoff From Jean-Pierre.Messier at UMontreal.CA Tue Jan 22 14:34:01 2002 From: Jean-Pierre.Messier at UMontreal.CA (Jean-Pierre Messier) Date: Tue Jan 22 14:34:01 2002 Subject: Hypertext In-Reply-To: References: Message-ID: HI! How I can make hypertext like the help in the revolution... Move the mouse and the selected text is yellow? I don't find the code in the stack. Thanks From ludovic.thebault at laposte.net Tue Jan 22 15:10:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Tue Jan 22 15:10:01 2002 Subject: [Bugs?] Parenthesis, MacOS X and option menu Message-ID: <20020122210626.1C320F%00000000@laposte.net> On Windows ME i've created a stack with an option Menu which contains these items : Easy (CP) Moderate (CE) Difficult (CM) All items are enabled, the menu work fine. On MacOS X, all items are disabled. If i delete parenthesis, items are enabled. on a 68k standalone all items are enabled on a PPC standalone all items are disabled Other bug on MacOS X : if you change the label of a standard button, the "old image" of this button persist. -- Ludovic THEBAULT (Sorry for my poooor english :-) From rcozens at pon.net Tue Jan 22 15:11:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Tue Jan 22 15:11:00 2002 Subject: how to list what fields are in a stack? In-Reply-To: References: <20020122153927.57979.qmail@web14202.mail.yahoo.com> Message-ID: >Assuming permFieldCount = the number of fields that remain permanently on >the card, > > repeat with x = permFieldCount+1 to the number of fields > delete field x > end repeat > >should do what you want. Mike, et al: How long must I program before I remember to get this right the first time!: repeat with x = the number of fields down to permFieldCount+1 delete field x end repeat Rob Cozens CCW, Serendipity Software Company "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) From bvlahos at jpl.nasa.gov Tue Jan 22 15:14:00 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Tue Jan 22 15:14:00 2002 Subject: How to Window Standalone In-Reply-To: Message-ID: <56C8F926-0F74-11D6-B5DF-003065E6E4BC@jpl.nasa.gov> Kevin, When can we expect B2 to be available for download? Bill Vlahos On Tuesday, January 22, 2002, at 07:42 AM, Kevin Miller wrote: > On 21/1/02 7:48 pm, Philip Usher wrote: > >>>> I tried to build a windows standalone. It said can not find engine. >>>> >>>> What file do I need & where can I get them. To build a windows >>>> standalone on >>>> Mac. >> >> John, did you check the 'Auto-download any required software' button >> in the >> Distribution Builder > > In fact we have found an issue related to this in 1.1.1B1 which will be > fixed in b2. > > Kevin > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From drvaughan55 at mac.com Tue Jan 22 17:08:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Tue Jan 22 17:08:01 2002 Subject: Serial Ports and RR In-Reply-To: <10F39C12-0F68-11D6-B5DF-003065E6E4BC@jpl.nasa.gov> Message-ID: <2BB29292-0F84-11D6-AEB0-000393598038@mac.com> Bill No. It is not actually a branded KeySpan (there were none in town) but another which proves not to have OS X drivers, although I now have it working in the Classic (9.2) environment. Still, I don't want to have to build a Classic app just for this purpose. Earlier today in this mail list Kevin promised OS X access to the serial (USB) port - "we're working on it and it shouldn't be long..." so I guess I'm holding my breath a bit. I have also e-mailed the manufacturer of my converter to ask them for OS X drivers. regards David On Wednesday, January 23, 2002, at 05:44 , Bill Vlahos wrote: > Gene, > > Have you been able to use the KeySpan USB to Serial adapter under OS X > yet? > > Bill Vlahos > > On Monday, January 21, 2002, at 08:36 AM, Gene Kennedy wrote: > >> Hi David, >> >> Yes it is possible to use RR to control/communicate with devices over >> serial porst >> using a USB-only Mac. You need to buy a KeySpan USB to Serial adapter >> (or some >> other competing device). If you buy a new one you can configure the >> adapter to >> emulate both the "Printer" and Modem" ports which are then accessable >> through RR. >> If you buy an older version of the adapter (through ebay or some such >> outlet) you >> can will be able to access the printer port but probably not the modem >> port. >> KeySpan's drivers were updated along the way to provide modem port >> emulation. I >> have not tried an adapter with the X-10 software yet but, I do have a >> number of RR >> applications running 24/7 using serial communications via KeySpan >> adapters. >> >> Best regards, >> Gene Kennedy >> >> >> >>> Message: 7 >>> Date: Mon, 21 Jan 2002 13:24:10 +1100 >>> Subject: Read serial data? >>> From: David Vaughan >>> To: use-revolution at lists.runrev.com >>> Reply-To: use-revolution at lists.runrev.com >>> >>> Is it possible to read serial data on a Mac with USB ports? In the >>> Transcript dictionary it refers only to reading Modem and Printer >>> ports >>> which are the old Serial/LocalTalk ports, and I am wondering if these >>> commands will transpose to reading from the USB or if there is another >>> command or technique. >>> >>> thanks >>> David Vaughan >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From michaell at unimelb.edu.au Tue Jan 22 17:39:01 2002 From: michaell at unimelb.edu.au (Michael J. Lew) Date: Tue Jan 22 17:39:01 2002 Subject: messages to buttons when the mouse is already down Message-ID: Thanks for all of the helpful suggestions. It is a more interesting exercise than I expected in that the messages that one might expect to use are blocked when the mouse is down. Perhaps they shouldn't be... The following won't work because the target is the control that gets the mouseDown message and so target-ness doesn't follow the mouseloc. >on mouseEnter -- you can put the rest of this in an offscreen handler > repeat until the mouseClick > if the mouseLoc is within the rect of the target then > set the hilite of the target to true > else > set the hilite of the target to false > end if > -- do your thing here when the mouse is released >end mouseEnter The following does work, but as someone else suggested, I do have lots of buttons (225) and so it is doing a lot of work. >on mouseDown > repeat while the mouse is down > get the mouseLoc > repeat with n = 1 to the number of btns > if it is within the rect of btn n then > set the hilite of btn n to true > else > set the hilite of btn n to false > end if > end repeat > end repeat >end mouseDown The following doesn't work because, again, the control that gets the mouseDown is the only one to get the mouseEnter and mouseLeave messages. Remember that I would like to be able to click in the array of buttons and drag, with the hilight leaving a trail showing the path of the dragging. on mouseEnter if word 1 of the target = "button" then set the hilite of the target to true end if end mouseEnter on mouseLeave if word 1 of the target = "button" then set the hilite of the target to false end if end mouseLeave The suggestions of working out a quick equation that translates the mouseLoc into a button number should work. I guess I'll have to put it into a mouseDown handler either in all of the buttons or in the group containing the buttons. I can't fully test it at the moment because the stack is a game that I am writing for my son and so I am doing it at home, and it is work-time here down under at the moment. Thanks to Ken, David and Terry for your helpful suggestions. I have not responded earlier because I take the digest and I try to sleep at night! -- Michael J. Lew Senior Lecturer Department of Pharmacology The University of Melbourne Parkville 3010 Victoria Australia Phone +613 8344 8304 ** New email address: michaell at unimelb.edu.au ** From Roger.E.Eller at sealedair.com Tue Jan 22 17:54:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Tue Jan 22 17:54:01 2002 Subject: [Bugs?] Parenthesis, MacOS X and option menu Message-ID: Ludovic, I have no *real* solution, but I can simply verify that I too have seen this happen in pop-up menus. They work fine on a PC containing a ")" character, but on a Mac, this causes them to be greyed out. My workaround was to use a square bracket "]" character instead. I believe it IS A BUG. ~Roger > On Windows ME i've created a stack with an option Menu which contains > these items : > > Easy (CP) > Moderate (CE) > Difficult (CM) > > All items are enabled, the menu work fine. > > On MacOS X, all items are disabled. If i delete parenthesis, items are > enabled. > > on a 68k standalone all items are enabled > on a PPC standalone all items are disabled > > Other bug on MacOS X : if you change the label of a standard button, > the "old image" of this button persist. > > -- > Ludovic THEBAULT > (Sorry for my poooor english :-) From Roger.E.Eller at sealedair.com Tue Jan 22 18:24:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Tue Jan 22 18:24:01 2002 Subject: How to Window Standalone Message-ID: Kevin, Also, what fixes do you know of that will definitely be included in B2? Will the "true OS file copy" be there? I severely need this to move some hefty 900mb+ files around. And... does this also apply to FTP transfers, or will they still be loaded into memory? ~Roger > Kevin, > > When can we expect B2 to be available for download? > > Bill Vlahos From mazzapaolo at libero.it Wed Jan 23 01:26:00 2002 From: mazzapaolo at libero.it (=?utf-8?Q?mazzapaolo@liber?=) Date: Wed Jan 23 01:26:00 2002 Subject: =?iso-8859-1?Q?Hide_MenuBar?= Message-ID: I have a stack in Rev on the Mac for my 3 years old little child. In order to prevent my little one to mess up my Mac I need something like "Hide menubar" command in Hypercard. How can I do the same in Rev? How can I hide completely the menu bar of the Mac? Thank You. Paolo Mazza (Italy) From mazzapaolo at libero.it Wed Jan 23 01:31:01 2002 From: mazzapaolo at libero.it (=?utf-8?Q?mazzapaolo@liber?=) Date: Wed Jan 23 01:31:01 2002 Subject: =?iso-8859-1?Q?Hide_MenuBar?= Message-ID: I have a stack in Rev on the Mac for my 3 years old little child. In order to prevent my little one to mess up my Mac I need something like "Hide menubar" command in Hypercard. How can I do the same in Rev? How can I hide completely the menu bar of the Mac? Thank You. Paolo Mazza (Italy) From chipp at chipp.com Wed Jan 23 03:07:00 2002 From: chipp at chipp.com (Chipp Walters) Date: Wed Jan 23 03:07:00 2002 Subject: unquoted literal error Message-ID: I seem to be getting the following error quite often when I click the Apply button in the script editor. It happens only when using local or global variables. It doesn't seem to affect anything other than it's just a nuisance. Any ideas? thx, Chipp ? There was a Script Compile Error at 12:00:34 AM Error description: Expression: unquoted literal Object: button id 1005 of group id 1010 of card id 1011 of stack "C:/Documents and Settings/chipp/My Documents/Clients/ProfMoe/Uploader03.rev" -------------------- switch the short name of this card -------------------- Value: 65.104.229.45 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazzapaolo at libero.it Wed Jan 23 04:54:01 2002 From: mazzapaolo at libero.it (=?utf-8?Q?mazzapaolo@liber?=) Date: Wed Jan 23 04:54:01 2002 Subject: =?iso-8859-1?Q?file_not_found?= Message-ID: I have a line like this: set the fileName of image "myImage" to "image.gif" If the file exists it works fine. If the file does not exists, the image "myImage" gets blank, the result is empty, and I do not get any error-message. How can I get a beep when Rev can not find the file? Thank you for your help, Paolo Mazza (Italy) From benr_mc at cogapp.com Wed Jan 23 05:01:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 23 05:01:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: on 19/1/02 10:38 PM, Kevin Miller at kevin at runrev.com wrote: > We will include a revCopyFile command in 1.1.1 which will copy a file on any > OS including the correct creator type and the resource fork, without loading > the entire file into memory if it is large either. Good move, Kevin! What about adding a revMoveFile command while you're at it, to get past those tricky issues about renamefile? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From yvescoppe at skynet.be Wed Jan 23 06:36:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 23 06:36:01 2002 Subject: change fld selection on tab Message-ID: Hello, I've a stack used as DLOG (Modal stack) It contains a few flds. I'd like the user can jump from one fld to the following when pressing the Tab key on the keyboard. I've found a possibility to check : change fld on return key but it's not the convention on mac. I'd also like the tab key returns to the first fld when the user is in the last fld. If there is something written in a fld, pressing the tab key should enter the fld and select the text already there. Can someone help me for that ? thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From k_major at osnabrueck.netsurf.de Wed Jan 23 08:49:00 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Wed Jan 23 08:49:00 2002 Subject: change fld selection on tab In-Reply-To: Message-ID: Bonjour Yves, > Hello, > > I've a stack used as DLOG (Modal stack) > It contains a few flds. > I'd like the user can jump from one fld to the following when pressing > the Tab key on the keyboard. > > I've found a possibility to check : change fld on return key > but it's not the convention on mac. > I'd also like the tab key returns to the first fld when the user is in > the last fld. > If there is something written in a fld, pressing the tab key should > enter the fld and select the text already there. > Can someone help me for that ? > > thanks. > -- Greetings. > > Yves COPPE in the property-palette, set the "autotab" of these fields to true. That's what you are loking for :-) Au revoir et a votre service... Klaus Major k_major at osnabrueck.netsurf.de From kevin at runrev.com Wed Jan 23 09:17:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 23 09:17:01 2002 Subject: Menu madness In-Reply-To: Message-ID: On 22/1/02 5:28 pm, Gareth Jones wrote: >> Also note that you can do this using the Application Overview - in the >> Groups section there is a Place on All Cards option. > > You've mentioned this to me before, Kevin, but it doesn't work for > me. I'll send you a screen shot of the Application Overview when I > have my menu group selected: the "Place" button is greyed out and > inaccessible. I'd imagine that the "Groups" tab of the Properties > Window would be another place to look for "Place on All Cards," but > there's nothing there, either. You need to select "Groups" in the list on the left, rather than the group itself, and be using 1.1.1B1. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From yvescoppe at skynet.be Wed Jan 23 10:01:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 23 10:01:01 2002 Subject: change fld selection on tab In-Reply-To: References: Message-ID: Hello, >in the property-palette, set the "autotab" of these fields to true. > >That's what you are loking for :-) > > >Au revoir et a votre service... > >Klaus Major >k_major at osnabrueck.netsurf.de > I'm surely what slow in "comprehendsion" ! I don't find this option in the fld palette ! Where is it ? et merci -- From gcanyon at inspiredlogic.com Wed Jan 23 11:00:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 23 11:00:01 2002 Subject: unquoted literal error In-Reply-To: References: Message-ID: At 12:04 AM -0800 1/23/02, Chipp Walters wrote: >I seem to be getting the following error quite often when I click the Apply button in the script editor. It happens only when using local or global variables. It doesn't seem to affect anything other than it's just a nuisance. > >Any ideas? thx, Chipp > > >? There was a Script Compile Error at 12:00:34 AM >Error description: Expression: unquoted literal >Object: button id 1005 of group id 1010 of card id 1011 of stack "C:/Documents and Settings/chipp/My Documents/Clients/ProfMoe/Uploader03.rev" >-------------------- >switch the short name of this card >-------------------- >Value: 65.104.229.45 Have you tried parentheses switch (the short name of this cd) regards, Geoff From gcanyon at inspiredlogic.com Wed Jan 23 11:01:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 23 11:01:00 2002 Subject: file not found In-Reply-To: References: Message-ID: At 10:51 AM +0100 1/23/02, mazzapaolo at liber wrote: >I have a line like this: > >set the fileName of image "myImage" to "image.gif" > >If the file exists it works fine. >If the file does not exists, the image "myImage" gets blank, the result >is empty, and I do not get any error-message. >How can I get a beep when Rev can not find the file? >Thank you for your help, Try: if there is a file "image.gif" then set the fileName of image "myImage" to "image.gif" end if regards, Geoff From pete.boardman at mac.com Wed Jan 23 11:34:01 2002 From: pete.boardman at mac.com (pete boardman) Date: Wed Jan 23 11:34:01 2002 Subject: examples Message-ID: <7E578073-101E-11D6-BE4F-0003931AD714@mac.com> I'm looking for some example stacks to explore. Any pointers to where I could find some? Cheers Pete From webmaster at studioalice.se Wed Jan 23 11:45:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Wed Jan 23 11:45:01 2002 Subject: change fld selection on tab In-Reply-To: Message-ID: <04BBF53A-1020-11D6-B566-003065CCBD1A@studioalice.se> I think autoTab is the same as "Return key move to next field" I tried that with some field and the tab-key works fine no matter if autoTab is false or true. /magnus On onsdag, januari 23, 2002, at 03:53 , yves COPPE wrote: > Hello, > >> in the property-palette, set the "autotab" of these fields to true. >> >> That's what you are loking for :-) >> >> >> Au revoir et a votre service... >> >> Klaus Major >> k_major at osnabrueck.netsurf.de >> > > I'm surely what slow in "comprehendsion" ! > I don't find this option in the fld palette ! > Where is it ? > > et merci > > > -- _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From bvlahos at jpl.nasa.gov Wed Jan 23 12:15:46 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Wed Jan 23 12:15:46 2002 Subject: Startup Disk Message-ID: <6DE2902C-1022-11D6-823E-003065760662@jpl.nasa.gov> Is there an easy way to refer to the startup disk without knowing the exact name of it? For example, I want to put a file into the Preferences folder on a Mac but users can call their hard disk anything they want. In AppleScript you can simply refer to "startup disk" and it will figure it out. Is there an equivalent in Rev for this? Bill Vlahos From sjoerdoptland at mac.com Wed Jan 23 12:16:06 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Wed Jan 23 12:16:06 2002 Subject: file not found In-Reply-To: Message-ID: mazzapaolo at liber wrote/ schreef: > I have a line like this: > > set the fileName of image "myImage" to "image.gif" > > If the file exists it works fine. > If the file does not exists, the image "myImage" gets blank, the result > is empty, and I do not get any error-message. > How can I get a beep when Rev can not find the file? Try this one: set the fileName of image "myImage" to "image.gif" if the size of image "myImage" is 0 then beep > Thank you for your help, > > Paolo Mazza (Italy) Regards, / Groeten, Sjoerd From bvg at mac.com Wed Jan 23 12:17:01 2002 From: bvg at mac.com (=?ISO-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed Jan 23 12:17:01 2002 Subject: go to several stcks in same window Message-ID: Hi all, im new, so i naturally have questions: Is it even possible to show more then one stack in the same window? i know there is the go to stack in window "foremost window" command, but it just replaces the content of the window. My goal: I want to include more then one listfield in the same window, ideal where if all of those would actually be the same field, just shown multiple times (with different contents) Im to lazy to make a field,to do the 'new field' command then copy the code and properties per script (or set them per template). Maybe there is a 'one content per card' property, but then all iterations of the field would show up at the same location, thus i need to show multiple stacks at once... oh, another question: What is the ASCII value of the arrow keys? I want to capture them per 'rawkey' to make them do a click on the same listfield mentioned above (im very into listfields ;) ) Is it still possible to use the app on all Platforms? The arrowkey number varies in the different ascii codes , isn't it? well thats it for now, but i will come back and surely will have soon a huge list of mails for the improve-maillist. so long Bj?rnke von Gierke From kevin at runrev.com Wed Jan 23 12:33:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 23 12:33:01 2002 Subject: What's up with the time functions? In-Reply-To: Message-ID: On 4/1/02 2:21 pm, Kevin Miller wrote: >> put "1/1/02" into temp >> convert temp to dateitems >> Returns: 2002,1,1,2,0,0,3 >> Implying this year started on the second hour. >> >> What happened to midnight? >> What am I missing? > > We'll double check this. Turns out to be daylight savings time. You have to take this into account. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From yvescoppe at skynet.be Wed Jan 23 12:41:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 23 12:41:01 2002 Subject: examples In-Reply-To: <7E578073-101E-11D6-BE4F-0003931AD714@mac.com> References: <7E578073-101E-11D6-BE4F-0003931AD714@mac.com> Message-ID: >I'm looking for some example stacks to explore. Any pointers to >where I could find some? > >Cheers > >Pete > In the "View" menu, ask "revolution UI stacks in list". then, in the same menu "Application overview" All the stacks of Revolution appear. You can explore them easily. BUT clic "cancel" if you are asked to save your changes and I recommend towork on a copy of Revolution. You could change something and cause your program to work badly. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From benr_mc at cogapp.com Wed Jan 23 12:44:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 23 12:44:01 2002 Subject: Startup Disk In-Reply-To: <6DE2902C-1022-11D6-823E-003065760662@jpl.nasa.gov> Message-ID: on 23/1/02 4:58 PM, Bill Vlahos at bvlahos at jpl.nasa.gov wrote: > Is there an easy way to refer to the startup disk without knowing the > exact name of it? For example, I want to put a file into the Preferences > folder on a Mac but users can call their hard disk anything they want. Use 'the specialFolderPath' (introduced in 1.1). This does more than you want (returning the full path to various folders on the startup disk - see the docs for more info) but from that you can extract the volume name. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From bvlahos at jpl.nasa.gov Wed Jan 23 12:53:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Wed Jan 23 12:53:01 2002 Subject: Startup Disk In-Reply-To: Message-ID: Ben, Super. That is just what I wanted. Thank you, Bill Vlahos On Wednesday, January 23, 2002, at 09:41 AM, Ben Rubinstein wrote: > on 23/1/02 4:58 PM, Bill Vlahos at bvlahos at jpl.nasa.gov wrote: > >> Is there an easy way to refer to the startup disk without knowing the >> exact name of it? For example, I want to put a file into the >> Preferences >> folder on a Mac but users can call their hard disk anything they want. > > Use 'the specialFolderPath' (introduced in 1.1). This does more than > you > want (returning the full path to various folders on the startup disk - > see > the docs for more info) but from that you can extract the volume name. > > Ben Rubinstein | Email: benr_mc at cogapp.com > Cognitive Applications Ltd | Phone: +44 (0)1273-821600 > http://www.cogapp.com | Fax : +44 (0)1273-728866 > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From cyberscope at home.com Wed Jan 23 13:01:01 2002 From: cyberscope at home.com (Gene Kennedy) Date: Wed Jan 23 13:01:01 2002 Subject: Serial Ports with OS X Message-ID: <3C4EFA52.CAB9AFD5@home.com> Bill, I have not yet moved to OS X yet, so I don't know the answer to your question. I am waiting for the dust to settle a bit and have items like this worked out before I switch. This probably sounds like Heresy, but you might inquire about this over at the REALbasic user group list. I believe I saw a post there a while back explaining that Apple had neglected serial port support when developing OS X and that it wasn't going to be an easy fix. I don't know that this is true, I am only relaying what I saw elsewhere. Quite frankly, I am currently working with a couple of iMacs (333MHz, OS 8.6) and plan to make the move to OS X when I can purchase a new iBook. regards, Gene Kennedy From bvlahos at jpl.nasa.gov Wed Jan 23 13:14:02 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Wed Jan 23 13:14:02 2002 Subject: Serial Ports with OS X In-Reply-To: <3C4EFA52.CAB9AFD5@home.com> Message-ID: Gene, Actually there has been a great deal of traffic regarding serial communications for OS X on this list. The short answer is that it currently doesn't work but that the Rev folks are working on a solution which they hope to have in the near future. Apple is adopting the "unix way" of doing serial ports with the added twist that you will need a USB-serial adapter like the KeySpan to actually get the physical ports. Apple has made the API's available with example code but it won't work or look like older serial communications so all previous Comm Toolbox and Open Transport serial calls break in OS X. Doing it the "unix way" probably doesn't hurt us too badly as the foundation for Revolution (MetaCard) comes from unix. Serial ports work fine with Revolution under OS 8 and 9 and I suspect the Rev folks will get it working under X. Bill Vlahos On Wednesday, January 23, 2002, at 10:00 AM, Gene Kennedy wrote: > Bill, > > I have not yet moved to OS X yet, so I don't know the answer to your > question. I am waiting for the dust to settle a bit and have items like > this worked out before I switch. > > This probably sounds like Heresy, but you might inquire about this over > at the REALbasic user group list. I believe I saw a post there a while > back explaining that Apple had neglected serial port support when > developing OS X and that it wasn't going to be an easy fix. I don't > know that this is true, I am only relaying what I saw elsewhere. > > Quite frankly, I am currently working with a couple of iMacs (333MHz, OS > 8.6) and plan to make the move to OS X when I can purchase a new iBook. > > regards, > Gene Kennedy > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From mcmanusm at kramergraphics.com Wed Jan 23 13:27:01 2002 From: mcmanusm at kramergraphics.com (Mike McManus) Date: Wed Jan 23 13:27:01 2002 Subject: replacetext In-Reply-To: <23C7A68E-0D7D-11D6-A912-000393598038@mac.com> Message-ID: <84302FD1-102E-11D6-B6FD-003065681340@kramergraphics.com> On Sunday, January 20, 2002, at 03:10 AM, David Vaughan wrote: > Yes. Put "Function" or "Command" in large print just after the command > or function title in the Transcript entry......oh, you've already done > this. > > So, some people aren't reading it and are then complaining. Do they > also expect instructions on a milk carton saying "Do not invert after > opening"? > > I feel as entitled as anyone to ask simple questions when I'm, learning > the product but if someone has actually read to the Transcript example > then I consider it reasonable to assume they have first read the title > and either understand the distinction between Command and Function or > will ask about it without blaming the documentation. > > regards > David > > Since I originally posted the question. I am pretty sure I didn't complain on the point of documentation. I have found in very valuable. I admit to having a weakness on the functions and always miss the required command witch I first write them. Which I did in this case. I do think showing at least a truncated part of the full use would be useful though..I think it is mentioned in the next post on this subject. Functions do get rather complicated sometimes and good documentation is important. Sometimes I think I would like to just be able to copy the example from the dictionary to be sure I have the proper syntax for those seldom used commands and functions. My problem turns out to have been(in addition the the lack of a get or put) The proper constuction of the regular expression. Sorry too set off a documentation firestorm. From benr_mc at cogapp.com Wed Jan 23 13:52:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 23 13:52:01 2002 Subject: What's up with the time functions? In-Reply-To: Message-ID: on 23/1/02 5:30 PM, Kevin Miller at kevin at runrev.com wrote: >>> put "1/1/02" into temp >>> convert temp to dateitems >>> Returns: 2002,1,1,2,0,0,3 >>> Implying this year started on the second hour. >>> >>> What happened to midnight? >>> What am I missing? >> >> We'll double check this. > > Turns out to be daylight savings time. Eh? Why would that be two hours? And I get exactly the same result; I'm in the UK, and at this time of the year that means GMT. It also makes no difference when I toggled daylight savings time in the D&T control panel (admittedly I haven't quit and relaunched Rev). Nelson Zink reported this from somewhere on GMT +9. And I also tried converting "6/6/02", just in case there was something really 'clever' going on - still 2am. So I'm not clear how this is daylight savings time related? And if it is - isn't that a bug? > You have to take this into account. Er... how? Is there any way from with Revolution to find out whether daylight savings time is in effect? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From jacque at hyperactivesw.com Wed Jan 23 13:54:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed Jan 23 13:54:01 2002 Subject: [Bugs?] Parenthesis, MacOS X and option menu References: <200201231710.MAA18756@www.runrev.com> Message-ID: <3C4F065A.897BB1E8@hyperactivesw.com> Roger.E.Eller at sealedair.com wrote: > > I have no *real* solution, but I can simply verify that I too have seen > this happen > in pop-up menus. They work fine on a PC containing a ")" character, but on > a Mac, > this causes them to be greyed out. My workaround was to use a square > bracket > "]" character instead. I believe it IS A BUG. It's not a bug, it's the way the Macintosh menu manager works. Certain symbols tell the Mac to display a menu item a certain way. A right parentheses tells the menu manager to disable the menu item. You can either use square brackets to get around the problem, or you can double the symbol to tell Revolution to use the parentheses anyway: "))". The same applies to slashes in menus; double them: "//". Some other symbols need the same thing as well. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From k_major at osnabrueck.netsurf.de Wed Jan 23 14:03:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Wed Jan 23 14:03:01 2002 Subject: change fld selection on tab In-Reply-To: Message-ID: Bonsoir Yves, >> in the property-palette, set the "autotab" of these fields to true. > > I'm surely what slow in "comprehendsion" ! pas de problem... > I don't find this option in the fld palette ! > Where is it ? "Return key move to next field" is the name of that option in Rev. I do most of my work still in MC and so i am referring to the MC palettes and termini. So please forgive me the confusion. Au revoir Klaus Major k_major at osnabrueck.netsurf.de From Roger.E.Eller at sealedair.com Wed Jan 23 14:33:00 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Wed Jan 23 14:33:00 2002 Subject: replacetext Message-ID: --------------------- On 1/23/2002, Mike McManus wrote: --------------------- > I think I would like to just be able to copy the > example from the dictionary to be sure I have the proper syntax for > those seldom used commands and functions. > THAT would be nice! ~Roger From yvescoppe at skynet.be Wed Jan 23 14:50:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 23 14:50:01 2002 Subject: replacetext In-Reply-To: References: Message-ID: >--------------------- On 1/23/2002, Mike McManus wrote: >--------------------- >> I think I would like to just be able to copy the >> example from the dictionary to be sure I have the proper syntax for >> those seldom used commands and functions. >> > >THAT would be nice! > >~Roger > On Mac, you can do it : hit the option key while selecting the syntax (don't need to "copy", just select). Then go to your script and "paste" So easy -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From wow at together.net Wed Jan 23 15:41:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 23 15:41:01 2002 Subject: hiding Data In-Reply-To: Message-ID: Kevin: > Indeed - there is no such limit. Fields can handle as much as you have RAM > for, and you can store the data off screen as binary in a custom property. How does one transform data into binary? Will it be possible to decode the 6 mb of binary data in a few seconds on startup? I looked at the binaryencode option, but it wasn't clear that that was the function to use. Richard > Again it all gets loaded into memory when the stack is opened, so make sure > you have enough RAM available, or use separate stacks, external files or a > database. > > Kevin > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From bvlahos at jpl.nasa.gov Wed Jan 23 16:24:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Wed Jan 23 16:24:01 2002 Subject: CPU utilization in OS X Message-ID: <3AA48B11-1047-11D6-9521-003065760662@jpl.nasa.gov> Under Macintosh OS X, using a utility like the command line top a standalone is taking about 15% even when it isn't doing anything which seems high to me. Is there something I've missed? Is this a problem? Bill Vlahos From mcmanusm at kramergraphics.com Wed Jan 23 16:40:01 2002 From: mcmanusm at kramergraphics.com (Mike McManus) Date: Wed Jan 23 16:40:01 2002 Subject: replacetext In-Reply-To: Message-ID: <84926246-1049-11D6-B87A-003065681340@kramergraphics.com> Awesome!!1 ....now just have to remember it for a day or two. Where was this little tidbit hidden...? Not a complaint...just a question On Wednesday, January 23, 2002, at 02:46 PM, yves COPPE wrote: >> --------------------- On 1/23/2002, Mike McManus wrote: >> --------------------- >>> I think I would like to just be able to copy the >>> example from the dictionary to be sure I have the proper syntax for >>> those seldom used commands and functions. >>> >> >> THAT would be nice! >> >> ~Roger >> > > > On Mac, you can do it : hit the option key while selecting the syntax > (don't need to "copy", just select). > > Then go to your script and "paste" > > So easy > -- Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From wow at together.net Wed Jan 23 16:42:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 23 16:42:01 2002 Subject: Password protecting to hide data In-Reply-To: <28D3E88E-0ED5-11D6-81C2-0003934902A2@tactilemedia.com> Message-ID: I'm interested in this idea of password protecting the stack, but it's not clear from the documentation how this is done. The documentation says it's best to do the password protecting during distribution build. But the builder just gives on option to Encrypt With Password, indicating that that process would apply to all six of the stacks I'm including in my build. I can't find any documentation to specifically cover the Distribution Builder and the Encrypt With Password option, so I've got little to go on. I've tried the following: 1. I created a new stack with one field. I put a few lines in the field and set the password property. Nothing appears to change. The data in the field is still as visible as before. When I get the password, it indicates it has stored my password, but I see no encryption. 2. I created a new stack. Then I put that stack through the distribution builder using the Encrypt option and saving it as a file (not a standalone). Again, I have no problem opening that stack and seeing all the data in it, yet it also says my password is in there. What am I missing? Richard > Another option is continue using the source file externally but either > 1) encoding it, such as using base 64 or some other encoding scheme > and/or compression, or 2) placing the data within a user property of a > stack, and password protecting the stack. > > FWIW, > > Scott Rossi > Creative Director, Tactile Media > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From jeanne at runrev.com Wed Jan 23 16:47:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 23 16:47:00 2002 Subject: replacetext In-Reply-To: <84302FD1-102E-11D6-B6FD-003065681340@kramergraphics.com> References: <23C7A68E-0D7D-11D6-A912-000393598038@mac.com> Message-ID: At 10:25 AM -0800 1/23/2002, Mike McManus wrote: >On Sunday, January 20, 2002, at 03:10 AM, David Vaughan wrote: >> So, some people aren't reading it and are then complaining. Do they >> also expect instructions on a milk carton saying "Do not invert after >> opening"? > >Since I originally posted the question. I am pretty sure I didn't >complain on the point of documentation. For what it's worth, I certainly didn't take it as a complaint. I think your comment was valid feedback. I am still thinking about the best way to clarify this in the docs. >Sometimes I think I would like to just be able to copy the >example from the dictionary to be sure I have the proper syntax for >those seldom used commands and functions. As Yves mentioned, you can do this (hold down the option or alt key and drag through the part you want to copy). Eventually I would like to make the examples drag-and-droppable into a script window - I think that will be more convenient - but for now this functionality is there. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Wed Jan 23 16:47:21 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 23 16:47:21 2002 Subject: Hide MenuBar In-Reply-To: Message-ID: At 10:23 PM -0800 1/22/2002, =?utf-8?Q?mazzapaolo at liber?= wrote: >I have a stack in Rev on the Mac for my 3 years old little child. >In order to prevent my little one to mess up my Mac I need something >like "Hide menubar" command in Hypercard. >How can I do the same in Rev? >How can I hide completely the menu bar of the Mac? Try "hide menubar". ;-) This works on the Mac in Rev. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From yvescoppe at skynet.be Wed Jan 23 16:56:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 23 16:56:01 2002 Subject: replacetext In-Reply-To: <84926246-1049-11D6-B87A-003065681340@kramergraphics.com> References: <84926246-1049-11D6-B87A-003065681340@kramergraphics.com> Message-ID: >Awesome!!1 ....now just have to remember it for a day or two. > >Where was this little tidbit hidden...? Not a complaint...just a question > In the tutorial (I think) -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From wow at together.net Wed Jan 23 17:06:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed Jan 23 17:06:01 2002 Subject: Closestack and destroystack In-Reply-To: Message-ID: Let's say I've got a stack with one field in it holding data. When another stack starts up, I want that stack to just grab the data from the first stack and that's it. I don't want the first stack to stay in memory. Here's what I've done: created a closestack routine in the data stack. It contains one line: set the destroystack of me to true. The main stack starts up and does the following: put field "data" of stack "data" into datavariable send closestack to stack "data" Will that do it? Yes...I've tried this. I just can't be sure the data stack is actually being purged during runtime. I'm just making sure now by asking this question. Thanks. Richard From scott at tactilemedia.com Wed Jan 23 17:18:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 23 17:18:01 2002 Subject: Password protecting to hide data In-Reply-To: Message-ID: On Wednesday, January 23, 2002, at 01:39 PM, Richard D. Miller wrote: > I'm interested in this idea of password protecting the stack, but it's > not > clear from the documentation how this is done. It's pretty straightforward: set the password of stack myStack to mypassword Make sure you save your stack to have the password applied. Then, to "unlock" a stack via script: set the passKey of stack myStack to mypassword To remove password protection from a stack: set the passKey of stack myStack to mypassword set the password of stack myStack to empty And save. Regards, Scott Rossi Creative Director, Tactile Media scott at tactilemedia.com http://www.tactilemedia.com From scott at tactilemedia.com Wed Jan 23 17:23:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 23 17:23:01 2002 Subject: Password protecting to hide data In-Reply-To: Message-ID: <6DB2159D-104F-11D6-A02A-0003934902A2@tactilemedia.com> On Wednesday, January 23, 2002, at 02:15 PM, I wrote: > > On Wednesday, January 23, 2002, at 01:39 PM, Richard D. Miller wrote: > >> I'm interested in this idea of password protecting the stack, but it's >> not >> clear from the documentation how this is done. > > It's pretty straightforward: > > set the password of stack myStack to mypassword > > Make sure you save your stack to have the password applied. > Then, to "unlock" a stack via script: > > set the passKey of stack myStack to mypassword > > To remove password protection from a stack: > > set the passKey of stack myStack to mypassword > set the password of stack myStack to empty > > And save. I suppose it's worth mentioning that I do all this stuff from the message box -- these script snippets are not to be placed in your stack. Regards, Scott Rossi Creative Director, Tactile Media scott at tactilemedia.com http://www.tactilemedia.com From aurelien at truebaseball.com Wed Jan 23 17:27:01 2002 From: aurelien at truebaseball.com (Aur=?ISO-8859-1?B?6Q==?=lien Durand) Date: Wed Jan 23 17:27:01 2002 Subject: Image in pop-up window In-Reply-To: <200201232125.QAA28528@www.runrev.com> Message-ID: Hello and Bonjour!:) Does anybody knows how a mouseUp could open an image in a pop-up window (without making a specific card)? My card comes with several clickable thumbnails, so the user would clik on one of them in order to see a bigger version of the thumbnailed pic (just like in a web page). Is it possible with rev? Salutations ? tous les francophones passion?s par HyperCard et son successeur!;) AD From scott at tactilemedia.com Wed Jan 23 17:29:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 23 17:29:01 2002 Subject: Closestack and destroystack In-Reply-To: Message-ID: <495BE8B1-1050-11D6-A02A-0003934902A2@tactilemedia.com> On Wednesday, January 23, 2002, at 02:02 PM, Richard D. Miller wrote: > Let's say I've got a stack with one field in it holding data. When > another > stack starts up, I want that stack to just grab the data from the first > stack and that's it. I don't want the first stack to stay in memory > Here's what I've done: created a closestack routine in the data stack. > It > contains one line: set the destroystack of me to true. The destroyStack property is one that is set for the stack and remains persistent when the stack is saved, just like the backgroundColor or any of the other properties. There's no need to set the destroyStack property every time you open or close a stack. Regards, Scott Rossi Creative Director, Tactile Media scott at tactilemedia.com http://www.tactilemedia.com From katir at hindu.org Wed Jan 23 17:58:08 2002 From: katir at hindu.org (Sivakatirswami) Date: Wed Jan 23 17:58:08 2002 Subject: FTP upload anomaly--file opened, but nothing written Message-ID: I have a script that uploads a file and then uploads a copy of the same file to a different directory. In 2.3.2 I wrote the socket myself (well, actually hacked from Andu's FTP client and dedicated to single site/file task) and used it completely, twice. This worked fine... one file is uploaded... feedback is channeled to a log field the user can watch...when the upload was complete, turn around, open a new socket and upload the archive file. So, trying to do the same with the new URL command set I get this anomaly from the following script... first file is written, second file is opened, but no data is written to it. I know the second handler is correct, because if I run it separately by itself... from the message box...the file uploads and data is written properly... but in a "one two" sequence... no data is written in the second handler?? The behaviour is exactly the same in Metacard and Revolution (where, in the latter case, the "start using stack libURL" is not needed). Well, of course the immediate solution to the problem is to for me to simply use my own full socket scripts (which are a lot faster anyway than libURL.) But it would be good to have a solution for this, as, obviously, it is much easier to script a single FTP command line than write the entire socket, as I am looking for a general purpose solution where I only have to pass the user:pass:host:path to single command line in scripts. Also, there is zero feedback mechanism in the current libURL for an FTP upload... but of course that is being looked into already no doubt. ========== on upload start using stack "libURL" put "ftp://"&gUser&":"&gPass&"@"& gHost&gPath&gFilename into gMachinePath put fld "ftext" into URL gMachinePath ## the above works fine if (gUser is "gurudeva") and (gFileName is "index.shtml" ) then uploadToArchives end upload on uploadToArchives start using stack "libURL" put line 3 of fld "fText" into tDate put word 6 of tDate into tDay delete last char of tDay if tDay is among the items of (1,2,3,4,5,6,7,8,9) then put "0" before tDay put word 5 of tDate &"_"& tDay&"_" &word 7 of tDate into tDateString put "archives/"&tDateString&"/index.shtml" into archiveFile put "ftp://"&gUser&":"&gPass&"@"& gHost&gPath&archiveFile into gMachinePath put gMachinePath ##the above works fine if you run "uploadToArchives" from the message box ## but not in sequence from the "upload" handler above. TIA! Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From zink at newmex.com Wed Jan 23 18:27:01 2002 From: zink at newmex.com (Nelson Zink) Date: Wed Jan 23 18:27:01 2002 Subject: What's up with the time functions? Message-ID: Ben, > And I get exactly the same result; I'm in the UK, and at this time of the > year that means GMT. It also makes no difference when I toggled daylight > savings time in the D&T control panel (admittedly I haven't quit and > relaunched Rev). Nelson Zink reported this from somewhere on GMT +9. And I > also tried converting "6/6/02", just in case there was something really > 'clever' going on - still 2am. So I'm not clear how this is daylight > savings time related? Through this I found out that my computer was living in Chabarovsk, Russia while I've been in New Mexico. Not sure how or when this happened, but anyway. I've been using Rev to calculate moon rise/set times and have had to introduce a 2 hour fudge factor to make the times come out right. Nelson From tim11 at bellatlantic.net Wed Jan 23 18:35:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Wed Jan 23 18:35:01 2002 Subject: Filetype creator & type Message-ID: Hi, I'm trying to change the file's creator & type by using the "filetype" property, but I've noticed that it can do so ONLY when you create a file with Open File command. As a workaround is it possible to get the contents of a given file, delete the file, create a new file with Open File command, change its creator & file type, and finally put the contents back in? I know I could do this with a simple text file, but what about other file types? BTW I'm doing this on OS X. TIA -- Tim From aurelien at truebaseball.com Wed Jan 23 19:41:01 2002 From: aurelien at truebaseball.com (Aur=?ISO-8859-1?B?6Q==?=lien Durand) Date: Wed Jan 23 19:41:01 2002 Subject: "" characters In-Reply-To: <200201232125.QAA28528@www.runrev.com> Message-ID: Hello, How is it possible to include the "" charaters in a "x" expression? For example a name with a sub-name like Michael "Air" Jordan in an expression like: put "Michael "Air" Jordan" into variable? The "" characters cause interferences and interrupt the script. Is there any way to resolve this problem? Cordialy AD From scott at tactilemedia.com Wed Jan 23 19:47:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 23 19:47:01 2002 Subject: "" characters In-Reply-To: Message-ID: <9E97CC9C-1063-11D6-8377-0003934902A2@tactilemedia.com> On Wednesday, January 23, 2002, at 04:40 PM, Aur?lien Durand wrote: > How is it possible to include the "" charaters in a "x" expression? For > example a name with a sub-name like Michael "Air" Jordan in an > expression > like: put "Michael "Air" Jordan" into variable? The "" characters cause > interferences and interrupt the script. Is there any way to resolve this > problem? put "Michael" && quote & "Air" & quote && "Jordan" into variable Regards, Scott Rossi Creative Director, Tactile Media scott at tactilemedia.com http://www.tactilemedia.com From aurelien at truebaseball.com Wed Jan 23 20:11:01 2002 From: aurelien at truebaseball.com (Aur=?ISO-8859-1?B?6Q==?=lien Durand) Date: Wed Jan 23 20:11:01 2002 Subject: Absolute URLs In-Reply-To: <200201232125.QAA28528@www.runrev.com> Message-ID: Hello again!!:) I've encoutered a serious problem wich is a real enigma for me actually (the thirs today!!!). The url of the images or other imported medias are qualified as absolute. I mean that their url is displaiyed like this: HardDriveName/Desktop folder/Name of the folder/ etc? (i'm working on a mac) The problem is that when i need to work on another mac with a copy of my entire project (in fact the folder containing the stack and all the medias) none of the medias is found! The problem would be the same in GoLive when you specify that a link to a file is absolute but the default setting is to qualify normaly urls. How is it possible in Rev? Cordialy, AD From jcuccio at pacbell.net Wed Jan 23 20:41:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Wed Jan 23 20:41:01 2002 Subject: hidemenubar Message-ID: Do a openstack,opencard,startup handler on startup hide menubar end startup just like in HyperCard From kee at kagi.com Wed Jan 23 20:44:00 2002 From: kee at kagi.com (Kee Nethery) Date: Wed Jan 23 20:44:00 2002 Subject: Read serial data + Kagi? In-Reply-To: References: <20020121115940.92683.qmail@web12304.mail.yahoo.com> Message-ID: >At 3:59 AM -0800 1/21/02, Niklas "Almesj?" wrote: >>On a related note, has anyone sold shareware through Kagi? >>if so: >>- Does it work well? >>- Have you used pregenerated codes? >>thanks, >>/Niklas > >I do. They were a little rough in the beginning, but now that >everything's set up, it's been fine for the past year. I haven't >used unlock codes with them, as I have to ship a cd to everyone who >buys the software. I believe we calculate reg codes for Ten Thumbs Typing Tutor. Imagine someone on this list would know for sure. :-) Our preference is to calculate reg codes, it gives the user immediate access to the software, and there is no list of precalculated codes that has to be maintained and refilled. Kee From jcuccio at pacbell.net Wed Jan 23 21:14:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Wed Jan 23 21:14:01 2002 Subject: Absolute URLs Message-ID: >Hello again!!:) >I've encoutered a serious problem wich is a real enigma for me actually (the >thirs today!!!). The url of the images or other imported medias are >qualified as absolute. I mean that their url is displaiyed like this: >HardDriveName/Desktop folder/Name of the folder/ etc? (i'm working on a mac) >The problem is that when i need to work on another mac with a copy of my >entire project (in fact the folder containing the stack and all the medias) >none of the medias is found! The problem would be the same in GoLive when >you specify that a link to a file is absolute but the default setting is to >qualify normaly urls. How is it possible in Rev? >Cordialy, Here is how I do this. If the folder of the info never changes but the name of the hard disk does. If use get the filename of the stack it returns the path where the stack is located. Then change the itemdelimiter to "/". Then item 2 is the name of the hard disk. Then put the pieces of the info together to get the path. I call my from a function. but you could store this at start up in a field or var. on something put the filename of this stack into hdname put "/desktop/image/" into imagepath set the itemdelimiter to "/" put item 2 of hdname into hdname --this gives you the HD name put "file:"&hdname&imagepath into filepath put url filepath into some palce end something From jeanne at runrev.com Wed Jan 23 23:44:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 23 23:44:01 2002 Subject: Hypertext In-Reply-To: References: Message-ID: At 11:32 AM -0800 1/22/2002, Jean-Pierre Messier wrote: >How I can make hypertext like the help in the revolution... > >Move the mouse and the selected text is yellow? I don't find the code >in the stack. The handlers that do this (revDocsHighlight and revDocsClearHighlight) are actually in the documentation library. (Check the backScripts to find this library and read the original script.) They're called from each stack's mouseMove, mouseLeave, mouseEnter handlers. Here's a simplified version which you can place in a field's script. To make a word or phrase "highlightable", change its text style to "link". You may also want to turn off link coloring and link underlining in the Stack Properties palette. on mouseMove -- first unhighlight the "old" phrase if necessary if the storedHilitedChunk of this stack is not empty \ and the storedHilitedChunk of this stack is not the mouseChunk then do "set the backgroundColor of" && (the storedHilitedChunk of this stack) && "to empty" set the storedHilitedChunk of this stack to empty end if if the mouseChunk is not empty and "link" is in the textStyle of the mouseChunk then set the storedHilitedChunk of this stack to the mouseChunk -- save for later unhighlighting set the backgroundColor of the mouseChunk to "yellow" end if pass mouseMove end mouseMove on mouseLeave if the storedHilitedChunk of this stack is not empty then do "set the backgroundColor of" && (the storedHilitedChunk of this stack) && "to empty" set the storedHilitedChunk of this stack to empty end if pass mouseLeave end mouseLeave Unlike the version in the docs library, this doesn't change the cursor, and it's hardcoded to use yellow instead of a choice of colors the way the docs have. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Wed Jan 23 23:44:31 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 23 23:44:31 2002 Subject: replacetext In-Reply-To: <84926246-1049-11D6-B87A-003065681340@kramergraphics.com> References: Message-ID: At 1:38 PM -0800 1/23/2002, Mike McManus wrote: >Awesome!!1 ....now just have to remember it for a day or two. > >Where was this little tidbit hidden...? Not a complaint...just a question It's in the Encyclopedia section "About the Documentation". I thought it was also in the Tips, but it wasn't. (It is now, however. Heh.) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From shaosean at unitz.ca Thu Jan 24 01:07:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Thu Jan 24 01:07:01 2002 Subject: Image in pop-up window References: Message-ID: <001c01c1a49d$1127db50$88b15bd1@dreamlanpc> on mouseUp local vTempWindowID lock screen if ("picturePalette" is among the lines of the openStacks) then clone stack "picturePalette" put it into vTempWindowID set the title of vTempWindowID to "Viewing Picture:" && the short name of me else go invisible to stack "picturePalette" in a new window set the title of stack "picturePalette" to "Viewing Picture:" && the short name of me show stack "picturePalette" end if unlock screen end mouseUp you may also want to look at putting it into a function and having the buttons call the function passing their short name as a parameter.. this code may or may not work 100% with copy-paste, so give it a test and you may need to tweak it a little.. From yvescoppe at skynet.be Thu Jan 24 02:30:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 24 02:30:01 2002 Subject: Image in pop-up window In-Reply-To: References: Message-ID: >Hello and Bonjour!:) > >Does anybody knows how a mouseUp could open an image in a pop-up window >(without making a specific card)? My card comes with several clickable >thumbnails, so the user would clik on one of them in order to see a bigger >version of the thumbnailed pic (just like in a web page). Is it possible >with rev? > >Salutations ? tous les francophones passion?s par HyperCard et son >successeur!;) > Salut Aur?lien You can do that with a substack You open your thumbnail image in a big window. Bonnne chance ! -- From yvescoppe at skynet.be Thu Jan 24 02:36:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 24 02:36:00 2002 Subject: "" characters In-Reply-To: References: Message-ID: >Hello, > >How is it possible to include the "" charaters in a "x" expression? For >example a name with a sub-name like Michael "Air" Jordan in an expression >like: put "Michael "Air" Jordan" into variable? The "" characters cause >interferences and interrupt the script. Is there any way to resolve this >problem? > >Cordialy > Resalut ! put "Michael"&"e&"AIR""e&&"Jordan" into myVariable A+ -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From kmajor at metascape.org Thu Jan 24 03:11:01 2002 From: kmajor at metascape.org (Klaus) Date: Thu Jan 24 03:11:01 2002 Subject: Image in pop-up window In-Reply-To: Message-ID: Bonjour Aur?lien, > Hello and Bonjour!:) > > Does anybody knows how a mouseUp could open an image in a pop-up window > (without making a specific card)? My card comes with several clickable > thumbnails, so the user would clik on one of them in order to see a bigger > version of the thumbnailed pic (just like in a web page). Is it possible > with rev? try this: create a new stack ("stack "display" in my example) as a substack of that stack with the clickable thumbnails. In "display" there should be just one card with an empty image on it. Now script this in your thumbnail-buttons: on mouseup set the filename of image 1 of stack "display" to \ "your_path_to/your_imag_here.jpg" ###save memory ;-) set the rect of stack "display" to the rect of image 1 ####so the image will fill the entire stack palette "display" ##or toplevel or whatever end mouseup This way there is no need for clonig stacks or stuff. Just a tiny, reusable extra-stack :-) You could even give that big image a script... maybe: on mouseup close this stack end mouseup mabe not .-) Not tested due to lack of time, but you will figure it out... P.S. A good idea is to store the full path to the big pictures as a custom-property in the thumbnail-buttons. I do it all the time. So you can script (in the group "los thumbos" after grouping all these buttons): on mouseup if "button" is in the target and the owner of the target is me then set the filename of image 1 of stack "display" to \ the pathe_exact of the target ..... end mouseup It's just ONE script... (I'm lazy by nature ;-) Drop a line if you do not know what i am talking about... Au revoir Klaus Major MetaScape GmbH From gcanyon at inspiredlogic.com Thu Jan 24 03:29:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 24 03:29:01 2002 Subject: Filetype creator & type In-Reply-To: References: Message-ID: At 6:32 PM -0500 1/23/02, Tim wrote: >I'm trying to change the file's creator & type by using the "filetype" >property, but I've noticed that it can do so ONLY when you create a file >with Open File command. As a workaround is it possible to get the contents >of a given file, delete the file, create a new file with Open File command, >change its creator & file type, and finally put the contents back in? I know >I could do this with a simple text file, but what about other file types? >BTW I'm doing this on OS X. You could do this with an AppleScript. I would post exact syntax, but I started to do that about five hours ago, and testing the script in Script Editor was the last thing I did before my hard drive decided to die... I've now revived it (I think) and although I'm sure Script Editor wasn't the source of the problem, I think it will be at least a day or two before I try it out again. :-) The script would be something like this: tell application "Finder" set the filetype of file tSomePath to "TEXT" set the creatortype of file tSomePath to "R*ch" end tell regards, Geoff From pdel at noos.fr Thu Jan 24 03:31:01 2002 From: pdel at noos.fr (Pierre Delain) Date: Thu Jan 24 03:31:01 2002 Subject: topStack In-Reply-To: <200201171710.MAA29819@www.runrev.com> Message-ID: I try to use the expression "set the topstack to the defaultstack" found in the Transcript dictionary in order to put a stack in the active window. But Rev return an error.... The same if I try to put "set the topstack to "Mystack"" in a script. Is it a bug? If this expression cannot be used, how can I put a stack in the frontmost window? Thanks, Pierre Delain From gcanyon at inspiredlogic.com Thu Jan 24 03:32:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 24 03:32:01 2002 Subject: "" characters In-Reply-To: <9E97CC9C-1063-11D6-8377-0003934902A2@tactilemedia.com> References: <9E97CC9C-1063-11D6-8377-0003934902A2@tactilemedia.com> Message-ID: At 4:45 PM -0800 1/23/02, Scott Rossi wrote: >On Wednesday, January 23, 2002, at 04:40 PM, Aur?lien Durand wrote: > >> How is it possible to include the "" charaters in a "x" expression? For >> example a name with a sub-name like Michael "Air" Jordan in an expression >> like: put "Michael "Air" Jordan" into variable? The "" characters cause >> interferences and interrupt the script. Is there any way to resolve this >> problem? > > put "Michael" && quote & "Air" & quote && "Jordan" into variable I'd love to be able to do what some other tools offer: put 'Michael "Air" Jordan' into variable regards, Geoff From pixelbird at interisland.net Thu Jan 24 03:32:13 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu Jan 24 03:32:13 2002 Subject: messages to buttons when the mouse is already down In-Reply-To: Message-ID: on 1/22/02 2:36 PM, Michael J. Lew at michaell at unimelb.edu.au wrote: > Thanks for all of the helpful suggestions. It is a more interesting > exercise than I expected in that the messages that one might expect > to use are blocked when the mouse is down. Perhaps they shouldn't > be... ---------- Michael, You're welcome, I'm sure, even though most of it wouldn't work. It's really difficult to interleave even a simulated mouseEnter with other mouse messages simultaneously with the button hilite. It's asking more than you'd think. When the mouse is up, there's more idletime for the system to have for other things in xCard environments, so the cursor position relative to an object is much easier to retrieve. You really ought to consider whether or not you have to have the mouse down. It isn't really the same as a 'drag' type situation. Another simple thing you might wish to consider for your game. 1) Tie a button to the mouseLoc or mouseMove. You can drag it anywhere, and if its loc is within the rect of another button or field, well...you take it from there. I have a boundary handler somewhere, too, if you want it. Best regards, Ken N. From gcanyon at inspiredlogic.com Thu Jan 24 04:13:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 24 04:13:01 2002 Subject: topStack In-Reply-To: References: Message-ID: At 9:29 AM +0100 1/24/02, Pierre Delain wrote: >I try to use the expression "set the topstack to the defaultstack" found in >the Transcript dictionary in order to put a stack in the active window. But >Rev return an error.... >The same if I try to put "set the topstack to "Mystack"" in a script. Is it >a bug? >If this expression cannot be used, how can I put a stack in the frontmost >window? If I understand correctly, you're looking for go stack "newStack" in the window of stack "currentStack" Do the docs really say "set the topstack to the defaultstack?" I would think "set the defaultStack to the topStack" would be more likely. regards, Geoff From tim11 at bellatlantic.net Thu Jan 24 04:25:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Thu Jan 24 04:25:01 2002 Subject: Filetype creator & type In-Reply-To: Message-ID: On 1/24/02 3:28 AM, "Geoff Canyon" wrote: > At 6:32 PM -0500 1/23/02, Tim wrote: >> I'm trying to change the file's creator & type by using the "filetype" >> property, but I've noticed that it can do so ONLY when you create a file >> with Open File command. As a workaround is it possible to get the contents >> of a given file, delete the file, create a new file with Open File command, >> change its creator & file type, and finally put the contents back in? I know >> I could do this with a simple text file, but what about other file types? >> BTW I'm doing this on OS X. > > You could do this with an AppleScript. I would post exact syntax, but I > started to do that about five hours ago, and testing the script in Script > Editor was the last thing I did before my hard drive decided to die... > > I've now revived it (I think) and although I'm sure Script Editor wasn't the > source of the problem, I think it will be at least a day or two before I try > it out again. :-) > > The script would be something like this: > > tell application "Finder" > set the filetype of file tSomePath to "TEXT" > set the creatortype of file tSomePath to "R*ch" > end tell > > regards, > > Geoff Thanks Geoff. That simplifies it considerably. Sorry for your hard drive. Hope everything was backed up. -- Tim From webmaster at studioalice.se Thu Jan 24 05:51:02 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Thu Jan 24 05:51:02 2002 Subject: Ask dialog and write file to disc Message-ID: Hello I use the Ask file command to let the user provide the name and location of a txt-file. But on testing no file it written to disc. I get no errors. So, can anybody tell me what is wrong with this script: on mouseUp ask file "Save your order" with "Untitled.txt" if it is empty then exit mouseUp open it write field "totalOrder" to file it end mouseUp /magnus -------------------------------------------------------------------------------------------------- "En l?ng resa mot full?ndandet ? fr?n 6.04 till OSX" -------------------------------------------------------------------------------------------------- Studio Alice Magnus von Br?msen 0702-212 495 0322-633 833 www.studioalice.se -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 785 bytes Desc: not available URL: From scott at tactilemedia.com Thu Jan 24 06:02:02 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Thu Jan 24 06:02:02 2002 Subject: Ask dialog and write file to disc In-Reply-To: Message-ID: Recently, Magnus von Br?msen wrote: > So, can anybody tell me what is wrong with this script: > > on mouseUp > ask file "Save your order" with "Untitled.txt" > if it is empty then exit mouseUp > open it > write field "totalOrder" to file it > end mouseUp Looks like you're missing a line to finish the write command. Try this: open file it write field "totalOrder" to file it close file it Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From heather at runrev.com Thu Jan 24 06:21:01 2002 From: heather at runrev.com (Heather Williams) Date: Thu Jan 24 06:21:01 2002 Subject: Read serial data + Kagi? In-Reply-To: <200201241052.FAA15144@www.runrev.com> Message-ID: > Message: 2 > Date: Wed, 23 Jan 2002 17:37:00 -0800 > To: use-revolution at lists.runrev.com > From: Kee Nethery > Subject: Re: Read serial data + Kagi? > Reply-To: use-revolution at lists.runrev.com > >> At 3:59 AM -0800 1/21/02, Niklas "Almesj?" wrote: >>> On a related note, has anyone sold shareware through Kagi? >>> if so: >>> - Does it work well? >>> - Have you used pregenerated codes? >>> thanks, >>> /Niklas >> >> I do. They were a little rough in the beginning, but now that >> everything's set up, it's been fine for the past year. I haven't >> used unlock codes with them, as I have to ship a cd to everyone who >> buys the software. > > I believe we calculate reg codes for Ten Thumbs Typing Tutor. Imagine > someone on this list would know for sure. :-) > No, actually we supply you with a list of precalculated codes, you just insert them. :) Works fine for us. Regards, Heather > Our preference is to calculate reg codes, it gives the user immediate > access to the software, and there is no list of precalculated codes > that has to be maintained and refilled. > > Kee -- Heather Williams Runtime Revolution Ltd. Tel: +44 (0) 131 7184333 Fax: +44 (0)1639 830707 Ten Thumbs Typing Tutor Teach your Fingers to Dance From kmajor at metascape.org Thu Jan 24 06:29:01 2002 From: kmajor at metascape.org (Klaus) Date: Thu Jan 24 06:29:01 2002 Subject: Ask dialog and write file to disc In-Reply-To: Message-ID: Hi Magnus, > Recently, Magnus von Br?msen wrote: > >> So, can anybody tell me what is wrong with this script: >> >> on mouseUp >> ask file "Save your order" with "Untitled.txt" >> if it is empty then exit mouseUp >> open it >> write field "totalOrder" to file it >> end mouseUp > > Looks like you're missing a line to finish the write command. Try this: > > open file it > write field "totalOrder" to file it > close file it > > Regards, > > Scott Rossi > Creative Director you can have it even shorter ;-) on mouseUp ask file "Save your order" with "Untitled.txt" if it is empty then exit mouseUp put field "totalOrder" into url ("file:" & it) ## !!! end mouseUp Regards Klaus Major MetaScape GmbH "Watch out where the huskies go, and don't you eat that yellow snow !" Frank Zappa, "Nanook rubs it" ;-) From Frank.Barlow at ICL.com Thu Jan 24 06:30:00 2002 From: Frank.Barlow at ICL.com (Barlow Frank) Date: Thu Jan 24 06:30:00 2002 Subject: Ask dialog and write file to disc Message-ID: <9B7B6E6E6C76D311AAE10090272405B5013D9ADD@WWMESSD114> after the ask statement try put it - into the message box as a check then change the if statement if it is empty then exit mouseUp else put it into fld id 1 end if Frank Unconundrum Ltd frank at adsum.org -----Original Message----- From: Magnus von Br?msen [mailto:webmaster at studioalice.se] Sent: 24 January 2002 10:48 To: use-revolution at lists.runrev.com Subject: Ask dialog and write file to disc Hello I use the Ask file command to let the user provide the name and location of a txt-file. But on testing no file it written to disc. I get no errors. So, can anybody tell me what is wrong with this script: on mouseUp ask file "Save your order" with "Untitled.txt" if it is empty then exit mouseUp open it write field "totalOrder" to file it end mouseUp /magnus ---------------------------------------------------------------------------- ---------------------- "En l?ng resa mot full?ndandet ? fr?n 6.04 till OSX" ---------------------------------------------------------------------------- ---------------------- Studio Alice Magnus von Br?msen 0702-212 495 0322-633 833 www.studioalice.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From webmaster at studioalice.se Thu Jan 24 07:49:01 2002 From: webmaster at studioalice.se (=?ISO-8859-1?Q?Magnus_von_Br=F6msen?=) Date: Thu Jan 24 07:49:01 2002 Subject: Ask dialog and write file to disc In-Reply-To: Message-ID: <41F56D5D-10C8-11D6-A7C1-003065CCBD1A@studioalice.se> Many thanks! Works great now. (I had missed "file" in Open & Close.) >> >> Looks like you're missing a line to finish the write command. Try >> this: >> >> open file it >> write field "totalOrder" to file it >> close file it >> >> Regards, >> >> Scott Rossi >> Creative Director > > you can have it even shorter ;-) > > on mouseUp > ask file "Save your order" with "Untitled.txt" > if it is empty then exit mouseUp > put field "totalOrder" into url ("file:" & it) ## !!! > end mouseUp > I'm new to Revolution (my first project). So, that combination of (" "&), is it replaced by the actual name of the file?. /magnus -------------------------------------------------------------------------------------------------- "Tiden g?r och Macen best?r" -------------------------------------------------------------------------------------------------- Studio Alice Magnus von Br?msen 0702-212 495 0322-633 833 www.studioalice.se From pete.boardman at mac.com Thu Jan 24 08:22:01 2002 From: pete.boardman at mac.com (pete boardman) Date: Thu Jan 24 08:22:01 2002 Subject: examples In-Reply-To: Message-ID: <0B20BB56-10CD-11D6-BE4F-0003931AD714@mac.com> On Wednesday, January 23, 2002, at 05:38 , yves COPPE wrote: >> I'm looking for some example stacks to explore. Any pointers to where >> I could find some? > > In the "View" menu, ask "revolution UI stacks in list". > then, in the same menu "Application overview" > All the stacks of Revolution appear. Good idea, thanks! It's a bit like jumping into the deep end, though! Still, I'll hold my breath and see how I get on. Pete From kmajor at metascape.org Thu Jan 24 08:27:01 2002 From: kmajor at metascape.org (Klaus) Date: Thu Jan 24 08:27:01 2002 Subject: Ask dialog and write file to disc In-Reply-To: <41F56D5D-10C8-11D6-A7C1-003065CCBD1A@studioalice.se> Message-ID: Hi Magnus, > Many thanks! > Works great now. (I had missed "file" in Open & Close.) >> >> you can have it even shorter ;-) >> >> on mouseUp >> ask file "Save your order" with "Untitled.txt" >> if it is empty then exit mouseUp >> put field "totalOrder" into url ("file:" & it) ## !!! >> end mouseUp >> > I'm new to Revolution (my first project). So, that combination > of (" "&), is it replaced by the actual name of the file?. > > /magnus Yes, kind of... the url command needs a complete string as an argument. So the correct syntax would be: put fld 1 into url "file:Your_complete/path_to_the/file.txt" So the actual filepath and the "file:" have to be concenated first, that's what the parenthesis are for. (The & (ampersand) concatenates 2 strings.) If you leave them, there will be an error. Regards Klaus Major MetaScape GmbH From kmajor at metascape.org Thu Jan 24 08:32:01 2002 From: kmajor at metascape.org (Klaus) Date: Thu Jan 24 08:32:01 2002 Subject: examples In-Reply-To: <0B20BB56-10CD-11D6-BE4F-0003931AD714@mac.com> Message-ID: Hi all, > On Wednesday, January 23, 2002, at 05:38 , yves COPPE wrote: > >>> I'm looking for some example stacks to explore. Any pointers to where >>> I could find some? >> >> In the "View" menu, ask "revolution UI stacks in list". >> then, in the same menu "Application overview" >> All the stacks of Revolution appear. > > Good idea, thanks! It's a bit like jumping into the deep end, though! > Still, I'll hold my breath and see how I get on. > > Pete take a look at www.metacard.com -> Applications www.mctools.org -> Downloads and www.xworlds.com/metacard -> Contributors There are lots of stacks to download and examine... Have fun :-) Regards Klaus Major MetaScape GmbH From Jean-Pierre.Messier at UMontreal.CA Thu Jan 24 10:55:01 2002 From: Jean-Pierre.Messier at UMontreal.CA (Jean-Pierre Messier) Date: Thu Jan 24 10:55:01 2002 Subject: Hypertext In-Reply-To: References: Message-ID: Thanks Jeanne for this information From mcmanusm at kramergraphics.com Thu Jan 24 11:05:01 2002 From: mcmanusm at kramergraphics.com (Mike McManus) Date: Thu Jan 24 11:05:01 2002 Subject: replacetext In-Reply-To: Message-ID: see what happens when you create a great product. You skip over the documentation. Sorry, It's so like Hypercard for me, that the transition has been very easy for the most part. I just jumped in and started where I left off, with tons of new tools! Biggest problem for me has been getting applescipt to run other than running the contents of a field as a script, which works fine. On Wednesday, January 23, 2002, at 07:57 PM, Jeanne A. E. DeVoto wrote: > At 1:38 PM -0800 1/23/2002, Mike McManus wrote: >> Awesome!!1 ....now just have to remember it for a day or two. >> >> Where was this little tidbit hidden...? Not a complaint...just a >> question > > It's in the Encyclopedia section "About the Documentation". > > I thought it was also in the Tips, but it wasn't. (It is now, however. > Heh.) > > -- > Jeanne A. E. DeVoto ~ jeanne at runrev.com > http://www.runrev.com/ > Runtime Revolution Limited - Power to the Developer! > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From Jean-Pierre.Messier at UMontreal.CA Thu Jan 24 11:40:01 2002 From: Jean-Pierre.Messier at UMontreal.CA (Jean-Pierre Messier) Date: Thu Jan 24 11:40:01 2002 Subject: Import text Message-ID: Hi! What is the type of text I can Import? RTF? Styled text? Thanks From wow at together.net Thu Jan 24 12:17:01 2002 From: wow at together.net (Richard D. Miller) Date: Thu Jan 24 12:17:01 2002 Subject: Password protecting to hide data In-Reply-To: Message-ID: Scott: I have no success with this process. I create a new stack, with one field. I put some data in it. I set its password from the message box. I save it. Nothing happens. I can open the stack later and see everything in it. I can freely access the content of the field. If I ask for its password, it gives me back an encrypted password. I can't get this to work. Are you certain it works in OS9 with 1.1.1? What could I be missing? Richard > > It's pretty straightforward: > > set the password of stack myStack to mypassword > > Make sure you save your stack to have the password applied. > Then, to "unlock" a stack via script: > > set the passKey of stack myStack to mypassword > > To remove password protection from a stack: > > set the passKey of stack myStack to mypassword > set the password of stack myStack to empty > > And save. > > Regards, > > Scott Rossi > Creative Director, Tactile Media > scott at tactilemedia.com > http://www.tactilemedia.com > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From pdel at noos.fr Thu Jan 24 13:22:01 2002 From: pdel at noos.fr (Pierre Delain) Date: Thu Jan 24 13:22:01 2002 Subject: Topstack In-Reply-To: <200201241052.FAA15152@www.runrev.com> Message-ID: > go stack "newStack" in the window of stack "currentStack" > > Do the docs really say "set the topstack to the defaultstack?" I would think > "set the defaultStack to the topStack" would be more likely. > In the transcript Dictionary, you can find both expressions : - in the article "defaultStack property", you have "set the defaultstack to the topStack" (mean which stack is "this stack") - in the article "topStack function", you have "set the topStack to the defaultStack". As far as I understand, it means that if you want your stack to be seen in the active window on the top of the other stacks, this script should work... What I want to do is very simple : sometimes, after a script, the stack I want to use is behind the other stacks. I would like it to come automatically in the front, in its own window. "Go stack XXX in new window" do not work. Pierre Delain. From scott at tactilemedia.com Thu Jan 24 13:22:24 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Thu Jan 24 13:22:24 2002 Subject: Password protecting to hide data In-Reply-To: Message-ID: The password protects the scripts of a stack and the ability to copy anything out of it. It does not prevent opening a stack if you have MetaCard or Revolution. If you're trying to completely hide your data, you can try these options (there may be others): 1) place your data in the script of a stack, or an object in the stack, and password protect the stack; you will then need to set the passkey of the stack before you try to extract the data (you may need to comment the lines so MC/REV doesn't try to treat your data as a script) 2) encode your data in an external text file using base64encode or other encoding scheme 3) store your encoded data in a user property of a stack You'll have to try these and see if any is workable for your situation. On Thursday, January 24, 2002, at 09:14 AM, Richard D. Miller wrote: > I have no success with this process. I create a new stack, with one > field. I > put some data in it. I set its password from the message box. I save it. > Nothing happens. I can open the stack later and see everything in it. I > can > freely access the content of the field. If I ask for its password, it > gives > me back an encrypted password. I can't get this to work. Are you > certain it > works in OS9 with 1.1.1? What could I be missing? > > Richard >> >> It's pretty straightforward: >> >> set the password of stack myStack to mypassword >> >> Make sure you save your stack to have the password applied. >> Then, to "unlock" a stack via script: >> >> set the passKey of stack myStack to mypassword >> >> To remove password protection from a stack: >> >> set the passKey of stack myStack to mypassword >> set the password of stack myStack to empty >> >> And save. >> Regards, Scott Rossi Creative Director, Tactile Media scott at tactilemedia.com http://www.tactilemedia.com From netdzynr at mac.com Thu Jan 24 13:36:01 2002 From: netdzynr at mac.com (netdzynr) Date: Thu Jan 24 13:36:01 2002 Subject: Password protecting to hide data In-Reply-To: Message-ID: <43768D05-10F5-11D6-9414-0003934902A2@mac.com> The password protects the scripts of a stack and the ability to copy anything out of it. It does not prevent opening a stack if you have MetaCard or Revolution. If you're trying to completely hide your data, you can try these options (there may be others): 1) place your data in the script of a stack, or an object in the stack, and password protect the stack; you will then need to set the passkey of the stack before you try to extract the data (you may need to comment the lines so MC/REV doesn't try to treat your data as a script) 2) encode your data in an external text file using base64encode or other encoding scheme 3) store your encoded data in a user property of a stack You'll have to try these and see what's workable for your situation. On Thursday, January 24, 2002, at 09:14 AM, Richard D. Miller wrote: > I have no success with this process. I create a new stack, with one > field. I > put some data in it. I set its password from the message box. I save it. > Nothing happens. I can open the stack later and see everything in it. I > can > freely access the content of the field. If I ask for its password, it > gives > me back an encrypted password. I can't get this to work. Are you > certain it > works in OS9 with 1.1.1? What could I be missing? > > Richard >> >> It's pretty straightforward: >> >> set the password of stack myStack to mypassword >> >> Make sure you save your stack to have the password applied. >> Then, to "unlock" a stack via script: >> >> set the passKey of stack myStack to mypassword >> >> To remove password protection from a stack: >> >> set the passKey of stack myStack to mypassword >> set the password of stack myStack to empty >> >> And save. Regards, Scott Rossi Creative Director, Tactile Media scott at tactilemedia.com http://www.tactilemedia.com From gcanyon at inspiredlogic.com Thu Jan 24 14:04:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 24 14:04:01 2002 Subject: Import text In-Reply-To: References: Message-ID: At 11:37 AM -0500 1/24/02, Jean-Pierre Messier wrote: >What is the type of text I can Import? RTF? Styled text? Plain text and HTML. HTML is supported for text formatting, not for structure (tables are not interpreted, for example). There are some reserved words related to RTF, but at this point that's all it is -- reserved words. I've written exports to RTF, which isn't too hard. Writing an importer would be more work. regards, gc From k_major at osnabrueck.netsurf.de Thu Jan 24 14:07:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Thu Jan 24 14:07:01 2002 Subject: Topstack In-Reply-To: Message-ID: <5FC1AC54-10FD-11D6-9E87-000A27B49A96@osnabrueck.netsurf.de> Bonjour Pierre, > >> go stack "newStack" in the window of stack "currentStack" >> >> Do the docs really say "set the topstack to the defaultstack?" I would >> think >> "set the defaultStack to the topStack" would be more likely. >> > > In the transcript Dictionary, you can find both expressions : > > - in the article "defaultStack property", you have "set the > defaultstack to the topStack" (mean which stack is "this stack") > > - in the article "topStack function", you have "set the topStack to > the > defaultStack". As far as I understand, it means that if you want your > stack > to be seen in the active window on the top of the other stacks, this > script > should work... > > What I want to do is very simple : sometimes, after a script, the > stack I > want to use is behind the other stacks. I would like it to come > automatically in the front, in its own window. "Go stack XXX in new > window" > do not work. > > Pierre Delain. if i understand you right, you want to show a stack on top of all other stacks and that stack is already open, but lies somewhere behind the other stacks. In that case just script: ........ toplevel "name_of_your_stack_here" end xxx You can just call that stack with its style again, and it will come to front. palette or modeless or whatsoever... Hope that helps... Au revoir Klaus Major k_major at osnabrueck.netsurf.de P.S. Beaucoup des francaises ici :-) Ca va bien ? Now i understand why there is a french version of RR on its way ;-) From gcanyon at inspiredlogic.com Thu Jan 24 14:08:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 24 14:08:00 2002 Subject: Topstack In-Reply-To: References: Message-ID: At 7:21 PM +0100 1/24/02, Pierre Delain wrote: >> go stack "newStack" in the window of stack "currentStack" >> >> Do the docs really say "set the topstack to the defaultstack?" I would think >> "set the defaultStack to the topStack" would be more likely. >> > >In the transcript Dictionary, you can find both expressions : > > - in the article "defaultStack property", you have "set the >defaultstack to the topStack" (mean which stack is "this stack") > > - in the article "topStack function", you have "set the topStack to the >defaultStack". As far as I understand, it means that if you want your stack >to be seen in the active window on the top of the other stacks, this script >should work... I don't think that's right -- you can't set a function like that. >What I want to do is very simple : sometimes, after a script, the stack I >want to use is behind the other stacks. I would like it to come >automatically in the front, in its own window. "Go stack XXX in new window" >do not work. If it's already open and you just want to to come to the front: go stack XXX regards, Geoff From katir at hindu.org Thu Jan 24 14:14:26 2002 From: katir at hindu.org (Sivakatirswami) Date: Thu Jan 24 14:14:26 2002 Subject: FTP upload anomaly--file opened, but nothing written In-Reply-To: <3C504A6C.79BA3FB2@capital.net> Message-ID: on 1/24/02 7:54 AM, Michael Walas at walas at capital.net wrote: > Should the line: put gMachinePath of "on uploadToArchives" read put URL > gMachinePath? If I try to "rapid > fire" 2 or more get URL "ftp etc.", the second "get" always returns the > message "-425 Can't build data connection: Address already in use" This > reply from the server is written to the log fld of the libURL stack. Aloha from Hawaii, Michael: Thanks for responding.... my line is correct... because I can call that same handler all by itself from the message box and the put fld into URL "ftp..." Works fine... so, I suspect I am facing the same issue you faced... address already in use. i.e. apparently libURL is unable to open/read/write thru two or more sockets asynchronously to the same domain like most FTP clients can can. Scott wrote: > Other than putting the delay in, no. I've put this in the QA queue >> for 2.4.2, though, so it will get looked at and, if reproducible, >> fixed for that. We should start public testing of 2.4.2 in a few >> weeks. > > Sivakatirswami also wrote: >> Also, there is zero feedback mechanism in the current libURL for an FTP >> upload... but of course that is being looked into already no doubt. > You probably know this, but the result of a successful put URL 'ftp > etc." returns "upload complete" > put the result into cd fld "Feedback" Actually I *didn't* know that (where is the documentation?) So, Scott's "putting delay in" is very doable in this context... in fact I would rather the user wait, so using a send in to poll the result until upload is complete should work. Anyway I finished the project already, resorting to a completely explicit socket script for both uploads for this very specific file to two separate directories...fortunately writing your own sockets still seems to work fine in the latest versions. But I can use the above result/feedback at least to provide the user with an assurance on single file uploads Thanks! > > Hope this helps some. Om shanti, Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From Jean-Pierre.Messier at UMontreal.CA Thu Jan 24 16:06:00 2002 From: Jean-Pierre.Messier at UMontreal.CA (Jean-Pierre Messier) Date: Thu Jan 24 16:06:00 2002 Subject: Import text In-Reply-To: References: Message-ID: > >Plain text and HTML. HTML is supported for text formatting, not for >structure (tables are not interpreted, for example). > >There are some reserved words related to RTF, but at this point >that's all it is -- reserved words. I've written exports to RTF, >which isn't too hard. Writing an importer would be more work. Thanks -- Jean-Pierre Messier Faculty of Medicine Universite de Montreal Canada From Jean-Pierre.Messier at UMontreal.CA Thu Jan 24 16:08:01 2002 From: Jean-Pierre.Messier at UMontreal.CA (Jean-Pierre Messier) Date: Thu Jan 24 16:08:01 2002 Subject: Scrolling graphic In-Reply-To: References: Message-ID: HI! How I can scroll an image inside the stack like a scrolling field? Thanks From lrivers at realsoftware.com Thu Jan 24 16:19:02 2002 From: lrivers at realsoftware.com (Lorin Rivers) Date: Thu Jan 24 16:19:02 2002 Subject: Serial Ports with OS X In-Reply-To: <200201232125.QAA28528@www.runrev.com> References: <200201232125.QAA28528@www.runrev.com> Message-ID: At 4:25 PM -0500 1/23/02, use-revolution-request at lists.runrev.com wrote: >Message: 8 >Date: Wed, 23 Jan 2002 13:00:51 -0500 >From: Gene Kennedy >Organization: cyberscope >To: Rev >Subject: Serial Ports with OS X >Reply-To: use-revolution at lists.runrev.com > >Bill, > >I have not yet moved to OS X yet, so I don't know the answer to your >question. I am waiting for the dust to settle a bit and have items like >this worked out before I switch. > >This probably sounds like Heresy, but you might inquire about this over >at the REALbasic user group list. I believe I saw a post there a while >back explaining that Apple had neglected serial port support when >developing OS X and that it wasn't going to be an easy fix. I don't >know that this is true, I am only relaying what I saw elsewhere. > >Quite frankly, I am currently working with a couple of iMacs (333MHz, OS >8.6) and plan to make the move to OS X when I can purchase a new iBook. > >regards, >Gene Kennedy REALbasic 4 supports serial ports on Mac OS X. -- Lorin Rivers 512.263.1233 x712 v Vice President of Marketing 512.263.1441 f REAL Software mailto:lrivers at realsoftware.com PMB 220 http://www.realsoftware.com 3300 Bee Cave Road, Suite 650 Austin, Texas 78746 REALbasic: the powerful, easy-to-use tool for creating your own software for Macintosh, Mac OS X, and Windows. From preid at reidit.co.uk Thu Jan 24 16:57:01 2002 From: preid at reidit.co.uk (Peter Reid) Date: Thu Jan 24 16:57:01 2002 Subject: Scrolling graphic In-Reply-To: References: Message-ID: >HI! > >How I can scroll an image inside the stack like a scrolling field? > >Thanks Put the graphic into its own group, reduce group to required minimum size, lock the group's location, turn on scroll bar. You'll now have a scrollable group which contains a single graphic. You can do this with any content, just group it all and make sure you've locked the group location to stop it attempting to auto-size. Cheers Peter -- Peter Reid Reid-IT Limited, Loughborough, Leics., UK Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576 E-mail: preid at reidit.co.uk Web: http://www.reidit.co.uk From kevin at runrev.com Thu Jan 24 16:59:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 16:59:01 2002 Subject: go to several stcks in same window In-Reply-To: Message-ID: On 21/1/02 5:17 pm, Bj?rnke von Gierke wrote: > Hi all, im new, so i naturally have questions: > > Is it even possible to show more then one stack in the same window? > > i know there is the go to stack in window "foremost window" command, but > it just replaces the content of the window. > My goal: > I want to include more then one listfield in the same window, ideal > where if all of those would actually be the same field, just shown > multiple times (with different contents) > Im to lazy to make a field,to do the 'new field' command then copy the > code and properties per script (or set them per template). > Maybe there is a 'one content per card' property, but then all > iterations of the field would show up at the same location, thus i need > to show multiple stacks at once... Not currently supported directly, the closest you can get is to use: copy group from ... to > oh, another question: What is the ASCII value of the arrow keys? If you want to do this with rawKeyDown then just create a handler which puts the value of a key into a field and press each key you want the number for. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 16:59:14 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 16:59:14 2002 Subject: Distribution build question In-Reply-To: Message-ID: On 22/1/02 7:34 am, Richard D. Miller wrote: > Following the distribution build, it appears as though only the single > standalone stack is different from one platform to the next. My other stacks > have all been modified from before the build, but each specific stack > appears to be the same after the build regardless of whether they are > destined for Mac, Windows, Linux, etc. Is this correct? Are they all > interchangeable (except for the standalone) after the build? (I'm not using > any special options on these stacks during the build process). Yes. Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:00:02 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:00:02 2002 Subject: hiding Data In-Reply-To: Message-ID: On 23/1/02 8:38 pm, Richard D. Miller wrote: >> Indeed - there is no such limit. Fields can handle as much as you have RAM >> for, and you can store the data off screen as binary in a custom property. > How does one transform data into binary? Will it be possible to decode the 6 > mb of binary data in a few seconds on startup? I looked at the binaryencode > option, but it wasn't clear that that was the function to use. Just keep the data as binary - use only variables and custom properties, not fields. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:00:16 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:00:16 2002 Subject: How to Window Standalone In-Reply-To: <56C8F926-0F74-11D6-B5DF-003065E6E4BC@jpl.nasa.gov> Message-ID: On 22/1/02 8:12 pm, Bill Vlahos wrote: > When can we expect B2 to be available for download? Optimistically, the weekend. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:00:30 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:00:30 2002 Subject: How to Window Standalone In-Reply-To: Message-ID: On 22/1/02 11:21 pm, Roger.E.Eller at sealedair.com wrote: > Also, what fixes do you know of that will definitely be included in B2? > Will the "true OS file copy" be there? I severely need this to move some > hefty 900mb+ files around. And... does this also apply to FTP transfers, > or > will they still be loaded into memory? The copy stuff will be there. FTP transfers will also be improved a lot - good chunks of the URL stuff have been improved on. All other known ways to make Revolution crash will also be fixed or clearly documented against a future release - I think we've found just about everything reported to us now. Engines missing on the PPC, problems downloading the Windows engine, and better documentation navigation are among the other improvements to be included. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:07:28 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:07:28 2002 Subject: [Bugs?] Parenthesis, MacOS X and option menu In-Reply-To: <3C4F065A.897BB1E8@hyperactivesw.com> Message-ID: On 23/1/02 6:52 pm, J. Landman Gay wrote: > It's not a bug, it's the way the Macintosh menu manager works. Certain > symbols tell the Mac to display a menu item a certain way. A right > parentheses tells the menu manager to disable the menu item. > > You can either use square brackets to get around the problem, or you can > double the symbol to tell Revolution to use the parentheses anyway: > "))". The same applies to slashes in menus; double them: "//". Some > other symbols need the same thing as well. And changes to allow you to display ( in the Mac menus are planned in the future but won't make 1.1.1... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:17:02 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:17:02 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: On 23/1/02 9:57 am, Ben Rubinstein wrote: >> We will include a revCopyFile command in 1.1.1 which will copy a file on any >> OS including the correct creator type and the resource fork, without loading >> the entire file into memory if it is large either. > > Good move, Kevin! What about adding a revMoveFile command while you're at > it, to get past those tricky issues about renamefile? I wasn't aware of any issues outstanding: I thought we had that one all fixed and working right on all the platforms? ;-) Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:17:16 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:17:16 2002 Subject: examples In-Reply-To: Message-ID: On 24/1/02 1:29 pm, Klaus wrote: > There are lots of stacks to download and examine... And don't forget the contributors section on our web site, or Chipp Walter's site at: http://www.altuit.com/webs/altuit2/RunRev/default.htm Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Thu Jan 24 17:17:29 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 17:17:29 2002 Subject: CPU utilization in OS X In-Reply-To: <3AA48B11-1047-11D6-9521-003065760662@jpl.nasa.gov> Message-ID: On 23/1/02 9:21 pm, Bill Vlahos wrote: > Under Macintosh OS X, using a utility like the command line top a > standalone is taking about 15% even when it isn't doing anything which > seems high to me. Is there something I've missed? Is this a problem? Doesn't seem to be taking up so much for me here - is this stack doing absolutely nothing, no idle handler or send...in messages? If the latter = true then please send me off list the stack to check. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From Roger.E.Eller at sealedair.com Thu Jan 24 17:52:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Thu Jan 24 17:52:01 2002 Subject: Telnet to MainFrame Message-ID: Hello, Does anyone have experience with terminal emulations in Rev? I need to make a stack that can communicate with a mainframe like a 3270 terminal emulator. The closest thing I have found is a MetaCard stack called telnet.mc. I think I found this at the MC site under contributors. Using telnet.mc, when I connect to the mainframe, I get the following: Enter USERID - Enter current PASSWORD - The default account number could not be obtained... Enter ACCOUNT NUM - On a *real* 3270 emulator, the USERID and PASSWORD are all that is needed, and logon works perfectly. I need to gain access to this mainframe in a Rev window in order to do some "screen scraping" of info to import into another database, and we do not have resources available to download the needed information. That's why I am resorting to this method. Any ideas? ..... anyone? ~Roger Eller From troy at rpsystems.net Thu Jan 24 19:02:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Thu Jan 24 19:02:01 2002 Subject: Telnet to MainFrame In-Reply-To: Message-ID: Roger.E.Eller at sealedair.com wrote: > Using telnet.mc, when I connect to the mainframe, I get the following: > > Enter USERID - > Enter current PASSWORD - > The default account number could not be obtained... > Enter ACCOUNT NUM - > > On a *real* 3270 emulator, the USERID and PASSWORD are all that > is needed, and logon works perfectly. I need to gain access to this > mainframe in a Rev window in order to do some "screen scraping" of > info to import into another database, and we do not have resources > available to download the needed information. That's why I am resorting > to this method. Any ideas? ..... anyone? Not much help, I guess... I've successfully converted that same stack to gain Telnet access to some devices I work with (not mainframes). The code in the stack is pretty straightforward. Your problem almost sounds as though you don't have a successful user/password combination. Perhaps you could "tap the port" to see what all else is being transferred? Perhaps you have an undesirable combination of returns and linefeeds causing confusion in the command series? Just thoughts... -- Troy RPSystems www.rpsystems.net From sarahr at genesearch.com.au Thu Jan 24 19:20:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Thu Jan 24 19:20:01 2002 Subject: Missing icon Message-ID: Hi, I wanted to make a button that would allow vertical movement of a dividing line, re-sizing fields above & below as it went. Something similar to the divider between a list of emails and the selected email or folder list. I found just what I needed in the properties palette in the Custom section, so I copied the script & the properties from that and it all works perfectly. My problem is with the icon. I can't find the icon in the icon libraries. It appears correctly when I manually enter the ID, but what will happen when I build the application? I know that you have to specify which icon libraries to include when building, but if my icon isn't in the libraries, where is it and how do I make sure it is included? And are there any other useful icons hidden somewhere? Cheers, Sarah From drvaughan55 at mac.com Thu Jan 24 19:27:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Thu Jan 24 19:27:01 2002 Subject: How to Window Standalone In-Reply-To: Message-ID: On Friday, January 25, 2002, at 08:56 , Kevin Miller wrote: > On 22/1/02 11:21 pm, Roger.E.Eller at sealedair.com > wrote: > >> Also, what fixes do you know of that will definitely be included in B2? >> Will the "true OS file copy" be there? I severely need this to move >> some >> hefty 900mb+ files around. And... does this also apply to FTP >> transfers, >> or >> will they still be loaded into memory? > > The copy stuff will be there. FTP transfers will also be improved a > lot - > good chunks of the URL stuff have been improved on. All other known > ways to > make Revolution crash will also be fixed or clearly documented against a > future release - I think we've found just about everything reported to > us > now. Engines missing on the PPC, problems downloading the Windows > engine, > and better documentation navigation are among the other improvements to > be > included. sounds good... but no OS X Serial access...? David -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1022 bytes Desc: not available URL: From gwills at ozemail.com.au Thu Jan 24 19:53:01 2002 From: gwills at ozemail.com.au (Greg Wills) Date: Thu Jan 24 19:53:01 2002 Subject: Gem of the week In-Reply-To: <200201240114.UAA05097@www.runrev.com> References: <200201240114.UAA05097@www.runrev.com> Message-ID: Rev is jam packed with many little gems. As we all get to use Rev more and more, I am sure we will stumble upon these gems to solve problems. Maybe we could share examples of these gems that we find to assist others and give some insight into different problems and solutions. Perhaps recipes for Jeannes Cook Book. On such event for me this week was as follows. A simple program was needed for a student to touch a touch screen to get a auditory and visual response. The problem was it could be guaranteed that she would not (click) touch only once - possibly many. The need was to find the command that would trap all clicks after the first one. Eventually this was found and works brilliantly. (This is a direct copy from the dictionary, but took ages to track down.) put flushEvents(mouseUp) into temp Hopefully useful info for someone else. regards Greg From kevin at runrev.com Thu Jan 24 20:13:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Thu Jan 24 20:13:01 2002 Subject: What's up with the time functions? In-Reply-To: Message-ID: On 23/1/02 6:49 pm, Ben Rubinstein wrote: > Eh? > > Why would that be two hours? > > And I get exactly the same result; I'm in the UK, and at this time of the > year that means GMT. It also makes no difference when I toggled daylight > savings time in the D&T control panel (admittedly I haven't quit and > relaunched Rev). Nelson Zink reported this from somewhere on GMT +9. And I > also tried converting "6/6/02", just in case there was something really > 'clever' going on - still 2am. So I'm not clear how this is daylight > savings time related? > > And if it is - isn't that a bug? I asked about this - probably a good one for the docs: > Because if you use only one hour, you'll get the wrong day (the > official change to DST occurs at 2am, which is what the time libraries > we use on all platforms implement). This only appears to be a problem > if you specify a date without a time and then later try to get the > time back out. Don't do that. If you need to work with the time, you > need to supply it going in to the convert. Regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From katir at hindu.org Thu Jan 24 23:58:01 2002 From: katir at hindu.org (Sivakatirswami) Date: Thu Jan 24 23:58:01 2002 Subject: Deleting Substacks Message-ID: I built a stack for distribution as a standalone and before doing so moved resources into it in Metacard... I forgot to save an original copy... Now my stack needs work and I need to delete the substacks which are duplications of the stack in the UI... I want to continue work in it in Rev. How do you do delete substacks from a stack file? I don't see anyway to do it in rev...something simple, but how? delete stack "Ask Dialog" of stack "WedEditor" delete substack "Ask Dialog" of stack "WedEditor" both return errors. Chose a substack in application overview, hit delete key, nothing happens... Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org From artru_revolution at yahoo.co.uk Fri Jan 25 04:08:01 2002 From: artru_revolution at yahoo.co.uk (=?iso-8859-1?q?Juan=20macarena?=) Date: Fri Jan 25 04:08:01 2002 Subject: Doco Message-ID: <20020125090611.99554.qmail@web13008.mail.yahoo.com> Hi there I just found out about the existence of Revolution and I am quite impresed with it. Unfortunatelly I couldn't find any website with proper documentation about it, a ref manual or some thing. Can sombody help mi? __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com From pixelbird at interisland.net Fri Jan 25 05:15:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Fri Jan 25 05:15:01 2002 Subject: Doco In-Reply-To: <20020125090611.99554.qmail@web13008.mail.yahoo.com> Message-ID: on 1/25/02 1:06 AM, Juan macarena at artru_revolution at yahoo.co.uk wrote: > Hi there > > I just found out about the existence of Revolution and > I am quite impresed with it. Unfortunatelly I couldn't > find any website with proper documentation about it, a > ref manual or some thing. Can sombody help mi? ---------- Hello Juan, Check it out... < http://www.runrev.com > Have fun... Best regards, Ken N. From benr_mc at cogapp.com Fri Jan 25 06:37:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 25 06:37:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: on 24/1/02 10:05 PM, Kevin Miller at kevin at runrev.com wrote: > I wasn't aware of any issues outstanding: I thought we had that one all > fixed and working right on all the platforms? ;-) Beg your pardon, you're quite right. I hadn't realised it had been fixed. Now... where would I have found that information? Has there been any real release notes published for 1.1.1, or even 1.1? An excellent example is BBEdit; every version comes with comprehensive release notes briefly detailing all bugs fixed, features added etc (and the current and previous release notes are available on the web site, also very helpful for someone wondering whether to upgrade). An example: http://www.barebones.com/support/bbedit/bbedit-notes.html Metrowerks do something very similar with CodeWarrior. Like those products, Revolution is a complex and detailed tool, used by developers. To get the best out of that tool - and to know when to upgrade, how to approach a beta, etc, they need decent release notes. Please? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr_mc at cogapp.com Fri Jan 25 06:41:00 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 25 06:41:00 2002 Subject: Doco In-Reply-To: <20020125090611.99554.qmail@web13008.mail.yahoo.com> Message-ID: on 25/1/02 9:06 AM, Juan macarena at artru_revolution at yahoo.co.uk wrote: > I just found out about the existence of Revolution and > I am quite impresed with it. Unfortunatelly I couldn't > find any website with proper documentation about it, a > ref manual or some thing. Can sombody help mi? The documentation is internal to the product. Download the starter kit (free) from Launch it, and click the "Docs" button at the far right of the toolbar. There's lots there! Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr_mc at cogapp.com Fri Jan 25 06:53:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 25 06:53:01 2002 Subject: Filetype creator & type [OT] In-Reply-To: Message-ID: on 24/1/02 8:28 AM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > [snip] testing the script in Script Editor was the last thing I did before my > hard drive decided to die... > > I've now revived it (I think) and although I'm sure Script Editor wasn't the > source of the problem [snip] Geoff, You obviously haven't seen this dangerous use of Script Editor: http://www.macscripter.net/unscripted.html (It's a great AppleScript story. Summary: someone's iMac was stolen - but had Timbuktu on it. They were able to insert a 'suicide script' to trash their personal data - and then reveal the thief's telephone number, ultimately getting the machine back!) Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr_mc at cogapp.com Fri Jan 25 06:58:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 25 06:58:01 2002 Subject: Import text In-Reply-To: Message-ID: on 24/1/02 7:02 PM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > I've written exports to RTF, which isn't too hard. Writing an importer would > be more work. I've been meaning to ask this, because it's needed for getting styled text from the Windows clipboard. Has anyone done an RTF importer? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr at cogapp.com Fri Jan 25 07:16:01 2002 From: benr at cogapp.com (Ben Rubinstein) Date: Fri Jan 25 07:16:01 2002 Subject: Import text In-Reply-To: Message-ID: on 24/1/02 7:02 PM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > I've written exports to RTF, which isn't too hard. Writing an importer would > be more work. I've been meaning to ask this, because it's critical to getting styled text from the Windows clipboard. Has anyone done an RTF importer? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr_mc at cogapp.com Fri Jan 25 08:01:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri Jan 25 08:01:01 2002 Subject: inspect calling chain? Message-ID: Is there any way inside transcript to inspect the calling chain? Specifically, is there a way for a handler or function to find out the name of the handler or function which called it? TIA, Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From evans at evans.pgh.pa.us Fri Jan 25 08:24:00 2002 From: evans at evans.pgh.pa.us (Arthur Evans Jr) Date: Fri Jan 25 08:24:00 2002 Subject: Doco In-Reply-To: <20020125090611.99554.qmail@web13008.mail.yahoo.com> References: <20020125090611.99554.qmail@web13008.mail.yahoo.com> Message-ID: At 09:06 +0000 2002.01.25, Juan macarena wrote: >Hi there > >I just found out about the existence of Revolution and >I am quite impresed with it. Unfortunatelly I couldn't >find any website with proper documentation about it, a >ref manual or some thing. Can sombody help mi? There is no Reference Manual, an unfortunate situation. However, there is lots of internal documentation about the product, as already described, plus useful tutorials from other sources. I find that usually I can eventually find answers from the documentation that is available. Moreover, questions posted on this list are promptly answered. Art Evans From Jean-Pierre.Messier at UMontreal.CA Fri Jan 25 09:15:01 2002 From: Jean-Pierre.Messier at UMontreal.CA (Jean-Pierre Messier) Date: Fri Jan 25 09:15:01 2002 Subject: Scrolling graphic In-Reply-To: References: Message-ID: >>HI! >> >>How I can scroll an image inside the stack like a scrolling field? >> >>Thanks > >Put the graphic into its own group, reduce group to required minimum >size, lock the group's location, turn on scroll bar. You'll now >have a scrollable group which contains a single graphic. You can do >this with any content, just group it all and make sure you've locked >the group location to stop it attempting to auto-size. > Very Cool... that's work!!!! Many Thanks -- Jean-Pierre From bvlahos at jpl.nasa.gov Fri Jan 25 11:06:00 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Fri Jan 25 11:06:00 2002 Subject: Distribution build question In-Reply-To: Message-ID: <2CD7E8B3-11AD-11D6-B926-003065E6E4BC@jpl.nasa.gov> That is truly stunning. Bill Vlahos On Thursday, January 24, 2002, at 01:51 PM, Kevin Miller wrote: > On 22/1/02 7:34 am, Richard D. Miller wrote: > >> Following the distribution build, it appears as though only the single >> standalone stack is different from one platform to the next. My other >> stacks >> have all been modified from before the build, but each specific stack >> appears to be the same after the build regardless of whether they are >> destined for Mac, Windows, Linux, etc. Is this correct? Are they all >> interchangeable (except for the standalone) after the build? (I'm not >> using >> any special options on these stacks during the build process). > > Yes. > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From gcanyon at inspiredlogic.com Fri Jan 25 12:11:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Fri Jan 25 12:11:01 2002 Subject: Deleting Substacks In-Reply-To: References: Message-ID: At 6:56 PM -1000 1/24/02, Sivakatirswami wrote: >How do you do delete substacks from a stack file? I don't see anyway to do >it in rev...something simple, but how? > >delete stack "Ask Dialog" of stack "WedEditor" >delete substack "Ask Dialog" of stack "WedEditor" I think just delete stack "Ask Dialog" Will do the trick... regards, Geoff From bvg at mac.com Fri Jan 25 12:44:01 2002 From: bvg at mac.com (=?ISO-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri Jan 25 12:44:01 2002 Subject: go to several stcks in same window In-Reply-To: Message-ID: On Donnerstag, Januar 24, 2002, at 10:50 Uhr, Kevin Miller wrote: >> oh, another question: What is the ASCII value of the arrow keys? > > If you want to do this with rawKeyDown... well if there are other ways, why don't you just tell me what else there is? I mean, its only the way the Documentation told me to do... unfortunately they didn't write WHAT ASCII numbers the keys are, only that they are needed. > ... then just create a handler which puts > the value of a key into a field and press each key you want the number > for. > grr.. I already did that! but I got unusable garbage: Key: Upward NumtoChar: R (Hu what the hell??? anyway pressing shift-r does NOT move your cursor upwards in a listfield!) ChartoNum: 65362 (thats a pretty good joke, as ASCII only has 256 numbers to begin with...) S 65363 to the right T 65364 downunder Q 65361 lefty and for some additional fun, here the "Real" ASCII nrs. of... R 82 shift- r S 83 shift- s T 84 shift- t Q 81 shift- q (Note: after rereading some of the questions People ask here, i realized, that not everyone first looks at every place he has access to, before asking other people for help... So sorry for the strange answer....) From durleyhunter at cmcltd.co.uk Fri Jan 25 12:49:00 2002 From: durleyhunter at cmcltd.co.uk (Durley Hunter) Date: Fri Jan 25 12:49:00 2002 Subject: Sockets example? Message-ID: <01C1A5C8.0FECBD60.durleyhunter@cmcltd.co.uk> First, RR is a truely stunning piece of work! Is there a 'Getting Started' guide for TRANSCRIPT ? I've run through the Tutorial but could really do with a syntax / structures guide. TIA DH From Roger.E.Eller at sealedair.com Fri Jan 25 12:59:03 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Fri Jan 25 12:59:03 2002 Subject: Sockets example? Message-ID: Actually, as far as syntax goes, ANY book on HyperCard scripting is a good start. I first learned hypertext from "Applied HyperText" which was a part of the Brady series. I think Brady was the author's last name. ~Roger Eller > First, RR is a truely stunning piece of work! > > Is there a 'Getting Started' guide for TRANSCRIPT ? > I've run through the Tutorial but could really do with a syntax / structures guide. > > TIA > > DH From kevin at runrev.com Fri Jan 25 13:25:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:25:00 2002 Subject: Missing icon In-Reply-To: Message-ID: On 25/1/02 12:17 am, Sarah Reichelt wrote: > I wanted to make a button that would allow vertical movement of a dividing > line, re-sizing fields above & below as it went. Something similar to the > divider between a list of emails and the selected email or folder list. > > I found just what I needed in the properties palette in the Custom section, > so I copied the script & the properties from that and it all works > perfectly. > > My problem is with the icon. I can't find the icon in the icon libraries. It > appears correctly when I manually enter the ID, but what will happen when I > build the application? I know that you have to specify which icon libraries > to include when building, but if my icon isn't in the libraries, where is it > and how do I make sure it is included? And are there any other useful icons > hidden somewhere? If it isn't in the normal icon chooser you get with button icons, then it isn't included by Distribution Builder but is part of the internal icons set. You can probably find it and copy it out if you know your way around Rev's innards: toplevel / show revIcons stack. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Fri Jan 25 13:25:27 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:25:27 2002 Subject: How to Window Standalone In-Reply-To: Message-ID: On 25/1/02 12:25 am, David Vaughan wrote: > sounds good... but no OS X Serial access...? Not in beta 2. I don't have any further information as yet on this but I hope to have soon... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Fri Jan 25 13:25:40 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:25:40 2002 Subject: Deleting Substacks In-Reply-To: Message-ID: On 25/1/02 5:09 pm, Geoff Canyon wrote: >> How do you do delete substacks from a stack file? I don't see anyway to do >> it in rev...something simple, but how? >> >> delete stack "Ask Dialog" of stack "WedEditor" >> delete substack "Ask Dialog" of stack "WedEditor" > > I think just > > delete stack "Ask Dialog" > > Will do the trick... To be sure that you have deleted your dialogs and not ours you may need to do this twice, then save your stack but not any part of the Rev environment, quit and reopen to restore the rev stacks. We recommend you always use the Rev Distribution Builder to copy the latest versions of the dialog into your stack rather than ever saving these stacks as subStacks yourself. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From logram at wanadoo.fr Fri Jan 25 13:25:59 2002 From: logram at wanadoo.fr (Roger Amar) Date: Fri Jan 25 13:25:59 2002 Subject: Rev unstable Message-ID: Since I got no reply to this msg, I resend it to the list ---------------- Hi Kevin, I'm new to Revolution, but an old C, Hypercard and Supercard developer on the Macintosh platform. I ordered for the Cross-grade Supercard option and just installed Revolution. My problem is that I can't use it for the moment, since it's continuously quitting with error 2 or 3, sometimes when I change properties, or on testing a very short standalone, when I click the help menu which is the only menu, called "Aide" in the french MacOS, or with no reason. I disabled the Input Sprocket extension as recommended with no success. After half an hour of efforts, I succeeded in building a very small standalone for Windows. When I tried to launch it on my PC, this standalone takes about 3 minutes to appear on the screen every time I double-click on it ! I downloaded the 1.1.1-B1 version which worked 2 or 3 times only and now can't open anymore : when I double-click on it, only appears the help menu. When I click this menu, I get quitting when an error 3 My mac platform is : G4/750 MHz 512 Mb RAM 17" Apple flat display MacOS 9.2.1 french Revolution is allowed 24 Mb memory. CodeWarrior and Supercard work fine on this G4. What's wrong ??? Thanks a lot for a prompt reply. Roger Amar From kevin at runrev.com Fri Jan 25 13:26:19 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:26:19 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: On 25/1/02 11:35 am, Ben Rubinstein wrote: >> I wasn't aware of any issues outstanding: I thought we had that one all >> fixed and working right on all the platforms? ;-) > > Beg your pardon, you're quite right. I hadn't realised it had been fixed. > > Now... where would I have found that information? Has there been any real > release notes published for 1.1.1, or even 1.1? > > An excellent example is BBEdit; every version comes with comprehensive > release notes briefly detailing all bugs fixed, features added etc (and the > current and previous release notes are available on the web site, also very > helpful for someone wondering whether to upgrade). An example: > http://www.barebones.com/support/bbedit/bbedit-notes.html > > Metrowerks do something very similar with CodeWarrior. Like those products, > Revolution is a complex and detailed tool, used by developers. To get the > best out of that tool - and to know when to upgrade, how to approach a beta, > etc, they need decent release notes. > > Please? Indeed, we will improve in this area. It obviously does affect a lot of people if notes like these aren't available. I can't promise for beta 2, but this whole area of our operation is being looked at... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Fri Jan 25 13:35:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:35:00 2002 Subject: inspect calling chain? In-Reply-To: Message-ID: On 25/1/02 12:58 pm, Ben Rubinstein wrote: > Is there any way inside transcript to inspect the calling chain? > Specifically, is there a way for a handler or function to find out the name > of the handler or function which called it? At present no, not beyond getting the target of the object that got the original message. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Fri Jan 25 13:42:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:42:01 2002 Subject: Rev unstable In-Reply-To: Message-ID: On 25/1/02 6:06 pm, Roger Amar wrote: > Since I got no reply to this msg, I resend it to the list > ---------------- > > > Hi Kevin, > > I'm new to Revolution, but an old C, Hypercard and Supercard developer on > the Macintosh platform. > I ordered for the Cross-grade Supercard option and just installed > Revolution. > My problem is that I can't use it for the moment, since it's continuously > quitting with error 2 or 3, sometimes when I change properties, or on > testing a very short standalone, when I click the help menu which is the > only menu, called "Aide" in the french MacOS, or with no reason. > > I disabled the Input Sprocket extension as recommended with no success. > > After half an hour of efforts, I succeeded in building a very small > standalone for Windows. > When I tried to launch it on my PC, this standalone takes about 3 minutes to > appear on the screen every time I double-click on it ! > > I downloaded the 1.1.1-B1 version which worked 2 or 3 times only and now > can't open anymore : when I double-click on it, only appears the help menu. > When I click this menu, I get quitting when an error 3 > > My mac platform is : > G4/750 MHz 512 Mb RAM > 17" Apple flat display > MacOS 9.2.1 french > Revolution is allowed 24 Mb memory. > > CodeWarrior and Supercard work fine on this G4. > > What's wrong ??? > > Thanks a lot for a prompt reply. Can you send me an Apple System Profiler report off-list? Have you tried reinstalling 1.1.1B1? The only (rare) crash-related problems we are aware of will be fixed in B2 which will be available shortly... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Fri Jan 25 13:51:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Fri Jan 25 13:51:01 2002 Subject: Which XCMDs obsolete in RR? In-Reply-To: Message-ID: On 18/1/02 7:49 am, Terry Vogelaar wrote: > Like most HC-users, I frequently used XCMDs. But since Revolution is more > complete, many XCMDs became obsolete. > > Now my question is: couldn't we make a list of which XCMD is replaced by > which internal RR-function? > > Also, such a list could be placed on the Runtime website or in the > Revolution documentation. If anyone compiles such a list we would be happy to publish it on our site... Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From rcozens at pon.net Fri Jan 25 14:08:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri Jan 25 14:08:00 2002 Subject: go to several stcks in same window In-Reply-To: References: Message-ID: >Note: after rereading some of the questions People ask here, i >realized, that not everyone first looks at every place he has access to, >before asking other people for help Hi Bj?rnke, It's a fundamental trait of human nature, and one should realize that when writing user documentation and providing user support. In 1976 when taking delivery of Oakland Police Dept's. first MIS minicomputer, I asked the Data General service tech if there were characteristic problems encountered by first-time users. "Mainly 'RTFM's", he replied. I subsequently learned the acronym resolves to "Read The F...ing Manual!". In a quarter century of trouble-shooting and end-user support, RTFMs are still the most prevalent types of problems I encounter. And if that isn't bad enough, there are lazy people such as moi who are inclined to ask the group to see if anyone else has encountered the problem before scripting a simple test or trying a few alternative approaches. It's not necessarily a bad thing: I often pick up bits of information from questions & answers that help me weeks or months later on some project I didn't even have in mind when I read the original messages. Rob Cozens CCW, Serendipity Software Company "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) From michael at runrev.com Fri Jan 25 14:43:01 2002 From: michael at runrev.com (Michael Fisher) Date: Fri Jan 25 14:43:01 2002 Subject: Some kind of memory/purge error References: Message-ID: <097701c1a5d8$1329a5a0$0c01020a@mike1> Richard D. Miller wrote: > I'm encountering several problems with proper purging of stacks. Here's > the > simplest example: > > I have several stacks open (some are substacks). > I close one stack (which has the destroystack and destroywindow commands > in > it) > I check the revloadedstacks function and the Application Overview...both > show the stack as being purged. No sign of it. > I go to open a different stack which has the SAME stack name (but a > different file name). > I immediately get a dialog box asking what I want to do with the previous > stack (i.e. which has the same stack name). I can't seem to reproduce this, although I did notice a situation where the Application Overview doesn't update correctly to remove the listing for a stack that has been removed from memory. Would it be possible for you to send me the 2 stacks of the same name? Cheers, Michael -- Michael Fisher Runtime Revolution Ltd - Power to the Developer! Tel: +44 (0)870 747 1165 Fax: +44 (0)1639 830 707 From garyr at mail.orbitel.bg Fri Jan 25 16:23:01 2002 From: garyr at mail.orbitel.bg (Gary O.Roelofs) Date: Fri Jan 25 16:23:01 2002 Subject: XCMDs esp. RecordIt Message-ID: <20020125212105.9658.qmail@mail.orbitel.bg> Rinaldi's XCMDS were wonderful; and I used them in HC for Language Learning stacks. I haven't had much time to explore runrev, but I'd be very interested in contacting others who are using a lot of sound resources for their programs, especially those who are giving users the option of recording their own voices. Any one out there? cheers gary roelofs ESL instructor From sjoerdoptland at mac.com Sat Jan 26 02:14:01 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Sat Jan 26 02:14:01 2002 Subject: go to several stcks in same window In-Reply-To: Message-ID: rawKeyDown keyNumber keyDown keyName keyName is an ASCII char (8bit) keyNumber is a key ID number (16 bit) charToNum(keyName) will return a number between 0 and 2^8 numToChar(keyNumber) shouldn't return anything, because the input can possibly be a number higher than 2^8, so won't be a valid ASCII number. Hope this clarifies some things... Regards, / Groeten, Sjoerd From tim11 at bellatlantic.net Sat Jan 26 02:35:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Sat Jan 26 02:35:01 2002 Subject: Decompress and different platforms Message-ID: Hi, One way I share one revo project between 2 platforms (PC and Mac) is by having the shell stack (the stack that opens the real modifiable stack) compress and ftp the stack that gets modified to a server. Then the same shell stack on a different platform downloads the modified stack and does the same thing. The script looks something like this: -- Script in the shell stack on preOpenStack get the platform if it is "MacOS" then put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile else put "C:/Documents and Settings/Administrator/Desktop/someProject.rev" into tLocalFile end if set the cursor to busy put URL "ftp://username:password at ftp.ispname.com/www/somefolder/someProject.rev" into tRemoteFile put decompress(tRemoteFile) into URL tLocalFile toplevel stack tLocalFile end preOpenStack --Script in the ?Close? button of the modifiable stack that gets uploaded on mouseUp get the platform if it is "MacOS" then put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile else put "C:/Documents and Settings/Administrator/Desktop/someProject.rev" into tLocalFile end if set the cursor to busy save stack "someProject.rev" put compress(tLocalFile) into URL "ftp://username:password at ftp.ispname.com/www/somefolder/someProject.rev" close stack "someProject.rev" end mouseUp --End of Tip-- Now, everything worked fine until I tried it under OS X. Now when I open the shell stack and it tries to download and decompress someProject.rev, I get the following error message: Error description: decompress: string is not compressed data SomeProject.rev does not open. While compressing it and uploading is no problem. I should add that both comression/decompression work fine under W2K. The problem is only under OS X. Anyone have any thoughts? TIA, -- Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From terry at discovery.nl Sat Jan 26 02:58:00 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Sat Jan 26 02:58:00 2002 Subject: The check in a menu item Message-ID: In a menu I have 3 items that can be checked. When the check appears in the 1st item, it should be removed from the 2nd and the 3rd item, and so on. But there is something about checking I don't understand. When I want a menu-item to be checked, I put "!c" before the line of that item. But when I want to move the check from that item to another, I get (or RR gets) confused. If I just remove the "!c" from the first line and then add "!c" to the second, I have 2 items checked instead of one. But when I remove replace the "!c" with a "!n", the check is gone. Then I check a third item. Then chaos begins. "!n" is visible in the 1st item. And the more I swap the menus, the more "!n!n!n"s I see. With a lot of extra scripting, I managed to let it work reasonably reliable. But I've got a feeling it should be less complex. BTW, why is there a "!n" or a "!u" anyway? I think the check/diamond should be gone as soon as the "!c"/"!r" is gone. Terry From gary.dennis at mantissa.com Sat Jan 26 05:25:00 2002 From: gary.dennis at mantissa.com (Gary Dennis) Date: Sat Jan 26 05:25:00 2002 Subject: Telnet to MainFrame References: Message-ID: <002101c1a623$bb425fc0$2a45fea9@mantissasp4600> This behavior is not limited to rev applications. I recently downloaded a public domain copy of a 3270 emulator for Mac release 9.2 available on the web. After the installation and configuration, I received the same response from my mainframe target (an IBMsystem running os390 Release 10). If you find the reason for this error , I would very much like to know. ----- Original Message ----- From: To: Sent: Thursday, January 24, 2002 4:50 PM Subject: Telnet to MainFrame > Hello, > > Does anyone have experience with terminal emulations in Rev? > I need to make a stack that can communicate with a mainframe like > a 3270 terminal emulator. The closest thing I have found is a MetaCard > stack called telnet.mc. I think I found this at the MC site under > contributors. > > Using telnet.mc, when I connect to the mainframe, I get the following: > > Enter USERID - > Enter current PASSWORD - > The default account number could not be obtained... > Enter ACCOUNT NUM - > > On a *real* 3270 emulator, the USERID and PASSWORD are all that > is needed, and logon works perfectly. I need to gain access to this > mainframe in a Rev window in order to do some "screen scraping" of > info to import into another database, and we do not have resources > available to download the needed information. That's why I am resorting > to this method. Any ideas? ..... anyone? > > ~Roger Eller > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From yvescoppe at skynet.be Sat Jan 26 07:55:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sat Jan 26 07:55:01 2002 Subject: customProperties Message-ID: Hello, Is it possible to use a custom property as a global variable through a stack ? Is it possible to use this property , if it is set in a substack, in another substack ? Or do we rather use a global variable int his last case ? -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From k_major at osnabrueck.netsurf.de Sat Jan 26 08:25:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sat Jan 26 08:25:01 2002 Subject: customProperties In-Reply-To: Message-ID: Bonjour Yves, > Hello, > Is it possible to use a custom property as a global variable through a > stack ? Yes. > Is it possible to use this property , if it is set in a substack, in > another substack ? Yes ;-) Just script: ... put the name_of_custprop_here of stack "xxx" into whatever ... (Note there are no quotes allowed in the name of the customprop !!!) If the stack is somewhere in the path, this will work even if that stack is not open. Try this with a variable ;-) > Or do we rather use a global variable int his last case ? The main difference between a customprop and a (global) variable is, that the customproperty is being saved with the stack. So it can be used as a kind of permanent variable. But of course customprops are much more than a substitute for variables... :-D Once i found out what they are and how they work i could never be without them :-) RR wouldn't be possible/exist without them, by the way... (Hi Kevin :-) > -- Greetings. > Yves COPPE A bientot... Klaus Major k_major at osnabrueck.netsurf.de From wow at together.net Sat Jan 26 08:49:01 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 26 08:49:01 2002 Subject: Rev/Windows performance In-Reply-To: Message-ID: I'd like to hear some definitive feedback on runtime performance of Rev under Windows...XP in particular. I've only been running my project on Mac's so far, including Windows through Virtual PC (which is certainly not a fair indicator of Windows performance). I'll be testing it soon on a number of WinTel boxes, but I'd like to hear what others are experiencing. Thanks. Richard From steve at messimercomputing.com Sat Jan 26 10:26:00 2002 From: steve at messimercomputing.com (Steve Messimer) Date: Sat Jan 26 10:26:00 2002 Subject: creating new tools Message-ID: Hi, Years ago I created a set of objects for HyperCard that allowed users to significantly truncate the educational development process. Using stack templates and compoundObjects (like buttonField objects, button card objects, hotText objects, quizObjects, examObjects etc ) teachers could create educational titles in days rather than months. Now that revolution is here I am inspired to attempt to port the code. The question is ... what is the best approach. Here's a brief outline of what I would like to do. The app/plugin when invoked would display a palette of tools. selecting a tool would create a compound object on the target card. For example: when a user selects a buttonField Object ( a button and field that act as a single object - bFO). The code would create a button and field on a card of a target stack. The Objects would be related . When the button was clicked the field would show itself when clicked again it would hide the related field. bFOs have relationships to all other bFOs on a card... only one companion fld can be showing at any given time. The process would work the same for any other object selected from the palette. There are several issues of course. :-) 1. Should these tools be created within a plugin or as a main stack or as a substack? Ideally I would like these tools available to anyone who uses RR. I'm thinking that perhaps a plugin might be the best approach. Unfortunately I have been unable to find any information about plugins. What are the advantages / disadvantages of using this method. Where can I find details about creating plugins w RR. 2. How does RR "know" which stack to create an object in? Does it just assume that it is supposed to create the Object on the card in the Active window? Suppose I want to make changes in the script of the stack that is in the active window. How do I get that information? 3. compoundObject IDs: In HyperCard I tracked the creation of all new compoundObjects in hidden text fields. This was useful to prevent duplication of Object names and to help identify object components when a compoudObject was deleted. I could create a separate ID generation script/function but it would be cleaner if I could get access to the code that generates IDs for RR objects. Is there a way to do this? Other ideas? As I think about this some internal compoundObject accounting must be located in the stack being developed. It doesn't make much sense for the plugin to do anything but generate the ID or Name. 4. Object Names: In HyperCard I used specific characters to identify certain types of compoundObjects. To identify a bFO I used a terminal "*". This worked fine but every bFO button had a "*" in its display name. Is the a way to avoid this with RR and are there any Cross platform gotchas using extra characters like "*". I presume that if I stick with standard ascii I should be OK? Right? Thanks for any input. Steve -- Stephen R. Messimer, PA Messimer Computing, Inc. www.messimercomputing.com ph: 906-420-5804 From ludovic.thebault at laposte.net Sat Jan 26 12:09:00 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Sat Jan 26 12:09:00 2002 Subject: Rev/Windows performance In-Reply-To: References: Message-ID: <20020126180510.6131E8%00000000@laposte.net> Richard D. Miller wrote: > but I'd like to hear what others are experiencing. A stack which manipulate lot of text seem to be more reactive on a Pentium celeron 666 MHz with Windows Me than a iMac 600 MHZ with MacOS X (glups!). From wow at together.net Sat Jan 26 12:36:01 2002 From: wow at together.net (Richard D. Miller) Date: Sat Jan 26 12:36:01 2002 Subject: Rev/Windows performance In-Reply-To: <20020126180510.6131E8%00000000@laposte.net> Message-ID: Hi Ludovic: Does reactive mean faster? Richard > Richard D. Miller wrote: >> but I'd like to hear what others are experiencing. > > A stack which manipulate lot of text seem to be more reactive on a > Pentium celeron 666 MHz with Windows Me than a iMac 600 MHZ with MacOS > X (glups!). From ludovic.thebault at laposte.net Sat Jan 26 14:17:00 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Sat Jan 26 14:17:00 2002 Subject: Rev/Windows performance In-Reply-To: References: Message-ID: <20020126201348.05520%00000000@laposte.net> Richard D. Miller wrote: >Hi Ludovic: > >Does reactive mean faster? Yes. From sjoerdoptland at mac.com Sat Jan 26 17:22:00 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Sat Jan 26 17:22:00 2002 Subject: The check in a menu item In-Reply-To: Message-ID: Terry Vogelaar wrote/ schreef: > In a menu I have 3 items that can be checked. When the check appears in the > 1st item, it should be removed from the 2nd and the 3rd item, and so on. > > But there is something about checking I don't understand. When I want a > menu-item to be checked, I put "!c" before the line of that item. But when I > want to move the check from that item to another, I get (or RR gets) > confused. If I just remove the "!c" from the first line and then add "!c" to > the second, I have 2 items checked instead of one. But when I remove replace > the "!c" with a "!n", the check is gone. Then I check a third item. Then > chaos begins. "!n" is visible in the 1st item. And the more I swap the > menus, the more "!n!n!n"s I see. > > With a lot of extra scripting, I managed to let it work reasonably reliable. > But I've got a feeling it should be less complex. What is the script you're using? > BTW, why is there a "!n" or a "!u" anyway? I think the check/diamond should > be gone as soon as the "!c"/"!r" is gone. > > Terry Regards, / Groeten, Sjoerd From terry at discovery.nl Sun Jan 27 01:24:01 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Sun Jan 27 01:24:01 2002 Subject: The check in a menu item In-Reply-To: Message-ID: >> In a menu I have 3 items that can be checked. When the check appears in the >> 1st item, it should be removed from the 2nd and the 3rd item, and so on. >> >> But there is something about checking I don't understand. When I want a >> menu-item to be checked, I put "!c" before the line of that item. But when I >> want to move the check from that item to another, I get (or RR gets) >> confused. If I just remove the "!c" from the first line and then add "!c" to >> the second, I have 2 items checked instead of one. But when I remove replace >> the "!c" with a "!n", the check is gone. Then I check a third item. Then >> chaos begins. "!n" is visible in the 1st item. And the more I swap the >> menus, the more "!n!n!n"s I see. >> >> With a lot of extra scripting, I managed to let it work reasonably reliable. >> But I've got a feeling it should be less complex. > What is the script you're using? Never mind. I kinda figured out myself how to skip that useless "!n". For all others who struggled with this problem, the final script is: on menuPick pWhich put whichNumbers() into lNumber repeat with e = 1 to 3 if char 1 of line e of me = "!" then delete char 1 to 2 of line e of me end repeat switch pWhich case "Hebrew numbers" put 1 into lNumber break case "Traditional numbers" put 2 into lNumber break case "English numbers" put 3 into lNumber break end switch put "!c" before line lNumber of me end menuPick function whichNumbers repeat with e = 1 to 3 if char 1 to 2 of line e of btn id 1008 = "!c" then return e end repeat end whichNumbers Groetjes, Terry From drvaughan55 at mac.com Sun Jan 27 03:47:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sun Jan 27 03:47:01 2002 Subject: customProperties In-Reply-To: Message-ID: <2464A716-1302-11D6-A54D-000393598038@mac.com> Yves Klaus has beaten me to answering your question. I was inclined to say in response "well, test it and let us know." However, if the testing will take time it may be fair enough to find out if one of the community has been there before and can answer quickly. regards David On Saturday, January 26, 2002, at 11:51 , yves COPPE wrote: > Hello, > > > Is it possible to use a custom property as a global variable through a > stack ? > > Is it possible to use this property , if it is set in a substack, in > another substack ? > Or do we rather use a global variable int his last case ? > > -- Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From pdel at noos.fr Sun Jan 27 09:51:01 2002 From: pdel at noos.fr (Pierre Delain) Date: Sun Jan 27 09:51:01 2002 Subject: go command In-Reply-To: <200201251705.MAA20799@www.runrev.com> Message-ID: Thank you to to Geoff and Klaus (Eh oui d?sol? je suis fran?ais... personne n'est parfait). I still have a problem with the "go" command. When a stack file is closed, sometimes the "go command" opens it, and sometimes I get an error, and nothing happens. ("no such card" says the message box). So my questions are : - is the "go command" sufficient to open closed files? - Is there something like Hypercard "search paths" in Revolution? Thanks. Pierre Delain From kevin at runrev.com Sun Jan 27 12:32:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 27 12:32:00 2002 Subject: Printing to the right of the page width In-Reply-To: Message-ID: On 19/1/02 12:58 am, Greg Wills wrote: > Thanks Jeanne. I had tried this previously (and have just tried it > again to make sure!), but I still don't get what I am after. This > line prints the area I want to print, but not at the left hand side > of the page. > > With - > > print this card from 288,6 to 632,466 into 0,0,344,460 > > I end up with the area I am after, but off centered at the top of the page. > > > It looks as though the area to the left of the selected area is > included in the print area, but just not printed. This is confirmed > when I use the line; > > print this card into 0,0,344,460 > > (This gives me the whole card printed with the area I had previously > specified in the exact same position.) > > Is this a bug, or am I missing something? (Rev 1.1 OS 9) Verified, thanks for the report. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From yvescoppe at skynet.be Sun Jan 27 13:37:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 27 13:37:01 2002 Subject: custom prop Message-ID: Hello, When I click "custom" in the tab-window properties of an object, you have two fields : custom property sets or property set keys If I want to create one, in which window do I need to click the "New" button ? And more generally, what's the difference between the two kinds of custom properties ? I have read the chapter in the documentation but I don't understand the trick. Thanks. -- From k_major at osnabrueck.netsurf.de Sun Jan 27 14:06:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun Jan 27 14:06:01 2002 Subject: custom prop In-Reply-To: Message-ID: Bonjour Yves, > Hello, > > > When I click "custom" in the tab-window properties of an object, > you have two fields : > > custom property sets > or > property set keys > Just click "New property", give it a name it will appear then in the left list-field and then enter the value for that prop in the litte right window. > > If I want to create one, in which window do I need to click the "New" > button ? See above... > > And more generally, what's the difference between the two kinds of > custom properties ? This is a bit more complex... Maybe someone on the list has the time or even a premade explanations of customproperty-sets...? > I have read the chapter in the documentation but I don't understand the > trick. This is one of the hardest ;-) I must commit, that i have to "refresh" my knowledge about custprop-sets before i can give an explanation here... ;-) But maybe there are volunteers... ? > Thanks. De rien... Hope this helps in the moment :-) Au revoir Klaus Major k_major at osnabrueck.netsurf.de From yvescoppe at skynet.be Sun Jan 27 15:00:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun Jan 27 15:00:00 2002 Subject: custom prop In-Reply-To: References: Message-ID: >Bonjour Yves, > >>Hello, >> >> >>When I click "custom" in the tab-window properties of an object, >>you have two fields : >> >>custom property sets >>or >>property set keys >> > >Just click "New property", give it a name it will appear then in the >left list-field >and then enter the value for that prop in the litte right window. >> >>If I want to create one, in which window do I need to click the >>"New" button ? > >See above... > >> >>And more generally, what's the difference between the two kinds of >>custom properties ? > >This is a bit more complex... > >Maybe someone on the list has the time or even a premade explanations >of customproperty-sets...? > >>I have read the chapter in the documentation but I don't understand >>the trick. > >This is one of the hardest ;-) > >I must commit, that i have to "refresh" my knowledge about custprop-sets >before i can give an explanation here... ;-) > >But maybe there are volunteers... ? > >>Thanks. > >De rien... > >Hope this helps in the moment :-) > >Au revoir > Merci, c'est d?j? cela? J'esp?re avoir d'autres explications th?oriques de l'un ou l'autre membre de la liste (thank, I know a little more about but I hope some more theoretical explanations from one or other user) So everybody can exerce his French while I exerce myself in English ! Cheers -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From shaosean at unitz.ca Sun Jan 27 15:05:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Sun Jan 27 15:05:01 2002 Subject: custom prop References: Message-ID: <001401c1a76d$aa12b0b0$88b15bd1@dreamlanpc> > custom property sets custom property sets hold property set keys.. this allows you to store data/vars/etc in groups that make sense (good way to store multiple language text) > property set keys property set keys hold the data/vars/etc and work just like the built-in properties (width, height, etc).. From kevin at runrev.com Sun Jan 27 16:38:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Sun Jan 27 16:38:00 2002 Subject: go command In-Reply-To: Message-ID: On 27/1/02 2:43 pm, Pierre Delain wrote: > Thank you to to Geoff and Klaus (Eh oui d?sol? je suis fran?ais... personne > n'est parfait). > > I still have a problem with the "go" command. When a stack file is closed, > sometimes the "go command" opens it, and sometimes I get an error, and > nothing happens. ("no such card" says the message box). So my questions are > : > - is the "go command" sufficient to open closed files? Yes, so long as you use the file path or the file can be found in the stackFiles. > - Is there something like Hypercard "search paths" in Revolution? Check out the stackFiles property in the Transcript dictionary. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From jcuccio at pacbell.net Mon Jan 28 04:00:01 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Mon Jan 28 04:00:01 2002 Subject: Go Command Message-ID: I found going to another stack in rev was not as simple as HC. 1. If you go to another stack and came back. I had to set the stack I came back to, as the default stack. Rev did not realize that I guess. 2. The lock screen did not work. It would blink. 3. It seemed the lock messages did not work because it keep sending an openstack. I did not want that. Work around and I like it is the defaultstack function. If you set the defaultstack to the one you want to search then in the handler from the control stack is like you are at the other stack. Just make sure you set it back to your control stack. on handler set defaultstack to "stack2" -- do your stuff. set defaultstack to "stack1" end handler No blinking screen problem. And I think faster. But I believe you have to set the stackfile to know where the stack is. May experience. Hope it helps From benr_mc at cogapp.com Mon Jan 28 06:31:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon Jan 28 06:31:01 2002 Subject: inspect calling chain? In-Reply-To: Message-ID: on 25/1/02 6:33 PM, Kevin Miller at kevin at runrev.com wrote: >> Is there any way inside transcript to inspect the calling chain? >> Specifically, is there a way for a handler or function to find out the name >> of the handler or function which called it? > > At present no, not beyond getting the target of the object that got the > original message. "At present" sounds promising - is there something in the works? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From tbandi at pop.spectraweb.ch Mon Jan 28 06:40:00 2002 From: tbandi at pop.spectraweb.ch (tbandi) Date: Mon Jan 28 06:40:00 2002 Subject: Hierarchical Menus Message-ID: <3C5478F6.8010803@pop.spectraweb.ch> I couldn't figure out how I can find out which of the menu items of a button was selected and I did not find much help in the documentation. I tried with "the selectedText", with "the label" and with the menuHistory but I did not find what I expected: the first and the second item of the selection? Can anyone give me a hint or an example? Thanks, Till From JohnRule at aol.com Mon Jan 28 10:01:01 2002 From: JohnRule at aol.com (JohnRule at aol.com) Date: Mon Jan 28 10:01:01 2002 Subject: Standalone script limitation? Message-ID: <12d.b7ca9e6.2986c135@aol.com> I read on this group (a while back) that there is a limitation to the stacks created with a stand-alone engine. Is this true? Where is the specification for this? I believe the limitation was the same 10 line limitation in the un-registered version of Revolution. If this is true, then I have a few questions: What happens to a button that is cut and pasted from the stand-alone that has a significant amount of 'lines' of commands? What happens if I open this 'limited' stack in a licensed copy of Revolution...edit this stack (adding more lines of commands)...and then open this in a stand-alone engine? What happens if I add to this 'edited' stack from within the stand-alone engine? Thank you, JR From dan at theport.com Mon Jan 28 10:39:01 2002 From: dan at theport.com (DanBackus) Date: Mon Jan 28 10:39:01 2002 Subject: Manual - printed version Message-ID: <003f01c1a811$a2c45210$82204ec7@DAN> When i try to print the transcript manual, it comes out as triple spaced on windows. Where can i find printable documentaion? Thanks. dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From gcanyon at inspiredlogic.com Mon Jan 28 10:52:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 28 10:52:00 2002 Subject: Standalone script limitation? In-Reply-To: <12d.b7ca9e6.2986c135@aol.com> References: <12d.b7ca9e6.2986c135@aol.com> Message-ID: At 9:59 AM -0500 1/28/02, JohnRule at aol.com wrote: >I read on this group (a while back) that there is a limitation to the stacks >created with a stand-alone engine. Is this true? Where is the specification >for this? It's the same as in the starter kit -- ten command lines. > >I believe the limitation was the same 10 line limitation in the un-registered >version of Revolution. If this is true, then I have a few questions: That's right. > >What happens to a button that is cut and pasted from the stand-alone that has >a significant amount of 'lines' of commands? No problems. Cut, copy, duplicate to your heart's content. As long as you're not setting the script of something or issuing a do command, you're fine. (There's also a limit on the number of items you can insert in front or back -- 50? Not sure off the top of my head. > >What happens if I open this 'limited' stack in a licensed copy of >Revolution...edit this stack (adding more lines of commands)...and then open >this in a stand-alone engine? No problems. > >What happens if I add to this 'edited' stack from within the stand-alone >engine? Then you're subject to the starter kit limits, but only on the scripts you want to modify. regards, Geoff From harrison at all-auctions.com Mon Jan 28 11:13:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Mon Jan 28 11:13:01 2002 Subject: Currency Formatting? Message-ID: Hi there, I'm pretty new to Revolution. My question is: I need to format my output as $9,999,999,999.999999 Is there an easy way to do this? I looked at the numberFormat thing and the examples aren't up to snuff. There doesn't appear to be a way for commas etc. to be used. Any suggestions? Thanks in advance! Rick Harrison From harrison at all-auctions.com Mon Jan 28 11:16:00 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Mon Jan 28 11:16:00 2002 Subject: Upgrade from SuperCard? Message-ID: Hi again, Is there an upgrade from SuperCard to Revolution? I heard a rumor that a little while ago you could get Revolution for $200 if you were a previous SuperCard owner, but I can't seem to find that information anywhere on the website. Thanks, Rick Harrison From tsimmons at employmentlawadvisors.com Mon Jan 28 11:54:02 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Mon Jan 28 11:54:02 2002 Subject: Manual - printed version References: <003f01c1a811$a2c45210$82204ec7@DAN> Message-ID: <01a501c1a81c$145c0490$0000a398@sndmgr122> Dan, You can make it yourself by using Geoff Canyon's "RTFer" stack - the link is on RunRev's user contributions page at http://www.runrev.com/revolution/developers/developerdownloads/usercontributions.html - as that page explains: "This stack converts the Revolution documentation to a either a single Rich Text Format (RTF) file, a single text file, or an HTML file. Very useful if you want to print the Revolution documentation." Once you get the documentation into text format, you can use your word processor to polish it up any way you want, then print it out. I've also produced the HTML version of the documentation with Geoff's stack - the stack produces very nice HTML files, judging from the ones I checked out. There was a post recently to the effect that Geoff is working on an update to the stack. HTH, Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: DanBackus To: use-revolution at lists.runrev.com Sent: Monday, January 28, 2002 9:37 AM Subject: Manual - printed version When i try to print the transcript manual, it comes out as triple spaced on windows. Where can i find printable documentaion? Thanks. dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From gcanyon at inspiredlogic.com Mon Jan 28 13:20:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 28 13:20:00 2002 Subject: Upgrade from SuperCard? In-Reply-To: References: Message-ID: At 11:13 AM -0500 1/28/02, Rick Harrison wrote: >Is there an upgrade from SuperCard to >Revolution? > >I heard a rumor that a little while ago >you could get Revolution for $200 if you >were a previous SuperCard owner, but I >can't seem to find that information anywhere >on the website. There was a cross-grade offer until about Jan. 16 or 18. Currently I think you have available the Standard Edition and the Professional Edition. Speaking as an ex-SuperCarder, welcome! I think you'll be pleasantly surprised by Revolution. regards, Geoff (AppleScript 1993-Present, HyperCard 1994-1998, SuperCard 1997-1999) From bvlahos at jpl.nasa.gov Mon Jan 28 14:08:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Mon Jan 28 14:08:01 2002 Subject: General deployment question Message-ID: <2373F8B6-1422-11D6-9EE4-003065E6E4BC@jpl.nasa.gov> How are others dealing with building standalones for the Mac and the requirement for unique File Type and Creator? Every application should have a unique ID but how do people manage it? Is Apple really very open to tracking small-timers like me or is there a better way? Is there a similar issue for Windows distribution? Obviously, there would not be a problem with a major distribution and registering with Apple. Any thoughts would be appreciated. Bill Vlahos From harrison at all-auctions.com Mon Jan 28 14:18:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Mon Jan 28 14:18:01 2002 Subject: Upgrade from SuperCard? In-Reply-To: Message-ID: on 1/28/2002 1:19 PM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > > There was a cross-grade offer until about Jan. 16 or 18. Currently I think you > have available the Standard Edition and the Professional Edition. > > Speaking as an ex-SuperCarder, welcome! I think you'll be pleasantly surprised > by Revolution. > > regards, > > Geoff (AppleScript 1993-Present, HyperCard 1994-1998, SuperCard 1997-1999) > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution Geoff, Any idea if they are going to make this offer again? I have to give a demo of Revolution to a group of 100 people and it would sure be nice if I could tell them about a good deal for getting it. I don't think a lot of them are going to be willing to pay the $349 price, but $200 would certainly get their attention. Compared to Revolution I think SuperCard may end up getting the name "StupidCard". :-) Thanks for the quick response! Rick Harrison From Roger.E.Eller at sealedair.com Mon Jan 28 14:22:00 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Mon Jan 28 14:22:00 2002 Subject: Linux for Alpha CPU Message-ID: Is it possible, or will it be possible someday to run Revolution in Linux on an DEC-Alpha based PC? or... Has the RunRev team completed all of the engines that will be made? Wouldn't it be great if we could program in TranScript for PalmOS and PocketPC too? :-) ~Roger From jperryl at ecs.fullerton.edu Mon Jan 28 14:46:01 2002 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Mon Jan 28 14:46:01 2002 Subject: Upgrade from SuperCard? In-Reply-To: Message-ID: Same thing here. I'm working with a school board president of an elementary district; the district is going to have 'technology' training for its teachers but nothing on content-creation/curricular materials production. Sure, the educational bundles are a great deal, but if teachers can't afford to take one home with them, at least in this case Rev will receive little usage. Judy On Mon, 28 Jan 2002, Rick Harrison wrote: > I have to give a demo of Revolution to a group of 100 people > and it would sure be nice if I could tell them about a > good deal for getting it. I don't think a lot of them > are going to be willing to pay the $349 price, but $200 > would certainly get their attention. From gcanyon at inspiredlogic.com Mon Jan 28 14:50:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 28 14:50:00 2002 Subject: General deployment question In-Reply-To: <2373F8B6-1422-11D6-9EE4-003065E6E4BC@jpl.nasa.gov> References: <2373F8B6-1422-11D6-9EE4-003065E6E4BC@jpl.nasa.gov> Message-ID: At 11:06 AM -0800 1/28/02, Bill Vlahos wrote: >How are others dealing with building standalones for the Mac and the requirement for unique File Type and Creator? Every application should have a unique ID but how do people manage it? Is Apple really very open to tracking small-timers like me or is there a better way? http://developer.apple.com/dev/cftype/ As far as I know they want everyone, even the "small-timers." Even Microsoft was a small-timer at one point :-) I don't know about the PC side of things. regards, Geoff From gcanyon at inspiredlogic.com Mon Jan 28 14:52:42 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 28 14:52:42 2002 Subject: Upgrade from SuperCard? In-Reply-To: References: Message-ID: At 2:15 PM -0500 1/28/02, Rick Harrison wrote: >Any idea if they are going to make this offer again? > >I have to give a demo of Revolution to a group of 100 people >and it would sure be nice if I could tell them about a >good deal for getting it. I don't think a lot of them >are going to be willing to pay the $349 price, but $200 >would certainly get their attention. I don't know whether the cross-grade offer will return. If the 100 people are part of an organization, there are multi-user licenses available. You should check with the Rev crew directly about that. regards, Geoff From drvaughan55 at mac.com Mon Jan 28 17:28:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon Jan 28 17:28:01 2002 Subject: Currency Formatting? In-Reply-To: Message-ID: <09C20892-143E-11D6-A329-000393598038@mac.com> Rick I haven't looked yet for an obvious way in Rev but this is the script I wrote for use in my HyperCard stacks, so it should do the trick in Rev. function InsertComma srcNum,symbol put empty into pretty -- Find a decimal point, if any put offset(".",srcNum) into decPoint put length(srcNum) into srcLen if decPoint > 0 then -- Anything from the decimal point needs no further work put char decPoint to srcLen of srcNum into pretty -- Shorten the string to the part with which to deal delete char decPoint to srcLen of srcNum put (decPoint - 1) into srcLen end if -- Now loop inserting commas and breaking off that part repeat while srcLen > 3 put "," & char (srcLen - 2) to srcLen of srcNum before first char of pretty delete char (srcLen - 2) to srcLen of srcNum put length(srcNum) into srcLen end repeat -- Add the optional symbol put symbol & srcNum before first char of pretty return(pretty) end InsertComma This function returns a comma-delimited number with optional first symbol (e.g. $ or ? or ?). For example, << put insertComma(1234.56,"$") >> produces $1,234.56. For that matter, << put insertComma("Fred","Apple") >> will produce "AppleF,red" for what it is worth! cheers David On Tuesday, January 29, 2002, at 03:10 , Rick Harrison wrote: > Hi there, > > I'm pretty new to Revolution. > > My question is: > > I need to format my output as $9,999,999,999.999999 > > Is there an easy way to do this? > > I looked at the numberFormat thing and the examples aren't > up to snuff. There doesn't appear to be a way for commas > etc. to be used. > > Any suggestions? > > Thanks in advance! > > Rick Harrison > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From harrison at all-auctions.com Mon Jan 28 17:53:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Mon Jan 28 17:53:01 2002 Subject: Currency Formatting? In-Reply-To: <09C20892-143E-11D6-A329-000393598038@mac.com> Message-ID: on 1/28/2002 5:26 PM, David Vaughan at drvaughan55 at mac.com wrote: > Rick > > I haven't looked yet for an obvious way in Rev but this is the script I > wrote for use in my HyperCard stacks, so it should do the trick in Rev. > > function InsertComma srcNum,symbol > put empty into pretty > -- Find a decimal point, if any > put offset(".",srcNum) into decPoint > put length(srcNum) into srcLen > if decPoint > 0 then > -- Anything from the decimal point needs no further work > put char decPoint to srcLen of srcNum into pretty > -- Shorten the string to the part with which to deal > delete char decPoint to srcLen of srcNum > put (decPoint - 1) into srcLen > end if > -- Now loop inserting commas and breaking off that part > repeat while srcLen > 3 > put "," & char (srcLen - 2) to srcLen of srcNum before first char of > pretty > delete char (srcLen - 2) to srcLen of srcNum > put length(srcNum) into srcLen > end repeat > -- Add the optional symbol > put symbol & srcNum before first char of pretty > return(pretty) > end InsertComma > > This function returns a comma-delimited number with optional first > symbol (e.g. $ or ? or ?). > For example, << put insertComma(1234.56,"$") >> produces $1,234.56. For > that matter, << put insertComma("Fred","Apple") >> will produce > "AppleF,red" for what it is worth! > > cheers > David > David, Thanks for the code segment!! I'll try it out. It should work... I just wish that the people who wrote Rev. had already done this stuff for us. We shouldn't have to re-invent the wheel! Thanks again! Rick Harrison From gcanyon at inspiredlogic.com Mon Jan 28 18:16:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Mon Jan 28 18:16:01 2002 Subject: Upgrade from SuperCard? In-Reply-To: References: Message-ID: At 11:44 AM -0800 1/28/02, Judy Perry wrote: > >Same thing here. I'm working with a school board president of an >elementary district; the district is going to have 'technology' training >for its teachers but nothing on content-creation/curricular materials >production. > >Sure, the educational bundles are a great deal, but if teachers can't >afford to take one home with them, at least in this case Rev will receive >little usage. Have you looked at what can be done with the (free) starter kit? Once you get a handle on how Revolution works, ten command lines isn't nearly as restrictive as it sounds. Especially in the case where you're creating content and curricular materials, I'm betting that's not program-structure-heavy in the first place. Remember that the starter kit is free for unlimited use -- there's no time-out, and you can even produce standalones with it. So in the case of teachers working on course material, if they had a licensed copy at the school and the starter kit at home, they could easily transfer their work between the two, and the only limitation would be on the complexity of the scripting they could do at home. regards, Geoff From preid at reidit.co.uk Mon Jan 28 18:16:22 2002 From: preid at reidit.co.uk (Peter Reid) Date: Mon Jan 28 18:16:22 2002 Subject: Currency Formatting? In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From jeanne at runrev.com Tue Jan 29 00:17:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 29 00:17:01 2002 Subject: custom prop In-Reply-To: Message-ID: At 10:32 AM -0800 1/27/2002, yves COPPE wrote: >When I click "custom" in the tab-window properties of an object, >you have two fields : > >custom property sets >or >property set keys > >If I want to create one, in which window do I need to click the "New" button ? > >And more generally, what's the difference between the two kinds of >custom properties ? > >I have read the chapter in the documentation but I don't understand the trick. Hi Yves. Actually, for most purposes you can ignore the issue of custom property sets. They are very useful at some times, but if you're just getting started, pretend that the Custom Property Sets field on the left, and its buttons, are not there. Use the field on the right to create your custom properties and they will work fine. When you become advanced ;-), you can use the Custom Property Sets to create multiple sets of custom properties. Usually, you use these sets in order to switch between values of a property - you can have a property with the same name (but a different value) in two sets. When you "get" the property, the value depends on which set is active. For example, suppose you have a bunch of custom properties that hold strings in French that are used in your application. Your scripts might use these custom properties. For example, you might have a line like answer the myStringHere of this stack which displays the contents of the custom property called "myStringHere" in an answer dialog box. So far, you do not need custom property sets at all - only custom properties. Then you decide you want to translate your app into English. In this case, you could place your original properties into a set called "frenchStrings", then create another set called "englishStrings". Each set would have the same-named properties, but one set would have them in French and the other in English. Then you would switch between the sets depending on what language the user wants, and the line answer the myStringHere of this stack would provide either the English or French, depending on which custom property set is active: "englishStrings" or "frenchStrings". -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Tue Jan 29 00:18:19 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 29 00:18:19 2002 Subject: creating new tools In-Reply-To: Message-ID: At 7:20 PM -0800 1/25/2002, Steve Messimer wrote: >Years ago I created a set of objects for HyperCard that allowed users to >significantly truncate the educational development process. Using stack >templates and compoundObjects (like buttonField objects, button card >objects, hotText objects, quizObjects, examObjects etc ) teachers could >create educational titles in days rather than months. Now that revolution >is here I am inspired to attempt to port the code. The question is ... what >is the best approach. Here's a brief outline of what I would like to do. > >The app/plugin when invoked would display a palette of tools. selecting a >tool would create a compound object on the target card. For example: when a >user selects a buttonField Object ( a button and field that act as a single >object - bFO). The code would create a button and field on a card of a >target stack. The Objects would be related . When the button was clicked the >field would show itself when clicked again it would hide the related field. >bFOs have relationships to all other bFOs on a card... only one companion >fld can be showing at any given time. >1. Should these tools be created within a plugin or as a main stack or as a >substack? Ideally I would like these tools available to anyone who uses RR. >I'm thinking that perhaps a plugin might be the best approach. That sounds like the way to go to me as well. There is *cough* a deplorable lack of plugins information in the documentation at present, but the basic concept is actually quite simple. A plugin is just a stack you create. You place the stack file in the "plugins" folder inside the Revolution folder. Thereupon, it becomes accessible through the Plugins submenu in the Development menu. You can use the Plugins Editor window to control when the plugin window opens (automatically at startup, automatically when quitting, or manually when chosen from the submenu) and what type of window it should be displayed in (modal or modeless dialog or palette). You can also use the Plugins Editor to control whether your plugin receives a custom message when certain standard system messages are sent. For example, if you want your plugin to do something whenever the user closes a stack, include in your plugin's script a handler for "revCloseStack", and make sure "revCloseStack" is checked in the Plugins Editor. Your handler will be triggered whenever your plugin is open and the user closes a stack. >2. How does RR "know" which stack to create an object in? Does it just >assume that it is supposed to create the Object on the card in the Active >window? Take a look at the defaultStack property. New objects are created in the defaultStack, which normally is the topmost editable window (i.e. not a palette or dialog box). You can get the defaultStack to find out where an object will be created, and set the defaultStack if you want to make a different stack the default (say, if you want to create an object in a palette via script). >3. compoundObject IDs: In HyperCard I tracked the creation of all new >compoundObjects in hidden text fields. This was useful to prevent >duplication of Object names and to help identify object components when a >compoudObject was deleted. I could create a separate ID generation >script/function but it would be cleaner if I could get access to the code >that generates IDs for RR objects. Is there a way to do this? Other ideas? > >As I think about this some internal compoundObject accounting must be >located in the stack being developed. It doesn't make much sense for the >plugin to do anything but generate the ID or Name. I guess I'm not completely clear on why you need to do accounting of IDs and names...however, one of the actions the plugin can intercept is the changing of an object's name (revNameChanged). >4. Object Names: In HyperCard I used specific characters to identify >certain types of compoundObjects. To identify a bFO I used a terminal "*". >This worked fine but every bFO button had a "*" in its display name. Is the >a way to avoid this with RR and are there any Cross platform gotchas using >extra characters like "*". I presume that if I stick with standard ascii I >should be OK? Right? Check out the label property. If the label of a button is non-empty, it overrides the name property: the button is referred to by name, but what's displayed is its label, which may be completely different. Another way to go here might be to use a custom property. I assume you're doing something like if last char of the short name of the target is "*" then... In Rev, you might set a custom property of the button - for example, you could call it "isBFO" - and test that: if the isBFO of the target is true then... ASCII should be fine, but actually Revolution automatically converts high-bit characters for the platform the stack is being opened in, for everything except custom properties. So even if you use high-bit characters you ought to be safe. The only caveat is for display - the Unix, Mac, and Windows character sets overlap but they're not identical in the high-bit segment, so you need to make sure any characters that will be displayed to the user have equivalents on all the platforms you're intending to distribute for. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From harrison at all-auctions.com Tue Jan 29 00:32:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Tue Jan 29 00:32:01 2002 Subject: Currency Formatting? In-Reply-To: Message-ID: > Hi Rick > > The following is a function that produces formatted currency output. it was > originally developed for MetaCard, but seems to work OK with Revolution (after > quick check!): > >.... >Cheers > >Peter Peter, Thanks for the code!!! I guess I'll find out how fast it runs when I try it. Thanks again! Rick Harrison -------------- next part -------------- An HTML attachment was scrubbed... URL: From curry at kagi.com Tue Jan 29 02:19:00 2002 From: curry at kagi.com (curry at kagi.com) Date: Tue Jan 29 02:19:00 2002 Subject: Upgrade from SuperCard? In-Reply-To: <200201290523.AAA19524@www.runrev.com> Message-ID: >> There was a cross-grade offer until about Jan. 16 or 18. Currently I think >> you > Any idea if they are going to make this offer again? > > I have to give a demo of Revolution to a group of 100 people > and it would sure be nice if I could tell them about a > good deal for getting it. I don't think a lot of them > are going to be willing to pay the $349 price, but $200 > would certainly get their attention. The cross-grade offer was a great deal. Since it only applied to people who had purchase HyperCard or SuperCard before such and such a date, in my opinion it would be to the company's advantage to keep the offer open as long as that cutoff date was the same; it would still apply to the original group of people. At any rate, I imagine the crossgrade offer was also very successful, so I would guess that some sort of similar deal would be offered from time to time in the future. But that's just my idle speculation, it might not turn out that way! Curry Kenworthy From jan.decroos at groepvanroey.be Tue Jan 29 03:25:01 2002 From: jan.decroos at groepvanroey.be (Jan Decroos) Date: Tue Jan 29 03:25:01 2002 Subject: Currency Formatting? In-Reply-To: <200201281658.LAA08486@www.runrev.com> References: <200201281658.LAA08486@www.runrev.com> Message-ID: the function dispnum (see below) does the job. dispnum : first argument : true/false to put or remove the thousand and decimal separator 2nd argument : the container with numbers change the lThousSep and lDecimSep variables if you want to have other separators (in Europe we take the comma for the decimal separator and a space or point for the thousand separator) on mouseUp ask "Give Amount:" with 12345678.888 if it <> "" then answer "$"&dispnum(true,it) end mouseUp function dispnum pOption, pData if last char of pData = CR then put CR after pData -- change next two lines depending on your needs put comma into lThousSep put "." into lDecimSep if not(pOption) then -- UNdisplay (back to numbers) put pData into lResult replace lThousSep with "" in lResult replace lDecimSep with "." in lResult else -- make numbers readable repeat for each line lLine in pData if lLine is a number then put offset(".",lLine) into lPosPnt put (lPosPnt = 0) into lisInteger -- don't check by "is an integer" because "5.00" is an integer !! if lisInteger then put length(lLine) into lEnd else put lPosPnt-1 into lEnd if char 1 of lLine = "+" or char 1 of lLine = "-" then put 1 into lOffset else put 0 into lOffset if not(lisInteger) then put lDecimSep into char lEnd+1 of lLine put 3 into lChar repeat ((lEnd - 1 - lOffset) DIV 3) put lThousSep before char lEnd-lChar+1 of lLine add 3 to lChar end repeat end if put lLine&CR after lResult end repeat if last char of lResult = CR then delete last char of lResult end if return (lResult) end dispnum Hope this helps... Jan From rvalentine at ameritech.net Tue Jan 29 04:08:01 2002 From: rvalentine at ameritech.net (rand valentine) Date: Tue Jan 29 04:08:01 2002 Subject: Various questions Message-ID: <000801c1a869$5a7c42d0$0201000a@RandInspiron8100> Hi, all. I really appreciate everyone's contributions to this list, both those taking time to pose questions and of course those who provide answers. I've been a HyperCard user since it was first introduced, and have used it extensively for various linguistic-related projects. I wrote my phd dissertation using HyperCard to organize data (a dialect study of the North American aboriginal language Ojibwe). I am presently teaching at the University of Wisconsin (Madison) in American Indian Studies, seeking to help preserve the Ojibwe language (most aboriginal languages in the world will die out in the next two generations due to pressures of globalization). Most of my Revolution work will involve producing stacks to help language learners. I use Mac OS9, X.1.2, and Windows 2000. I built my first runrev language stack today, and have a couple of questions for the group: 1. If you use a "player" and external sounds, is there any way to relativize the path to the sounds? For example, I have cards that have Ojibwe written on them, and when the user clicks on a button, my pronunciation of the Ojibwe is heard-- via a player that finds an audio (wav) file. But how do I generalize the paths in the players so that a downloaded copy of the runrev stack with associated audiofiles will be able to find the audio files without the user's having to know how to link files? Could you use the "default folder" to good effect in this case? Help! 2. How necessary is it to have external audio files? What is the size threshold in terms of final stack size? For example, if I have a set of say 25 audio files that are each about 50K, will it really tax a typical Windows or Mac system to have all of these audio files embedded in a single RunRev file (ie, overload memory to load this stack)? What guidelines can be given as to "size"? This would really help novice users. 3. To the RunRev team: We need a stack repository, where people can upload stacks to give others ideas about developing their own materials. This will only help Revolution thrive as a commercial product. The docs for runrev are a great start, but they are still very limited. Stack examples will help people with particular interests to see implementations of projects of the sort that they themselves are undertaking. It's funny-- runrev produces in me the same kind of loyalty/devotion that the mac does- something about aesthetics and the quality of life. I _love_ this program. It will help Ojibwe to survive. Okay, enough for now. Thanks for your help, dear fellow programmers. rand valentine u of wisconsin-madison From chipp at chipp.com Tue Jan 29 04:37:00 2002 From: chipp at chipp.com (Chipp Walters) Date: Tue Jan 29 04:37:00 2002 Subject: new altURL Library V0.92 Message-ID: I've posted a new version of the altURL library. It can be used instead of the "post" and "get" commands when you need more control. I've used it successfully on redirects, and it also makes it easy to manage HTTPresponse callbacks. It's some pretty simple code -- easy to read -- for anyone who wants more control of their sockets. It can be downloaded at: http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm From kmajor at metascape.org Tue Jan 29 06:37:01 2002 From: kmajor at metascape.org (Klaus) Date: Tue Jan 29 06:37:01 2002 Subject: Various questions In-Reply-To: <000801c1a869$5a7c42d0$0201000a@RandInspiron8100> Message-ID: Hi Rand, > Hi, all. I really appreciate everyone's contributions to this list, > both those taking time to pose questions and of course those who provide > answers. I've been a HyperCard user since it was first introduced, and > have used it extensively for various linguistic-related projects. I > wrote my phd dissertation using HyperCard to organize data (a dialect > study of the North American aboriginal language Ojibwe). I am presently > teaching at the University of Wisconsin (Madison) in American Indian > Studies, seeking to help preserve the Ojibwe language (most aboriginal > languages in the world will die out in the next two generations due to > pressures of globalization). Most of my Revolution work will involve > producing stacks to help language learners. I use Mac OS9, X.1.2, and > Windows 2000. I built my first runrev language stack today, and have a > couple of questions for the group: Welcome to the club :-) > > 1. If you use a "player" and external sounds, is there any way to > relativize the path to the sounds? For example, I have cards that have > Ojibwe written on them, and when the user clicks on a button, my > pronunciation of the Ojibwe is heard-- via a player that finds an audio > (wav) file. But how do I generalize the paths in the players so that a > downloaded copy of the runrev stack with associated audiofiles will be > able to find the audio files without the user's having to know how to > link files? Could you use the "default folder" to good effect in this > case? Help! Help ! ;-) Of course you can use relative paths. Here's how to: Supposed you have your stacks etc in a big folder called "Dunno" ;-) You could create a subfolder in that folder and call it e.g. "soundz" (sic ! ;-) Now you have to tell MC/RR to set its working directory, which is the folder, where the engine will look into and will find all the nice things in there, like stacks, movies, subfolders etc... Now you should add these lines to the stack (inside folder "Dunno") where you want to use relative paths: on preopenstack ## so it's already set, when the stack starts... get the effective filename of this stack set the itemdel to "/" delete last item of it set the directory to it end preopenstack "the efective filename" returns the complete path to that stack with HD etc... -> "C:/windoze/my_folder/your_folder/our_stack.rev" Now we set the itemdelimiter to "/" (which is the default path delimiter in MC/RR), delete the last item of "the eff..." and what's left is the complete path to the folder "Dunno". ("C:/windoze/my_folder/your_folder") NOW you can script something like: on xxx set the filename of player "playa" to "soundz/new.wav" end xxx Now you can just create new players and assign a filename to them like above: sounds/sound.wav > 2. How necessary is it to have external audio files? What is the size > threshold in terms of final stack size? For example, if I have a set of > say 25 audio files that are each about 50K, will it really tax a typical > Windows or Mac system to have all of these audio files embedded in a > single RunRev file (ie, overload memory to load this stack)? What > guidelines can be given as to "size"? This would really help novice > users. MC/RR uses to load an entire stack into memory !!! So it is always a got idea to use referenced sound and movies... I once read the advice to create no stack bigger than 3 to 4 mb. Sounds reasonable to me, but depends on hardware configurations... > 3. To the RunRev team: We need a stack repository, where people can > upload stacks to give others ideas about developing their own materials. > This will only help Revolution thrive as a commercial product. The docs > for runrev are a great start, but they are still very limited. Stack > examples will help people with particular interests to see > implementations of projects of the sort that they themselves are > undertaking. It's funny-- runrev produces in me the same kind of > loyalty/devotion that the mac does- something about aesthetics and the > quality of life. I _love_ this program. It will help Ojibwe to survive. There is a usercontribution section on the RR-site. But i don't know how to post stacks there. > Okay, enough for now. Thanks for your help, dear fellow programmers. > > rand valentine > u of wisconsin-madison Hope this helps in the moment and that my explanation is understandable :-) Regards Klaus Major MetaScape GmbH From Frank.Barlow at ICL.com Tue Jan 29 07:12:00 2002 From: Frank.Barlow at ICL.com (Barlow Frank) Date: Tue Jan 29 07:12:00 2002 Subject: Create Field and other matters Message-ID: <9B7B6E6E6C76D311AAE10090272405B5013D9AF1@WWMESSD114> Mac G3 400 System 9.2 Rev full version at home. I play with the trial version at lunch time on NT4 at work. Problem, if I exceed the lines limit, it tells me then crashes Revolution. also I observe that the "create Field" script auto chooses the pointer tool, you need to add a line to "choose browse tool" to continue! Frank Barlow frank at adsum.org From curry at kagi.com Tue Jan 29 07:35:01 2002 From: curry at kagi.com (curry at kagi.com) Date: Tue Jan 29 07:35:01 2002 Subject: Currency Formatting? In-Reply-To: <200201290523.AAA19524@www.runrev.com> Message-ID: Rick Harrison wrote: > I just wish that the people who wrote Rev. had > already done this stuff for us. We shouldn't > have to re-invent the wheel! I have always thought that there were a lot of wheels left to re-invent, so during my spare time I have been working on an extensive library of basic functions and handlers to enhance Revolution's set in several areas. The library has standard, familiar features as well as some advanced options that go beyond average implementations, and the handlers will be tested, well-documented, and optimized for speed where it seems appropriate. I will be making it available to download in the next day or two and look forward to seeing how useful it proves for the average Revolution user and for those who are getting started with Revolution. Curry Kenworthy From curry at kagi.com Tue Jan 29 07:47:00 2002 From: curry at kagi.com (curry at kagi.com) Date: Tue Jan 29 07:47:00 2002 Subject: inspect calling chain? In-Reply-To: <200201281657.LAA08424@www.runrev.com> Message-ID: >>> Is there any way inside transcript to inspect the calling chain? >>> Specifically, is there a way for a handler or function to find out the name >>> of the handler or function which called it? >> At present no, not beyond getting the target of the object that got the >> original message. I think it would be nice to find the name of the calling handler and also to be able to look at variables from within the scope of that calling handler. Curry Kenworthy From yvescoppe at skynet.be Tue Jan 29 07:54:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 29 07:54:01 2002 Subject: Various questions In-Reply-To: References: Message-ID: > >Of course you can use relative paths. > >Here's how to: > >Supposed you have your stacks etc in a big folder called "Dunno" ;-) > >You could create a subfolder in that folder and call it e.g. "soundz" >(sic ! ;-) > >Now you have to tell MC/RR to set its working directory, which is >the folder, where the engine will look into and will find all the nice >things in there, like stacks, movies, subfolders etc... > >Now you should add these lines to the stack (inside folder "Dunno") >where you want to use relative paths: > >on preopenstack ## so it's already set, when the stack starts... > get the effective filename of this stack > set the itemdel to "/" > delete last item of it > set the directory to it >end preopenstack > >"the efective filename" returns the complete path to that stack with >HD etc... -> "C:/windoze/my_folder/your_folder/our_stack.rev" > >Now we set the itemdelimiter to "/" (which is the default path delimiter in >MC/RR), delete the last item of "the eff..." and what's left is the complete >path to the folder "Dunno". ("C:/windoze/my_folder/your_folder") > >NOW you can script something like: > >on xxx > set the filename of player "playa" to "soundz/new.wav" >end xxx > >Regards > >Klaus Major > >MetaScape GmbH What's the difference between setting the directory or setting the default stack ? -- From kmajor at metascape.org Tue Jan 29 08:55:01 2002 From: kmajor at metascape.org (Klaus) Date: Tue Jan 29 08:55:01 2002 Subject: Various questions In-Reply-To: Message-ID: Bonjour Yves, > What's the difference between setting the directory or setting the > default stack ? a big one ;-) Setting the default stack just "re-directs" all (following) commands to that stack. Example: There is stack "A" with an image that you want to show and hide. But you want to do that in a script that is stack "B" So you would script (somewhere in stack "B"): on xxx hide image "xxx" of cd 2 of stack "A" wait 10 secs show image "xxx" of cd 2 of stack "A" ... end xxx Or better (less verbose): on xxx set the defaultstack to "A" hide image "xxx2 of cd 2 wait 10 secs show img "xxx" of cd 2 ... ###snip Setting the directory causes to "put" the engine into a totally new "world". The working directory is the folder, where the engine is looking for all objects (files/movies/sounds/stacks etc...) you use in your script. You can actually say that the working directory is the folder where the engine "lives" in. Example: There is a jpg-file on the desktop, that you want to use in your scripts. set the filename of img 1 to "my_image.jpg" ...will cause nothing but a grey image placeholder, because the engine is probably still living in another folder. Now it will look around and will NOT see the desired jpg-file. (Hint: Right after starting RR, type this into the messagebox: put the directory ...and hit Return. You will see the path to the RR-folder here.) So RR doens't know anything about the existence of a desktop-folder, until you definitvely tell him. (her ?) ... set the directory to "C:/WINDOWS/Desktop/" ... Now the line: set the filename of img 1 to "my_image.jpg" will (hopefully) display a extremely cute image in img 1 :-) I hope you can follow so far. We have 2 problems. 1. I am not native english-speaking and 2. you are french (Which "per se" is no problem, of course ;-) But this combination together with the not too simple explanations here might be a bit confusing... (Mon francais ne suffice pas pour explainer cettes trucs... :-) Hope this helps... If not, you know where to send your mails to... :-) A bientot Klaus Major MetaScape GmbH From yvescoppe at skynet.be Tue Jan 29 09:54:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 29 09:54:01 2002 Subject: Various questions In-Reply-To: References: Message-ID: >Bonjour Yves, > > > >I hope you can follow so far. > >We have 2 problems. > >1. I am not native english-speaking and >2. you are french (Which "per se" is no problem, of course ;-) > >But this combination together with the not too simple explanations >here might be a bit confusing... > >(Mon francais ne suffice pas pour explainer cettes trucs... :-) > >Hope this helps... > >If not, you know where to send your mails to... :-) > > >A bientot > >Klaus Major >MetaScape GmbH > I'd like to precise that : 1) your English is enough to understand your explanation 2) my English is more bad than yours but I can read anything without problem 3) It would be a pity that you explain in french and other people who doesn't undertand French couldn't profit from your experience 4) I speak French but?I'm not : I live in Belgium ! So let all things as they are and?thank you very much fort your help ! -- From brent at baton.phys.lsu.edu Tue Jan 29 10:18:01 2002 From: brent at baton.phys.lsu.edu (Brent Neal) Date: Tue Jan 29 10:18:01 2002 Subject: Basic Question: Text Field wrapping Message-ID: I have a very simple question: Is there something odd with wrapping in text fields in the OS X version? I've created a brand new stack and placed one text field on the card. The Properties palette confirms that the dontWrap property is false. If I type into the field, or insert text into the field via the message box or via a script, the text does not wrap. To further test this, I created a checkbox that toggles the dontWrap property. Inspecting the field's properties shows that the button is in fact toggling the dontWrap property, but the text never wraps. I hope the answer to this is simple, and that I've just missed something. Brent -- Brent Neal Geek of all Trades "Specialization is for insects" -- Robert A. Heinlein From gcanyon at inspiredlogic.com Tue Jan 29 10:37:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 29 10:37:00 2002 Subject: Various questions In-Reply-To: References: Message-ID: At 12:34 PM +0100 1/29/02, Klaus wrote: >> (wav) file. But how do I generalize the paths in the players so that a >> downloaded copy of the runrev stack with associated audiofiles will be >> able to find the audio files without the user's having to know how to >> link files? Could you use the "default folder" to good effect in this >> case? Help! > >Help ! ;-) > >Of course you can use relative paths. > >Here's how to: If you plan to build a standalone (rather than a stack) then this is much easier. The directory defaults to the directory containing the application -- when you are developing in Revolution, it is the directory that contains Revolution, when you build a standalone, it is the directory that contains the standalone. So, when you run as a stack, "soundz/new.wav" refers to a file "new.wav" that is in a folder "soundz" which is in the same directory as the Revolution application. When you run as a standalone, it refers to the file "new.wav" in the folder "soundz" in the same folder as the standalone. If you locate your resources in a folder relative to the Revolution application, and then in a folder relative to the standalone, you don't have to do anything to reference relative paths. regards, Geoff From kmajor at metascape.org Tue Jan 29 10:58:01 2002 From: kmajor at metascape.org (Klaus) Date: Tue Jan 29 10:58:01 2002 Subject: Various questions In-Reply-To: Message-ID: Bonjour Yves, >>... >> A bientot >> >> Klaus Major >> MetaScape GmbH >> > > I'd like to precise that : > > 1) your English is enough to understand your explanation > 2) my English is more bad than yours but I can read anything without problem > 3) It would be a pity that you explain in french and other people who > doesn't undertand French couldn't profit from your experience (In that case: noone would understand me :-) > 4) I speak French but?I'm not : I live in Belgium ! Oh, mon dieux, excusez moi mille fois... ;-) Sorry for that embarrassing mistake. So you are a "Wallone" and not a "Flame", en jij praat niet nederlands... I don't know the correct english word for that, so i took ther german ones... > So let all things as they are and?thank you very much fort your help ! Graag gedaan ;-) A votre service... Au revoir Klaus Major MetaScape GmbH From devin_asay at byu.edu Tue Jan 29 11:19:01 2002 From: devin_asay at byu.edu (Devin Asay) Date: Tue Jan 29 11:19:01 2002 Subject: custom prop In-Reply-To: References: Message-ID: At 6:28 PM -0800 1/27/02, Jeanne A. E. DeVoto wrote: [snip] >For example, suppose you have a bunch of custom properties that hold >strings in French that are used in your application. Your scripts might use >these custom properties. For example, you might have a line like > answer the myStringHere of this stack >which displays the contents of the custom property called "myStringHere" in >an answer dialog box. So far, you do not need custom property sets at all - >only custom properties. > >Then you decide you want to translate your app into English. In this case, >you could place your original properties into a set called "frenchStrings", >then create another set called "englishStrings". Each set would have the >same-named properties, but one set would have them in French and the other >in English. Then you would switch between the sets depending on what >language the user wants, and the line > answer the myStringHere of this stack >would provide either the English or French, depending on which custom >property set is active: "englishStrings" or "frenchStrings". Jeanne, This is great stuff, the first time I've understood what custom property sets are for. But how do you make one set or the other active? Devin -- Devin Asay Humanities Research Center Brigham Young University From yvescoppe at skynet.be Tue Jan 29 11:34:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Tue Jan 29 11:34:01 2002 Subject: Various questions In-Reply-To: References: Message-ID: Hello Klaus, I live at the limit between France and Belgium and between Wallonie and Flanders So I speak as well French as Dutch Dus,is Nederlands geen enkel problem voor mij?! -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From cyberscope at home.com Tue Jan 29 12:12:01 2002 From: cyberscope at home.com (Gene Kennedy) Date: Tue Jan 29 12:12:01 2002 Subject: Playing Sound Clips References: <200201291456.JAA27959@www.runrev.com> Message-ID: <3C56D7DF.42064DF2@home.com> Can someone please enlighten me regarding the playing of sound files in RR. I have a number of voice recordings that I would like to piece together in my script and then play the selected clips in rapid succession. How can I tell when a sound clip is through playing so that I can start playing the next clip right away? I can save the sound files in most popular formats and can use the play command individually. However, if I place a number of play commands in succession, they all start to play with a slight delay between each and wind up "stepping" all over each other. For example: On Signal Play "Clip a" Play "Clip b" Play "Clip c" end Signal This causes the unwanted effect of having each play command open its own sound channel and all playing out simultaneously. What I looked for but could not find was a command something like" Play "Clip x" until EOF Play "Clip y" until EOF Where clip y would not start to play until clip x was finished. This is the effect I am after but can't find the solution. Any help will be appreciated. Gene Kennedy From jperryl at ecs.fullerton.edu Tue Jan 29 12:24:00 2002 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue Jan 29 12:24:00 2002 Subject: creating new tools In-Reply-To: Message-ID: Steve, Somehow, I deleted the original post (yours). As I remarked in a previous post, I may be doing a session of teacher training for some elementary teachers on content creation, etc. Do you have anything you'd be willing to share with me in this? Many thanks for your consideration, Judy On Sun, 27 Jan 2002, Jeanne A. E. DeVoto wrote: > At 7:20 PM -0800 1/25/2002, Steve Messimer wrote: > >Years ago I created a set of objects for HyperCard that allowed users to > >significantly truncate the educational development process. Using stack > >templates and compoundObjects (like buttonField objects, button card > >objects, hotText objects, quizObjects, examObjects etc ) teachers could > >create educational titles in days rather than months. Now that revolution > >is here I am inspired to attempt to port the code. The question is ... what > >is the best approach. Here's a brief outline of what I would like to do. From sjoerdoptland at mac.com Tue Jan 29 12:48:01 2002 From: sjoerdoptland at mac.com (Sjoerd Op 't Land) Date: Tue Jan 29 12:48:01 2002 Subject: Playing Sound Clips In-Reply-To: <3C56D7DF.42064DF2@home.com> Message-ID: Try: On Signal Play "Clip a" wait until the sound is done Play "Clip b" wait until the sound is done Play "Clip c" end Signal Regards, / Groeten, Sjoerd From gcanyon at inspiredlogic.com Tue Jan 29 13:16:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 29 13:16:01 2002 Subject: Playing Sound Clips In-Reply-To: <3C56D7DF.42064DF2@home.com> References: <200201291456.JAA27959@www.runrev.com> <3C56D7DF.42064DF2@home.com> Message-ID: At 12:12 PM -0500 1/29/02, Gene Kennedy wrote: >Can someone please enlighten me regarding the playing of sound files in RR. I have a >number of voice recordings that I would like to piece together in my script and then play >the selected clips in rapid succession. How can I tell when a sound clip is through >playing so that I can start playing the next clip right away? Check out the playStopped message, or use the sound function and send...in (check out send in the help). regards, Geoff From mike at cyber-ny.com Tue Jan 29 13:49:01 2002 From: mike at cyber-ny.com (Mike Brown) Date: Tue Jan 29 13:49:01 2002 Subject: Playing Sound Clips In-Reply-To: Message-ID: Hi Geoff, Could you provide an example of how the playStopped message can be properly implemented? I have looked through the documentation but can not find a practical example of how to use it. Thanks, Mike Brown Cyber-NY Interactive 212-475-2721 1-888-70-CYBER mike at cyber-ny.com > From: "Geoff Canyon" > Reply-To: use-revolution at lists.runrev.com > Date: Tue, 29 Jan 2002 10:15:06 -0800 > To: use-revolution at lists.runrev.com > Subject: Re: Playing Sound Clips > > At 12:12 PM -0500 1/29/02, Gene Kennedy wrote: >> Can someone please enlighten me regarding the playing of sound files in RR. >> I have a >> number of voice recordings that I would like to piece together in my script >> and then play >> the selected clips in rapid succession. How can I tell when a sound clip is >> through >> playing so that I can start playing the next clip right away? > > Check out the playStopped message, or use the sound function and send...in > (check out send in the help). > > regards, > > Geoff > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From gcanyon at inspiredlogic.com Tue Jan 29 14:29:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue Jan 29 14:29:01 2002 Subject: Playing Sound Clips In-Reply-To: References: Message-ID: At 1:46 PM -0500 1/29/02, Mike Brown wrote: >Could you provide an example of how the playStopped message can be properly >implemented? I have looked through the documentation but can not find a >practical example of how to use it. I would think (not tested) something like this: global gSoundFileList,gWhichFile,gNumSoundFiles on startPlaying put 1 into gWhichFile startNewSound end startPlaying on startNewSound play audioClip gSoundFileList[gWhichFile] end startNewSound on playStopped add 1 to gWhichFile if gWhichFile > gNumSoundFiles then exit playStopped startNewSound end playStopped regards, Geoff From carstenlist at itinfo.dk Tue Jan 29 15:03:01 2002 From: carstenlist at itinfo.dk (Carsten Levin) Date: Tue Jan 29 15:03:01 2002 Subject: Developing on a distribution-file In-Reply-To: <200201290524.AAA19606@www.runrev.com> Message-ID: When opening an ordinary .rev file by double clicking it - without first opening Revolution - it doesnt run correctly. It needs to be saved as a distribution file before behaving well on its own ... and I am not talking about saving as a stand-alone app. But the file saved as a distribution file can still be edited in Revolution. I can see a clear advantage in working with a file saved as a distribution file, since it can always test as a final solution without having to be saved as a distribution first. But are there any reasons not to do so? Best regards Carsten Levin From harrison at all-auctions.com Tue Jan 29 15:04:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Tue Jan 29 15:04:01 2002 Subject: Currency Formatting? In-Reply-To: Message-ID: on 1/29/2002 3:25 AM, Jan Decroos at jan.decroos at groepvanroey.be wrote: > the function dispnum ... does the job. > Jan, Thanks for the code! Rick Harrison From katir at hindu.org Tue Jan 29 16:23:00 2002 From: katir at hindu.org (Sivakatirswami) Date: Tue Jan 29 16:23:00 2002 Subject: Hardwiring Relative directories/Windoz CD caveat In-Reply-To: <200201291705.MAA31907@www.runrev.com> Message-ID: There is one caveat to what Geoff describes below, which is basically 100% correct *but* on some windoz systems if the Rev player or standalone is on the root level of a CD... windoz's may not necessarily know where it is and directory paths are not correctly returned to Rev... solution (found after many hours of struggle/bewilderment until some young geek explained the problem which was a bug also experienced by other apps trying to run from CD's on windows...i.e. it is not a REV problem) Solution: Do not put your stand alone/rev player on the top level of a CD if you expect to run that CD on a diversity of windozs machines/systems. Put *everything* inside a folder. This has the "uncool" consequence of forcing the user to open the folder first to get started... but (if you are into icons) to look really professional just give the folder its own unique-to-this-app "logo" icon ...the same one as the standalone itself. Then the user opens the folder, and finds the standalone (with the same icon) on the top level with other resources folders beside it and then all of the following works perfectly: > If you plan to build a standalone (rather than a stack) then this is much > easier. The directory defaults to the directory containing the application -- > when you are developing in Revolution, it is the directory that contains > Revolution, when you build a standalone, it is the directory that contains the > standalone. So, when you run as a stack, > > "soundz/new.wav" > > refers to a file "new.wav" that is in a folder "soundz" which is in the same > directory as the Revolution application. When you run as a standalone, it > refers to the file "new.wav" in the folder "soundz" in the same folder as the > standalone. > > If you locate your resources in a folder relative to the Revolution > application, and then in a folder relative to the standalone, you don't have > to do anything to reference relative paths. Om shanti, Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From kevin at runrev.com Tue Jan 29 18:10:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 29 18:10:01 2002 Subject: custom prop In-Reply-To: Message-ID: On 29/1/02 3:46 pm, Devin Asay wrote: > This is great stuff, the first time I've understood what custom > property sets are for. But how do you make one set or the other > active? put the myArrayName["myKeyName"] of btn 1 Or: put the customProperties[myArrayName] of btn 1 into tMyArray Or: set the customPropertySet of btn 1 to "myArrayName" -- further references will refer to properties in a particular set: put the myKeyName of btn 1 --from set myArrayName Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 29 18:10:16 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 29 18:10:16 2002 Subject: Create Field and other matters In-Reply-To: <9B7B6E6E6C76D311AAE10090272405B5013D9AF1@WWMESSD114> Message-ID: On 29/1/02 12:09 pm, Barlow Frank wrote: > I play with the trial version at lunch time on NT4 at work. > > Problem, if I exceed the lines limit, it tells me then crashes Revolution. Does this happen in 1.1.1B1? > I observe that the "create Field" script auto chooses the pointer tool, you > need to add a line to "choose browse tool" to continue! Or lock messages. When doing this with the mouse you can double click a tool on the tools palette to lock it until you choose another manually. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 29 18:10:42 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 29 18:10:42 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: Message-ID: On 29/1/02 3:16 pm, Brent Neal wrote: > I have a very simple question: > > Is there something odd with wrapping in text fields in the OS X version? > > I've created a brand new stack and placed one text field on the card. > The Properties palette confirms that the dontWrap property is false. > If I type into the field, or insert text into the field via the > message box or via a script, the text does not wrap. > > To further test this, I created a checkbox that toggles the dontWrap > property. Inspecting the field's properties shows that the button is > in fact toggling the dontWrap property, but the text never wraps. > > I hope the answer to this is simple, and that I've just missed something. Does the text have spaces in it? Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Tue Jan 29 18:10:55 2002 From: kevin at runrev.com (Kevin Miller) Date: Tue Jan 29 18:10:55 2002 Subject: Hierarchical Menus In-Reply-To: <3C5478F6.8010803@pop.spectraweb.ch> Message-ID: On 27/1/02 10:02 pm, tbandi wrote: > I couldn't figure out how I can find out which of the menu items of a > button was selected and I did not find much help in the documentation. I > tried with "the selectedText", with "the label" and with the menuHistory > but I did not find what I expected: the first and the second item of the > selection? Can anyone give me a hint or an example? on menuPick pWhich --pWhich contains firstItem|secondItem You can set the itemDel to | then put each item into a variable, then do an if...then or switch as normal. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From jeanne at runrev.com Tue Jan 29 19:28:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 29 19:28:01 2002 Subject: custom prop In-Reply-To: References: Message-ID: At 7:46 AM -0800 1/29/2002, Devin Asay wrote: >This is great stuff, the first time I've understood what custom >property sets are for. But how do you make one set or the other >active? You set the object's customPropertySet to whichever set you want: set the customPropertySet of this stack to "frenchStrings" The customPropertySets property reports the sets a particular object has. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Tue Jan 29 19:28:17 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 29 19:28:17 2002 Subject: Various questions In-Reply-To: References: Message-ID: At 4:51 AM -0800 1/29/2002, yves COPPE wrote: >What's the difference between setting the directory or setting the >default stack ? If you mean "defaultFolder" (rather than default stack), there is no difference: "the folder", "the directory", and "the defaultFolder" are synonyms. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Tue Jan 29 19:28:29 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Tue Jan 29 19:28:29 2002 Subject: copy a image/binary file on a mac In-Reply-To: References: Message-ID: At 3:35 AM -0800 1/25/2002, Ben Rubinstein wrote: >Now... where would I have found that information? Has there been any real >release notes published for 1.1.1, or even 1.1? Well, yes, there's a fairly extensive release note for 1.1, right there in the Rev folder. BBEdit's release notes are exemplary, and I realize there's room for improvement in ours. I do think it qualifies as "real", though. ;-) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From pixelbird at interisland.net Tue Jan 29 20:03:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Tue Jan 29 20:03:01 2002 Subject: Copying parts of pictures to the front. In-Reply-To: Message-ID: Hello RR list, I'm almost finished working on a app written for HC, which I have conceived in a semi-shell format, so I can hopefully transfer it more easily into RR. I have made several full screen background picts which contain the graphics for button animation, in this case, lots of 'up' and 'down' state buttons (actually there are different 'styles', i.e., different picts). The 'real' buttons, which call multiple handlers, are all transparent. In HC, I'm using Uli's xDraw XCMD suite. The pict with the 'Up' state buttons is onscreen (actually placed there with the addColor XCMD command and transition at openStack). The pict with the 'down' buttons is in an offscreen (it actually exists only in memory until called) gWorld (a companion to xDraw). At mouseDown, the handler that activates the graphic instantly copies the part of the pict ('down' button') which matches the button rect to the screen, temporarily covering that part of the 'up' button pict, holds it there until mouseUp when it disappears. Is anyone getting this, so far? I want to have the same effect in RR, using the same picts. I suppose I could copy all the buttons out of the picts separately, but that would take more time than I want to spend, considering the background picts are already made. I'm not sure how to do this with RR, but it shouldn't be difficult with native color, should it? Best regards, Ken N. From brent at baton.phys.lsu.edu Tue Jan 29 20:11:01 2002 From: brent at baton.phys.lsu.edu (Brent Neal) Date: Tue Jan 29 20:11:01 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: References: Message-ID: >On 29/1/02 3:16 pm, Brent Neal wrote: > >> I have a very simple question: >> >> Is there something odd with wrapping in text fields in the OS X version? >> >> I've created a brand new stack and placed one text field on the card. >> The Properties palette confirms that the dontWrap property is false. >> If I type into the field, or insert text into the field via the >> message box or via a script, the text does not wrap. >> >> To further test this, I created a checkbox that toggles the dontWrap >> property. Inspecting the field's properties shows that the button is >> in fact toggling the dontWrap property, but the text never wraps. >> >> I hope the answer to this is simple, and that I've just missed something. > >Does the text have spaces in it? No. I just tapped at random keys (i.e. asdfasfdasdf). Consider SimpleText. If you hold down a single key, when it reaches the text field width, it starts over on the next line. That shouldn't matter. B -- Brent Neal Concurrent Computing Laboratory for Materials Simulations Dept. of Physics - Dept. of Computer Science Louisiana State University From jcuccio at pacbell.net Tue Jan 29 22:33:00 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Tue Jan 29 22:33:00 2002 Subject: error 3 Message-ID: I was looking back at some post for another problem and saw this one. > I have a stack that when running in Revolution works great! However, when I > build a stand alone (68K or PPC) I get a Error 3 (sometimes a Error 2) when > I attempt to do "quit". ALL other functions of the standalone work fine... > No errors, no problems... Only when quitting. I was having the same problem. Figured out it was the the closestack command. When I moved what I had in the closedstack to shutdown. I did not get the error any more. Rev 1.1 Mac OS 8.1 From tim11 at bellatlantic.net Tue Jan 29 22:54:03 2002 From: tim11 at bellatlantic.net (Tim) Date: Tue Jan 29 22:54:03 2002 Subject: Decompression question Message-ID: I posted this question before, so here it is one more time with fingers crossed: Under OS X. Now when I try to decompress someProject.rev, I get the following error message: Error description: decompress: string is not compressed data SomeProject.rev does not open. While compressing it and uploading is no problem. I should add that both comression/decompression work fine under W2K. The problem is only under OS X. Anyone have any thoughts? TIA -- Tim From jacque at hyperactivesw.com Tue Jan 29 22:56:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue Jan 29 22:56:01 2002 Subject: Copying parts of pictures to the front References: <200201300104.UAA11729@www.runrev.com> Message-ID: <3C576E7B.83CFA310@hyperactivesw.com> Ken Norris wrote: > > The pict with the 'Up' state > buttons is onscreen (actually placed there with the addColor XCMD command > and transition at openStack). The pict with the 'down' buttons is in an > offscreen (it actually exists only in memory until called) gWorld (a > companion to xDraw). At mouseDown, the handler that activates the graphic > instantly copies the part of the pict ('down' button') which matches the > button rect to the screen, temporarily covering that part of the 'up' button > pict, holds it there until mouseUp when it disappears. ... > I'm not sure how to do this with RR, but it shouldn't be difficult with > native color, should it? It is a snap in RR, it's all built in. You won't need any of the work-arounds necessary in HC. Here's what you do: 1. Import all the pictures. You can use your existing PICT files if you want, but they will not work cross platform and PICT is an inefficient format. For best results, convert them first to jpg or gif and then import them into the stack. 2. Once imported, make a note of each image's ID number, then hide the image. You can store them anywhere in the stack, it doesn't matter where, they will never be displayed directly. Some people make a separate card to store icon images, other people just hide the image on any convenient card. 3. Create a bunch of transparent buttons. Set the icon of each button to the correct "up" image ID and set its hilite icon to the "down" image ID. That's it. If the button has autohiliting set, it will work exactly the way you want automatically. If you don't want to use autohiliting, then just script "set the hilite of btn x to true" to show the "down" icon. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From cyberscope at home.com Wed Jan 30 00:01:01 2002 From: cyberscope at home.com (Gene Kennedy) Date: Wed Jan 30 00:01:01 2002 Subject: Playing Sound Clips References: <200201300104.UAA11729@www.runrev.com> Message-ID: <3C577E25.74B38A6E@home.com> Thanks to both Sjoerd Op 't Land and Geoff Canyon for their replies to my call for help. I apologize for not being able to find the "sound" function in the RR Dictionary myself. It was just what I was looking for. The code provided by Geoff seems correct however, the "playStopped" signal is never detected. I tried a breakpoint in the signal handler but it never gets there. As a result only the first sound clip in the array is played. I had the same problem in my earlier experiments trying to solve the original problem of playing multiple audio clips in rapid succession. This may be a bug! Geoff, since you seem to be one of the stalwarts on this list, perhaps you could verify this? Best regards and thanks again! Gene Kennedy From pixelbird at interisland.net Wed Jan 30 00:26:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Wed Jan 30 00:26:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: <3C576E7B.83CFA310@hyperactivesw.com> Message-ID: on 1/29/02 7:54 PM, J. Landman Gay at jacque at hyperactivesw.com wrote: > It is a snap in RR, it's all built in. You won't need any of the > work-arounds necessary in HC. Here's what you do: > > 1. Import all the pictures. You can use your existing PICT files if you > want, but they will not work cross platform and PICT is an inefficient > format. For best results, convert them first to jpg or gif and then > import them into the stack. ---------- Yes, this I know. ---------- > 2. Once imported, make a note of each image's ID number, then hide the > image. You can store them anywhere in the stack, it doesn't matter > where, they will never be displayed directly. Some people make a > separate card to store icon images, other people just hide the image on > any convenient card. > > 3. Create a bunch of transparent buttons. ---------- I know this, too. No problem so far. ---------- > Set the icon of each button to > the correct "up" image ID and set its hilite icon to the "down" image ID. ---------- This is what I'm trying to avoid. There are about 80 buttons, all similar but different. The main picts..er..uh..images, are full screen. Everything is there, including the images of the buttons (which have complex colors, shading, text), in one FULL SCREEN image. The transparent buttons are all aligned properly with the image. In my HC stack, Uli's xGWorld holds the FULL SCREEN PICT (image) of the 'down' buttons, located congruently (thus, the buttons align with it as well), but not visible. The handler for animating the buttons uses the rect of the button to copy that portion of the gWorld image and temporarily (until the mouse is up) place it on the screen right over the corresponding portion of the 'up' state image, similar to RR's icon hiliting. Very neat, doesn't require drawing separate button icons. The buttons are in rows, so all the text parts had to align, too. I wouldn't have wanted to do that for each separate button. If I have to do each button separately as you sugggest, it will mean cutting and pasting 156 separate images for the emulator version and at least 79 images each for the other two sets, for a grand total of 314 images! If there is significant memory savings in doing so, I might consider it, but I have to weigh that against the labor involved. So, what I'm looking for is either: 1) A script that instantly shows and hides the button rect PORTION of the 'down' full screen image into the SAME PORTION (rect) of the 'up' full screen image. Best labor-saving idea if it will work. ...or 2) Write a script that automates the selection, copying, and pasting of the button rect's images (all 314 of them) into icons. ....or...can I do this?: 3) Use the 'up' full screen image in the background, and just hilite with the 'down' image icons. That will lower the copy and paste process to just 80 images. That's still a bunch, though. ---------- > That's it. If the button has autohiliting set, it will work exactly the > way you want automatically. If you don't want to use autohiliting, then > just script "set the hilite of btn x to true" to show the "down" icon. ---------- Go RR!!! This'll be great for the 'pilot light' buttons, too. I just don't want to do all that copying and pasting again (waaah, snivel, snivel). Thanks, Jacque, and good night all, Ken N. From scott at tactilemedia.com Wed Jan 30 00:38:00 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 30 00:38:00 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: Message-ID: Recently, Brent Neal wrote: >>> Is there something odd with wrapping in text fields in the OS X version? >> Does the text have spaces in it? > No. I just tapped at random keys (i.e. asdfasfdasdf). Consider > SimpleText. If you hold down a single key, when it reaches the text > field width, it starts over on the next line. That shouldn't matter. Unfortunately, wrapping lines of text in MC/REV requires that there be spaces among characters. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From brent at baton.phys.lsu.edu Wed Jan 30 00:49:01 2002 From: brent at baton.phys.lsu.edu (Brent Neal) Date: Wed Jan 30 00:49:01 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: References: Message-ID: >Recently, Brent Neal wrote: > >>>> Is there something odd with wrapping in text fields in the OS X version? > >>> Does the text have spaces in it? > >> No. I just tapped at random keys (i.e. asdfasfdasdf). Consider >> SimpleText. If you hold down a single key, when it reaches the text >> field width, it starts over on the next line. That shouldn't matter. > >Unfortunately, wrapping lines of text in MC/REV requires that there be >spaces among characters. Makes it hard to write a moderately-featured editor, doesn't it? Oh, well. Add that to the feature-request list then.... Brent -- Brent Neal Geek of all Trades "Specialization is for insects" -- Robert A. Heinlein From harrison at all-auctions.com Wed Jan 30 01:01:00 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Wed Jan 30 01:01:00 2002 Subject: MP3 File Support? In-Reply-To: Message-ID: Hi there, Does Revolution support MP3 files at all? Thus far from my reading in the documentation it looks like it doesn't, or did I miss something? Thanks in advance, Rick Harrison From pdel at noos.fr Wed Jan 30 03:32:01 2002 From: pdel at noos.fr (Pierre Delain) Date: Wed Jan 30 03:32:01 2002 Subject: Menu Bar on Mac OS In-Reply-To: <200201281658.LAA08486@www.runrev.com> Message-ID: I find a strange behabiour of my stack after having set a Menu Bar on MacOS. I have followed the method described in HyperActive's tutorial "Converting a HyperCard stack to Revolution" and used the pushdown handler to reposition card objects. This handler is based on a 28 pixels height for Rev's default menu (note that the same tutorial p2 of the "Notes about menus" section refers to a *26 pixels* height for these menu buttons and not 28 pixels but never mind). It seems to work fine as long as I do not save my stack. But If I save it, remove it from memory and open it again, the vertical dimensions of the card objets have changed (all the objects, and the dimension of the stack itself is also different)! If I move them back in the original position using the pushdown (or pushup) handler, the same behaviour comes back, and the menu buttons themselves to not stick to the top of the stack but move somewhere else. I have lost a lot of time trying to fix this without success. Thank you for helping me. P. Delain From kmajor at metascape.org Wed Jan 30 03:32:18 2002 From: kmajor at metascape.org (Klaus) Date: Wed Jan 30 03:32:18 2002 Subject: MP3 File Support? In-Reply-To: Message-ID: Hi Rick, > Hi there, > > Does Revolution support MP3 files at all? yes, via quicktime. You can set the filename of a player to a mp3-file, if quicktime is installed. Works without problem... :-) That way, you can display ANY file in a format supported by qt (and that's a lot... audio/video/stills !) You can use players even to display a photoshop-file (.psd) in MC/RR. > Thus far from my reading in the documentation > it looks like it doesn't, or did I miss something? No ;-) > Thanks in advance, You're welcome. Regards Klaus Major MetaScape GmbH From scott at tactilemedia.com Wed Jan 30 03:34:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Wed Jan 30 03:34:01 2002 Subject: MP3 File Support? In-Reply-To: Message-ID: Recently, Rick Harrison wrote: > Does Revolution support MP3 files at all? You can play MP3s using a player object using standard player syntax. Note that on some Windows systems, playback may not occur if QuickTime is not installed. Otherwise, MP3s should play on Mac systems via QT and on Windows via QT or whatever multimedia/player software is installed. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: scott at tactilemedia.com Web: www.tactilemedia.com From gcanyon at inspiredlogic.com Wed Jan 30 04:49:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 04:49:00 2002 Subject: Playing Sound Clips In-Reply-To: <3C577E25.74B38A6E@home.com> References: <200201300104.UAA11729@www.runrev.com> <3C577E25.74B38A6E@home.com> Message-ID: At 12:01 AM -0500 1/30/02, Gene Kennedy wrote: >The code provided by Geoff seems correct however, the "playStopped" signal is never detected. I tried a >breakpoint in the signal handler but it never gets there. As a result only the first sound clip in the >array is played. I had the same problem in my earlier experiments trying to solve the original problem of >playing multiple audio clips in rapid succession. This may be a bug! Geoff, since you seem to be one of >the stalwarts on this list, perhaps you could verify this? Two things: Note that the debugger in Revolution works differently than the one in HyperCard -- putting a breakpoint in the script will only work if the debugger is _already_ open. It doesn't seem as though you're reaching that code, though, since the sound isn't playing. So the second thing is, where are you placing the on playStopped? If memory serves, the message can be responded to at the card level. So if you put that code I posted into the card script, does it still fail? regards, Geoff From gcanyon at inspiredlogic.com Wed Jan 30 04:50:00 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 04:50:00 2002 Subject: Decompression question In-Reply-To: References: Message-ID: At 10:51 PM -0500 1/29/02, Tim wrote: >Under OS X. Now when I try to decompress someProject.rev, I get the >following error message: > >Error description: decompress: string is not compressed data Can you post the actual code you're using? regards, Geoff From gcanyon at inspiredlogic.com Wed Jan 30 05:02:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 05:02:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: References: Message-ID: At 9:35 PM -0800 1/29/02, Ken Norris (dialup) wrote: >This is what I'm trying to avoid. There are about 80 buttons, all similar >but different. The main picts..er..uh..images, are full screen. Everything >is there, including the images of the buttons (which have complex colors, >shading, text), in one FULL SCREEN image. The transparent buttons are all >aligned properly with the image. In my HC stack, Uli's xGWorld holds the >FULL SCREEN PICT (image) of the 'down' buttons, located congruently (thus, >the buttons align with it as well), but not visible. The handler for >animating the buttons uses the rect of the button to copy that portion of >the gWorld image and temporarily (until the mouse is up) place it on the >screen right over the corresponding portion of the 'up' state image, similar >to RR's icon hiliting. Very neat, doesn't require drawing separate button >icons. The buttons are in rows, so all the text parts had to align, too. I >wouldn't have wanted to do that for each separate button. It seems as though you have a choice: write code that splits out the appropriate chunk of the image each time at runtime, or write code that splits out the appropriate chunk of the image once at design time. I'd go with the latter. I'm pretty sure you could script this entirely and be done pretty quickly. If you still want to do it at runtime, one way (untested) would be to make a group out of the image. Then set the size of the group to the size you want the buttons. Then you can set the loc of the group and of the image to show whatever area of the image you want. You might have to fiddle with the lockLoc property of the image and/or the group to get this to work properly. regards, Geoff From sbouju at mac.com Wed Jan 30 05:17:00 2002 From: sbouju at mac.com (Sylvain Bouju) Date: Wed Jan 30 05:17:00 2002 Subject: Rinaldi's fullhpop XFCN In-Reply-To: Message-ID: Very early HyperCard user, I was not at all a XFCN addict, but I really cannot begin with Revolution without something like this Hypercard Rinaldi's XFCN, which I love to use as a contextual menu over locked text fields. Is there an elegant way to do it now, or in a soon future? -- Sylvain Bouju sbouju at bigfoot.com -- From yvescoppe at skynet.be Wed Jan 30 05:39:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 30 05:39:01 2002 Subject: Layer order Message-ID: Hello, I'v made a DLOG with 5 flds Afterwards I have changed the order of the fields Now whan I hit the Tab Key on the keyboard, the order of the flds on the screen is not correct. I've tried to change the layer number so that they are tabbed in the good order but RR refuses the changes with a beep How can I proceed ? Thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From dcragg at lacscentre.co.uk Wed Jan 30 07:37:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Wed Jan 30 07:37:01 2002 Subject: MP3 File Support? In-Reply-To: References: Message-ID: At 12:32 am -0800 30/1/02, Scott Rossi wrote: >Recently, Rick Harrison wrote: > >> Does Revolution support MP3 files at all? > >You can play MP3s using a player object using standard player syntax. Note >that on some Windows systems, playback may not occur if QuickTime is not >installed. Otherwise, MP3s should play on Mac systems via QT and on Windows >via QT or whatever multimedia/player software is installed. On Windows, I've found that if Windows Media Player 6.4 or later is installed, then MP3s will play through a player object whether or not QuickTime is installed. Cheers Dave Cragg From cyberscope at home.com Wed Jan 30 09:41:01 2002 From: cyberscope at home.com (Gene Kennedy) Date: Wed Jan 30 09:41:01 2002 Subject: Playing Sound Clips References: <200201301003.FAA20027@www.runrev.com> Message-ID: <3C580618.47E5F@home.com> > Message: 13 > Date: Wed, 30 Jan 2002 01:48:43 -0800 > To: use-revolution at lists.runrev.com > From: Geoff Canyon > Subject: Re: Playing Sound Clips > Reply-To: use-revolution at lists.runrev.com > > Two things: > > Note that the debugger in Revolution works differently than the one in HyperCard -- putting a breakpoint in the script will only work if the debugger is _already_ open. Yes, I know. It was. > It doesn't seem as though you're reaching that code, though, since the sound isn't playing. So the second thing is, where are you placing the on playStopped? If memory serves, the message can be responded to at the card level. So if you put that code I posted into the card script, does it still fail? I originally placed your code in a "On MouseUp" handler in a button on a card where the "PlayStopped" signal was not detected. When I moved your code to the card script, and called it from the button event, it worked "OK". Is this the general case with most RR signals, i.e. they are sent to the card and not to the control on the card which initiated the response? Thanks again for your suggestion. Gene Kennedy -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at messimercomputing.com Wed Jan 30 10:28:01 2002 From: steve at messimercomputing.com (Steve Messimer) Date: Wed Jan 30 10:28:01 2002 Subject: App icons Message-ID: Hi, First of all I apologize for asking this question again. I seem to have lost the previous list response. :-( I am building an app for distribution on both Mac and PC platforms. As I recal The Mac app icon is 32 by 32 pixels How big is the Win app icon? What format must this graphic be? Any bit depth considerations of which I need be aware? I assume that this graphic is associated with the file using the distribution builder right? Do I do the same thing with the Mac icon or do I need to create a resource fork and install using resEdit? Thanks Steve Stephen R. Messimer Messimer Computing, Inc 2501 14th Ave South Escanaba, MI 49829 www.messimercomputing.com From jeanne at runrev.com Wed Jan 30 10:36:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Wed Jan 30 10:36:01 2002 Subject: Playing Sound Clips In-Reply-To: <3C580618.47E5F@home.com> References: <200201301003.FAA20027@www.runrev.com> Message-ID: At 6:41 AM -0800 1/30/2002, Gene Kennedy wrote: > I originally placed your code in a "On MouseUp" handler in a button on a >card where the "PlayStopped" signal was not detected. >When I moved your code to the card script, and called it from the button >event, it worked "OK". Is this the general case with most RR signals, >i.e. they are sent to the card and not to the control on the card which >initiated the response? If I understand correctly what you did originally, the problem may not have been the message destination - it sounds like you placed the code in a mouseUp handler instead of a playStopped handler. playStopped being a message, it triggers its own handler. And no, the playStopped message isn't sent to the control that initiated the playing. To quote: "The playStopped message is sent when the movie or sound reaches its end, or when a play stop command executes. If the user pauses the movie or sound, the playPaused message is sent instead. "When an audio clip or video clip is playing, a temporary player is created for it. When the clip is finished, the playStopped message is sent to it." (Then of course the message is passed on up to the object that owns the player in question - in this case, the card - so a handler on the card will catch it.) In general, messages get sent initially to the most relevant object. For example, a mouseDown message gets sent to whatever object got clicked; a keyDown message gets sent to whatever object has the keyboard focus at the time; and so on. If the message is along the lines of a status report and not logically attached to a particular object - as for example the shutdown message - it generally is sent first to the current card. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From sims at ezpzapps.com Wed Jan 30 10:37:01 2002 From: sims at ezpzapps.com (sims) Date: Wed Jan 30 10:37:01 2002 Subject: email with applescript from rev In-Reply-To: References: Message-ID: I have tested the following applescript with Outlook Express as the emailer and it seems to run fine here. I do not have Outlook or Entourage. Would anyone who has either/both test this for me? Thanks in advance! Send reply to sims at ezpzapps.com 1. Make button in Rev with script: on mouseUp do fld "MSemailer" as applescript end mouseUp 2. Place the following applescript in fld named "MSemailer" and change the part: tell application "Outlook Express" for Entourage and/or Outlook 3. click button and see if a new email, as described, opens...! set theAttachment to ? (choose file with prompt "Select the file attachment:") tell application "Outlook Express" activate try set the emailDestination to "EMAIL at ISP.COM" set emailSubject to "SUBJECT" set emailContent to "MESSAGE BODY" set draftWindow to make new draft window with properties ? {subject:emailSubject, content:emailContent, to recipients:emailDestination } ? make attachment at draftWindow ? with data {file:theAttachment, encoding:binhex} --send draftWindow on error error_message display dialog error_message end try end tell ___________________________________________ http://www.EZPZapps.com info at EZPZapps.com Software - Internet Development - Consulting From os at brainbits.net Wed Jan 30 10:40:01 2002 From: os at brainbits.net (Olaf Schmidtmann) Date: Wed Jan 30 10:40:01 2002 Subject: App icons Message-ID: <10F85FB0AADBD511880F004854133BC8012D0F@HAWK> Hi, Windows uses different Icon sizes which have to be stored into the application: it depends on the color settings of the system which version it chooses. You need the following 'standards' for the two icon-sizes of windows: 16x16, 16 colors (bah! but e.g. Windows NT likes these a lot) 32x32, 16 colors (uhh!) 32x32, 256 colors You may add other - more colorfull icons but this is the basic set. A suitable application for doing this is Microangelo. It is not expensive (it is free for 30 days, I think) and always suited my deeds in a pleasent manner :-) For Macs you do not need a special application to embed icons in applications. Cheers, Olaf -- Olaf Schmidtmann brainbits online & cross media mailto:os at brainbits.net / www.brainbits.net > -----Original Message----- > From: Steve Messimer [mailto:steve at messimercomputing.com] > Sent: Wednesday, January 30, 2002 4:24 PM > To: Use Revolution list > Subject: App icons > > > Hi, > > First of all I apologize for asking this question again. I > seem to have lost > the previous list response. :-( > > I am building an app for distribution on both Mac and PC platforms. > > As I recal The Mac app icon is 32 by 32 pixels > > How big is the Win app icon? > > What format must this graphic be? > > Any bit depth considerations of which I need be aware? > > I assume that this graphic is associated with the file using the > distribution builder right? > > Do I do the same thing with the Mac icon or do I need to > create a resource > fork and install using resEdit? > > Thanks > > Steve > > Stephen R. Messimer > Messimer Computing, Inc > 2501 14th Ave South > Escanaba, MI 49829 > www.messimercomputing.com > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From gcanyon at inspiredlogic.com Wed Jan 30 10:43:48 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 10:43:48 2002 Subject: Rinaldi's fullhpop XFCN In-Reply-To: References: Message-ID: At 11:14 AM +0100 1/30/02, Sylvain Bouju wrote: >Very early HyperCard user, I was not at all a XFCN addict, >but I really cannot begin with Revolution without something >like this Hypercard Rinaldi's XFCN, which I love to use >as a contextual menu over locked text fields. > >Is there an elegant way to do it now, or in a soon future? Welcome! Check out the popup command. regards, Geoff From gcanyon at inspiredlogic.com Wed Jan 30 10:45:02 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 10:45:02 2002 Subject: Layer order In-Reply-To: References: Message-ID: At 11:38 AM +0100 1/30/02, yves COPPE wrote: >I'v made a DLOG with 5 flds >Afterwards I have changed the order of the fields >Now whan I hit the Tab Key on the keyboard, the order of the flds on the screen is not correct. >I've tried to change the layer number so that they are tabbed in the good order but RR refuses the changes with a beep > >How can I proceed ? Are they grouped into separate groups? You might try from the message box: set the layer of fld "whatever" to 1 -- makes it first in tab order regards, Geoff From benr_mc at cogapp.com Wed Jan 30 11:36:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed Jan 30 11:36:01 2002 Subject: copy a image/binary file on a mac In-Reply-To: Message-ID: on 29/1/02 11:19 PM, Jeanne A. E. DeVoto at jeanne at runrev.com wrote: >> Now... where would I have found that information? Has there been any real >> release notes published for 1.1.1, or even 1.1? > > Well, yes, there's a fairly extensive release note for 1.1, right there in > the Rev folder. Jeanne, I'm sorry, I typed ahead of myself. I did know really that there was an excellent 1.1 release note, and I'd read and appreciated it. Apparently my fingers had forgotten that. (It doesn't however mention the renameFile fix - perhaps because that didn't appear until 1.1.1? - which was my point.) Perhaps the release note for 1.1 is too good; setting the bar too high to meet for a 1.1.1 update. How about leaving that note as is, but including, in each beta release, a separate file with a much more basic list of changes? > ;-) Apologies. Don't rest those fingers! Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From raney at metacard.com Wed Jan 30 11:38:01 2002 From: raney at metacard.com (Scott Raney) Date: Wed Jan 30 11:38:01 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: <200201301003.FAA20027@www.runrev.com> Message-ID: On Tue, 29 Jan 2002 Brent Neal wrote: > > >Recently, Brent Neal wrote: > > > >>>> Is there something odd with wrapping in text fields in the OS X version? > > > >>> Does the text have spaces in it? > > > >> No. I just tapped at random keys (i.e. asdfasfdasdf). Consider > >> SimpleText. If you hold down a single key, when it reaches the text > >> field width, it starts over on the next line. That shouldn't matter. > > > >Unfortunately, wrapping lines of text in MC/REV requires that there be > >spaces among characters. > > Makes it hard to write a moderately-featured editor, doesn't it? Oh, well. Only if you're developing it for monkeys or people with keyboards that have no spacebars. I can't think of any reasonable need for this "feature" otherwise. If a word needs to break in the middle, even a "moderately-featured" editor is going to have to hyphenate, or have the user do it manually, rather than just break the word anywhere. > Add that to the feature-request list then.... Where this *is* a problem is with languages than don't use spaces, like Chinese and Japanese (a mitigating factor being that MetaCard/Revolution doesn't support keyboard input in those languages at all). Your odds of getting this feature implemented are pretty much dependent on couching your request in these terms. Regards, Scott > Brent > -- > Brent Neal > Geek of all Trades > "Specialization is for insects" -- Robert A. Heinlein ******************************************************** Scott Raney raney at metacard.com http://www.metacard.com MetaCard: You know, there's an easier way to do that... From jacque at hyperactivesw.com Wed Jan 30 11:49:24 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed Jan 30 11:49:24 2002 Subject: Copying parts of pictures to the front Message-ID: <3C5823AB.E5564911@hyperactivesw.com> Ken Norris (dialup) wrote: >So, what I'm looking for is either: > >1) A script that instantly shows and hides the button rect PORTION of the >'down' full screen image into the SAME PORTION (rect) of the 'up' full >screen image. Best labor-saving idea if it will work. > >...or > >2) Write a script that automates the selection, copying, and pasting of the >button rect's images (all 314 of them) into icons. The method you've been using in HC is pretty inefficient and I wouldn't bother with it in RR, especially since the capability you want is built in. Since the only problem is the amount of labor needed to convert the images to button icons, I'd write a script to do it. Look into the "import snapshot" command -- it will grab a portion of the screen and import it into the stack as an image. Write a repeat loop that takes snapshots of each button rect and records the resultant image ID in a field or a text log so you can reference it later. Depending on how your buttons are set up, the script may also be able to create the transparent buttons and assign the icon and hilite icon IDs at the same time -- and then you wouldn't even need the reference list. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From troy at rpsystems.net Wed Jan 30 12:08:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Wed Jan 30 12:08:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: <3C5823AB.E5564911@hyperactivesw.com> Message-ID: J. Landman Gay wrote: >> button rect's images (all 314 of them) into icons. > > The method you've been using in HC is pretty inefficient and I wouldn't > bother with it in RR, especially since the capability you want is built > in. Since the only problem is the amount of labor needed to convert the > images to button icons, I'd write a script to do it. I'd agree that Rev has reasonably good tools for handling button states, but I would disagree that this user's previous methods were inefficient. Ishell supports the capabilities described (single large image with offsets), and it does create an excellent workflow. Want to change some or all of the buttons? Open a single file in Photoshop and add a color tint or whatever. Write a little script to buffer that image on start-up, and it lives in RAM from there, very fast, easy to manage, easy to update, etc. -- Troy RPSystems www.rpsystems.net From harrison at all-auctions.com Wed Jan 30 12:12:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Wed Jan 30 12:12:01 2002 Subject: MP3 File Support? In-Reply-To: Message-ID: on 1/30/2002 3:29 AM, Klaus at kmajor at metascape.org wrote: > Hi Rick, > >> Hi there, >> >> Does Revolution support MP3 files at all? > > yes, via quicktime. > Klaus, Dave, & Scott Thanks for your prompt responses! I'll be using quicktime a lot then... Thanks again! Rick Harrison From brent at baton.phys.lsu.edu Wed Jan 30 12:21:01 2002 From: brent at baton.phys.lsu.edu (Brent Neal) Date: Wed Jan 30 12:21:01 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: References: Message-ID: At 9:36 -0700 1/30/02, Scott Raney wrote: >Only if you're developing it for monkeys or people with keyboards that >have no spacebars. I can't think of any reasonable need for this >"feature" otherwise. If a word needs to break in the middle, even a >"moderately-featured" editor is going to have to hyphenate, or have >the user do it manually, rather than just break the word anywhere. Or if you're editing non-natural language text streams. Don't think "words". Again, see SimpleText (a "moderately-featured" editor) for how its supposed to work. BBEdit (a *very* well featured editor) also does this correctly if you have Soft Wrap turned on. OS X TextEdit (A Cocoa app) behaves correctly. That implies to me that this behavior should come for free with TE/WASTE (pre-X) or the Cocoa text rendering system. Further, REALBasic (version 3.5.1 on Mac OS X) text fields also behave properly. At 9:36 -0700 1/30/02, Scott Raney wrote: > Your odds of getting this feature implemented are pretty >much dependent on couching your request in these terms. > Regards, > Scott A Mac user will expect an editor to behave similarly to one of the above three programs. A Unix user used to NEdit or jEdit (not to mention vi or emacs!) will expect the same behavior. I really don't care about Windows users, but my guess is that if jEdit and NEdit act like this, then the basic editors (Notepad?) on Windows do as well. I think those are pretty compelling reasons to fix this behavior. I was pretty disappointed when I ran up against this limitation. I'm fairly sure it wasn't a problem in HyperCard, since the text fields in HC used the Toolbox TE, but its been 8 years since I've done any HC development. Brent -- Brent Neal Geek of all Trades "Specialization is for insects" -- Robert A. Heinlein From yvescoppe at skynet.be Wed Jan 30 12:27:23 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Wed Jan 30 12:27:23 2002 Subject: Layer order In-Reply-To: References: Message-ID: >At 11:38 AM +0100 1/30/02, yves COPPE wrote: >>I'v made a DLOG with 5 flds >>Afterwards I have changed the order of the fields > >Now whan I hit the Tab Key on the keyboard, the order of the flds >on the screen is not correct. >>I've tried to change the layer number so that they are tabbed in >>the good order but RR refuses the changes with a beep >> >>How can I proceed ? > >Are they grouped into separate groups? You might try from the message box: > >set the layer of fld "whatever" to 1 -- makes it first in tab order > They are grouped in ONE group. Make it a difference ? Thnks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From sbouju at mac.com Wed Jan 30 12:43:01 2002 From: sbouju at mac.com (Sylvain Bouju) Date: Wed Jan 30 12:43:01 2002 Subject: Rinaldi's fullhpop XFCN In-Reply-To: Message-ID: on 30/01/02 16:39, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > Check out the popup command. "The popup command displays a popup menu whose menu items are either lines in a button or buttons in a stack." I had checked it out previously (just a little, sorry...), and I should have prefered to read: "The popup command displays a popup menu whose menu items are either lines in a button or buttons in a stack, or items in any container." I think I shall be able one day to emulate o kind of fullHPop, anyway, but without the pleasure...;-) -- Sylvain Bouju sbouju at bigfoot.com -- From tsimmons at employmentlawadvisors.com Wed Jan 30 12:43:32 2002 From: tsimmons at employmentlawadvisors.com (William T. Simmons) Date: Wed Jan 30 12:43:32 2002 Subject: Basic Question: Text Field wrapping References: Message-ID: <009201c1a9b5$581c7800$0000a398@sndmgr122> Hey, I resemble that remark... ;-) FWIW, I just tested this on Notepad in WinXP, and it's the same as Notepad has been since Win95, I think - if you have word wrap turned on, and you hold a character key down, the character is typed all the way across to the right side of the text window and then the line of characters wraps down and keeps appearing on the next line, and so on as long as the key is held down. If word wrap is unchecked in the pull-down menu, the characters keep going to the right as long as the key is held down, with a scrollbar appearing and changing as the line of characters gets longer. In Wordpad (a slightly fuller-featured text editor in Windows), you get the same result if you select the "wrap to window" option. Tommy Simmons Employment Law Advisory Network www.employmentlawadvisors.com ----- Original Message ----- From: "Brent Neal" To: Sent: Wednesday, January 30, 2002 11:18 AM Subject: Re: Basic Question: Text Field wrapping > A Mac user will expect an editor to behave similarly to one of the > above three programs. A Unix user used to NEdit or jEdit (not to > mention vi or emacs!) will expect the same behavior. I really don't > care about Windows users, but my guess is that if jEdit and NEdit act > like this, then the basic editors (Notepad?) on Windows do as well. From kevin at runrev.com Wed Jan 30 13:10:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 30 13:10:01 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: Message-ID: On 30/1/02 5:18 pm, Brent Neal wrote: >> Only if you're developing it for monkeys or people with keyboards that >> have no spacebars. I can't think of any reasonable need for this >> "feature" otherwise. If a word needs to break in the middle, even a >> "moderately-featured" editor is going to have to hyphenate, or have >> the user do it manually, rather than just break the word anywhere. > > Or if you're editing non-natural language text streams. Don't think > "words". Again, see SimpleText (a "moderately-featured" editor) for > how its supposed to work. BBEdit (a *very* well featured editor) also > does this correctly if you have Soft Wrap turned on. OS X TextEdit (A > Cocoa app) behaves correctly. That implies to me that this behavior > should come for free with TE/WASTE (pre-X) or the Cocoa text > rendering system. Further, REALBasic (version 3.5.1 on Mac OS X) > text fields also behave properly. Indeed, as we are planning full support for all character sets this feature does fit in as one that will be needed as part of that package of enhancements. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 30 13:11:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 30 13:11:01 2002 Subject: Layer order In-Reply-To: Message-ID: On 30/1/02 3:41 pm, Geoff Canyon wrote: >> Afterwards I have changed the order of the fields >> Now whan I hit the Tab Key on the keyboard, the order of the flds on the >> screen is not correct. >> I've tried to change the layer number so that they are tabbed in the good >> order but RR refuses the changes with a beep >> >> How can I proceed ? > > Are they grouped into separate groups? You might try from the message box: > > set the layer of fld "whatever" to 1 -- makes it first in tab order If they are grouped in one group, you can start editing the group and use the Align palette. There is also a relayerGroupedControls feature, but as that can be used to add and remove objects from groups I would go with simple option of switching into the edit mode. Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 30 13:15:02 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 30 13:15:02 2002 Subject: Developing on a distribution-file In-Reply-To: Message-ID: On 29/1/02 8:00 pm, Carsten Levin wrote: > When opening an ordinary .rev file by double clicking it - without first > opening Revolution - it doesnt run correctly. It needs to be saved as a > distribution file before behaving well on its own ... and I am not talking > about saving as a stand-alone app. > > But the file saved as a distribution file can still be edited in Revolution. > > I can see a clear advantage in working with a file saved as a distribution > file, since it can always test as a final solution without having to be > saved as a distribution first. > > But are there any reasons not to do so? Not that I'm aware of - the only difference between the building a file based distribution and the real standalone (assuming you use Distribution Builder to do both) is that in the file distribution the main stackFile will not be locked, but when it is attached to the standalone it will be (so you must use stacks saved in a data directory to save changes, see the note in the Tip of the Week section of our web site for more details). Oh, and the directory will be different - it is set on startup to the location of the engine. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From brent at baton.phys.lsu.edu Wed Jan 30 13:25:01 2002 From: brent at baton.phys.lsu.edu (Brent Neal) Date: Wed Jan 30 13:25:01 2002 Subject: Basic Question: Text Field wrapping In-Reply-To: References: Message-ID: >On 30/1/02 5:18 pm, Brent Neal wrote: > >>> Only if you're developing it for monkeys or people with keyboards that >>> have no spacebars. I can't think of any reasonable need for this >>> "feature" otherwise. If a word needs to break in the middle, even a >>> "moderately-featured" editor is going to have to hyphenate, or have >>> the user do it manually, rather than just break the word anywhere. >> >> Or if you're editing non-natural language text streams. Don't think >> "words". Again, see SimpleText (a "moderately-featured" editor) for >> how its supposed to work. BBEdit (a *very* well featured editor) also >> does this correctly if you have Soft Wrap turned on. OS X TextEdit (A >> Cocoa app) behaves correctly. That implies to me that this behavior >> should come for free with TE/WASTE (pre-X) or the Cocoa text >> rendering system. Further, REALBasic (version 3.5.1 on Mac OS X) >> text fields also behave properly. > >Indeed, as we are planning full support for all character sets this feature >does fit in as one that will be needed as part of that package of >enhancements. > >Kind regards, > >Kevin Excellent! Just what I wanted to hear. :) Many thanks, Brent -- Brent Neal Concurrent Computing Laboratory for Materials Simulations Dept. of Physics - Dept. of Computer Science Louisiana State University From gcanyon at inspiredlogic.com Wed Jan 30 13:28:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 13:28:01 2002 Subject: Playing Sound Clips In-Reply-To: <3C580618.47E5F@home.com> References: <200201301003.FAA20027@www.runrev.com> <3C580618.47E5F@home.com> Message-ID: At 9:41 AM -0500 1/30/02, Gene Kennedy wrote: >I originally placed your code in a "On MouseUp" handler in a button on a card where the "PlayStopped" signal was not detected. >When I moved your code to the card script, and called it from the button event, it worked "OK". Is this the general case with most RR signals, i.e. they are sent to the card and not to the control on the card which initiated the response? In this case it gets sent to the player that is playing the sound (one is created on the fly in this instance). In general, messages like this are sent to the object doing the work, rather than the one that initiated the action. From there they pass up the hierarchy, so when in doubt, you can trap at the card level. One of the great things about Revolution is the (nearly) unlimited script length -- you can put something like this in the card script (or any other script that will catch the message) without worrying about running out of space. regards, Geoff From gcanyon at inspiredlogic.com Wed Jan 30 13:47:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 13:47:01 2002 Subject: Rinaldi's fullhpop XFCN In-Reply-To: References: Message-ID: At 6:41 PM +0100 1/30/02, Sylvain Bouju wrote: >on 30/01/02 16:39, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > >> Check out the popup command. > >"The popup command displays a popup menu whose menu items are either >lines in a button or buttons in a stack." > >I had checked it out previously (just a little, sorry...), and I should >have prefered to read: > >"The popup command displays a popup menu whose menu items are either >lines in a button or buttons in a stack, or items in any container." > >I think I shall be able one day to emulate o kind of fullHPop, >anyway, but without the pleasure...;-) Not sure what you mean -- why is "items in any container" important? I'd be willing to bet that whatever you want to do, you can accomplish on the fly right before you do the popup command. Grab a list, stuff it into the button and go. regards, geoff From tim11 at bellatlantic.net Wed Jan 30 14:06:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Wed Jan 30 14:06:01 2002 Subject: Decompression question In-Reply-To: Message-ID: On 1/30/02 4:49 AM, "Geoff Canyon" wrote: > At 10:51 PM -0500 1/29/02, Tim wrote: >> Under OS X. Now when I try to decompress someProject.rev, I get the >> following error message: >> >> Error description: decompress: string is not compressed data > > Can you post the actual code you're using? > > regards, > > Geoff > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution Yes, here's the repost of the previously posted email: One way I share one revo project between 2 platforms (PC and Mac) is by having the shell stack (the stack that opens the real modifiable stack) compress and ftp the stack that gets modified to a server. Then the same shell stack on a different platform downloads the modified stack and does the same thing. The script looks something like this: -- Script in the shell stack on preOpenStack get the platform if it is "MacOS" then put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile else put "C:/Documents and Settings/Administrator/Desktop/someProject.rev" into tLocalFile end if set the cursor to busy put URL "ftp://username:password at ftp.ispname.com/www/somefolder/someProject.rev" into tRemoteFile put decompress(tRemoteFile) into URL tLocalFile toplevel stack tLocalFile end preOpenStack --Script in the ?Close? button of the modifiable stack that gets uploaded on mouseUp get the platform if it is "MacOS" then put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile else put "C:/Documents and Settings/Administrator/Desktop/someProject.rev" into tLocalFile end if set the cursor to busy save stack "someProject.rev" put compress(tLocalFile) into URL "ftp://username:password at ftp.ispname.com/www/somefolder/someProject.rev" close stack "someProject.rev" end mouseUp Now, everything worked fine until I tried it under OS X. Now when I open the shell stack and it tries to download and decompress someProject.rev, I get the following error message: Error description: decompress: string is not compressed data SomeProject.rev does not open. While compressing it and uploading is no problem. I should add that both comression/decompression work fine under W2K. The problem is only under OS X. TIA, -- Tim From gcanyon at inspiredlogic.com Wed Jan 30 15:19:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed Jan 30 15:19:01 2002 Subject: Decompression question In-Reply-To: References: Message-ID: Have you tried to separate the issue into pieces by copying the file to the OS X machine using a different (outside of Revolution) method? That way you can tell if the FTP is the issue or the compression is the issue. regards, Geoff From tim11 at bellatlantic.net Wed Jan 30 16:16:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Wed Jan 30 16:16:01 2002 Subject: Decompression question [2] In-Reply-To: Message-ID: On 1/30/02 3:17 PM, "Geoff Canyon" wrote: > Have you tried to separate the issue into pieces by copying the file to the OS > X machine using a different (outside of Revolution) method? That way you can > tell if the FTP is the issue or the compression is the issue. > > regards, > > Geoff > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution Geoff, This is the test script I've run only to get the same error: decompress: string is not compressed data on comp put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile put "PowerBookHD/Revolution Projects/SomeProject2.rev" into tCompressedFile set the cursor to busy put compress(tLocalFile) into URL tCompressedFile end comp Everything?s OK on compress... on decomp put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile put "PowerBookHD/Revolution Projects/SomeProject2.rev" into tCompressedFile set the cursor to busy put decompress(tCompressedFile) into URL tLocalFile toplevel stack tLocalFile end decomp -- Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From grobinson at virtualdev.com Wed Jan 30 16:20:01 2002 From: grobinson at virtualdev.com (Gary Robinson) Date: Wed Jan 30 16:20:01 2002 Subject: Persistent data? Message-ID: Hi, I'm interested in Revolution, but am wondering if anyone can tell me what kind of mechanisms there are for persistent data other than ODBC. Suppose I have an application that doesn't require a heavy-duty relational database, it just wants to store some data on the local disk. How would that be done? Is there any way of storing objects and looking them up with an index, as Python has with its shelf library? Or is there some other way of interfacing to a dbm library such as gdbm? Thanks, Gary From kevin at runrev.com Wed Jan 30 16:59:00 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 30 16:59:00 2002 Subject: Linux for Alpha CPU In-Reply-To: Message-ID: On 28/1/02 7:20 pm, Roger.E.Eller at sealedair.com wrote: > Is it possible, or will it be possible someday to run Revolution in Linux > on an DEC-Alpha based PC? > or... Has the RunRev team completed all of the engines that will be made? We used to support that platform, but it is hardly used any more as it has been discontinued, and the installed base using Linux is very small so we don?t plan to do this now. > Wouldn't it be great if we could program in TranScript for PalmOS and > PocketPC too? :-) We're looking at these, though Palm really has a very different OS so is most unlikely. However the other one wouldn't be so hard and might well happen if we get enough requests. Kind regards, Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From kevin at runrev.com Wed Jan 30 17:05:01 2002 From: kevin at runrev.com (Kevin Miller) Date: Wed Jan 30 17:05:01 2002 Subject: Decompression question [2] In-Reply-To: Message-ID: On 30/1/02 9:13 pm, Tim wrote: > put decompress(tCompressedFile) into URL tLocalFile into URL ("binfile:"&tLocalFile) Kevin Kevin Miller Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. From wmb at internettrainer.com Wed Jan 30 17:34:01 2002 From: wmb at internettrainer.com (Wolfgang M. Bereuter) Date: Wed Jan 30 17:34:01 2002 Subject: use-revolution digest, Vol 1 #151 - 5 msgs In-Reply-To: <200201291705.MAA31921@www.runrev.com> Message-ID: am 29.01.2002 18:05 Uhr schrieb use-revolution-request at lists.runrev.com unter use-revolution-request at lists.runrev.com: > > So you are a "Wallone" and not a "Flame", en jij praat niet nederlands... > > I don't know the correct english word for that, so i took ther german > ones... sounds funny in an english newsgroup... i suppose i will get a "Flame" with this OT thread. ;)) regards Wolfgang M. Bereuter Learn easy with trainingsmaps and outliner INTERNETTRAINER Wolfgang M. Bereuter Edelhofg. 17/11, A-1180 Wien, Austria ............................... http://www.internettrainer.com wmb at internettrainer.com ............................... Tel: ++43/1/ 961 0418 Fax: ++43/1/ 479 2539 From Roger.E.Eller at sealedair.com Wed Jan 30 18:18:01 2002 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Wed Jan 30 18:18:01 2002 Subject: Revolution for Palm or PocketPC Message-ID: >> Wouldn't it be great if we could program in TranScript for PalmOS and >> PocketPC too? :-) > > We're looking at these, though Palm really has a very different OS so is > most unlikely. However the other one wouldn't be so hard and might well > happen if we get enough requests. > > Kind regards, > > Kevin > > Kevin Miller Cool! Please add 1 request to your total. Thank you. :-D ~Roger Eller From pixelbird at interisland.net Wed Jan 30 18:27:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Wed Jan 30 18:27:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: Message-ID: on 1/30/02 2:01 AM, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > I'd go with the latter. I'm pretty sure you could script this entirely and be > done pretty quickly. ---------- You're right, I'm sure, but let me see what else Jacque has to say in a later post. Thanks, Ken N. From pixelbird at interisland.net Wed Jan 30 18:41:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Wed Jan 30 18:41:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: <3C5823AB.E5564911@hyperactivesw.com> Message-ID: on 1/30/02 8:47 AM, J. Landman Gay at jacque at hyperactivesw.com wrote: > The method you've been using in HC is pretty inefficient and I wouldn't > bother with it in RR, especially since the capability you want is built > in. Since the only problem is the amount of labor needed to convert the > images to button icons, I'd write a script to do it. ---------- Actually, it's VERY efficient from an operating, as well as a graphics, standpoint, once I got a handle on Uli's xDraw/xGWorld thing. The full screen picts are super easy to modify, and the parts fire onto the screen right out of RAM. Nothing gets any more responsive than that. ---------- > Look into the "import snapshot" command -- it will grab a portion of the > screen and import it into the stack as an image. Write a repeat loop > that takes snapshots of each button rect and records the resultant image > ID in a field or a text log so you can reference it later. > > Depending on how your buttons are set up, the script may also be able to > create the transparent buttons and assign the icon and hilite icon IDs > at the same time -- and then you wouldn't even need the reference list. ---------- That's what I meant when I wrote about writing a script to automate the copy process. Needless to say, I didn't know about "import snapshot". BTW, are there size limits on button icons? The current size (at 72 ppi) is 52 x 54 for most of them, but some are longer, some shorter, some longer AND shorter. Thanks and best regards, Ken N. From pixelbird at interisland.net Wed Jan 30 18:46:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Wed Jan 30 18:46:01 2002 Subject: 'Find' for the docs In-Reply-To: <3C5823AB.E5564911@hyperactivesw.com> Message-ID: Hi...back again. I tried to figure out how to do a 'find' in the docs, but my attempts failed. Anyone know how to do this? Maybe we could build a simple stack that will "Find in all/docs" or "Find in index/docs"... Best regards, Ken N. From pixelbird at interisland.net Wed Jan 30 19:04:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Wed Jan 30 19:04:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: Message-ID: on 1/30/02 9:03 AM, Troy Rollins at troy at rpsystems.net wrote: > I'd agree that Rev has reasonably good tools for handling button states, but > I would disagree that this user's previous methods were inefficient. Ishell > supports the capabilities described (single large image with offsets), and > it does create an excellent workflow. Want to change some or all of the > buttons? Open a single file in Photoshop and add a color tint or whatever. > Write a little script to buffer that image on start-up, and it lives in RAM > from there, very fast, easy to manage, easy to update, etc. ---------- ...and I agree with your assessment of the situation. These are the reasons I did it that way. Along the same lines as writing offscreen handlers as subroutines, but with graphics. I have several other background image options (styles, actually) that use the same buttons. It's far better to deal with changes in one big image so you can see how everything looks on the screen at the same time, plus, you always have the ability to cut, copy, paste, or paint any part of it, big or small, in your favorite paint program. Even in HC, given Color Tools drawbacks, I've mostly painted and/or altered my graphics in better paint programs and just imported or dropped in files. So, my question is: What is IShell? Better yet, WHERE is IShell? Thanks, and best regards, Ken N. From devin_asay at byu.edu Wed Jan 30 19:16:01 2002 From: devin_asay at byu.edu (Devin Asay) Date: Wed Jan 30 19:16:01 2002 Subject: Copying a substack Message-ID: Hi folks, Sorry if this has come up before. How do you make a copy of a substack within a stackfile? Both the clone and copy commands will make a copy of a stack, but they are created as mainstacks. I want to be able to copy a substack and have it remain subordinated the the current mainstack. Alternatively, is there a way to change a mainstack into a substack? Thanks, Devin -- Devin Asay Humanities Research Center Brigham Young University From troy at rpsystems.net Wed Jan 30 19:27:01 2002 From: troy at rpsystems.net (Troy Rollins) Date: Wed Jan 30 19:27:01 2002 Subject: Copying parts of pictures to the front In-Reply-To: Message-ID: Ken Norris (dialup) wrote: > What is IShell? Better yet, WHERE is IShell? Well... Ishell is a multimedia authoring tool. I only mention it in this forum because I don't see it and Rev as competitive. At my company we use both every day. Ishell creates titles in a more "multimedia approach". It has no capability to create a button on it's own, for instance - you HAVE to use graphic files. In my mind, RunRev creates tools that allows my company to create tools. Judge it for yourself - www.tribeworks.com, they have an odd licensing model, so it's not right for everyone, but I am a "Gold Member". (Note that I've been a Gold Member for over 2 years there, but we still purchased 2 professional Rev licenses this year - so that should indicate my belief in both tools.) -- Troy RPSystems www.rpsystems.net From drvaughan55 at mac.com Wed Jan 30 20:09:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Wed Jan 30 20:09:01 2002 Subject: Copying a substack In-Reply-To: Message-ID: Kevin Have you checked the commands for the "mainstack" and "substacks" properties in Transcript? These appear to do what you want but I haven't needed (and thus tried) them yet. cheers David On Thursday, January 31, 2002, at 11:13 , Devin Asay wrote: > Hi folks, > > Sorry if this has come up before. How do you make a copy of a substack > within a stackfile? Both the clone and copy commands will make a copy > of a stack, but they are created as mainstacks. I want to be able to > copy a substack and have it remain subordinated the the current > mainstack. > > Alternatively, is there a way to change a mainstack into a substack? > > Thanks, > > Devin > -- Devin Asay > Humanities Research Center > Brigham Young University > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From jcuccio at pacbell.net Wed Jan 30 22:57:00 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Wed Jan 30 22:57:00 2002 Subject: Delete folder/Defaultfolder Message-ID: I had posted to info rev about not being able to delete folders that had files in them. Thank you Jan for sending info on this. So I have to delete the files first then delete the folder. But I had some problems. I have to set the defaultfolder a couple of times in my script to get a list of folders or files. I found out this. If I script: set defaultfolder to "/Hard Disk/Folder 1/folder 2" --Do stuff to delete files in folder 2 delete folder "/Hard disk/folder 1/folder 2" I can not delete the folder 2 unless I reset the defaultfolder to before folder 2.Even if I give the full file path to the folder I want to delete. So I have to do this. For it to work. set defaultfolder to "/Hard Disk/Folder 1/folder 2" --Do stuff to delete files in folder 2 set defaultfolder to "/Hard disk/Folder 1" delete folder "/Hard disk/folder 1/folder 2" It seem Rev is keeping the info on the defaultfolder while in a handler and you can not set the defaultfolder to empty. Just what I found out. From pixelbird at interisland.net Thu Jan 31 00:14:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu Jan 31 00:14:01 2002 Subject: Linux for Alpha CPU In-Reply-To: Message-ID: on 1/30/02 1:25 PM, Kevin Miller at kevin at runrev.com wrote: >> Wouldn't it be great if we could program in TranScript for PalmOS and >> PocketPC too? :-) > > We're looking at these, though Palm really has a very different OS so is > most unlikely. However the other one wouldn't be so hard and might well > happen if we get enough requests. ---------- Count me in! I'm really just a duffer with programming (HC off-and-on since '87), but I'm heading into more pro work involving solutions for the physically handicapped, and the long-term health health care industry. I'd like to see more power in the "hands" of physically impaired folks, even if they have no hands. The smaller, lighter, and more compact, the easier it will be for them to be more mobile with their 'aids'. Most of these things are touch-screen and can be easily accessed with prosthetics. Best regards, Ken N. From pixelbird at interisland.net Thu Jan 31 00:34:00 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu Jan 31 00:34:00 2002 Subject: MP3 File Support? In-Reply-To: Message-ID: on 1/30/02 2:14 AM, Dave Cragg at dcragg at lacscentre.co.uk wrote: > On Windows, I've found that if Windows Media Player 6.4 or later is > installed, then MP3s will play through a player object whether or not > QuickTime is installed. ---------- Ain't that cool?!! Thanks for the info... Best regards, Ken N. From pixelbird at interisland.net Thu Jan 31 00:49:00 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu Jan 31 00:49:00 2002 Subject: Various questions In-Reply-To: Message-ID: on 1/29/02 1:48 PM, Jeanne A. E. DeVoto at jeanne at runrev.com wrote: > At 4:51 AM -0800 1/29/2002, yves COPPE wrote: >> What's the difference between setting the directory or setting the >> default stack ? > > If you mean "defaultFolder" (rather than default stack), there is no > difference: "the folder", "the directory", and "the defaultFolder" are > synonyms. ---------- Ahhh! I was wondering about that from reading previous posts. Thanks. Best regards, Ken N. From tim11 at bellatlantic.net Thu Jan 31 01:12:00 2002 From: tim11 at bellatlantic.net (Tim) Date: Thu Jan 31 01:12:00 2002 Subject: Decompression question [3] In-Reply-To: Message-ID: On 1/30/02 5:03 PM, "Kevin Miller" wrote: > On 30/1/02 9:13 pm, Tim wrote: > >> put decompress(tCompressedFile) into URL tLocalFile > > into URL ("binfile:"&tLocalFile) > > Kevin > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution Kevin, This script: put decompress(tCompressedFile) into URL ("binfile:"&tLocalFile) does not work either. I still get **Error description: decompress: string is not compressed data** Could it be a bug in OS X version of Rev? -- Tim From yvescoppe at skynet.be Thu Jan 31 02:46:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 31 02:46:01 2002 Subject: sort Message-ID: Hello, I've a stack "xxx". Each card has a different name I'd like the cds are sorted by their name (so "go to next cd" goes to the next cd alphabetically) I write a script : sort cards of stack "xxx" by name It doesn't work. how to proceed ? thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From jeanne at runrev.com Thu Jan 31 02:53:08 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu Jan 31 02:53:08 2002 Subject: Copying parts of pictures to the front In-Reply-To: References: <3C5823AB.E5564911@hyperactivesw.com> Message-ID: At 3:50 PM -0800 1/30/2002, Ken Norris (dialup) wrote: >BTW, are there size limits on button icons? The current size (at 72 ppi) is >52 x 54 for most of them, but some are longer, some shorter, some longer AND >shorter. No, no limits. A button icon can be any image regardless of size. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Thu Jan 31 02:53:22 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu Jan 31 02:53:22 2002 Subject: Delete folder/Defaultfolder In-Reply-To: Message-ID: At 7:55 PM -0800 1/30/2002, John Cuccio wrote: >If I script: >set defaultfolder to "/Hard Disk/Folder 1/folder 2" >--Do stuff to delete files in folder 2 >delete folder "/Hard disk/folder 1/folder 2" > >I can not delete the folder 2 unless I reset the defaultfolder to before >folder 2.Even if I give the full file path to the folder I want to delete. > >So I have to do this. For it to work. > >set defaultfolder to "/Hard Disk/Folder 1/folder 2" >--Do stuff to delete files in folder 2 >set defaultfolder to "/Hard disk/Folder 1" >delete folder "/Hard disk/folder 1/folder 2" > >It seem Rev is keeping the info on the defaultfolder while in a handler and >you can not set the defaultfolder to empty. That's right. The defaultFolder is a global property, so it doesn't get lost, and it is always set to a path. This is the way it's supposed to work. One thing that may simplify life is to save the value of the defaultFolder and restore it later: put the defaultFolder into savedDefaultFolder set the defaultFolder to "/Hard Disk/Folder 1/folder 2" -- do stuff set the defaultFolder to savedDefaultFolder -- restore original -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Thu Jan 31 02:53:36 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu Jan 31 02:53:36 2002 Subject: Persistent data? In-Reply-To: Message-ID: At 1:17 PM -0800 1/30/2002, Gary Robinson wrote: >Hi, I'm interested in Revolution, but am wondering if anyone can tell me >what kind of mechanisms there are for persistent data other than ODBC. >Suppose I have an application that doesn't require a heavy-duty relational >database, it just wants to store some data on the local disk. > >How would that be done? Is there any way of storing objects and looking them >up with an index, as Python has with its shelf library? Or is there some >other way of interfacing to a dbm library such as gdbm? If your database needs are simple enough, you can use a stack as a flat-file database (where each card is a record), using the find, sort, and mark commands to handle selection, searching, and sorting tasks. You can also store data in external files and pull their information in as needed, and store media such as images in external files that can be referenced from within a stack. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Thu Jan 31 02:53:57 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu Jan 31 02:53:57 2002 Subject: 'Find' for the docs In-Reply-To: References: <3C5823AB.E5564911@hyperactivesw.com> Message-ID: At 3:55 PM -0800 1/30/2002, Ken Norris (dialup) wrote: >I tried to figure out how to do a 'find' in the docs, but my attempts >failed. Anyone know how to do this? If you want to search the full text, you can just use the Find item in the Edit menu and specify the docs stack you want to search. (Or of course you can use the Find field at the top of the docs windows, if you need to search for a topic title.) >Maybe we could build a simple stack that will "Find in all/docs" or "Find in >index/docs"... This will likely be in the main docs window the version after 1.1.1. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From jeanne at runrev.com Thu Jan 31 02:54:17 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu Jan 31 02:54:17 2002 Subject: sort In-Reply-To: Message-ID: At 11:45 PM -0800 1/30/2002, yves COPPE wrote: >sort cards of stack "xxx" by name > >It doesn't work. > >how to proceed ? You are close: sort cards of stack "xxx" by the short name of this card -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! From sbouju at mac.com Thu Jan 31 02:58:01 2002 From: sbouju at mac.com (Sylvain Bouju) Date: Thu Jan 31 02:58:01 2002 Subject: Rinaldi's fullhpop XFCN In-Reply-To: Message-ID: on 30/01/02 19:46, Geoff Canyon at gcanyon at inspiredlogic.com wrote: > Not sure what you mean -- why is "items in any container" important? I'd be > willing to bet that whatever you want to do, you can accomplish on the fly > right before you do the popup command. Grab a list, stuff it into the button > and go. Thank you very much; I had not realized I just need to have one hidden button to handle everything I need in all my popup scripts. I just don't understand why a simple local variable is not sufficient, but no problem now. Looking now at this time the way to choose the font of my popup menus, or to tune their popup locations at different loc than the mouseloc, but it will come. Their is so many doc to read...! -- Sylvain Bouju sbouju at bigfoot.com -- From drvaughan55 at mac.com Thu Jan 31 02:58:14 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Thu Jan 31 02:58:14 2002 Subject: sort In-Reply-To: Message-ID: <033CFFAA-1620-11D6-BF23-000393598038@mac.com> Yves It is not clear if you actually stated your complete syntax there. Anyway, try sort cards by the short name of this card You can also say "sort cards of this stack by..." or "sort cards of stack "xxx" by..." if you want to be more explicit about the stack referenced. regards David On Thursday, January 31, 2002, at 06:45 , yves COPPE wrote: > Hello, > > I've a stack "xxx". Each card has a different name > I'd like the cds are sorted by their name (so "go to next cd" goes to > the next cd alphabetically) > I write a script : > sort cards of stack "xxx" by name > > It doesn't work. > > how to proceed ? > > thanks. > -- Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kingsleyj at hotmail.com Thu Jan 31 04:23:01 2002 From: kingsleyj at hotmail.com (Kingsley Jegan) Date: Thu Jan 31 04:23:01 2002 Subject: Copying a substack Message-ID: Wehn you clone a stack (or in fact, any object), the stack's name is set to "Copy of "& the original stack's name and the id of the new stack is put into "it". So to clone substack Y of mainstack X, use this code: clone stack "y" set the mainstack of it to "x" set the name of it to "z" Not the most straightforward, but it works ;> Kingsley Jegan ----- Usability/Chennai iNautix Technologies India Pvt. Ltd. _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From yvescoppe at skynet.be Thu Jan 31 06:29:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 31 06:29:01 2002 Subject: Print Message-ID: Hello, I have a fld with column (tabstop) I want to print it with the retained format I must put the fld into a variable "myfulltx" because I must add other data to the text When I write : ? put the short date into today revShowPrintDialog false,true revPrintText myfulltx,today ? I lost the formatted column. So I think it's because the textfont is not correct (something like courier or monaco) How can I solve this , thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From dcragg at lacscentre.co.uk Thu Jan 31 06:30:03 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Thu Jan 31 06:30:03 2002 Subject: Decompression question In-Reply-To: References: Message-ID: At 2:04 pm -0500 30/1/02, Tim wrote: >--Script in the ?Close? button of the modifiable stack that gets uploaded > >on mouseUp > get the platform > if it is "MacOS" then > put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile > else > put "C:/Documents and Settings/Administrator/Desktop/someProject.rev" >into tLocalFile > end if > set the cursor to busy > save stack "someProject.rev" > put compress(tLocalFile) into URL >"ftp://username:password at ftp.ispname.com/www/somefolder/someProject.rev" > close stack "someProject.rev" >end mouseUp > > >Now, everything worked fine until I tried it under OS X. Now when I open the >shell stack and it tries to download and decompress someProject.rev, I get >the following error message: > >Error description: decompress: string is not compressed data > I've just tried this, and it works here, uploading to an ftp server from Win XP, downloading from Mac OS X. But I think you may have some url reference problems in your script. In particular : put compress(tLocalFile) into URL ....... tLocalFile just contains the file path, not the file data. These worked here: Upload script: on mouseUp put "ftp://username:password at blahblah/teststack.rev" into tDestUrl answer file "" ##choose a stack file if it is not empty then put it into tSource put compress(url ("binfile:" & tSource)) into tData put tData into url tDestUrl put the result end if end mouseUp Download script: on mouseUp put "ftp://username:password at blahblah/teststack.rev" into tUrl put decompress(url tDestUrl) into tStackData go stack tStackData end mouseUp BTW, compressing stacks is a neat idea. I do it for an education project where the compressed "lesson stacks" sit on the server. Typically 50K stacks compress to around 15K. (But I imagine it's less effective if your stacks are full of images and other less compressable data.) Cheers Dave Cragg From dcragg at lacscentre.co.uk Thu Jan 31 06:39:00 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Thu Jan 31 06:39:00 2002 Subject: Decompression question Message-ID: Sorry, there was a mistake in the download script I just posted. It should be: on mouseUp put "ftp://username:password at blahblah/teststack.rev" into tUrl put decompress(url tUrl) into tStackData go stack tStackData end mouseUp tive if your stacks are full of images and other less compressable data.) Cheers Dave Cragg From yvescoppe at skynet.be Thu Jan 31 07:57:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu Jan 31 07:57:01 2002 Subject: Print preview Message-ID: Hello, Is there a middle to see the preview of what you're going to print (to save some paper and ink !) Thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From tim11 at bellatlantic.net Thu Jan 31 08:45:01 2002 From: tim11 at bellatlantic.net (Tim) Date: Thu Jan 31 08:45:01 2002 Subject: Decompression question In-Reply-To: Message-ID: On 1/31/02 6:37 AM, "Dave Cragg" wrote: > Sorry, there was a mistake in the download script I just posted. > > It should be: > > on mouseUp > put "ftp://username:password at blahblah/teststack.rev" into tUrl > put decompress(url tUrl) into tStackData > go stack tStackData > end mouseUp > tive if your stacks are full of images and other less compressable data.) > > Cheers > Dave Cragg > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution Well, I've tried it, but no go. If I use the above script I get a "value" error in the script editor. If I try: put decompress(url ("binfile:" & tUrl)) into tStackData I get the familiar message decompress: string is not compressed data. So, either way it doesn't work. Very confusing. Thanks, -- Tim From gary.dennis at mantissa.com Thu Jan 31 10:17:01 2002 From: gary.dennis at mantissa.com (Gary Dennis) Date: Thu Jan 31 10:17:01 2002 Subject: Difference in browse and Standalone Operational characteristics Message-ID: <002001c1aa68$da0388f0$2a45fea9@mantissasp4600> Included below are the code fragments from a menu (*** MENUFRAG ***) and stack (*** StackFrag ***). In browse mode, the system throws the an error (*** Error ***) when the Client Properties item is selected from the View menu. After the stack is distributed no error occurs upon the selection. I'm absolutely certain that I am building the standalone with the same stack that I'm browsing and also that the standalone I am executing is the distributed version of the browsed stack. Probably just new user stuff but shouldn't the stack function the same way in both environments? Would someone venture a guess as to why this might be happening? *** Error Thrown *** . There was an Execution Error at 8:38:22 AM Error description: Handler: error in statement Object: stack "C:/__My_Documents/__RevSource/Mantissa_OPS/Safe6/Client.rev" -------------------- go to card "ClientProperties" of stack "Client" as topLevel in this window -------------------- Value: doViewClientProperties Error description: Handler: error in statement go to card "ClientProperties" of stack "Client" as topLevel in this window Line: 170 Character: 1 Value: doViewClientProperties *** MENUFRAG *** --The following menuPick handler was generated by the Menu Manager. on menuPick pWhich switch pWhich case "Client Console" doViewClientConsole break case "Client Properties" doViewClientProperties break end switch end menuPick *** StackFrag ***. on doViewClientProperties go to card "ClientProperties" of stack "Client" as topLevel in this window end doViewClientProperties -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaosean at unitz.ca Thu Jan 31 11:07:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Thu Jan 31 11:07:01 2002 Subject: Copying a substack References: Message-ID: <000601c1aa71$1a537cf0$88b15bd1@dreamlanpc> you should probably store the value of "it" into a temp variable, just incase the value of "it" changes during the course of your code (i assume that this will be very rarely, but better to err on the side of caution) local vTempVar clone stack "y" put it into vTempVar set the mainstack of vTempVar to "x" set the name of vTempVar to "z" > Not the most straightforward, but it works ;> i wish that this had been posted a few months ago when i was trying to figure it out ;-) From JohnRule at aol.com Thu Jan 31 11:18:01 2002 From: JohnRule at aol.com (JohnRule at aol.com) Date: Thu Jan 31 11:18:01 2002 Subject: Pocket PC Message-ID: I would pay for a seperate version (i.e. the Pocket PC version of Revolution) if that's what you have to do! Doesn't anyone else see the value in this capability? Think 'wireless' Pocket PC and maybe the light bulbs will go on... JR > > Wouldn't it be great if we could program in TranScript for PalmOS and > > PocketPC too? :-) > > We're looking at these, though Palm really has a very different OS so is > most unlikely. However the other one wouldn't be so hard and might well > happen if we get enough requests. > > Kind regards, > > Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuegox at mac.com Thu Jan 31 11:36:01 2002 From: fuegox at mac.com (fuegox at mac.com) Date: Thu Jan 31 11:36:01 2002 Subject: use-revolution digest, Vol 1 #156 - 18 msgs In-Reply-To: <200201310747.CAA20140@www.runrev.com> Message-ID: <5693B5BC-1668-11D6-A925-003065B78238@mac.com> On Wednesday, January 30, 2002, at 11:47 PM, use-revolution- request at lists.runrev.com wrote: >> Wouldn't it be great if we could program in TranScript for PalmOS and >> PocketPC too? :-) > > We're looking at these, though Palm really has a very different OS so is > most unlikely. However the other one wouldn't be so hard and might well > happen if we get enough requests. > > Kind regards, > > Kevin I have been asking about this for years now. So, you can count my request. Though it would be nice if Palm was in the picture. -Mark Talluto From marcus at synchromedia.co.uk Thu Jan 31 11:51:01 2002 From: marcus at synchromedia.co.uk (Marcus Bointon) Date: Thu Jan 31 11:51:01 2002 Subject: Screen resolution switching? Message-ID: I'm a long suffering Director developer recently introduced to Revolution... I'm currently running into all kinds of screen res switching problems in Director, and I'm wondering if I can roll a little app in revolution to switch it for me - Does Revolution have any screen resolution properties that are set as well as get? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus at synchromedia.co.uk | http://www.synchromedia.co.uk From fuegox at mac.com Thu Jan 31 12:07:03 2002 From: fuegox at mac.com (fuegox at mac.com) Date: Thu Jan 31 12:07:03 2002 Subject: MacCentral.com Message-ID: <59A26C3A-166C-11D6-A925-003065B78238@mac.com> Revolution is getting some internet time over at www.maccentral.com Take a look! -Mark Talluto From grobinson at transpose.com Thu Jan 31 12:07:18 2002 From: grobinson at transpose.com (Gary Robinson) Date: Thu Jan 31 12:07:18 2002 Subject: Persistent data? Message-ID: Hi, thanks for the response... > If your database needs are simple enough, you can use a stack as a > flat-file database (where each card is a record), using the find, sort, and > mark commands to handle selection, searching, and sorting tasks. I have a recollection that that was hard to do with early Hypercard, because such a stack would have its top record visible to the user. You seem to be implying that that is not the case in Revolution, that you can have a stack that is just used as a database and is not part of the UI? Does the find facility involve any kind of an index, or does it actually have to check every card in the stack to see if it meets criteria? > You can > also store data in external files and pull their information in as needed, > and store media such as images in external files that can be referenced > from within a stack. But is there an easy way to store such data in a file that allows keyed access, such as Python's shelf library allows? --Gary -- Gary Robinson President Transpose, LLC grobinson at transpose.com 207-942-3463 http://www.transpose.com From os at brainbits.net Thu Jan 31 13:45:01 2002 From: os at brainbits.net (Olaf Schmidtmann) Date: Thu Jan 31 13:45:01 2002 Subject: Screen resolution switching? Message-ID: <10F85FB0AADBD511880F004854133BC8012D23@HAWK> Hi Marcus, you here? ;-) I don?t know anything usefull about Revolution - I am a total Newbie but I wonder what kind of problems you encounter with Director. Are you talking about PC or Mac? The Director chat does not really belong here so if you like we can discuss that off-list, too. I am using buddy api and a few work-arounds to fit all my tasks (switching on start and end of my appz and even in between e.g. for opening other windows like browsers). When your tasks are for Macs I surrendered a few months ago with Director, too. But there have been some things in beta state which should be working now. greetinx, Olaf -- Olaf Schmidtmann brainbits online & cross media mailto:os at brainbits.net / www.brainbits.net > -----Original Message----- > From: Marcus Bointon [mailto:marcus at synchromedia.co.uk] > Sent: Thursday, January 31, 2002 5:49 PM > To: Revolution > Subject: Screen resolution switching? > > > I'm a long suffering Director developer recently introduced > to Revolution... > > I'm currently running into all kinds of screen res switching > problems in > Director, and I'm wondering if I can roll a little app in > revolution to > switch it for me - Does Revolution have any screen resolution > properties > that are set as well as get? > > Marcus > -- > Marcus Bointon > Synchromedia Limited: Putting you in the picture > > marcus at synchromedia.co.uk | http://www.synchromedia.co.uk > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From marcus at synchromedia.co.uk Thu Jan 31 13:45:16 2002 From: marcus at synchromedia.co.uk (Marcus Bointon) Date: Thu Jan 31 13:45:16 2002 Subject: 1.1.1b1 release notes? Message-ID: Where can I find release notes for 1.1.1b1? The docs included with it don't list them (only 1.1) and they're not on the download page. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus at synchromedia.co.uk | http://www.synchromedia.co.uk From gcanyon at inspiredlogic.com Thu Jan 31 13:54:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Thu Jan 31 13:54:01 2002 Subject: Persistent data? In-Reply-To: References: Message-ID: At 11:48 AM -0500 1/31/02, Gary Robinson wrote: >I have a recollection that that was hard to do with early Hypercard, because >such a stack would have its top record visible to the user. You seem to be >implying that that is not the case in Revolution, that you can have a stack >that is just used as a database and is not part of the UI? Yes. >Does the find facility involve any kind of an index, or does it actually >have to check every card in the stack to see if it meets criteria? It's not indexed. Obviously it depends on the amount of data, but it's very fast, because it's RAM-based. >> You can >> also store data in external files and pull their information in as needed, >> and store media such as images in external files that can be referenced >> from within a stack. > >But is there an easy way to store such data in a file that allows keyed >access, such as Python's shelf library allows? Not sure what you mean, but I've used the filter command on data sets up to ten thousand rows with no problems. regards, Geoff From katir at hindu.org Thu Jan 31 13:55:01 2002 From: katir at hindu.org (Sivakatirswami) Date: Thu Jan 31 13:55:01 2002 Subject: Password Property for Substacks only In-Reply-To: <200201311609.LAA29369@www.runrev.com> Message-ID: Regarding the password property: if you set this for a substack, is the entire stack file encrypted? Or, is only the data of the substack encrypted. I would like to save FTP log in data to a little "bookmarks" substack, but not allow users to have access to this data, but also, not encrypt the main stack if that is possible. (slows it down) Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org From rcozens at pon.net Thu Jan 31 14:30:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Thu Jan 31 14:30:01 2002 Subject: Persistent data? In-Reply-To: References: Message-ID: >>But is there an easy way to store such data in a file that allows keyed >>access, such as Python's shelf library allows? Hi Gary, If you want to see a HyperCard example I am redesigning in Revolution, download the OenoLog demo at http://www.oenolog.com/apple_demo.htm. "Your Winery" is an indexed database stack; the database handlers are in the stack script of "OenoLog Library". Rob Cozens CCW, Serendipity Software Company "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) From gaitches at swbell.net Thu Jan 31 14:37:00 2002 From: gaitches at swbell.net (Gary Aitcheson) Date: Thu Jan 31 14:37:00 2002 Subject: Pocket PC In-Reply-To: Message-ID: Yes - please add me to the list of those who would pay for a Pocket PC version of Revolution ! - Gary Aitcheson > Wouldn't it be great if we could program in TranScript for PalmOS and > PocketPC too? :-) We're looking at these, though Palm really has a very different OS so is most unlikely. However the other one wouldn't be so hard and might well happen if we get enough requests. Kind regards, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From gary.dennis at mantissa.com Thu Jan 31 14:37:13 2002 From: gary.dennis at mantissa.com (Gary Dennis) Date: Thu Jan 31 14:37:13 2002 Subject: Socket buffer size Message-ID: <005a01c1aa8b$9c6cda00$2a45fea9@mantissasp4600> Anyone know of a way to set the socket receive buffer size for REV? -------------- next part -------------- An HTML attachment was scrubbed... URL: From betypaul at arvotek.net Thu Jan 31 17:18:01 2002 From: betypaul at arvotek.net (Paul Conover) Date: Thu Jan 31 17:18:01 2002 Subject: fractions in an option menu In-Reply-To: <200201162344.SAA17592@www.runrev.com> Message-ID: <18D6BDD6-1698-11D6-853E-0050E456D376@arvotek.net> Hi When I create an option menu with content containing a forward slash ( / ) to show a fraction as- 1/2 cup it comes out on the Menu Button as 1 cup (command key symbol) 2 As my creation concerns cooking the fractions matter ! Is there a workaround ? Quotation marks do not help and - 1|2 does not look right. Paul From dan at clearvisiontech.com Thu Jan 31 17:24:00 2002 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu Jan 31 17:24:00 2002 Subject: Downloading a MAC file Message-ID: Greetings! In my application, I want to include a "Check for Updates Online..." option (much like that in Revolution). If I release a new version of my application, my users can get it easily. Here's the problem. If I post a file with a resource fork, like an application created by the "Distribution Builder", the resource fork is not going to be present anymore and the download will not function. So... Do I do some kind of compression first? If so, what would I use so that Revolution will be able to uncompress it? Looking forward to your thoughts... Dan Friedman From marcus at synchromedia.co.uk Thu Jan 31 17:43:02 2002 From: marcus at synchromedia.co.uk (Marcus Bointon) Date: Thu Jan 31 17:43:02 2002 Subject: Downloading a MAC file In-Reply-To: Message-ID: on 31/1/2002 9:21 pm, Dan Friedman at dan at clearvisiontech.com wrote: > In my application, I want to include a "Check for Updates Online..." option > (much like that in Revolution). If I release a new version of my > application, my users can get it easily. > > Here's the problem. If I post a file with a resource fork, like an > application created by the "Distribution Builder", the resource fork is not > going to be present anymore and the download will not function. So... > > Do I do some kind of compression first? If so, what would I use so that > Revolution will be able to uncompress it? If it's to be downloaded, then compression is a good idea anyway. Safest/easiest way is to do a custom version check within your Rev app that opens a direct http connection to your server where it can find if a new version is available (e.g. Download a text file that contains a string of the latest version number), then hand off downloading to their web browser (openURL/GetURL or whatever). For a Mac you should stuff and binhex/macbinary the file. All current web browsers will decode binhex and macbinary, so you could even make it a self extractor. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus at synchromedia.co.uk | http://www.synchromedia.co.uk From sarahr at genesearch.com.au Thu Jan 31 18:44:01 2002 From: sarahr at genesearch.com.au (Sarah Reichelt) Date: Thu Jan 31 18:44:01 2002 Subject: fractions in an option menu In-Reply-To: Message-ID: I haven't checked this, but I think if you use 2 slashes "//" Rev will interpret this as a slash instead of a command key. This definitely works with ampersands - one gives a shortcut, 2 produces a real ampersand. You need to check what the menuPick handler gives you. If your menuItem is "1//2 cup", displaying as "1/2 cup", I think the menuPick parameter might only be "12cup". Sarah > Hi > When I create an option menu with content containing > a forward slash ( / ) to show a fraction as- > 1/2 cup > it comes out on the Menu Button as > 1 cup (command key symbol) 2 > > As my creation concerns cooking the fractions matter ! > Is there a workaround ? > Quotation marks do not help and - 1|2 does not look right. > > Paul > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From dan at clearvisiontech.com Thu Jan 31 20:13:00 2002 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu Jan 31 20:13:00 2002 Subject: Running a Stack from the Web Message-ID: Hello again... When you choose "Check for Updates Online", Revolution has a stack posted on their web site which they open by calling: go stack URL "http://www.runrev.com/revolution/revupdates.rev" as modeless Would anyone know why it works for them, but when I post a stack, I get "stack is corrupted, check for ~ backup file"? I have tried using the Standalone Builder to make a stack... That didn't make a difference. Got any ideas? Thanks, Dan Friedman From terry at discovery.nl Thu Jan 31 22:58:02 2002 From: terry at discovery.nl (Terry Vogelaar) Date: Thu Jan 31 22:58:02 2002 Subject: Running a Stack from the Web In-Reply-To: Message-ID: > When you choose "Check for Updates Online", Revolution has a stack posted on > their web site which they open by calling: > > go stack URL "http://www.runrev.com/revolution/revupdates.rev" as modeless > > Would anyone know why it works for them, but when I post a stack, I get > "stack is corrupted, check for ~ backup file"? I have tried using the > Standalone Builder to make a stack... That didn't make a difference. Got > any ideas? Are you sure you have sent the stack to your server using FTP in BINARY mode (not ASCII or autodetect)? Accidentally using ASCII mode is the most common technique to mess up computer data. I use it all the time ;-) Terry From jeanne at runrev.com Thu Jan 31 23:04:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu Jan 31 23:04:01 2002 Subject: Copying a substack In-Reply-To: Message-ID: At 4:13 PM -0800 1/30/2002, Devin Asay wrote: >Sorry if this has come up before. How do you make a copy of a >substack within a stackfile? Both the clone and copy commands will >make a copy of a stack, but they are created as mainstacks. I want >to be able to copy a substack and have it remain subordinated the the >current mainstack. > >Alternatively, is there a way to change a mainstack into a substack? Yes: set the substack-to-be's mainStack property. For instance, if you have two main stacks called "Puffball" and "Hydrant", and you want to make "Hydrant" into a substack of "Puffball", use this: set the mainStack of stack "Hydrant" to "Puffball" -- Jeanne A. E. DeVoto ~ jeanne at runrev.com http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer!