RE: Control browser
Yes, I have noticed this but not for a while. I put it down to digital indigestion. /H -- Anyone else having trouble with the control browser when trying to edit objects in a background? Frequently I click on an object and it immediately unselects. I can change the object via the message box (i.e., set its color or layer, etc.) and I can select it manually with the edit tool. It may be because I'm working on so many HC conversions. I've set the HCAddressing to false but it doesn't help. The same behavior occurs in Rev sometimes, so it may be HC-related. Thought I'd check. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Small scrollbars... How?
I have just inherited a .rev project with 'small' vertical scrollbars... rather cute, and actually more approriate for smaller fields. Obviously this sub-style is supported at engine level because MC displays them, so how do we do apply 'small' vscrollbars in MetaCard? And am I going to need shin-pads when I kick myself? /H ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Small scrollbars... How?
Thank you Mark... Useful to know this. /H set the scrollbarwidth of fld x to 16 On Mac, any value between 1 and 16 is valid, on Windows and Unix it is up to and including 20. -- Best regards, Mark Schonewille ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Standalone Building
IF the new standAlone builder forces the inclusion of spurious development properties to each control, I for one shall not be upgrading. Klaus answered: As far as I know this is NOT part of the process of building the standalone but a scripted Rev IDE only thingie! Jacqueline answered: Rev doesn't add development properties during the build (unless you choose to include libraries), it just checks each control to *remove* development properties that it may have added while you were working. Nothing has changed since previous versions. You can generally just remove the cRevGeneral property set and you are back to ground zero as usual. This is good. The less, the better. /H ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Standalone Building
Wilhelm: IF the new standAlone builder forces the inclusion of spurious development properties to each control, I for one shall not be upgrading. At present, at least we can set the custompropertysets to remove any spurious rev-IDE crap if migrating a stack from RevIDE to MC-IDE, but if it becomes part of the standAlone build process, that ain't good. At all. Richmond: The only time I use the Rev-IDE is to access the dictionary and build a standalone. I find it is slow to work with and intrusive, and it does stuff behind your back. Having said that, it is a clever piece of engineering... just over-engineered for me. Remember the Mini? Then they ruined it. There is no software that cannot be improved until it's unusable. /H ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: Still here
You are not alone in your preference, Shari. I'm sure that the Rev IDE is very clever (and I still use it to build standalones); I just like the an IDE that doesn't mess with the engine, customPropertySets and my head. /H -Original Message- Still here. Still prefer the MC IDE. Had to reinstall it from scratch and for a minute thought I was going to have to post a Help Me but finally figured it out and am up and running again. Thank you that we still have the choice! Shari ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: Shortcuts in the MC IDE
Hugh, did you really think I'm nuts? :-D Of course not, Klaus. But I absolutely reserve the right to be so myself. /H ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: Shortcuts in the MC IDE
These properly belong in the main menubar, not in the script editor as they have nothing to do with the script. We should keep only script-specific commands in the SE menubar. Nice idea, but I vote 'No'. /H -Original Message- Hi all, while I am changing the IDE to support DataGrids and reviving the disappeared shortcuts for debugging etc. in the Script Editor what about adding some shortcuts to the menu? Like: CMD-N for New Stack CMD-ALT-N for Create Card CMD-ALT-BACKSPACE for Celete card CMD-ALT-S for Save as... CMD-ALT-R for Revert CMD-ALT-I for Import... CMD-ALT-P for the OS Page setup... dialog Or is someone really still using the old MC page setup dialog? And whatever might come handy, proposals welcome! Hey, we can have all these new shortcuts now in Rev = 3 why not use them? :-) Any objections? Best Klaus ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Shortcuts in Script Editor with engine 3.5
Yup, on WinXP also for... well as long as I can (almost) remember (2.81?). The missing cmd.M to step-over has been an especial irritant, but I suppose I have just become used to its little ideosyncracies and use breakpoint dots instead as cmd.R still works fine. Not sure why I haven't delved into the code to restore the missing functionality. Laziness, probably. Amazing what you can get used to! /H -Original Message- Hi dear MC users, I noticed that with engine 3.5 the shortcuts e.g. the script editor like CMD-M or CMD-F etc. do not work anymore? The shortcuts are apparently directed to the MC Menubar and CMD-M will open/close the message box, CMD-F will open the MC Find dialog and NOT the script find dialog. This did work with 3.0. Someone else noticed this? Best Klaus ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: ask/answer annoyance
Since it's modal, the window is blocking and has to close before anything can be done at all outside the modal. The only thing that springs to mind is you trap cmd.period in the modal itself. 2p /H From: Richard Gaskin ambassa...@fourthworld.com Subject: ask/answer annoyance, It's bugged me for years that we can't exit a loop if we have an answer or ask dialog in it. In HC and SC you just type command-. and it exits to top, but in MC/Rev it just stays in the loop, requiring you to either keep hitting OK a thousand times or force-quitting. Arg. I've tried modifying my answer dialog, and even tried using a frontScript, but it appears that trying to use exit to top for the dialog doesn't really exit to top if it's being called from a loop; it just keeps being called. Am I missing something, or is this an engine bug? ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: Gradient tool?
Hi Richard I build a sampler stack to try it out. Will send you off-list. /H Richard asked... Anyone make a gradient tool for MC 3.0? If not I'll see what I can whip up, but it sure would be handy if it were available right now. :) ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Script Editor problems
Thank you, Ken. /H OK guys, as I'm the owner of the VW, I think I have found the problem - it appears that the defaultStack is being set in a handler which doesn't seem to need it (which for some reason didn't affect the engine 3.0 but does now). [snip] ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: Script Editor problems
Thank you Klaus... I thought it was just me! I cannot step through any lines that refer to objects as the mc script editor immediately reports an 'no such object' (or similar) error. Is becoming a royal P.I.T.A. and am resorting to writing out to .txt debugging files, beeps, msg box put statements etc just to work around it. /H Hi friends, does someone also experience this strageness? I cannot debug script that contain this of any kind!? Like in this little example: on mouseUp get 222 put the short name of this stack into s_name ## - Script Editor 1 in Variable Watcher put the name of this cd into c_name ## - card Editor card get fld field in original stack ## Error: can't find object end mouseUp Any hints are very welcome. Best Klaus Major ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
RE: Where do Command-C and Command-V get handled?
I think you mean something like this in the stack script... on commandKeyDown pKey if pKey=C then copy else if pKey=V then paste else pass commandKeyDown end commandKeyDown /H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: 11 November 2008 18:00 To: metacard@lists.runrev.com Subject: metacard Digest, Vol 61, Issue 5 Send metacard mailing list submissions to metacard@lists.runrev.com To subscribe or unsubscribe via the World Wide Web, visit http://lists.runrev.com/mailman/listinfo/metacard or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of metacard digest... This is the Metacard mailing list. Today's Topics: 1. Where do Command-C and Command-V get handled? (David Epstein) -- Message: 1 Date: Tue, 11 Nov 2008 12:43:08 -0500 From: David Epstein [EMAIL PROTECTED] Subject: Where do Command-C and Command-V get handled? To: metacard@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 In my own customized defaultMenuBar, I have included an Edit menu with my own copy and paste commands, with command-C and command-V equivalents defined using the / convention. When those commands are chosen from the menu, my copy and paste scripts are executed as expected. But when I use the command-key equivalents, my scripts are not executed, and some standard copy and paste behavior takes place instead. I can see why when Metacard's own menu is open as a palette there could be some ambiguity about which command-key equivalents have priority. But this problem occurs even when Metacard's own menu is not open. And when I press command-C, my own menubar's Edit button flashes, as if to confirm that the keypress has triggered the action that my menubar's script commands. What is governing this behavior, and how can I get my own scripts to be called when the command-key combinations are used? Many thanks. David Epstein (MC2.5 on Mac OSX 10.4.) -- next part -- An HTML attachment was scrubbed... URL: http://mail.runrev.com/pipermail/metacard/attachments/2008/3708b7fc/atta chment-0001.html -- ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard End of metacard Digest, Vol 61, Issue 5 *** ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: MC IDE 3.0
Thank you, Klaus. Anyone else noticed that their script editor fontSize keeps reverting back to 13 under win32? Perhaps resolved in v3.0.0 /H I just uploaded the new MC IDE 3.0! ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Metacard 2.5 to Revolution 2.9 glitch
Make sure that each of your 2.5 stacks has been saved in the new format. /H - Original Message - Date: Fri, 11 Jul 2008 10:53:02 -0400 From: David Epstein [EMAIL PROTECTED] Subject: Metacard 2.5 to Revolution 2.9 glitch I am trying to use in Revolution Media 2.9 some stacks I developed in Metacard 2.5, but something is not working. I open Stack A, which sets up my menus and starts using 4 other stacks that contain my scripts (call them C, D, E, and F). I then open Stack B, which is a document stack, which has a few short handlers that call handlers stored in my 4 stacks-in-use. This has worked reliably in Metacard. In Revolution, when I open Stack B, I get an error message. Stack B has an on openField handler that calls the on openMyField handler in Stack C. The error message says can't find handler openMyField. But when I look in the message box I see that Stack C is indeed in use, and when I look at Stack C's script I find my openMyField handler. The same glitch arises for other handlers that call handlers in scripts of my stacks in use. Is there some file format change that is affecting things? Or does the fact that my stacks are Metacard files cause a problem? Can anyone offer a diagnosis or remedy? Many thanks. David Epstein -- next part -- An HTML attachment was scrubbed... URL: http://mail.runrev.com/pipermail/metacard/attachments/20080711/50718940/attachment-0001.html -- ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard End of metacard Digest, Vol 57, Issue 2 *** No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.4.7/1544 - Release Date: 10/07/2008 07:37 ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: Check Write Protection
Scott Rossi asked: On Windows, how does one check if a volume is write protected, such as a CD or some other locked volume? Related: how does one check the write status of a target folder without resorting to checking the detailed folder info of the target folder's parent? What we do is write a dummy text file and test for success or failure... If it fails it's either a write-protected medium, or the user does not have write-permissions. As for the related check for write status, you should be able to use shell(attrib) to get a file's read-only status (command prompt C:\ HELP ATTRIB for the syntax needed). I tried starting with this, but it kinda falls over... on mouseUp answer file choose file: replace / with \ in it get shell(attribRit) end mouseUp Sorry. Maybe someone else has more insight! /H --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
Re: Choosing colors from a modal
answer color with 255,0,0 MC never ceases to amaze. How do we decode the returned value of 'answer effect'? base64Decode seems to contain actual text, but not in any form that appears usable. /H --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/2002
Re: specialFolderPath
get specialFolderPath(35) -- common Application Data folder get specialFolderpath(26) -- user's Application Data folder Warning: This works fine for me on XP. But I just tested the function with these values on NT 4.0 and Metacard crashed. This may be my machine as my NT installation has been acting up recently. Perhaps someone can confirm whether this is working reliably on other Windows versions. Both good on my Win2000. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: mailto:[EMAIL PROTECTED] Web: www.flexibleLearning.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/2002
Re: Spell Checker in MC
Has anyone on the list developed or found a spell-checker that works in MC? Try http://www.flexibleLearning.com/xtalk.html for a spellchecker designed for use with Metacard and containing about 130,000 words (390k). Also available, dictionaryBuilder to quickly create customised dictionaries. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: mailto:[EMAIL PROTECTED] Web: www.flexibleLearning.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/2002
Re: Dial-up dialog (was Internet Access)
Scott Rosse wrote: ...simply attempting to launch a URL on an unconnected computer opened the dial-up app... Christoph wrote: OK. But how could the dial-up app on the Mac or with Wind get closed? Agreed. Also, I believe auto-launching is a result of your personal connection settings. Win95 seems to access its dial-up dialog by issuing a command line to a .dll (assuming I have interpreted the regedit entries correctly) so there is no program to launch, unlike Win2000 wich uses rasphone.exe. Hey ho. So this feature will simply not be supported on all flavours of Windows. Unless anyone has a bright notion? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
Dial-up dialog (was Internet Access)
Hi List: Please... What is the registry entry to find the program needed to launch the user's dial-up connection dialog? I can use queryRegistry .rnk for Win2000 to find rasphone.exe (works great), but it is not listed on our Win98 machine. So is there some magic key to cover 95, 98, NT, 2000, ME and XP? There MUST be a way, but darned if I can find it! Aaaargh! Tearing what's left of me hair out, so ANY help would be appreciated! /H --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
Re: Internet access
Works here, Hugh. (Win 2000) Thanks, Ken! Anyone else had a chance to confirm this? I am trying to make semi-automatic Internet access available on a Win-based CD ROM program and would very much appreciate it if you folks would try this one-liner ... on mouseUp launch rasphone.exe end mouseUp Does it work for you? It should allow you to connect if off-line, or disconnect if on-line. Please drop me a line saying if it works for you and your setup (95, 98, ME, NT, 2000, XP) or if you foresee any problems implementing it. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
Internet access
Greetings all: I am trying to make semi-automatic Internet access available on a Win-based CD ROM program and would very much appreciate it if you folks would try this one-liner ... on mouseUp launch rasphone.exe end mouseUp Does it work for you? It should allow you to connect if off-line, or disconnect if on-line. Please drop me a line saying if it works for you and your setup (95, 98, ME, NT, 2000, XP) or if you foresee any problems implementing it. Many, many thanks in advance. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
Re: dateCalculations before 1970 and after 2037
Does anybody know how to work around MCs inability to calculate dateTime before 1970 and after 2037??? Regards, Ernst Use the centuryCutOff function. /H --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
Re: mailTo problems
Ken, Eudora 5.1 (running Win2000) although the same problem is also reported on Win98 with Outlook, and on XP with Outlook Express... put word 1 to -2 of \ queryRegistry(hkey_local_machine\software\classes\mailto\shell\open\command\) \ into tPath launch mailto:; tAddress with tPath /H Hugh, What email program is attempting to be launched? Ken Ray Hi Ray... Same problem (Win2000)... process is open but email prog not displayed just hangs. Then OS msg Which program do you want to use to open the document email address? is displayed! Dunno... Is launch broke? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
mailTo problems
This standard mailTo handler is meant to launch the user's default email program and open a new email with the recipient's address under 95, 98, Millennium, NT, XP and 2000. It is causing problems as mc complains about 'process already open' with no email program on screen, or in XP something about wrong params. on mailto tAddress,tSubject put word 1 to -2 of queryRegistry(hkey_local_machine\software\classes\mailto\shell\open\command\) into tEmailPath if tEmailPath is not empty then if tSubject then launch mailto:; tAddress ?subject= tSubject with tEmailPath else launch mailto:; quote tAddress with tEmailPath if the result then get smartAnswer(Mailto,the result cr Please close your eMail program, then try again.,OK) end if else get smartAnswer(E-mail totAddress,Sorry, I cannot find your e-mail program. Please send e-mail manually.,OK) end mailto It was working fine, but as the CDROM is due for release in a couple of weeks time, this is urgent! Does ANYONE have a handler that works reliably across these operating systems? PLEASE do mail me off list if you have something /anything to help us out! Many, many thanks in advance. Aaaargh! /H --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
Re: mailTo problems
Hi Ray... Same problem (Win2000)... process is open but email prog not displayed just hangs. Then OS msg Which program do you want to use to open the document email address? is displayed! Dunno... Is launch broke? I don't know if this works on XP, but here's my handler... perhaps you could try it and see if it worked? on GoMail tMailTo switch (the platform) case MacOS send mailto:tMailTo to program Finder with GURLGURL break case Win32 -- First, read the WIndows registry to get the default calling command for HTML files put queryRegistry(HKEY_CLASSES_ROOT\mailto\shell\open\command\) into tMailApp if tMailApp = then exit STS_GoMail if (quote %1 quote) is in tMailApp then replace quote %1 quote with tMailTo in tMailApp if %1 is in tMailApp then replace %1 with tMailTo in tMailApp set cursor to watch open process tMailApp for neither break end switch end GoMail Let us know how it went... /H --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001
EXT.dll and mc2.4
HELP!! I get an initialisation error when trying to use EXT.dll with mc2.4. Works fine with mc2.3 Is there a problem with this configuration? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001
Re: Clicking on movies
Jeff Reynolds wrote: does anyone know what the message that might be sent from a quicktime movie when you click on it when alwasybuffer is set to false. A click on the movie causes it to pause. Any ideas of how to trap this and stop the pausing of the movie? I seems to recall this is part of QT behaviour and not under mc control. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
RE: I call it a bug, do you agree?
Hmm I thought there was a flag for this so one could do either statistical or common rounding. Is it a property, a function, or am I imagining things? I agree that this is odd behaviour and that '5' should always round up (as in FileMaker and Excel): round (39.105,2) should round up to 39.11 because round (39.15,1) rounds up to 39.2 You could 'cheat' by always adding 0.1 to your amounts. This would oblige a 5 to think it's a wee bit bigger and so respond appropriately. Alternatively, set all the source data to 4 decimal places (set the numberFormat to 0.) and the final calc to 2 (set the numberFormat to 0.00). /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Printing in columns
Sjoerd wrote: I was thinking of another solution: Making a table with two columns of 50% width. I know, this only guaranties that both columns are of the same width, but still... I didn't know there was a 'column' tag, or are you saying not all browsers support tables? Not all Browsers support the column tag which, as I understand it, is a Netscape thang only. All Browsers support tables, of course, but writing a parsing routine to convert tabs to HTMLtables is a pain. What about writing your data to a temp.doc and using EXT.dll to print it? This would handle arbitrary length documents. I did write a routine to generate htmlTables from tabbed mc field contents. Let me know if this would be of use. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Field attributes
I have a situation where I have Hebrew text in a field. [snip] My question then is this: Is it possible to define a special type of field where I could alter the way MC dumps text into a field so that it goes in from right to left instead of left to right? Is the code which performs this function something which can be edited? Where would I find it? Secondly: Has anyone dealt with this type of thing before and has a workaround? Philip: Short of using hard carriage returns to force line breaks (which is what we are having to do here), I don't think that right-to-left word wrap is available. Had the same problem with rendering Arabic, but worse for various boring reasons! Which font are you using, btw? The one requested we apply here (DavidD) incorrectly displays some higher level characters when copied from MSWord into metaCard. Do you get this problem as well? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Control technology
Has anyone used metaCard to control external devices? The need is to flash various combinations of LED's and beep on right / left speakers (don't ask!) Many thanks. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Exporting Styles RTF-HTML Revisited
Sivakatirswami wrote: There was a thread in January relating to exporting text from Metacard and the woes of retaining styles in the absence of RTF translation. There is a metacard export utility including RTF at www.flexibleLeaning.com in the XTalk section. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Printing Field Text
OK, I am just starting today to try printing from MC. Very simple task: To make a button that prints the text from two fields of card field 1 is a subject/header with a short reference field 2 is a field with a lot of text in it...could vary from a few K to thousands of words.. How do I just dump these two fields to the printer? I looked through the index and all I saw was just the ability to print whole cards...but, obviously if your card has a field that scrolls down to pages and pages of texthow do you print that? I downloaded mcrg.mc but, what is needed is much simpler than that, and I couldn't see in the report generator how to configure it for just a text field export to printer routine. You could look at the 'Tools:Print Field' menu. This paginates arbitrary length text and, as you say, 'dumps to printer'. An alternative is to process the required text to be displayed and printed in a browser as a 'helper application' which I've most useful. Requires 3 steps: convert the text to html, save as a temp.htm file and launch. This has the advantage of being cross platform as well as providing a preview with the option of archiving the generated reports. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Spell Checker / Thesaurus
Does anyone know of a Spell Checker/Thesaurus/Word Association Database/XCMD/External which I could use with Metacard ? Gary: I think Richard Gaskin was looking into this a while ago. Meanwhile, there is a MetaCard spellchecker at www.flexibleLearning.com in the XTalk section. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
numToText() [was numToPounds()]
An up-date to my earlier post. Goodwillware numToText requires MetaCard and returns a number in words. Decimals are rounded to 2 places. 1. Syntax numToText (tAmount, [tMajor], [tMinor]) tAmount : From 0 to 999,999,999,999,999,999,999,999,999,999,999.99 [tMajor] : Optional - Defaults to Dollar if not specified [tMinor] : Optional - Defaults to Cents if not specified 2. Examples put numToText (1,020.56) into fld 1 get numToText (587946,Pound,pence) get numToText (fld 1,Franc,Centimes) if error is in it then answer it else put it into fld 2 3. Eror handling Not a number : Returns error: not a number Number exceeds limit: Returns error: too big Let me know off-list if you'd like a copy, or swap me for your own. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: tabStops
Is there a way to limit the number of tab stops that a line can have? I would like to only have a user be able to input the tab key four times per line in a field...they seem get confused when they see that they can keep tabbing. Is there some sort of tabStopsNumber or some sort of limiting thing I can use? Hi sims! Test the keyStroke and ignore further tabs once the limit is reached. This allows 4 tab strokes per line: on tabKey set the itemDel to tab if the number of items of the selectedLine = 5 then exit tabKey else pass tabkey end tabKey /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: palette drag region
Hi Richard: Any way to make a palette in MC with the drag region on the left side rather than the top? If not in the box, anyone have a cross-platform external for this? I cannot help with a true palette, but this may be an option and it is cross-platform. Create a graphic as a 'false grab-bar' and set the script to the following: local tGrab,xOff,yOff on mouseDown put true into tGrab put item 1 of the loc of this cd - item 1 of the mouseLoc into xOff put item 2 of the loc of this cd - item 2 of the mouseLoc into yOff end mouseDown on mouseMove if tGrab then if the mouse is up then put false into tGrab exit mouseMove end if put item 1 of the screenMouseLoc into smLoc1 put item 2 of the screenMouseLoc into smLoc2 set the loc of this stack to smLoc1+xOff,smLoc2+yOff end if end mouseMove /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Massive Search and Replace in Binary Files
I am facing a challenge with some very large QuarkXpress documents that need to be repurposed for either "simple" text distribution, Web distribution or MC eBook distribution, where we want to remove all non-cross platform "Diacriticalized" characters e.g. "jna" should be come "jnana" and iva becomes Siva Go for it. Try using the 'replace' command and 2 paired variables... put ",," into oldChars put "S,n,a" into new chars repeat with i=1 to 3 replace char (item i of oldChars) with char (item i of newChars) in tText end repeat The only drawback will be the available RAM you have available to store such a large text file in memory during the operation. Maybe you will have to break the original file down into more mamagable sized portions, or do a read/replace/write in chunks. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Pentium 4 / Millenium w/mc2.32
David wrote: This sort of thing regularly comes up, and I have in the past naturally taken the position the MC should sort this out and stop "blaming" the OS, or hardware manufacturers... as it would then improve and therefore deliver for us all a better product. Counter argument is that the amount of effort required to track down and fix these sort of "bugs" in a competitors product is *huge*. We all know how long it can take to find the problem in systems we create. We get a better product if MC concentrates on what they deliver very well - regular new feature updates, and real world cross platform delivery (the new features in 2.32a are a point in case). Where would you rather this investment be put? I do appreciate the technical backup required to maintain implemented features, especially when the environment changes, but if, as Scott says, mc does no processing when using QT in a player, how come QuickTime itself is fine when MetaCard's implementation is not? And we are not really talking '3rd Party' here with Pentium4 and Millenium, rather new user-systems as tested on a wide range of setups at Gateway Computers. So, if QT can do it and mc uses QT, why is mc falling over? Multimedia is a vital aspect of MetaCard and QuickTime technology supports this, so it is not a trivial situation I feel. Bottom Line: Maybe we are unlucky in our selection P4/ME boxes. Perhaps others have found no incompatibility problems. It would be good to know as it impacts on what we can reliably offer clients and what workable advice we can give them. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Midi problems in 2.3
Klaus wrote: i dont know much about MCI, but i would suggest the following: If possible, use Quicktime :-) So you can just set the filename of a player to your .mid-file and start that thing. Would take max. 2 lines of code and works crossplatform! (OK, this will not be very useful to you if you do not want to use QT for what reason ever..) An associated situation with QT/mc2.32 running under Millenium... Some Millenium machines play fine whilst others do not, and when not, playing the same files direct with QT Player is perfect so drivers would not seem to be the issue. Has anyone had this, and more importantly figured out what the problem was/is and how to resolve it? Aaargghhh! /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: scrolling question
Try something like this, Richard (not tested and off the top of me head): on mouseUp if the pendingMEssages is empty then doScrolling else stopScrolling end mouseUp on doScrolling set the scroll of fld 1 to the (scroll of fld 1 +1) send doScrollingto me in 1 end doScrolling on stopScrolling repeat until the pendingMessages is empty cancel item 1 of the pendingMessages end repeat end stopScrolling I've seen this before, but could not find it in the archives... Suppose I want a stack with one field and two buttons, named "Start" and "Stop." When I click "Start", I want the field to auto-scroll and keep scrolling, until I click the "Stop" button. Obviously a simple repeat loop in the Start button won't work. Anyone done this? Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Load timeout freeze delay
The problem: If mc starts up with an internet connection that is cancelled then resumed, both the 'url and 'load' command involve the script waitings until the request fails (takes about 30 seconds) before executing the next line. Kevin wrote: Not sure: how about checking if there is a connection before running the load command? E.g. use sockets to perform a simple download of something and set the socketTimeOutInterval to be very short. I'm not a 'socket person'. Does anyone have such a wee beast available? On a related note, 'url' and 'load' fail when connecting to the internet AFTER mc has started up, requiring the user to exit completely and re-launch. Seems a bit harsh! /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Load timeout freeze delay
On 3/2/01 12:29 pm, Hugh Senior [EMAIL PROTECTED] wrote: Is there any way to reduce the timeout for the load and url commands? Problem: If you have an internet connection when mc starts up, then disconnect, using either of these commands involves an unacceptably long 30 second delay before the script continues (ie the program appears to freeze but hasn't). The same apparent freeze delay occurs even if you reconnect. Kevin answered: Use the load command instead, and if it hasn't loaded after a reasonable period of time (i.e. the status is still "requested") then cancel it. As indicated, in both cases above including 'load', the script waits until the request fails (takes about 30 seconds) before executing the next line. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Basic Maths
Type this in the message box... put 5.45 - 1 = 4.45 TRUE put 5.45 - 2 = 3.45 TRUE put 5.45 - 3 = 2.45 TRUE but... put 5.45 - 4 = 1.45 FALSE Huh? This is not helping my sanity, nor writing a finance checking routine that answers false instead of true! Any answers out there? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
RE: Launching Acrobat Reader Mac/Win
Does anyone know how to launch Acrobat Reader on both Mac and Win from MC? Try these: on printPDF if isAcrobatInstalled()"true" then askInstallAcrobat else ... (launch file) end printPDF on askInstallAcrobat put "Acrobat Reader is needed to preview and print this document. Do you want to install the Acrobat Reader on your computer now?" into tStr get smartAnswer("Adobe Acrobat Reader needs installing",tStr,"Yes","No") if it="Yes" then installAcrobat end askInstallAcrobat on installAcrobat global g_Volume set the cursor to watch set the itemDel to "/" if the platform is "MacOS" then put g_Volume"/MM pdf/Acrobat/Reader Installer" into tAcroPath else put g_Volume"/MM pdf/Acrobat/Acrd4enu.exe" into tAcroPath launch tAcroPath end installAcrobat function isAcrobatInstalled get word 1 to -2 of queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\shell\o pen\command\") return it"" end isAcrobatInstalled Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
QT: In praise of the MetaCard Team
Just a quick note in praise of the Team and the improved QuickTime integration. No longer do we get screen artifacts, turgid responses to mouse clicks or freezing screens with movies. Whatever you guys did, we are ABSOLUTELY DELIGHTED with not only the improvements in 2.3.2 but more the responsiveness you have shown in solving the earlier glitches. [The fact I now throw away all the work-arounds and the hours of figuring them out is beside the point!] Beers all round. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Option menu question
What about setting the menuHistory to the line number of the option you want as the default, does this do the trick? e.g. set the menuHistory of button theOptions to thePreset set the label of button theOptions \ to line thePreset of the text of button theOptions Sorry, Peter... This does not seem to work. Does anyone else have any insights? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Option menu question
Is it possible to pre-set the selected line of an Option menu? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Distorted QT sound playback
Apologies. I recently reported poor sound reproduction using QT. The problem has been located to an incorrect playback device setting in the MultiMedia properties control panel. However... Playing sound or movies in QT from a CDROM can cause playback 'stuttering', as if the system has to wait for the CDROM to catch up. Does the original burn speed (x4) have anything to do with this? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Help needed please
1 - How do I launch a standalone in palette mode? # openStack script if ".exe" is in the effective filename of this stack then set the style of this stack to patlette end if 2 - I have a list field (a tutorial index) containing chapters that when double clicked go to some card: on mouseDoubleDown if the hilite of me = "some" then go card "some" end mouseDoubleDown When back from card "some" to the list, I'd like to have the last clicked chapter hilited # Field script on mouseDoubleDown if the hilite of me = "some" then go card "some" set the u_HilitedLines of this cd to the hilitedLines of me end if end mouseDoubleDown #card script on openCard set the hilitedLines of fld 1 to the u_HilitedLines of this cd end openCard 3 - Could someone please point me what is wrong with the following lines: get setRegistry("HKEY_CLASSES_ROOT\.ebf\", "EbookFacil") get setRegistry ("HKEY_CLASSES_ROOT\EbookFacil\", "EbookFacil Files") get setRegistry ("HKEY_CLASSES_ROOT\EbookFacil\DefaultIcon\", "EbookFacil .exe,1") get setRegistry ("HKEY_CLASSES_ROOT\EbookFacil\Shell\Open\command\", "Ebo okFacil.exe%1") Last registry entry above should include the full path to the application. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: QT freezes MetaCard
Hugh Senior wrote: Playing QuickTime movies in 2.3.1 freezes computers with 64Mb RAM. Fine on the machine with 128Mb. Jacqueline replied: What platform? I am having similar problems in Windows 98, even if there is 128 MB of RAM. It only happens on some machines (Dells, particularly.) Same here... Windows98 with 96Mb RAM and after first movie, the system freezes with ob=nly mouse movement available. Plug-pulling time. Mike replied: Officially 16Mb of RAM for QT 4.1.2 We have had some problems with playing movies originally in Autodesk FLC format - one or two freezes there even with 128Mb of RAM. But mostly they play fine. How big are the movies? - tossing them all into RAM may be a problem. Over-speedy decompression seems to be the root of it all. We (Dave Cragg and I) are still experimenting. And what platform? Latest crash was on Windows 98, but we had some early crashes on the Mac (with 193Mb of RAM!) because of doing things on preOpenCard, so I stopped that. Only do things in or after openCard. Dave may have more to say. This is with QT4.1.2 also. Movies are mostly 9Mb so not enormous. Playing is initiated from a list of titles, not on preopencard. Codec is Cinepak. Is this 'over-speedy'? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: QT freezes MetaCard
Playing QuickTime movies in 2.3.1 freezes computers with 64Mb RAM. Fine on the machine with 128Mb. Okay... Found perhaps what is required. Before playing a clip, run this to clear its digestive system: on cleanUpVideoPlayer lock screen set the paused of player "classroomVideo" to true set the fileName of player "classroomVideo" to empty unlock screen end cleanUpVideoPlayer I can now interrupt movies, play them in quick succession, do whatever. No freezes, no problems. Seems like we gotta give QT a chance to reset itself between files. /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.