Re: functions under Windows? Bug?
Richard Gaskin wrote: Mattias Alveteg wrote: [snip] Not an error, it's a feature: The answer window is not present in the MetaCard engine, but instead resides in the mctools.mc stack file. If you need an answer or ask dialog in your standalone, use MC's Resource Mover (under the Tools menu) for copying these into your standalone. Thanks, I forgot to do that in my small example. I did that half a year ago though, in the stack which I have problems with now, so that was not my original problem. I have now managed to work around all bugs (are they bugs?) by inlining all functions and function like calls (something which surely isn't beatiful programming) but in the long run I sure would like to see a nicer solution. So, I still suspect there is something fishy with creating Windows standalone applications on a MacOS machine. Or is it something that has changed drastically on the Windows side? Is it Windows 98 that is the problem? greetings Mattias Alveteg 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: More Decorations..
The border is off, but there is still a black *outline* around the card. This is what I want to get rid of. The Monte wrote: You must have the show border set to true in the card that is open. Probably without 3D if it's just black. The stack only has the window as a border but the card has this property. Then Simon wrote again: I know how to make decorations disappear, but I seem to forget how to get rid of that 1 pixel wide black boder which remains. Anyone remember what the command is to remove that as well? I want no decorations and no border whatsoever on this particular stack... I guess you're on Mac becaause this has to do something with a platform- particular thing. You have to change something in the resource fork, I think. Andu? I've just encountered this problem on the MAC with a borderless stack with white background etc which works fine on PC. Black of course is fine but any other colour... hmmm ... ive looked round but can you just somehow set this colour? How do you hide or get rid of this border ?? any 2.4 options/hacks welcome :) alex 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: functions under Windows? Bug?
At 1:39 am +0200 12/6/01, Mattias Alveteg wrote: I've only used precompiled versions of the stack under Windows, but when I started out using MetaCard I had no problems. Could it be that me upgrading the MacOS version of MetaCard to 2.3.2 is the cause of these strange errors? Not sure what you mean here exactly, but could it be you're using an older version of the Metacard engine on Windows? There was a file format change at version 2.3 or 2.3.1 (I don't remember which). If your Windows engine is from before that version, this might explain the problem, as stacks built with 2.3.2 will very likely not run with pre-2.3 (or 2.3.1) engines. Good luck Dave Cragg 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: Can someone turn the light on? It ain't that dark...
Hi folks, remember the trouble of missing pixel of stacks in a certain monitor resolution? After a few hours of stress and getting grey hair too early, i found, that the following handler will do the job for me. I had trouble to display a 1024*768 stack correctly on a 1024*768 monitor (iMac and Powerbook and MAC-only!!!) without decorations and menubar but with backdrop. Now this script works for me and my needs: on preOpenStack set the windowboundingrect to 0,0,1024,768 # ugly hack, isn't it? set the decorations of me to empty set the backdrop to black hide menubar set the loc of me to 512,384 ## just to be sure set the rect of me to 0,0,1024,768 ##to see the whole stack get the effective filename of this stack set the itemdel to / delete last item of it set the directory to it #routine to make trelative paths work end preOpenStack If you are having similar trouble, check this script, modify it to your needs and be happy (hopefully...)!!! Of course you have to check if it is a bigger monitor than 1024*768, to display that stack properly... (No big fun if the stack displays in the upperleft corner of a bigger monitor ;-) Regards Klaus Major [EMAIL PROTECTED] MetaScape GmbH 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: Urgent problem: group missing keyDown event
Well what I would do on a user interface standpoint more than anythin is disable questions that are skipped depending on previous answers. In your example if the user has no phobia then then the phobia related questions are disabled. I can't really help any more than that without seeing the stack. Monte Hello all, I've got a problem. I made a program which poses a couple of (psychological) questions to the user. It get the questions from a text file and displays them one by one on the card. Some questions of them are multiple- choice, and can (besides of clicking the right answer with the mouse) be chosen by typing in a number (1,2,3 etc.). This all works great 'till I make a 'jump' to a question in the list. E.g. the user says he has no phobia, then the questions meant to find out what phobia are skipped. Then it's no longer possible to choose an answer with the keyboard??? A constant shown group should (and does most of the time) grab the keyDown message, but now, for some reason, doesn't anymore. If I choose the arrow tool, select the group, and choose the browse tool again, everything works OK again... Is this a bug or what? Does anyone know in what order the message goes through the groups ('cause I've more of them on the card)? Please help, 'cause this is a bug that has to be fixed on short term... Thanks in advance for any help, Sjoerd 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. 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: functions under Windows? Bug?
So, I still suspect there is something fishy with creating Windows standalone applications on a MacOS machine. Don't do this while it is possible it is no good for serious work. You need to take the stack over to Windows open and save then create a standalone. 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: Sound recording beta bug?
Or even better create two folders in your MetaCard folder. Stable and Latest. Then just put the 2.4 engine and tools in the latest folder and move the 2.3.2 engine and tools into the stable folder. You can now use the same Home and Help stacks for different versions. You need to put the Mac 2.4 files in with your 2.3.2 files. They will replace the current files of the same name. So, be careful when doing this as you will delete your mctools stack as well as your engines from 2.3.2. Make backups if you need them later. This will make 2.4 work on your Mac with all the development tools of 2.3.2. -Mark Talluto On Monday, June 11, 2001, at 05:22 PM, Mark wrote: I am really wanting to test this all on a Macintosh too, but there does not seem to be a Macintosh beta version - only the engines are in the ftp.metacard.com :2.4 :macos.sit file for some reason, not the development environment (am I looking in the wrong place?). 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. 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: Urgent problem: group missing keyDown event
At 6:36 am +0200 12/6/01, Sjoerd Op 't Land wrote: I've got a problem. I made a program which poses a couple of (psychological) questions to the user. It get the questions from a text file and displays them one by one on the card. Some questions of them are multiple- choice, and can (besides of clicking the right answer with the mouse) be chosen by typing in a number (1,2,3 etc.). This all works great 'till I make a 'jump' to a question in the list. E.g. the user says he has no phobia, then the questions meant to find out what phobia are skipped. Then it's no longer possible to choose an answer with the keyboard??? A constant shown group should (and does most of the time) grab the keyDown message, but now, for some reason, doesn't anymore. If I choose the arrow tool, select the group, and choose the browse tool again, everything works OK again... Is this a bug or what? Does anyone know in what order the message goes through the groups ('cause I've more of them on the card)? If any object in any of these other fields has the focus, then it seems that messages don't get through to the other groups (whether explicitly passed or not). I don't know if this classes as a bug, but I seem to remember this behaving differently in previous versions. (pre 2.3 ??) One solution would be to make sure none of the other groups has the focus. Another solution would be to put the keydown handler in the card script, if this is feasible. (Easiest solution where possible.) Perhaps Scott can confirm whether this is a change in behavior. However, I remember checking this out once and writing a mail describing the group/background message passing behavior. I thought it went something like this when the first object receiving the message was in a group: object in group group card other groups in order of layer, highest to lowest (i.e. background behavior) stack And if the card is the first oject to receive the message then: card all groups in order of layer (highest to lowest) stack But it seems that (in 2.3.2 anyway) when the first object receiving the message is in a group, it's like this: object in group group card stack Cheers Dave Cragg 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: Urgent problem: group missing keyDown event
At 1:29 pm +0100 12/6/01, Dave Cragg wrote: Is this a bug or what? Does anyone know in what order the message goes through the groups ('cause I've more of them on the card)? If any object in any of these other fields has the focus, then it seems that messages don't get through to the other groups (whether explicitly passed or not). I don't know if this classes as a bug, but I seem to remember this behaving differently in previous versions. (pre 2.3 ??) Oops. The first line should read: If any object in any of these other *groups* has the focus... Cheers Dave Cragg 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: functions under Windows? Bug?
Monte Goulding wrote: So, I still suspect there is something fishy with creating Windows standalone applications on a MacOS machine. Don't do this while it is possible it is no good for serious work. You need to take the stack over to Windows open and save then create a standalone. I've never had any trouble building a standalone on my Mac for any platform. I've used my Mac to build Windows standalones and a couple of different Unix versions. It works fine. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | 612-724-1596 Custom hypermedia solutions| http://www.hyperactivesw.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.
null fun
I came across a couple of interesting behaviours last night. My stack started behaving strangely, in an area of functionality where I hadn't been working. A backup was fine, but I couldn't see the difference. So I downloaded Geoff Canyon's mcRipper, with the intention of ripping old and new stacks into xml, and then comparing these two text files (using BBEdit). This turned into a huge rocker cover issue. I won't bore you with the trail I wended, but at the end of it I found two behaviours which could at least be described as interesting - one down to MetaCard, one to Revolution. The Revolution part is that many objects have a custom property scriptChecksum, which consists of 16 characters - or rather, 16 bytes. Evidently, it is possible for these bytes to be zero. The MetaCard part is that it is possible for strings to contain the character whose code is zero; and such strings can be stored in fields; and fields containing such a character can be happily scrolled over from top to bottom and back again. However, when scripts attempt to access the contents of a field, which contains such a character, almost - but not quite - everything behaves as though the contents end immediately before the null. If you ask for the length of the text, or the number of lines, it will be reported for the portion before the null. You can select a range of text including the null character, and do copy - only the part of the selection before the text will be in the clipboard. On the other hand, you can also select a portion of the text after the null, such that the selection does not itself contain a null - you will then get the text you selected in the clipboard. Actually these behaviours are not quite consistent; at least in Revolution, I've sometimes been able to copy the text containing the null - but doing Select All stops before it. I'm not certain whether this is differences between MC and Rev, or between the data I got from using the Ripper, and data I synthesised using numtochar(0). It's also worth noting that if you muck around with these interesting things long enough, you may destabilise the environment, crash, and possibly freeze altogether (at least in Rev, at least on Mac). So for MC: since nulls are mostly supported in strings and fields, perhaps the remaining strange behaviours should be fixed. For Rev: as long as nulls aren't fully supported, perhaps it would be better if the checksums didn't contain them - eg render them out as a string of hex digits. And lastly to Geoff - until either or both those things change, perhaps mcRipper could be enhanced to save strings containing nulls in some escaped format! Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 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: error with resource mover
Mark: Thanks for the suggestion. I'm not sure if I moved the resources in on the Mac side or not. I know I have done this in the past, ie moved the resources in on the mac then moved that stack to the PC and had no problem when I used the resource mover on the PC side. Do you know of any way to check and see if the resources are in fact attached on either the Mac side or the PC side. When you examine a Mac stack with Resedit you get a whole bunch of listed things but darned if I know which ones are attached by the resource mover. Actually I just thought of a way to tell, at least on the Mac. Create a test stack, check it with Resedit, use the resource mover and check again. But what about the PC side? I tried to use the delete resources on the PC side and then add them back but I get the same error. This resource mover error and my ongoing fight with trying to get a movie to play on the PC side has really put me way behind the deadline. I really do need help :) Mark Talluto wrote: Did you make sure that you did not have the resources already there from the Mac side? I always have the stack with no resources in it transfer over to the PC side and get them inserted from there. Just a thought. -Mark Talluto On Monday, June 11, 2001, at 10:20 AM, Rick Rice wrote: I'm trying to create a standalone on the PC. The stack was created on a Mac and I created a standalone there. I moved the stack (not the mac standalone) to the PC, launched it using file:open, selected tools:resource mover, clicked start move and get the error chunk: no such object in button start move of stack resource mover of stack mctools.mc I downloaded the most recent release version of MC and still get the same error. I would appreciate any and all help. Thanks Rick 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. 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. -- ::: :: PLAN!! I'd rather be surprised. :: F.A. (Rick) Rice, Instructor [EMAIL PROTECTED] :: Div. of Sciences and Health Sciences Phone: (250) 828-5424 :: The University College of the Cariboo Fax: (250) 828-5450 :: 900 McGill Road :: Box 3010 :: Kamloops, BC :: V2C 5N3 ::: 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: Sound recording beta bug?
Mark wrote: Hi everyone. I am currently playing around with the 2.4 beta, and have a couple of questions regarding sound recording and unusual behaviour. I have been using Tuvias recordsound example stack to record sounds with several settings (including the default settings), but when I play back the sounds using the QuickTime Player or Windows Media Player (for the formats it can play), the sound is played back at what seems roughly half speed. Using the play c:\sample command to play back the recorded sound from within MetaCard is even worse - harsh squeels are emitted from the speaker. Has anyone else had this sort of behaviour from the beta, and can anyone suggest a work around? eg., an external equivalent with some example 'how to use this' code? (Macintosh or Windows). I am really wanting to test this all on a Macintosh too, but there does not seem to be a Macintosh beta version - only the engines are in the ftp.metacard.com :2.4 :macos.sit file for some reason, not the development environment (am I looking in the wrong place?). Don't know about recording sound but you can use the same development environment with the appropriate engine for all platforms. That is, if you have the home, tools and help stacks for windows transfer them over to the mac and use them. You might want to change type/creator to MST MICR. Thanks, Mark -- Andu 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: Getting file information
Gregory Lypny wrote/ schreef: Hi Everyone, Does MetaCard have functions that get information about text files being read? I'm interested in knowing the size of files being opened. If they're not too big use: the length of url file:test.txt -- or answer file Choose the file: if the result is Cancel the exit to top answer The file is the length of url (file: it) bytes in size. Otherwise, you can use the long files in MC 2.4, check the reference. Regards, Greg Hope this helps, Sjoerd 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: More Decorations..
Alex Shaw wrote/ schreef: I've just encountered this problem on the MAC with a borderless stack with white background etc which works fine on PC. Black of course is fine but any other colour... hmmm ... ive looked round but can you just somehow set this colour? How do you hide or get rid of this border ?? any 2.4 options/hacks welcome :) This can't be done from within MC itself. It's something Mac specific, and you have to change it in your standalone using ResEdit (search the Internet), but I don't know what exactly and in which resource... Anyone? Scott? alex Regards, Sjoerd 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: Urgent problem: group missing keyDown event
I know I'm a bit late, but first priority was to get things out of the door, so... Monte Goulding wrote/ schreef: Well what I would do on a user interface standpoint more than anythin is disable questions that are skipped depending on previous answers. In your example if the user has no phobia then then the phobia related questions are disabled. I can't really help any more than that without seeing the stack. Well, I was afraid for that already, but I hadn't time to upload it and explain the recipe. Monte Dave Cragg wrote/ schreef: But it seems that (in 2.3.2 anyway) when the first object receiving the message is in a group, it's like this: object in group group card stack Thanks a lot! This was exactly what I needed! Cheers Dave Cragg Thanks a lot you both, Sjoerd 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: Sound recording beta bug?
From: Mark Talluto [EMAIL PROTECTED] Subject: Re: Sound recording beta bug? You need to put the Mac 2.4 files in with your 2.3.2 files. They will replace the current files of the same name. So, be careful when doing this as you will delete your mctools stack as well as your engines from 2.3.2. Make backups if you need them later. This will make 2.4 work on your Mac with all the development tools of 2.3.2. -Mark Talluto Hmmm... I tried that but get an error: Warning: tools stack versiob (2.4B1) does not match engine version (2.3), and typing in record mysound in the message box returns no permission to send that, group: bad object type, go: error in background expression, and move: bad end point expression :-( Has anyone managed to get the recordsound stack or the record command to work on a Macintosh, and if so, would they be willing to share their experience? eg., it just worked or here are the 8 steps I needed to use :-) Has anyone managed to get the Windows side working correctly too? ie., without the play command making screeches instead of playing the sound back, and without Quicktime player/Windows media player playing the sounds back at half speed. That might tell me whether I should be playing with sound recording on another PC or not :-) Cheers, Mark 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: Sound recording beta bug?
Hmmm... I tried that but get an error: Warning: tools stack versiob (2.4B1) does not match engine version (2.3), and typing in record mysound in the message box returns no permission to send that, group: bad object type, go: error in background expression, and move: bad end point expression :-( Well that's the answer. You have replaced the tools stack but not the engine. 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.