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.