Re: Multilingual interface
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 <[EMAIL PROTECTED]> MetaScape GmbH ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Read serial data?
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 > [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: Read serial data?
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 [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: "remove from memory" doesn't
>> 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: "remove from memory" doesn't
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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: "remove from memory" doesn't
> 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Read serial data?
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 [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
database and standalone
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. -- ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Multi-linugal interface
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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Auto-sizing Text
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
Re: Building in serial number scheme
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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > [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: copy a image/binary file on a mac - digression
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 [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Type and Creator - Klaus Major
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/ > > 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 : [EMAIL PROTECTED] 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 [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
revCopyFile in 1.1.1
- 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/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Building in serial number scheme
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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: replacetext
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 ~ [EMAIL PROTECTED] > 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
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 [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution