RE: Rough day on the Revolution front
Hey Guys, My AltArchive plugin does not auto save every XX minutes. It's used to create incremental backups. The SmartSave plugin from Frederic Rinaldi is: A plugin stack which brings you an elegant autosave feature for stacks and their substacks on choosen time interval. It can be found at: http://perso.wanadoo.fr/frederic.rinaldi/ best, Chipp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ken Norris (dialup) Sent: Thursday, February 20, 2003 7:50 PM To: [EMAIL PROTECTED] Subject: Re: Rough day on the Revolution front ** Date: Thu, 20 Feb 2003 21:08:09 +1000 Subject: Re: Rough day on the Revolution front From: [EMAIL PROTECTED] [EMAIL PROTECTED] Anyone know where that plugin is? That would be Chipp's altArchive plugin available at: http://www.altuit.com/webs/altuit2/RunRev/NewPlugins.htm Hope this helps. -- Many thanks to you and Chip. Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution digest, Vol 1 #1140 - 4 msgs
Hi Ken, And on a Mac, if you haven't created a file menu, you cannot quit Rev at all, because there is no file menu. You have to restart. Also, to close a work in progress stack that has no UI, simply click the closebox on the window -- this will quit the app. If the window has no closebox, you can force-quit the MC/Rev app, without having to restart. If you are working on Os9 and your stack has no close-box you might hit ctrl+alt+apple+esc to force quitting. Regards, Malte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution digest, Vol 1 #1140 - 4 msgs
Hi Ken, And on a Mac, if you haven't created a file menu, you cannot quit Rev at all, because there is no file menu. You have to restart. Also, to close a work in progress stack that has no UI, simply click the closebox on the window -- this will quit the app. If the window has no closebox, you can force-quit the MC/Rev app, without having to restart. If you are working on Os9 and your stack has no close-box you might hit ctrl+alt+apple+esc to force quitting. And on Mac OS X : alt+apple+esc Cheers -- Greetings. Yves COPPE Email : [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Screen real estate
Dear List I have an app which needs to fill the available space in one of three screen sizes (VGA, SVGA, 1024 x 768). I have a kind of home-built Geometry Manager to do this, which works pretty well - but I don't want my window to bump into the pre-existing standard screen real estate. Examples are: menu bar and possibly Control Strip on Mac, Menu Bar and Dock (if permanently visible) on OSX, the thing at the bottom of the screen resembling the dock in Windows - sorry, forgot its real name. These various items use up different amounts of the screen, and in some cases can be there or not there or perhaps be relocated for example from the bottom of the screen to the side. So my question is, is there any way to check what other windows are occupying what space on the screen at launch time for my app? If there is a solution, is it general or do I have to make it platform-specific? TIA Graham -- --- Graham Samuel / The Living Fossil Co. / UK France ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Combo-box/popup menu in a list field?
on 20/2/03 6:21 pm, [EMAIL PROTECTED] wrote How do you create a combo-box/popup menu that appears *inside* a scrolling list field? Specifically one that appears on each line of a certain column (the list field has vGrid set to true)? Depending just what you want - most probably Ken's suggestion is best (instead of a scrolling field, use a scrolling group, with multiple popup menu buttons, one for each line). But it's possible that your requirement is more like the one I had recently; I wanted the same menu to appear on each line, but only when the user clicks. For this you have a hidden popup menu button somewhere on the card, and use the 'popup' command to make it appear in the right place when the user clicks. Even if you want the appearance of the menu control (something with a little triangle on it, for example) to appear on every line, it might be easiest to use an image for that, which can be part of the 'text' of the scrolling field, and then have a single menu which you popup on command, rather than having to clone the menu button for each line. Note that, AFAIK, there's no way for the handler which issues the 'popup' command to get the results of the popup, without cooperation from the menu button. IE if you have to script the menu button (in a 'menupick' handler) to either know what it should do, or send the message on to the field or wherever else you're handling things. Jeanne - I think this is an area which could be better covered in the docs, specifically the entry in the transcript dictionary for the 'popup' command. It explains how to popup either a button menu or stack - but doesn't tell you where the result of the user's selection ends up. I had to hunt around to figure out the answer in each case (and of course the answer is different for button menus and stack menus). (One of the recipes in the new cookbook mentions the answer for the button case.) Scott, if you're reading - it would be a tremendous shortcut if there was a mode of the 'popup' command that made it behave like the 'modal' command - so a handler (somewhere) could issue a 'popup' command and in the following statement test the result to find out what the user selected. Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Combo-box/popup menu in a list field?
Hi Ben, Your method sounds exactly like what I had actually tried to accomplish (display a popup at a specific location per line). However, I did run into a problem (still unsolved) that perhaps you know the answer to. It's also why I had posted an earlier message (to which there have not been any replies) regarding the strange behavior of clickChunk with list fields. Here's what I had posted in that earlier message: When the listBehavior of a field is set to true, it seems the clickChunk returns the hilitedLine instead...(could this be a bug?) How do you get the actual clickChunk then? So a related question would be, with the method you just described, do you use the clickChunk to determine the location of the click, or something else? Note that, AFAIK, there's no way for the handler which issues the 'popup' command to get the results of the popup, without cooperation from the menu button. IE if you have to script the menu button (in a 'menupick' handler) to either know what it should do, or send the message on to the field or wherever else you're handling things. Right. Now...how then should I get the popup button to know which line I'm activating the popup from? Valetia ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
auto size of a group
It seems like there should be an option for groups that says, my size is the minimum rectangle that contains my visible members (as opposed to a fixed size). The current behavior is counter-intuitive for me, but I've adapted to it. It would be nice to have the option. -- D ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Size of build and minimization thereof
As files on the hard drive, the audio clip is 12k, the jpeg is 72k. -- D -Original Message- From: Scott Rossi [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: Re: Size of build and minimization thereof Recently, Ivers, Doug E wrote: I'm surprised that my stack unbuilt is 920kb -- what can I do to dramatically reduce that? I only have one jpeg image and one audio file, no other resources. How much space do your raw files (JPEG and audio file) occupy on the desktop? Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
newbies: beware script locals
Maybe everyone already knows this, but script locals can cause major frustration when debugging... I love script locals, those local declarations at the top of your script outside of all handlers: local myLocalVariable on openStack put 7 into myLocalVariable ... end openStack on mouseUp ... end mouseUp I use them a lot in my top level script. They are great because I don't have to declare them in each handler and they are safer than globals, if you know what I mean. The caution is that whenever you edit the script, the value of the local goes away. -- D ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ken's recent bad day.
I have not reported this because (a) I am waiting to see whether it is fixed in v2.5 and (b) I can work around the problem by making a card the current card before trying to access its controls via the AO. -- At least I'm not alone with some anamolies. Version 2.5? You mean 2.0 right? Rev hasn't said anything about a version 2.5 AFAIK. I believe Rob was talking about the MetaCard engine under Rev 2.0 (which is MetaCard 2.5). Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Ken's recent bad day.
I believe Rob was talking about the MetaCard engine under Rev 2.0 (which is MetaCard 2.5). Ken, et al: Did I dream up Kevins' message here or on the improve-rev list a couple of months ago saying the next release would be 2.5 instead of 2.0? I saw (but didn't read) a thread about the cost to update from 2.0 to 2.5 within the last few weeks. Was that about something else? -- Rob Cozens http://www.oenolog.com/who.htm Vive R Revolution! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
ClickCalendar Update 20030221
Hi All, ClickCalendar Update 20030221 is now available at http://www.oenolog.com/ftp/serendipity_downloader.htm [ClickCalendar.rev.sgz] The preOpenBackground handler for the ClickCalendar group in the last update included a reference to a field (Documentation) that is not part of the group. You an eliminate the problem by commenting out line one of the group's preOpenBackground handler or downloading decompressing the new update. Note: bundled files have NOT been updated. Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: safe shell command
On Thursday, February 20, 2003, at 11:18 PM, Richard K. Herz wrote: My understanding is that you need to get the path to the directory where your exe is, e.g., from parsing get the long name of this stack, and then have the shell cd to that directory before running the exe. This is what the script I sent does. The path to the directory the exe is in gMyappPath originally. I'm probably missing something, but I don't think that is necessary. shell() runs from the defaultFolder, and the only time the defaultFolder is not equal to the path of the main stack, is when you running in development platform, and in that case you can just fix up the defaultFolder property. So you don't need to cd to a path to execute a shell command, unless the command is actually located in an entirely different directory. I just tested this on Windows2K Pro and it works as I described. Maybe it doesn't work on all versions of windows? The reason I want to avoid doing it that way (cd-ing) is that I don't know enough about windows to trust the Windows shell interpreter to use the same exact pathnames volume names as Runrev is using with the long name of the stack. On Mac OS X, Revolution and Javascript represent volume names differently sometimes, (always?) and so it makes it a really tricky problem to tell javascript to cd before executing a shell() command. (all of which hopefully will go away when Rev gets a real shell() on OS X) However, I am just afraid there could be something similar going on in windows. Probably just being paranoid. But at the very least you are executing an extra command, no? [cc: ing to the list to see if my understanding is correct.] Thanks again, Alex Rice, Software Developer Architectural Research Consultants, Inc. [EMAIL PROTECTED] [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: auto size of a group
On Friday, February 21, 2003, at 05:36 AM, Ivers, Doug E wrote: It seems like there should be an option for groups that says, my size is the minimum rectangle that contains my visible members (as opposed to a fixed size). The current behavior is counter-intuitive for me, but I've adapted to it. It would be nice to have the option. You can actually do that scripting pretty easily. See formattedHeight and formattedWidth set the htmlText of fld summaryReportItems \ to tSummaryItemsHtml set the height of fld summaryReportItems \ to the formattedHeight of fld summaryReportItems Alex Rice, Software Developer Architectural Research Consultants, Inc. [EMAIL PROTECTED] [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Why doesn't a stack open with the UI
** Date: Thu, 20 Feb 2003 22:47:04 -0800 Subject: Re: Why doesn't a stack open with the UI From: Scott Rossi [EMAIL PROTECTED] It sounds like you're running your stack under the Rev engine only (not the development environment). In MetaCard, it is standard behavior that double clicking a stack will launch the stack without the dev environment -- Rev may work similarly. -- That's right. Why is it like that? If I open a stack out of a folder which is _not_ a standalone, the UI does not open with it. Even if I close , or even if I leave it open and click on the Rev app in Rev's own folder, the UI refuses to open. IMHO, if a stack is not a standalone, then it should open with the UI, or at least have it available, and also, you should be able to quit Rev, but you can't. -- Also, to close a work in progress stack that has no UI, simply click the closebox on the window -- this will quit the app. -- No. Not true. Clicking the close box only hides it, it does not quit Rev. Look in the Application Menu in the upper right corner, and you will see Rev is still there, loaded into memory, but just hidden. At least that's how it is here, honest. -- If the window has no closebox, you can force-quit the MC/Rev app, without having to restart -- How is that (could be a procedure I don't know about)? Thanks for your patience...I'm a little frustrated with Rev right now. Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Backup tools (was 'Rough day on the Revolution front')
** From: Chipp Walters [EMAIL PROTECTED] Subject: RE: Rough day on the Revolution front Date: Fri, 21 Feb 2003 02:09:05 -0600 snip My AltArchive plugin does not auto save every XX minutes. It's used to create incremental backups. The SmartSave plugin from Frederic Rinaldi is: A plugin stack which brings you an elegant autosave feature for stacks and their substacks on choosen time interval. It can be found at: http://perso.wanadoo.fr/frederic.rinaldi/ -- Thanks for clearing that up. So how, exactly does yours do it. i.e., what constitutes an increment? Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: auto size of a group
Ivers, Doug E writes: It seems like there should be an option for groups that says, my size is the minimum rectangle that contains my visible members (as opposed to a fixed size). The current behavior is counter-intuitive for me, but I've adapted to it. It would be nice to have the option. -- D Mr. Ivers, Could you please elaborate on this lack of auto size feature for groups in Rev? In MC 2.4.3 on WIN XP pro, my groups automatically resize when I change the visible property of controls in the group. For example, if I have three fields in a group stacked vertically, and each field is of a different width, then when I set the visible of the highest field to false, the height of my group automatically drops to enclose the remaining two visible fields (plus, of course, a few pixels around that defines the group area). Similarly, if I set the visible of the widest field to false, then the width of group automatically reduces to a width sufficient to display the widest visible field. Likewise, when I set the visible of these fields back to true, the group auto resizes to a larger size and displays all of the visible controls. miscdas ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rough day on the Revolution front
** Date: Fri, 21 Feb 2003 09:44:51 -0500 Subject: Rough day on the Revolution front From: Kurt Kaufman [EMAIL PROTECTED] It bears occasional repetition since I had so many problems (bad saves, sudden quits, hangs) with RR until I realized where the fault lay: Revolution 1.1 does not like long stack file names (on Mac OS X anyway, and perhaps also on Mac OS 9). Try to keep the names of stacks to less than 24 characters long (the number is arbitrary; I don't know where you start to have problems, but I assume maybe around 30-34 chars.) -- Thanks Kurt, Long names are not a factor in this case, but thanks for the tip, it's good to know. Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Size of build and minimization thereof
Recently, Ivers, Doug E wrote: How much space do your raw files (JPEG and audio file) occupy on the desktop? As files on the hard drive, the audio clip is 12k, the jpeg is 72k. Then there's probably something odd going on. Try creating a new empty stack and importing your media. See if the fresh stack size is any different than your original. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RR/MC version mixup (was'Re: Ken's recent bad day.')
** From: Ken Ray [EMAIL PROTECTED] Subject: Re: Ken's recent bad day. Date: Fri, 21 Feb 2003 08:45:45 -0600 I have not reported this because (a) I am waiting to see whether it is fixed in v2.5 and (b) I can work around the problem by making a card the current card before trying to access its controls via the AO. -- At least I'm not alone with some anamolies. Version 2.5? You mean 2.0 right? Rev hasn't said anything about a version 2.5 AFAIK. I believe Rob was talking about the MetaCard engine under Rev 2.0 (which is MetaCard 2.5). -- Oh. OK. MC wasn't mentioned so I didn't think (sorry Rob). Thanks for the heads-up. Now I know if something like that happens, the poster may be referring to the MC engine. Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: RR/MC mixup (was 'Ken's recent bad day')
** From: Ken Ray [EMAIL PROTECTED] Subject: Re: Ken's recent bad day. Date: Fri, 21 Feb 2003 08:45:45 -0600 I have not reported this because (a) I am waiting to see whether it is fixed in v2.5 and (b) I can work around the problem by making a card the current card before trying to access its controls via the AO. -- At least I'm not alone with some anamolies. Version 2.5? You mean 2.0 right? Rev hasn't said anything about a version 2.5 AFAIK. I believe Rob was talking about the MetaCard engine under Rev 2.0 (which is MetaCard 2.5). -- I seem to remember a similar mixup back then as well. Can we get a definitive list of which RR versions use which MC engines? Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Why doesn't a stack open with the UI
On 2/21/03 12:24 PM, Ken Norris (dialup) wrote: That's right. Why is it like that? If I open a stack out of a folder which is _not_ a standalone, the UI does not open with it. Even if I close , or even if I leave it open and click on the Rev app in Rev's own folder, the UI refuses to open. IMHO, if a stack is not a standalone, then it should open with the UI, or at least have it available, and also, you should be able to quit Rev, but you can't. The behavior is intentional and useful. To see how your stack will run without the development environment, you can double-click it in the Finder and it will run exactly as it would if you had compiled it as an app. This is very useful, and is still the only way to preview a stack application in MetaCard. Revolution added the Suspend Development UI option to its menus to accomplish the same thing. Since the behvior is directly coded into the engine, it is unlikely to change and can't be avoided -- and a discussion on the MC list a while back indicated that most people don't want it to. However, as a response to that discussion, MetaCard added an option where Command-clicking a stack in the Finder will open the stack with the development environment loaded, which allows you to choose how it will open. The default behavior of the engine is to quit when the last window is closed. If you are still seeing Revolution in your application menu after closing the last visible window, then you probably have an invisible stack open somewhere. If you plan to open your stack from the Finder often, then it might be a good idea to insert a handler into the visible stack that closes all other stacks at the same time the visible one closes. Then Rev will quit. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: safe shell command
On Friday, February 21, 2003 9:51 AM, Alex Rice wrote: On Thursday, February 20, 2003, at 11:18 PM, Richard K. Herz wrote: My understanding is that you need to get the path to the directory where your exe is, e.g., from parsing get the long name of this stack, and then have the shell cd to that directory before running the exe. This is what the script I sent does. The path to the directory the exe is in gMyappPath originally. I'm probably missing something, but I don't think that is necessary. shell() runs from the defaultFolder, and the only time the defaultFolder is not equal to the path of the main stack, is when you running in development platform, and in that case you can just fix up the defaultFolder property. So you don't need to cd to a path to execute a shell command, unless the command is actually located in an entirely different directory. Testing now with MC on Win XP, it does look like the cmd.exe shell's default directory is the same as Rev/MC (engine's location or by setting the directory). For example, start Rev/MC and from the msg box, answer shell(dir) lists the contents of the directory where the Rev/MC engine is located and answer shell(dir ..\) lists the directory above. So you're right, you don't have to shell cd with the complete path to the exe to start the exe as I did in my original script, just start it with a relative name, e.g., get shell(start \appfolder\app.exe) for an exe in folder appfolder below the current Rev/MC default directory. If I'm understanding you right, a shell cd with the full pathname has problems of potential path differences between Rev/MC and Windows. Rich Herz [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Combo-box/popup menu in a list field?
Okay, I quickly created a GeoCities webpage ; and here's the link everybody interested can download it directly from : http://www.geocities.com/janschenkel/downloads/checkboxlist.zip I just uploaded a new version, which should fix a few issues I bumped into when I wanted to review it on my PowerBook. It should also be a bit easier to use. Hope this helped, Jan Schenkel. = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
pathway
Hi without answer, I ask my question again : Hi, I experimented something strange : on Mac OS jaguar X.2.4 with Rev 1.1.1 I have a list fld each line gives a name of a textfile when I click on a line, the script build a pathway to the file to open it (it's a text file) sometimes I works well, sometimes I get an error the file doesn't exist Each text file is in a folder So I find now that when the name of the folder is too long (I mean the length or the number of chars of the name of the folder), it doesn't run Does it means that rev cannot handle long name file ??? It's very big problem for me because this stack is build to retrieve textfiles and I may not change the name of the folder in which the textfile is nested. any idea -- Greetings. Yves COPPE Email : [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Getting a chunk of stylized text?
Fellow Revolutionaries, Let's say field A contains more text than can fit in it. The text in field A contains multiple fonts, styles and sizes. How can I get the stylized text that is not being displayed? (and remove it from field A and put it into field B) I tried messing with the formattedHeight and formattedLines functions, but I can't seem to get it to find the correct text. What I think I need to do, some how, is get the formattedTop of a line of the formattedText. But you can't do that. Any thoughts? Thank you in advance, Dan ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: use-revolution digest, Vol 1 #1140 - 4 msgs
or, launch terminal and type: ps -aurx|head This brings up all your current processes. Look for the one associated with Rev, note its PID and then type kill -9 [PID] -- where PID is the number itself; no brackets. Judy -- who's obviously had to do this on occasion. On Fri, 21 Feb 2003, yves COPPE wrote: And on Mac OS X : alt+apple+esc ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: safe shell command
On Friday, February 21, 2003, at 01:02 PM, Richard K. Herz wrote: If I'm understanding you right, a shell cd with the full pathname has problems of potential path differences between Rev/MC and Windows. I'm not sure about that. Just being paranoid :-) I encountered that problem on OS X with Rev - Javascript - shell commands. Alex Rice, Software Developer Architectural Research Consultants, Inc. [EMAIL PROTECTED] [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Getting a chunk of stylized text?
There are probably faster ways to do this, but try this: function extraText f -- returns the htmlText that overflows size of fld f -- and deletes it from field f repeat with c = 1 to length(fld f) if the formattedHeight of char 1 to c of fld f the height of fld f then put the htmlText of char c to -1 of fld f into myHtml delete char c to -1 of fld f return myHtml end if end repeat return empty end extraText David Epstein Getting a chunk of stylized text? From: Dan Friedman [EMAIL PROTECTED] ... Let's say field A contains more text than can fit in it. The text in field A contains multiple fonts, styles and sizes. How can I get the stylized text that is not being displayed? (and remove it from field A and put it into field B) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: safe shell command
Here's the full scoop: 1) The default path starts in the Rev directory (or wherever the MC interpreter is running ). Let's say C:\Program Files\Revolution\. 2) If you want to launch something in that directory, you just need to provide the relative path (as Richard mentioned). 3) If you want to launch something in another directory, but *on the same drive*, you can cd to the directory and use start on the item in the directory, concatenated with a , as in: cd c:\program files\microsoft office\office10 start winword.exe 4) If you want to launch something *on another drive*, you have to do it in three stages: cd to the drive itself (optionally including the drive letter), then cd to the directory, then start the file, as in: cd i:\ cd i:\mystuff\launchfiles start MyApp.exe Just trying this: cd i:\mystuff\launchfiles start MyApp.exe when you're on the C: drive just won't work. Hope this clears things up, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Alex Rice [EMAIL PROTECTED] To: Richard K. Herz [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:49 PM Subject: Re: safe shell command On Friday, February 21, 2003, at 01:02 PM, Richard K. Herz wrote: If I'm understanding you right, a shell cd with the full pathname has problems of potential path differences between Rev/MC and Windows. I'm not sure about that. Just being paranoid :-) I encountered that problem on OS X with Rev - Javascript - shell commands. Alex Rice, Software Developer Architectural Research Consultants, Inc. [EMAIL PROTECTED] [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: safe shell command
Richard K. Herz writes: On Friday, February 21, 2003 9:51 AM, Alex Rice wrote: On Thursday, February 20, 2003, at 11:18 PM, Richard K. Herz wrote: My understanding is that you need to get the path to the directory where your exe is, e.g., from parsing get the long name of this stack, and then have the shell cd to that directory before running the exe. This is what the script I sent does. The path to the directory the exe is in gMyappPath originally. I'm probably missing something, but I don't think that is necessary. shell() runs from the defaultFolder, and the only time the defaultFolder is not equal to the path of the main stack, is when you running in development platform, and in that case you can just fix up the defaultFolder property. So you don't need to cd to a path to execute a shell command, unless the command is actually located in an entirely different directory. Testing now with MC on Win XP, it does look like the cmd.exe shell's default directory is the same as Rev/MC (engine's location or by setting the directory). For example, start Rev/MC and from the msg box, answer shell(dir) lists the contents of the directory where the Rev/MC engine is located and answer shell(dir ..\) lists the directory above. So you're right, you don't have to shell cd with the complete path to the exe to start the exe as I did in my original script, just start it with a relative name, e.g., get shell(start \appfolder\app.exe) for an exe in folder appfolder below the current Rev/MC default directory. If I'm understanding you right, a shell cd with the full pathname has problems of potential path differences between Rev/MC and Windows. Rich Herz [EMAIL PROTECTED] == I suspect the reason you are able to shell out is due to the PATH environment variable. For those not familiar with DOS, if you type PATH at the DOS prompt, a string is displayed that is the search path for commands. Usually, but DEFINITELY not always, it includes C:\windowS\system32 Note that this is the default directory for cmd.exe in WIN XP. Therefore, simply invoking the SHELL command from MC results in the PATH search locating and launching cmd.exe miscdas ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: RR/MC mixup (was 'Ken's recent bad day')
I've been following this thread, and agree it's sometimes confusing. My plugin suite at: http://www.altuit.com/webs/altuit2/RunRev/NewPlugins.htm Prints to the message box when RR launches the following: RunRev version: 1.5 A1 r1 MetaCard engine version: 2.4.2 Build Number: 2 it does this with the following function: on answerVersion if exists(stack revMenuBar) then put RunRev version: revAppVersion() return MetaCard engine version: the version return Build Number: the buildNumber into theMsg else put MetaCard engine version: the version return Build Number: the buildNumber into theMsg end if put theMsg end answerVersion Chipp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken Norris (dialup) Sent: Friday, February 21, 2003 1:22 PM To: [EMAIL PROTECTED] Subject: Re: RR/MC mixup (was 'Ken's recent bad day') ** From: Ken Ray [EMAIL PROTECTED] Subject: Re: Ken's recent bad day. Date: Fri, 21 Feb 2003 08:45:45 -0600 I have not reported this because (a) I am waiting to see whether it is fixed in v2.5 and (b) I can work around the problem by making a card the current card before trying to access its controls via the AO. -- At least I'm not alone with some anamolies. Version 2.5? You mean 2.0 right? Rev hasn't said anything about a version 2.5 AFAIK. I believe Rob was talking about the MetaCard engine under Rev 2.0 (which is MetaCard 2.5). -- I seem to remember a similar mixup back then as well. Can we get a definitive list of which RR versions use which MC engines? Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: auto size of a group
I do Mac OS X. I haven't done much regarding the visible prop, but when I manually resize (by dragging one of the 8 handles) a control that is in a group to beyond the group rect, the portion of the control outside the group rect is not visible and the group doesn't resize automatically. -- D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 1:39 PM To: [EMAIL PROTECTED] Subject: Re: auto size of a group Ivers, Doug E writes: It seems like there should be an option for groups that says, my size is the minimum rectangle that contains my visible members (as opposed to a fixed size). The current behavior is counter-intuitive for me, but I've adapted to it. It would be nice to have the option. -- D Mr. Ivers, Could you please elaborate on this lack of auto size feature for groups in Rev? In MC 2.4.3 on WIN XP pro, my groups automatically resize when I change the visible property of controls in the group. For example, if I have three fields in a group stacked vertically, and each field is of a different width, then when I set the visible of the highest field to false, the height of my group automatically drops to enclose the remaining two visible fields (plus, of course, a few pixels around that defines the group area). Similarly, if I set the visible of the widest field to false, then the width of group automatically reduces to a width sufficient to display the widest visible field. Likewise, when I set the visible of these fields back to true, the group auto resizes to a larger size and displays all of the visible controls. miscdas ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Why doesn't a stack open with the UI
On 2/21/03 3:04 PM, Ken Norris (dialup) wrote: Command-clicking a stack in the Finder will open the stack with the development environment loaded, which allows you to choose how it will open. -- I thought I tried that. Maybe it's exclusive to MC? It may be, for now. I think it was added after Rev 1.1.1 was released, so won't show up until Rev 2.0. The default behavior of the engine is to quit when the last window is closed. If you are still seeing Revolution in your application menu after closing the last visible window, then you probably have an invisible stack open somewhere. -- I don't see how that can be so. I restarted the computer and went to the stack, opened it (without the UI) and it still wouldn't quit. How could there be another stack open if I restarted? An open substack, maybe? -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: auto size of a group
Ivers, Doug E writes: [snip} I do Mac OS X. I haven't done much regarding the visible prop, but when I manually resize (by dragging one of the 8 handles) a control that is in a group to beyond the group rect, the portion of the control outside the group rect is not visible and the group doesn't resize automatically. -- D = This also seems odd to me. With MC On WIN XP, I edit controls in a group by clicking the group, then from the Group Properties selecting Edit. Then use the handles to drag a control to a new size. Exit editing via the menu selection Edit\Stop editing BG. My Group auto resizes to match the resized control. In fact, using a stack of width 256, I dragged a control beyond the stack edge, then exited group edit mode. I checked the width of the group and it was indeed larger (394) than the stack width (256). So, even when the control size exceeded the size of the stack, the group still auto sized to accomodate the new size of the control. miscdas ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
can't import from file in OSX?
The source of my extreme bafflement is the code snippet below. I believe this is the proper way to read text from a file and have it accessible in a text field, but I don't see any sign that the file read has occured, and defintely don't get the text in my field. The first two lines are commented out, previous attempts; the current attempt is the last two lines. None of them have worked. --put URL file:~/Desktop/radmindgui/ps_output into field theOutput --set the text of field theOutput to the text of URL file:/etc/bashrc put /Users/guest/Desktop/radmindgui/ps_output into theFile get the fifth line of URL file:/Users/guest/Desktop/radmindgui/ps_output put it into field theOutput I tried this with an http URL, and it worked fine. The files in question have been checked for the proper permissions (world-readable). I even tried creating a new stack and testing the code in there. Don't see any clues from previous posts to the list. Can anyone see what I'm doing wrong? Thanks, Mike H _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: can't import from file in OSX?
On Samstag, Feb 22, 2003, at 00:55 Europe/Zurich, Michael Hasak wrote: ... --put URL file:~/Desktop/radmindgui/ps_output into field theOutput wrong path: no tilde, and desktop must be something like this (asuming OS X) : put url file:users/username/desktop/radmingui/ps_output into field theOutput check also the the specialFolderPath property if you do not know the user of the desktop. --set the text of field theOutput to the text of URL file:/etc/bashrc an url has no text: set the text of field theOutput to URL file:/etc/bashrc alternative (simpler) form: put URL file:/etc/bashrc into field theOutput put /Users/guest/Desktop/radmindgui/ps_output into theFile puts it as a string, so theFile contains just the path to your file. Use the URL form: put URL file:/Users/guest/Desktop/radmindgui/ps_output into theFile get the fifth line of URL file:/Users/guest/Desktop/radmindgui/ps_output put it into field theOutput hmm... this should work as far as I see it... maybe there are no five lines in that file? maybe wanna quote the field name (for excluding all possible errors): put it into field theOutput I tried this with an http URL, and it worked fine. The files in question have been checked for the proper permissions (world-readable). I even tried creating a new stack and testing the code in there. Don't see any clues from previous posts to the list. Can anyone see what I'm doing wrong? well 3 of 4 isn't that bad :) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Button images script
Thanks Jim, this works beautifully. I may however end up playing with the images to get them how I want them before I put them into the substack. Yet to be decided. I noticed that the images in the substack are also resized, but when you re-open the stacks, all the images (and button images - but not buttons) are back to their original size. (I ran the script from a button and not a preopen card script.) For what I want to do this seems a bit of unnecessary processing as they would have to be resized every time the stack was opened. Do you think locking size and position (of the image) after the image have been scaled would stop this? (But then again I can see the advantage in having a larger image to size as needed in different options within a stack - as I think aloud). Thanks for sharing the script. It is helpful to see how others approach problems. cheers Greg Greg, Here is a utility which I use to deal with buttons in the main stack whose image icons are in a substack. It relieves you of the need of setting to set the icon id and sizing the images and/or the buttons all in one fell swoop. 1) Put all the images on card 1 of the substack (mySubstack below.) Don't worry about size or position, that will be taken care of later. And resizing may distort the proportions. Doesn't matter if they overlap. 2) Next go through the main stack (myStack below) and create buttons with *the same name as the desired image in the substack* and in the desired location on each card. Also adjust the size of the button to the desired size of the eventual image. (Actually only the width matters. The height will be adjusted to avoid distorting the image proportions.) 3) Run setUp below from the main stack. All buttons will be assigned icon numbers of the image corresponding to the button name and the image in the substack is adjusted to fit within the button. And, as a bonus, you get an image border. If you don't want the border just: set the showBorder of button tButtonName to false. You can also set the color and width of the border. You may want to tinker with the edge number of .98 below. 4) You can add images and button later if necessary and rerun setUP. 5) Thanks to members of this list for help in developing this handler. On setUpRev Lock screen repeat with i =1 to the number of cards set the defaultstack to myStack go to card i repeat with j = 1 to the number of buttons put the short name of button j into tButtonName put the width of button j into theButtonWidth set the defaultstack to mySubstack if there is an image tButtonName then put the id of image tButtonName into tImageID put the formattedWidth of image tButtonName into tImageWidth Put the formattedHeight of image tButtonName into tImageHeight put tImageHeight/tImageWidth into ratioOfHeightToWidth set the width of image tButtonName to theButtonWidth*.98 -- Leave an edge set the height of image tButtonName to theButtonWidth*ratioOfHeightToWidth*.98 end if set the defaultstack to myStack set the icon of button j to tImageID set the height of button tButtonName to theButtonWidth*ratioOfHeightToWidth end repeat end repeat unlock screen end setUpRev Jim ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Why doesn't a stack open with the UI
Jacqueline, You said: The behavior is intentional and useful. To see how your stack will run without the development environment, you can double-click it in the Finder and it will run exactly as it would if you had compiled it as an app. I have found this to be not true. I rarely use this technique because the stack does not run exactly as it would as an app. The fonts are not correct (especially the font sizes). The ask and answer dialogs don't work. And I would assume the other rev library stuff (internet, geometry, animation, ect.) won't work as well. I don't add these libraries to the stack because the application builder hangs if they are already present in the stack. Until now, I've done without an easy way to run my stack as it would as an application (short of doing an actual build). What am I missing? I would appreciate any tips you can give... John ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution