On Tue, 12 Dec 2000 [EMAIL PROTECTED] wrote:

> I made a new stack called "Test1" containing one button.  The script of the 
> button is:
> 
>   on mouseUp
>     set the iconic of this stack to not the iconic of this stack
>   end mouseUp
> 
> I am running MC 2.3.1 on a Mac.  I hoped that clicking the button would 
> iconify the stack using windowshade.  I click the button and nothing happens. 
>  Using the message box, I type:
> 
>   put the iconic of stack "test1"
> 
> and I see that the property switches between true and false each time I click 
> the button yet the stack does not minimize using windowshade.  I also tried 
> typing into the message box:
> 
>   set the iconic of stack "Test1" to true
> 
> and again, nothing happens.  Am I doing something wrong?

Yes: you're assuming that it's possible for an application to minimize
its own windows on the Mac.  Turns out it's not, mostly as a result of
the fact that "windowshading" is a hack and not really a part of the
OS.  Indeed, there isn't even any notification given to an application
when its windows have been minimized by the user nor any API support
for determining if it's been done, so the engine just has to poll one
of the window regions any time any event comes in for that window and
deal with it then.

If there's a silver lining here, it's that Carbon finally provides an
API for all of this, which means that eventually this will be
supported, if only on systems new enough to support Carbon.
Unfortunately Carbon itself is a moving target, and it's possible that
it will only work on Mac OS X, and maybe OS 9.X systems that have
upgraded to a working version of Carbon (which will be something later
than the current 1.2 release ;-)
  Regards,
    Scott

> Philip Chumbley

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


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.

Reply via email to