RE: Keyboards
> From: Mike Kerner > > Well if you can type you shouldn't be looking at the keys anyway... It's fun to swap the N and M key on someone's keyboard, and see how long before they get confused. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: cross platform drawers
> From: Monte Goulding > > Don't know why the facebook link didn't work but here it is > if you are interested: > > http://www.facebook.com/pages/InstallGadget/140038149354105 So "drawers" are sub-panes that stick out to the side of the main window, the way Nvidia driver settings appear in Windows display properties? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Avoiding Global Variables
> From: Of Francis Nugent Dixon > > Hi from Beautiful Brittany, > > Thanks for your "Update and News" concerning > "Avoiding Global Variables". Where was this? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Windows 7 Question
dero...@ix.netcom.com > From: Francis Nugent Dixon > > I develop my stacks on my Mac, but have a Splashstack.exe for running > them on PC's. > > In order to find the systems disk (so I can build complete paths to my > external files), I use the command > >if the platform = "Win32" then put line 1 of the volumes > into field "PCDrive" > > and build the paths starting with field "PCDrive". > > Disk C (the usual systems disk) was always the first entry in the > volumes list in Windows XP, etc.. > In Windows 7, I now find "A" (the floppy diskette used if the user > didn't want to boot from the hard drive). > > In the comments section of the Volumes section of the Rev Dictionary, > I find : > > Disks which are physically installed or inserted into a disk drive, > but are not currently mounted, do not appear in the list returned by > the volumes function. > > If this is so, why does floppy disk A (inexistant) appear at the head > of the Volumes list ? > > Second question - does the "platform" command return "Win32" for > Windows 7 systems ? > (I don't have a Windows 7 system available to test my stacks !) > > In the face of this problem, how can I pick up the systems disk ID in > a Windows 7 system ? > > I am running Revolution 4.0.0 - Build 950 on an iMac OS 10.5.8 > > Many thanks for any pointers There are various environment variables in Windows that you might use. Both "windir" and "SystemRoot" point to the Windows OS's directory, typically C:\WINDOWS. I don't recall if "SystemRoot" was there all along, but "windir" was there since the early days of Windows; indeed, it was spelled with lower case letters so that the DOS SET command couldn't manipulate it. There's also "ProgramFiles", which typically refers to "C:\Program Files". Not sure if it's possible to configure Windows to put this on a different drive from the OS, but some Googling might come up with some more info on this. -- Ciao, Paul D. DeRocco Paulmailto:p ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Creating Mac standalone on Windows Studio?
> From: Steve King > > I know nothing at all of Macs > > I have Rev Studio (windows) and in the standalone builder there is a Mac > (OSX) tab and when I build my Windows Standalone, I also get a Mac folder. > > Is this a Mac standlone of any type? If so, how is it used. What is OSX? > > I never build for Macs, it just happens in the club this > application is for > there is one Mac user. All the rest are windows users. Yes, if you checked the box telling it to build an OS-X standalone too. Under the Mac folder, there should be a .app folder, which is the Mac application. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Adding to standard dialogs
Is there any way to modify the standard file open/save dialogs, to add things like checkboxes? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Location of stack
> From: Jerry Daniels > > You could also hide the stack on preOpenStack then do your > business and show the stack on openStack. That sounds like it's worth a try. Thanks. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Location of stack
> From: Sarah Reichelt > > No, in that case, it should work fine, except that your users > will see the window flash up and then move. > > A compromise might be to set the loc in both handlers. Then it > will appear almost in the right place and then shuffle a little bit. Alternatively, is there a way to know in advance how much to twiddle the vertical location by? It's 12 in my system, and I assume that's half the height of the non-existent menu bar, but I expect that varies depending upon the screen resolution or something-or-other, just as it would under Windows. There really ought to be a clean way to get a program to remember its window location without momentarily appearing at the wrong location whenever it's opened. It surprises me that the menu causes problems on the Mac (including all the weirdness about menu items being moved around) that don't occur on Windows, given that Rev is descended from Hypercard, a Mac program. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Location of stack
> From: Sarah Reichelt > > I'm guessing your stack has a menu. On Mac stacks, Rev does some funny > business to hide the menu buttons off the top of the stacks window and > create a real Mac menu. But this doesn't happen immediately. > > If you set the loc in a preOpenStack or startup handler, the menu bar > will not have been hidden yet and the stack will effectively be > taller. If you set the loc in an openStack handler, then the menu will > have been hidden and the height of the stack the same as it was when > you stored the loc, so it will work as expected. > > One workaround is to check if there is a menubar and, if so, check if > there is a difference in height between the stack and the card. If > they are the same, then the menu has not yet drawn and you need to > compensate for this manually. Thanks, Sarah. If I do it in openStack instead of preOpenStack, will it still position the window before it's first displayed? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Location of stack
In my program, I write the location of my stack (among other things) to a text file on exit, and then read it and set the location on startup. This works correctly on Windows, but on the Mac, the window moves up by 12 pixels every time. This happens both when I run the .rev file or when I run my standalone. I use 'the location of stack "main"' to get and set the location. I'm using Rev 3.5. Is this a known bug? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: use-revolution Digest, Vol 80, Issue 16
> From: Richmond Mathewson > > Yes; it does remind me of "My Computer", "My Documents" and so on, which > has always struck me as rather childish. Like "My Weekly Reader". -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: Graham & Heather Harrison > > . As I have read (this thread or elsewhere) the handling of > Externals is different in the IDE and standalones. From the > discussion between Jacque and Paul this is not straightforward, > and is not handled in the documentation. It would appear that the > script as provided would need to upgraded to work in both environments. It's not the externals that are treated differently between the IDE and a standalone, it's the fact that in the IDE the application stack doesn't receive a "startup" message. If you choose to use a "startup" handler to construct an external name that varies from platform to platform (i.e., foo.dll vs. foo.bundle), it will only work in standalones. However, if you're not making standalones (or are making one for only one platform), then this isn't an issue, and you can merely set the externals property of your main stack manually, using the single pathname appropriate to the platform you're running on. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: Thierry D. > > A guess : your external is launched from another stack. > > A second guess : you have already launched your external before > starting your stack, > or say other way, the previous time you launched your external, > it didn't close > properly and keep running in the IDE. I figured out what was going on. In the standalone, the "startup" handler executes properly, and my external gets loaded from the adjacent "externals" folder. In the IDE, my "startup" never gets called, so the property isn't set, but a long time ago I stuck the external into Revolution's "externals" folder, so it was using that instead. Problem solved, I guess. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: J. Landman Gay > > > If so, then it looks like I could > > simplify my code, and just do everything in the "startup" handler. > > That's what I do. :) Okay, now I'm a little puzzled. I removed all the old stuff about creating a template stack, adding the externals property to it, and then using it to create a dummy stack. I then added the following code to my main stack script: on startup if the platform is "Win32" then set the externals of stack "main" to "externals/midi.dll" else set the externals of stack "main" to "externals/midi.bundle" end if end startup I can now successfully call my external, both under the IDE and as a standalone. However, when I examine the property sheet for my main stack under the IDE, the property doesn't exist. If I go into the Message Box and type put the externalPackages of stack "main" to see what's actually loaded, it lists nothing either. Yet it must be there, because it's working. Shouldn't both properties exist? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: J. Landman Gay > > > As someone who's just learned enough of Revolution to write one > rather basic > > app, I'm having trouble understanding the documentation on the "startup" > > message. The docs mostly seem to be about U3 drives, which is > irrelevant, > > but the example implies that in a non-U3 situation the mode parameter is > > empty. > > The mode parameter only applies to U3 apps. It isn't needed or used any > other time, and was only added later on when Rev began supporting > U3 builds. > > > But then there's this: "If the application is opened with multiple > > stacks, the startup message is sent to the first stack opened." > Does this > > mean to imply that something different happens if there's only > one stack? > > No. The first stack, even if it is the only one, gets the startup > message. Startup is only sent once, immediately on launch, before any > other messages or actions occur. It's the first thing that happens, > before any stacks load. > > > If not, does it get sent before preOpenStack? > > Yes. Before everything. > > > Do I understand your example to > > mean that it happens before the externals are loaded? > > Yup. Which is why it's the only time you can set externals, because no > stacks are loaded yet. Startup is like ground zero. After that, the > first stack loads (with its newly set externals) and by then it's too > late to change its externals. > > > Does preOpenStack happen after the externals are loaded? > > Yes. > > > If so, then it looks like I could > > simplify my code, and just do everything in the "startup" handler. > > That's what I do. :) Thanks. That makes my life a little easier. Perhaps they should hire you to write their docs. ;-) -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: J. Landman Gay > > Startup is the only time you can set the externals of a stack and have > it work. The handler will never trigger during development because the > IDE gets the startup message. But when running as a standalone, the > mainstack will get a startup message and the externals get set > correctly. Then I just need to remember to put the external files in the > correct relative location in the standalone folder before shipping. As someone who's just learned enough of Revolution to write one rather basic app, I'm having trouble understanding the documentation on the "startup" message. The docs mostly seem to be about U3 drives, which is irrelevant, but the example implies that in a non-U3 situation the mode parameter is empty. But then there's this: "If the application is opened with multiple stacks, the startup message is sent to the first stack opened." Does this mean to imply that something different happens if there's only one stack? If not, does it get sent before preOpenStack? Do I understand your example to mean that it happens before the externals are loaded? Does preOpenStack happen after the externals are loaded? If so, then it looks like I could simplify my code, and just do everything in the "startup" handler. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: J. Landman Gay > > > The dummy stack trick is just a clever work-around to allow you to load > an external on demand. It isn't required. It sounds like what changed > was the standalone builder rather than the way externals work, but I'm > not sure either how that works under the hood. > > Sometimes I wish that dummy stack trick hadn't been announced. It's very > handy when you need it for some reason in particular, but it causes a > lot of confusion too. I never use it. The reason I've been using it is that I'm building externals for Windows and OS X, and the name of the external file (the extension, actually) is different. This means I need to run a bit of Rev code to build the correct pathname, using ".dll" under Windows and ".bundle" under OS X. You can't do that if you make the pathname a static property of the main stack. Another way to do it is to build one external, then edit the property, and build the other. But that makes the process of building the external, something that one may do over and over, very tedious. I posted a feature suggestion in the forum that you be allowed to leave the extension off, and have the run-time library automatically add the extension appropriate to the platform when it loads the extension, so that this would all be unnecessary. Alternatively, the action of saving the standalone could supply the correct extension. Or, the stack could be given separate properties for the externals for different OSes, so you could set all of them differently. If you have a better way to deal with this in the present version, I'm all ears. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: J. Landman Gay > > I don't think so. As far as I know, nothing's changed in the way > externals work in years. There have been some new ways of forcing them > to load ("new" as of a few years ago,) but the underlying principle of > it is the same as always: externals only load when a stack is first > opened, and the path to the external must be correct. Now how you manage > that can be done several ways, from simple to complex, but they all do > the same thing in the end. I noticed a change when I moved to 3.5. Formerly, before building the standalones, I had to remove the dummy stack that contained the external from memory, or it wouldn't work when I started the standalone. Now I don't have to do that any more. I don't understand what's going on under the hood, but that made building standalones easier. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: User Extensions/Externals
> From: Graham & Heather Harrison > > Does this mean that using an external is not just a case of > putting it in the appropriate library and Voila!? In that case I > will have to look at these lessons… I don't know what the instructions you followed said, but you need to bind the external to your app by setting the "externals" property of a stack to the path to the DLL or bundle. It's possible to set the property of the main stack manually, and then save the app; when you restart the app, it will load the external. However, for cross-platform apps the external name will be different (foo.dll versus foo.bundle), so you have to do something a bit uglier, typically with some code in the preOpenStack handler of your main stack: if "ExternalWrapper" is not among the lines of the stacksInUse then set the name of the templateStack to "ExternalWrapper" if the platform is "Win32" then set the externals of the templateStack to "externals/foo.dll" else set the externals of the templateStack to "externals/foo.bundle" end if set the visible of the templateStack to false create stack start using stack "ExternalWrapper" end if This causes the name to be determined at runtime, but by then the main stack is already loaded so you have to attach the external to a separate dummy stack. You should also delete the dummy stack in your main stack's closeStack handler. At least this is how it's done in 3.5. I don't have 4.0. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: [OT] GameOver Mr. Jobs
> From: Richmond Mathewson > > After the famous "1984" commercial by Apple it is all rather sad to see > Steve Jobs in the role of all-knowing, all-seeing dictator. > > The fact that some engineers have managed to crash Android through > the Iron Curtain has got to be good; and, I hope, will make Steve Jobs > "go for a Gorbachev" rather than the North Korean option. You mean, Mikhail Gorbasteve or Kim Jobs Il? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: [OT] GameOver Mr. Jobs
> From: bar...@libero.it > > Nothing is sacred! > You can now run Android and all its programmes on your iPhone! > > http://www.theregister.co.uk/2010/04/22/android_iphone/ > > I probably will not be the first with this notice but I can try. They call it "duel-boot". Is that a Freudian slip, or just an ordinary one? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: OT: Microsoft is really annoying
> From: Bob Sneidar > > I suspect the "something right" you are doing is keeping > everything currently patched, using at least one if not two > firewalls, and installing and maintaining a good > Anti-virus/anti-spyware application. I am an IT guy, and I can > testify to the exact same thing. But might I offer this, that the > successful defense betrays the attack? If it weren't a real > problem for everyone, you wouldn't have needed to do any of those things. Yup, that's pretty much what I do. My only point is that if you use Windows correctly, it's quite secure, so anyone who knows what he's doing, and who needs a Windows box to test cross-platform stuff, needn't regard it as automatically having cooties. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Same file?
> From: Richard Gaskin > > Andre wrote: > > > put the md5digest of url ("binfile:" & path1) into tMD5file1 > > put the md5digest of url ("binfile:" & path2) into tMD5file2 > > if tMD5file1 is tMD5file2 then > > return true > > else > > return false > > end if > > Andre, you've been programming too deeply for too long. :) > > MD5digest is great for storing small signatures of large files, but > since the function reads the full file contents it can simply use: > >if url ("binfile:"& path1) is url ("binfile:"& path2) then >... I expect that loads both files into RAM in their entirety before comparing them, while computing a digest of each doesn't. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: OT: Microsoft is really annoying
> >> Bernard Devlin wrote: > >> > >> I think all Windows installations must be assumed to be toxic. > > On 16/04/2010 21:05, J. Landman Gay wrote: > > > > Yes, that's the assumption I use too. It's also the reason I'm so much > > in favor of running Windows in a virtual machine. In Parallels (and > > maybe other emulators too, I'm not sure,) you can set a sort of > > bookmark for the current state of the machine, and when you're done > > working you can revert to that state. That removes anything that's > > been installed on the virutal hard drive since the state was set. > > > > So I run Windows virtually, keep no important data on it, use it only > > for testing Rev apps and creating installers, and never use it to for > > email or web browsing. I've got virus detection software installed but > > it has never identified any malware. Rev's direct internet access > > works fine and I don't mess with anything else internet-related. So > > far, so good, and I haven't had to revert to the saved state yet. > From: Richmond Mathewson > > I run XP on a heap of old junk (Well; a COMPAQ Pentium 3, 256 MB RAM); > headlessly - administered via my G4 Mac; > it has no internet connexion and is ONLY there for checking > Windows builds. > > Nevertheless I am already, after 3 months, getting endless error > messages in the middle of the Desktop. I really > wonder whether it is worth the effort reinstalling! I use Windows day-in, day-out, for software engineering, electronic engineering, math, Photoshop editing, mapping, and constant web browsing. I've been a heavy Windows user since 3.0, and am currently running XP and Win7 on three machines. Although I have a virus scanner, I don't even bother to run it in the background, only invoking it manually when I download an install file from the internet. Despite all this, I've _never_ had a virus or any kind of malware. My only system failures have been the occasional result of a RAM or hard disk failure. So either I'm doing something terribly right, or you all are doing something terribly wrong. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Zip Behavior on Windows
> From: Sivakatirswami > > I regularly ship apps to some users by simply packaging it as a zip > file. Mainstack, engine components all in a folder, right click, > compress ship... > > On the Mac the user double clicks and a folder pops up, neatly > extracted, all components inside next to the main stack and engine. > > Now something has changed on windows. if the user double clicks on the > zip file WinZip is exposing the contents of the package in still > compressed form. Naive users are baffled. If they unzip the .exe file > they see in there, it still doesn' work. > > I left a query at the winzip site and got a nice prompt response saying > "It has always been like this" (why are we only now getting problem > reports then?) that was 2 pages long! Ouch. > > I could ferret out that we now should be making a "self-extracting > archive." I don't know if that is still a zip file or not. > > Of course some will say "your really should be using a windows > installer..." but, does it need to be that complicated? A self-extracting archive is a small executable with a ZIP appended to it so that when run, it extracts itself. This technique has been around pretty much since the dawn of PKZIP for MS-DOS. Also, WinZIP is a third-party app. Modern versions of Windows have ZIP support built-in, but it has the same limitation in that you have to do more than just double-click it to extract it. However, you can right-click it and select "Extract All", which isn't too much harder. I don't know if WinZIP includes the ability to create self-extracting archives, but I expect there are some freeware programs that do that. Installers are nice because they do other things. On Windows, they may create desktop icons, Start Menu items, Quick Launch icons, file type associations, and other registry entries, not to mention cleaning up any previous versions. If you don't need any of that, a self-extracting archive will be sufficient. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Clang: the thought behind Apple's insistence upon Xcode
> From: Douglas > > The iPad uses an ARM processor, not a G4. > The ARM chips were first utilised in the Acorn Archimedes computer range. > They were designed by a partnership of Acorn Risc Machines (ARM), > Motorola and IBM. > The instruction set is very compact, therefore easy to learn. Most > coders built up libraries of standard routines quickly and easily. > I assume that they have not really seen any need for any massive > increase in the instruction set, but I haven't seen anything about them > for quite some number of years, so I really don't know. > Multi-core ARM's now, that would be something else - I predict that may > be in Apple's future. I wouldn't call the ARM's native instruction set "compact". It's actually fairly space-inefficient, which is why they later invented the Thumb instruction set for the ARM7 processor. It gives up some of the complete orthogonality of the ARM instructions for better code density. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: specialfolderpath("preferences") on windows
> From: David Glasgow > > I wrote script to save a text file to > specialFolderPath("Preferences") and then reference it on > subsequent startups. I had planned to write an alternative bit > of script for Windows using specialFolderPath(26), but hadn't > quite got round to it. > > I am using Rev Studio on Mac, so I have to build check, build > check etc. on Windows. I built to check something else on > Windows, only to find that the specialFolderPath("Preferences") > script seems to be working. (It's usually things I expect to > work, not working, not the other way around, so this was an > unusual experience). > > The file was saved, and found on subsequent startups. So is > specialFolderPath("Preferences") cross platform? If so, where is > it? I tried searching for my file but couldn't find it. No, it's not supported in Windows. Entering put specialFolderPath("Preferences") in the message box returns nothing in Windows. So your file would have gone into the root if you added a slash and your file name. On advice from folks in the forum, I use specialFolderPath("asup") on the Mac, and specialFolderPath(26) on Windows, and append a slash and my app name, to get the name of the folder to put my app preferences in. If the folder doesn't exist, I create it. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: How to generate a runnable Mac standalone from Windows
> From: Josh Mellicker > > I didn't check to see if DOS had a chmod command, if it doesn't, the > code I posted won't work. There is no execution permission bit in Windows that needs to be set, so skip that line if the platform is "Win32". -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Comma-delimited values
> From: wayne durden > > I hear your pain on the CSV issue. However, wishing it would die I think > deserves a more careful reflection. Sometimes the devil you know is worse > than the alternative... It's only difficult to deal with CSV if you want to make a totally general importer, with no foreknowledge of the type of data the files will contain. But in most real-life situations, you'll never need to deal with a double quote or newline in the data, so using newlines to separate records, and double quotes to escape commas within records, is a perfectly workable definition of the CSV format. It would never occur to anyone to use CSV to represent records containing binary data, so it isn't much more of a restriction to rule out control characters and double quotes. Your application is a typical example; so is using CSV as an interchange format for GPS logs. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Comma-delimited values
> On 08/03/2010 19:44, Gregory Lypny wrote: > > I'm creating an app that imports comma-delimited tables. A few lines might look like this, where there are 14 items per line. > > "Mon, Jan 18 , 2010",9:14 AM,130557,4319,Trade,Buy,X,135,8.25,10,-82.5,1417.5,20,10 > "Mon, Jan 18 , 2010",9:14 AM,130558,4371,Accept,Your ASK,X,135,8.25,10,82.5,1582.5,0,10 > > My problem is that Rev treats each date in quotes as three > items rather than one. I convert the comma delimiters to tab by > setting the itemDelimiter to comma and then running the lines > through nested repeat-for-each loops as > > repeat for each line thisLine in dataTable > repeat for each item thisItem in thisLine > put thisItem& tab after newLine > end repeat > -- more stuff here > end repeat > > I end up with > > "Mon (as the first item) > Jan 18(as the second) > 2010" (as the third) > > Any suggestions as how I might get the date treated as one item? Add an inQuotes flag, with an initial value of false. For each item, if it has a quote in it, toggle the inQuotes flag. Then, if inQuotes is set, append a comma instead of a tab, to put the item back together again. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: File Associations?
> From: cott Rossi > > I'm still trying to get Windows file associations on Vista worked out over > here and am looking for suggestions. > > I've set up registry entries based on Ken Ray's tips: > <http://tinyurl.com/yfmdsht> and everything appears to in place. But > documents created by my app continue to show up as generic icons. > Double-clicking them brings up the "What program do you want to use to > open...?" dialog and my app is listed there, but I can't get Vista to > properly display the document icon contained in the standalone. Works on my XP system, but I didn't use those function calls to set it up. Instead, I manually created the association by right-clicking a file, selecting Open With, and navigating to my program. You might try removing all the keys you created with Regedit, manually create the association, and then see what the OS put there, so that you can make your program do the same thing. As to your second question, I've never tried the splash/data paradigm, so I can't help. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
SendCardMessage questions
1) Does this require a freshly allocated string as its first parameter, which Revolution takes ownership of and eventually deletes? Or does it copy the data out of it, in which case the caller would have to delete it if it was dynamically allocated? 2) What context can this be called from? I would assume you couldn't call it from inside a hardware interrupt handler, because it would probably do something (allocate memory perhaps?) that's not legal inside a hardware interrupt handler. But how about in the context of some device driver thread? In particular, on Windows I'd like to call it from inside a MIDI input callback function, which isn't called by the main application thread, but isn't called in an interrupt handler either, so I assume it's a called by some thread associated with the device, or some multimedia thread in Windows. 2) What card does the message get sent to? The main stack's first card? Or does it depend upon what card is visible? What about if a dialog box is open? Thanks in advance. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: relaunch anomaly
> From: Mark Schonewille > > This script might help you: http://qurl.tk/60 (mind line wraps on the > website). > > Since it is now possible to sun VBScript woth the do command, you > might take the script apart and only use > >put tVBS & cr & "WshShell.AppActivate" && pTitleOrID into tVBS > > and > >put tVBS & cr & "WshShell.AppActivate" && quote & pTitleOrID & > quote into tVBS Thanks. Looks promising. I'm surprised there isn't a Rev command for this though. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Default font size
> From: Joe Lewis Wilkins > > I'm only running XP, so not sure about yours, but there is a > Control Panel setting that might reduce your font size. It's > under: Display>Appearance>Font Size Well, yes there is, but it affects all apps. The point is that the Revolution standalone app now uses a smaller font that everything else, and I don't know what changed. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
relaunch anomaly
The docs say that not passing the relaunch event, and not returning anything from the event, causes the new instance to terminate and the old instance to become the foreground window. When I do this under WinXP, everything works as advertised, including passing the command line parameter to the old instance so that it opens the appropriate document file, except that the window remains in the background. Is this something that varies with OS version? Is there some Revolution command to force the old instance to become the foreground window anyway? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Default font size
I have an app that I've turned into a Windows standalone. It's been under development and revision for some time, but all of a sudden something changed, and the default font size used for things like the menus changed. When I'm working on the app inside Revolution, the menu text is the correct size, but when I make a standalone, the menu text is slightly smaller. I've checked the menu group, the individual menu items, the card and the stack, and none of them have any explicit text size specified. Can anyone figure out any other thing that might affect this text size? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Test, please ignore
___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution