Thank you!
unsunscribe Get free email and a permanent address at http://www.netaddress.com/?N=1 This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
current card?
Hi all, Does anyone know of a property that will tell me which card is being shown in an open stack? something equivalent to the current card of stack s? If there is not a property (I haven't been able to find one yet) does anyone have a good suggestion for finding this? TIA -- Leston Drake LetterPress Software, Inc. http://www.lpsoftware.com -- This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: current card?
Does anyone know of a property that will tell me which card is being shown in an open stack? Is this what you're looking for? the number of this cd of stack MyStack or the short name of this cd of stack MyStack Regards, Scott Rossi Tactile Media, Multimedia Design Creative Director Email: [EMAIL PROTECTED] Web: www.tactilemedia.com This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: current card?
Hi all, Does anyone know of a property that will tell me which card is being shown in an open stack? something equivalent to the current card of stack s? If there is not a property (I haven't been able to find one yet) does anyone have a good suggestion for finding this? If you do: on openCard put the short name of the current cd end openCard will give you the name of the shown card. TIA -- Leston Drake LetterPress Software, Inc. http://www.lpsoftware.com -- This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Regards, Andu This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
How to create large XCMD / DLL with callbacks
I need to create an XCMD and DLL with several tricky characteristics. While I have created Macintosh XCMDs before, I am not sure how to deal with this set of characteristics. Also I have not dealt with DLLs for PCs so I am unaware of issues that may arise. Any insights or references to code that does the job would be much appreciated. 1. The XCMD / DLL must be substantially larger than 32K. So, at least for Macintosh, I have to create an XCMD that loads the larger block of code into memory and then calls it. Also, perhaps it is best to leave the loaded code resident in memory until MetaCard quits (or my MetaCard stack closes), because the XCMD / DLL will be called repeatedly. 2. The XCMD / DLL must allocate large amounts of memory (several MB), to be maintained even when the XCMD / DLL is not in use, and de-allocated when MetaCard quits. I have done this previously on the Mac, but I haven't learned how to do this on PCs. 3. The XCMD / DLL must set global variables in MetaCard, and ideally could make other callbacks to MetaCard. CodeWarrior comes with some sample projects that discuss issues 1 and 3, but they take some work to understand (indeed no sample project incorporates both characteristics 1 and 3) and to be honest I haven't understood yet. I was thinking of programming in CodeWarrior C (I have version 3.2), though I could switch to different software and/or programming language if that would help. If anyone has a template or sample code, ideally with at least characteristics 1 and 3, you could be my savior. Thanks in advance, Ken This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: How to create large XCMD / DLL with callbacks
1. The XCMD / DLL must be substantially larger than 32K. So, at least for Macintosh, I have to create an XCMD that loads the larger block of code into memory and then calls it. Also, perhaps it is best to leave the loaded code resident in memory until MetaCard quits (or my MetaCard stack closes), because the XCMD / DLL will be called repeatedly. You don't necessarily have to keep the XCMD under 32k, if you can afford to be PPC-only. I've had much larger XCMDs before, and they work fine. I'm not sure what Metacard's policy is as far as keeping XCMDs in memory however- it's my feeling that they will stick around if you have sufficient memory allocated, but someone more in the know would have to to answer that one for sure. 2. The XCMD / DLL must allocate large amounts of memory (several MB), to be maintained even when the XCMD / DLL is not in use, and de-allocated when MetaCard quits. I have done this previously on the Mac, but I haven't learned how to do this on PCs. What about just malloc() - ing the memory in your XCMD/DLL, and saving the pointer to a Metacard global? Then add de-allocating code to your XCMD/DLL's cleanup routine which fetches those values and releases them. 3. The XCMD / DLL must set global variables in MetaCard, and ideally could make other callbacks to MetaCard. For XCMDs, Metacard support the standard XCMD SetGlobal/GetGlobal callbacks, and for DLLs you can find the whole list of callbacks in the file "XCmdGlue.h" in the folder "MC External Data" that comes with the Metacard distribution. There is sample code in the file "external.c"... see the "XCcallbacktests" function. It makes a variety of callbacks. HTH, Brian This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Markers
First an MC moment. I got a great buzz from making a circumplex using MC. I doubt many out there would be excited by this, but I just can't believe how simple it was once I got to grips with the oval graphic tool. I must confess that I started off wasting time using better known products that just couldn't do the stuff. It works *so* well in MC I feel guilty I still haven't saved enough pennies for the full product. Anyway, This is the tricky bit. The circumplex is divided into octants, much like an eight bit, equi-sliced pie chart. The startangle and arcangle of each slice never change. However, the slices grow outwards to reflect an increasing score and shrink towards the loc of the circle(s) to reflect a decreasing score. (ie. a section of a circle with an increasing or decreasing radius) Now part of this complicated psychological assessment (for that is what it is) is a single point on the circumplex that reflects a summary of the whole personality assessment. The formula is not important, but what I end up with is an angle and vector length. I thought I could use an invisible oval graphic with a size that reflects the vector length, a startangle to represent the angle, and an arcangle of 1. That works. I can get a little dot where I want. However, at the location of that small dot I want to display a marker. After *hours* of tinkering, can I get the marker to do it? Nope. Is this hard to do, or just hard for me to do? Best wishes to all on the list. David Glasgow This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Restrain Answer Dialog?
I'm searching for a solution to make the Answer Dialog stack behave correctly when its style is set to palette. For certain technical reasons, I have a main stack and all its substacks set to palette style, including the Answer Dialog so it will display above the main stack. It appears that the script processing in the main stack ignores the Answer Dialog when the Answer Dialog style is palette. I've tried adding lines to the Answer Dialog scripts to trap the user selection but nothing I've done seems to work (closeStack, mouseUp, etc). Is there any way I can get the Answer Dialog to work "normally" even though it is a palette? Thanks Regards, Scott _ Scott Rossi Tactile Media - Multimedia Design Creative Director Email: [EMAIL PROTECTED] Web: www.tactilemedia.com This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Restrain Answer Dialog?
On Mon, 28 Feb 2000, Scott Rossi wrote: I'm searching for a solution to make the Answer Dialog stack behave correctly when its style is set to palette. For certain technical reasons, I have a main stack and all its substacks set to palette style, including the Answer Dialog so it will display above the main stack. It appears that the script processing in the main stack ignores the Answer Dialog when the Answer Dialog style is palette. I've tried adding lines to the Answer Dialog scripts to trap the user selection but nothing I've done seems to work (closeStack, mouseUp, etc). Is there any way I can get the Answer Dialog to work "normally" even though it is a palette? No, and that's because only modal dialogs suspend whatever script is executing until they are closed. If your dialog has to be a palette instead of a modal, you'll have to write your own "answer" command. Regards, Scott Thanks Regards, Scott _ Scott Rossi Tactile Media - Multimedia Design Creative Director Email: [EMAIL PROTECTED] Web: www.tactilemedia.com This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Markers
On Mon, 28 Feb 2000 [EMAIL PROTECTED] wrote: First an MC moment. I got a great buzz from making a circumplex using MC. I doubt many out there would be excited by this, but I just can't believe how simple it was once I got to grips with the oval graphic tool. I must confess that I started off wasting time using better known products that just couldn't do the stuff. It works *so* well in MC I feel guilty I still haven't saved enough pennies for the full product. Anyway, This is the tricky bit. The circumplex is divided into octants, much like an eight bit, equi-sliced pie chart. The startangle and arcangle of each slice never change. However, the slices grow outwards to reflect an increasing score and shrink towards the loc of the circle(s) to reflect a decreasing score. (ie. a section of a circle with an increasing or decreasing radius) Now part of this complicated psychological assessment (for that is what it is) is a single point on the circumplex that reflects a summary of the whole personality assessment. The formula is not important, but what I end up with is an angle and vector length. I thought I could use an invisible oval graphic with a size that reflects the vector length, a startangle to represent the angle, and an arcangle of 1. That works. I can get a little dot where I want. However, at the location of that small dot I want to display a marker. After *hours* of tinkering, can I get the marker to do it? Nope. Is this hard to do, or just hard for me to do? I think you'll have to use a separate graphic for this. Markers are only shown for polygon style graphics, so you'll have to create one of those, set its "points" property to the point where the marker should appear and set its markerPoints property to draw whatever type of marker you want at that point. If you only want to show the marker when the pie slice is very small, you'll have to hide and show it at the right times. Regards, Scott Best wishes to all on the list. David Glasgow This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: NumberFormat
Subject: Re: NumberFormat Date: Mon, 28 Feb 2000 17:50:22 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: [EMAIL PROTECTED] Raymond E. Griffith wrote: I set the numberFormat to 0.## (10 places to the right of the decimal point) for calculation, but all answers are returned as integers. "Steven D'Aprano" [EMAIL PROTECTED] graciously replied: As example calculation would be useful. You didn't state whether the answer actually is an integer. Eg: you want 10.00 but only get 10 with no decimal point. OK, I am taking the standard deviation of a set of 50 numbers. I am trying to recreate the precision of my TI-83 calculator. Under ten-decimal place accuracy I get it. I then set the numberFormat to 0.00 for calculation. The calculations were stored correctly. I then set the numberFormat to 0.##, added 0 to the calculated amounts for display. Again, the displayed amounts were integers. Hashes in the NumberFormat specify that only non-zero trailing figures are kept (eg 2.001000 - 2.001), so again we need to know the actual result of the calculation before we can tell if its a bug. Right: here goes. Calculations with numberFormat set to 0.00 µ = 74.364000 x = 3718.20 x^2 = 279382.46 Sx = 7.6694932382 x = 7.5924109478 n = 50.00 minX = 56.90 Q1 = 68.80 Med = 74.55 Q3 = 79.60 maxX = 88.60 As you can see, everything except for Std deviation and population deviation possess extra zeros. Definitely unneeded and unwanted. But I want the extra digits on Sx and x. So I use the following script to filter out the extra zeros set numberformat to 0.## repeat with i = 1 to 11 put item i of "pmean,psumx,psumxsq,pstddev,ppopdev,pn,pminX,pQ1,pmed,pQ3,pmaxX" into thatprop put line i of the StatSymb of me 0+the thatprop of me into line i of ans end repeat put ans into fld "Stats" Here is the result. µ = 74 x = 3718 x^2 = 279382 Sx = 8 x = 8 n = 50 minX = 57 Q1 = 69 Med = 75 Q3 = 80 maxX = 89 What I want -- and can't seem to get -- is µ = 74.364 x = 3718.2 x^2 = 279382.46 Sx = 7.6694932382 x = 7.5924109478 n = 50 minX = 56.9 Q1 = 68.8 Med = 74.55 Q3 = 79.6 maxX = 88.6 My apologies if you already knew this, but its been my experience that its always good to check the simple things first before firing off bug reports. There's nothing worse than paying for a service call on a television because it wasn't plugged in :-) I agree. Sorry for not being more specific, including calculations, etc. And since I tend to think that a service call may be needed here, I really should have provided more detail. This is a pretty important issue for me. Do you mind if I ask, what are you doing that requires 10 decimal places of accuracy? That's a lot. It is. But it is what I need for this project. Actually the TI-83 stores 14 digits with a 2-digit mantissa. I like the accuracy (after all, I am a math teacher), but again, it is needed if I am to imitate the Ti-83. I notice that for me, numberFormat always ignores the trailing #'s. If I use, set numberFormat to 0.00 the ending four digits are completely ignored, and everything winds up with six decimal places after zero. Of course, I could be doing something completely dumb. But this use of numberFormat works in Hypercard. -- Steven D'Aprano Thanks, Steve. I hope this clears up what is happening. Am I just missing or misusing something? This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Data input: Many fields or just one?
Thanks for the thoughtful comments Steven, On 25/2/2000 10:10 PM, Steven D'Aprano wrote (in part) regarding the choice between using many separate fields for single-value inputs and a single, multi-lined field: 1. Less scripting. Standard behaviour is already built in without any extra scripting. Non-standard behaviour (eg down arrow jumps to the next field) can be accomplished with very little scripting. 2. Data integrity. There is less chance the user can accidently corrupt the data if it is split into seperate fields. Eg there is no way they can accidently overtype all four sets of data in one action, which could happen in a single field. 3. Easier maintainance of the program. Lets say that one of the fields is a person's name. Compare the following data retrievals: get field "Person Name" with: get line 3 of field "Data Entry" In twelve months time when you are maintaining this program, which one is easier to understand? If you decide to move the name field from line 3 to line 2, how many places will you have to edit the script to change 3 to 2? Are you sure you haven't missed one? What if you decide to add an extra field? Now you have to go through the scripts and edit them all again. It is *much* easier to refer to them by name. None of these issues are insurmountable with the single-field data entry method, but it takes extra work to implement it. I'm not sure why you think it is neccessary. _ Gregory Lypny Associate Professor of Finance Concordia University _ "Take chances, make mistakes!" - Ms Frizzle, The Magic School Bus This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Silly TAB questions
And I thought my questions would become more profound I want users to be able to tab from one field to the next when the Return key is hit, so I wrote the following handler: On returnKey tabkey End returnKey Unfortunately, I geet a script error message. This used to work in HyperCard if I remember correctly. What am I doing wrong in MetaCard. Sincerely, _ Gregory Lypny Associate Professor of Finance Concordia University _ "Take chances, make mistakes!" - Ms Frizzle, The Magic School Bus This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Silly TAB questions
I want users to be able to tab from one field to the next when the Return key is hit, so I wrote the following handler: You can set the autotab property of a field to true or write the following script on returninfield type tab end returninfield regards, Tuviah Snyder Diskotek Custom Application Development SuperCard/HyperCard Conversion at a low price This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Paste is Cmd-Y?
Hmm, am I in the twilight zone, or has anyone else noticed an irregularity in the version 2.3's keyboard shortcut for Paste? It seems to have become Command - Y instead of V. I tried to change it, but the changes aren't saved. Any thoughts? Craig /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Craig Spooner Office of Instructional Services Colorado State University 970-491-2516 [EMAIL PROTECTED] This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Xanim ghost movie
I have a movie playing in a standalone stack for Solaris. It takes a bit of time to load, but the user has the option of going the next section at any time (whether the movie is playing or not). The next section is in a separate stack file. To go to it I use the command: go to card 1 of stack "data/french.mc" in the window of this stack Occasionally, but with no apparent regularity, the movie will decide to start playing on top of the second stack, even though no command there tells it to. This only happens in Solaris, and only when I go to the second stack before the movie has had a chance to load. I am just using a play videoclip looping command in the first stack, and send a play stop videoclip when the user clicks to go to the second stack. Any leads? Thanks much. -Brian This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Xanim ghost movie
On Mon, 28 Feb 2000, Brian J Karimzad wrote: I have a movie playing in a standalone stack for Solaris. It takes a bit of time to load, but the user has the option of going the next section at any time (whether the movie is playing or not). The next section is in a separate stack file. To go to it I use the command: go to card 1 of stack "data/french.mc" in the window of this stack Occasionally, but with no apparent regularity, the movie will decide to start playing on top of the second stack, even though no command there tells it to. This only happens in Solaris, and only when I go to the second stack before the movie has had a chance to load. I am just using a play videoclip looping command in the first stack, and send a play stop videoclip when the user clicks to go to the second stack. Any leads? There is a brief interval between when you start a movie on UNIX and when you can stop it. This is due to the process creation time, and is not a problem on the other platforms because the movies are played by libraries, not separate processes. About all you can do to work around this is to check to see how long it's been since you started the player. If less than a second or two (depending on the speed of the particular system, unfortunately) then throw in a wait before you stop the player. Regards, Scott Thanks much. -Brian This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: setting the menuLines of a btn
On Mon, 28 Feb 2000, Craig Spooner wrote: Hi y'all, I have a popup menu -- a btn set to the "menu" style -- that contains 55 items. I was hoping I could limit the number of menu items showing at any one time, and I really thought the menuLines property would be the answer. That property controls the appearance of a combo box nicely, but seems to have no effect on an Option-style button. Anyone know if I'm doing something wrong or if there's another way to accomplish this? Other than building a menu panel menu, there is no way. At least in 2.3 the menu will scroll if it's bigger than the screen... Scott Many thanks, Craig /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Craig Spooner Office of Instructional Services Colorado State University 970-491-2516 [EMAIL PROTECTED] This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm