I'm rushing out the door right now but the short answer to your
question is yes. Open the find tool then open the MetaCard Reference
stack via the Help menu. Do a search for "platform" in the ref
stack, you'll run into the command which detects the platform easily
enough.
Gotta go....!
>Hello MetaCarders.
>
>I've been trying to figure out answers to questions like this on my own,
>but I haven't been successful on this one. At what point after opening
>does a MetaCard stack or a standalone become able to query for the platform
>it is running on?
>
>Here is the problem. I have an application in which I want to highlight
>certain locations at certain times. I do it by showing and hiding some
>simple rectanular graphics. However these graphics need to be translucent
>so that what is behind them will also show through. With some
>experimentation, I found ink settings which give the effect that I want.
>However the ink settings that do what I want are different for the Mac and
>Windows platforms.
>
>The solution is to have a script which sets the ink properties for these
>graphics to what is needed for the platform. I have a "Reset" button with
>lines in the script which sets the ink and it works just fine.
>
>However I would like the ink setting to be right when the stack opens.
>When I include these same lines in a "on preopenStack" or a "on openCard"
>handler, it doesn't seem to work. Specifically, the stack was created on a
>Mac. When I first open it under Windows, with this ink-setting script in
>either of the preopenStack or the openCard handlers, the stack opens with
>the Mac's ink settings.
>
>Is it the case that the stack cannot query to find out the platform this
>early? If so, does anyone have a suggestion as to how to achieve the
>objective of starting with the right platform-specific settings?
>
>John Kiltinen
>
>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> John Kiltinen ([EMAIL PROTECTED]) Home Office
> Professor, Dept. of Math. & CS Tel.(906) 228-8035 or (906) 227-1600
> Northern Michigan University Fax (906) 228-4667 or (906) 2272010
> Marquette, MI 49855 USA
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>Archives: http://www.mail-archive.com/[email protected]/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.
--
Cheers,
Simon
All your .com .net and .org domains for only $14.50 each.
Get them while they last... http://www.amigo-3.com/hosting/
--------------------------------------------------
"The great discoveries in science are not punctuated by 'Eureka! I've
found it!' but rather "Hmmm,that's funny...." Isaac Asimov
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.