on 6/10/2001 12:22 PM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

> 
Richard MacLemale <[EMAIL PROTECTED]> on Sat, 09 Jun 2001 21:40:36
plead

> 
> OK, I realize I'm not programming in Objective C here, and if this is the
> only way to get it done I'll chalk it up to compromise.  But if I'm missing
> something here, could someone please turn the light on for me?  I'm not sure
> why MetaCard would want to (by default) ignore height and location settings
> in a preOpenStack handler.  If it's supposed to be a feature, I'd disagree
> and argue that it's a bug... anyone run across this before?
> 
> 
Yep, just yesterday.

You are running into the WindowBoundingRect feature. I understand that Scott
added it to keep stacks from running off the screen (so it automatically
resizes according to the screen).

Here is one hint. Set the formatForPrinting of the stack to true. It helps.

But as for using the preOpenStack handler -- somehow it doesn't work. But
you can help avoid some of the jumping around by using "lock screen" in your
openstack handler.

I have also noted a persistent difficulty getting stacks placed correctly if
they are oversized (as for printing). With one recent stack I decided I
wanted to place it as a modal stack (so the user would have to deal with it
and close it before continuing and not leave it open by clicking elsewhere).
Sorry, placing that modal stack did not work. It wanted to shove it up above
my Mac menubar, no matter how I tried to place it. So I finally set the
decorations to title, added my close button, and I'll hope the user has the
sense to close it.

Actually, in my ideal world, the user would never see the letterhead stack.
As I said, it is oversized. If I try to hide the stack it does two
unexcusable things. It prints the stack with a grey background (the
backgroundcolor is white), and it cuts off the bottom of the stack (the
windowboundingrect takes control once again unless the stack is visible).

INHO, the windowboundingrect causes more trouble than it solves, but this is
Scott's baby, and I love MetaCard too much to let this troublesome feature
deter me. Shoot, it is a lot easier to use than ToolBook!

Raymond

> :)
> Richard MacLemale
> Instructional Technology Specialist
> James W. Mitchell High School


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