Help with large window size stack

Ken Ray kray at sonsothunder.com
Wed Apr 30 22:20:01 CDT 2003


This is happening because that's the way the MC engine handles it (don't
ask me why). However you can work around it by resetting the size of the
stack in the preOpenStack handler. For example, I set a stack window to
2000x2000, made sure the minWidth and minHeight were 2000 as well. Now
when I reopened the stack, it resized to what was visible on my screen
(about 1152x870), but a check of the minWidth and minHeight still show
2000. So I have this handler:

on preOpenStack
  set the width of this stack to the minWidth of this stack
  set the height of this stack to the minHeight of this stack
  set the topLeft of this stack to 10,50  -- set or store a topleft of
your choosing
end preOpenStack

This should work.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com 
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Roger Guay
> Sent: Wednesday, April 30, 2003 4:27 PM
> To: use-revolution at lists.runrev.com
> Subject: Help with large window size stack
> 
> 
> I'm trying to build a new 950X700 pixel stack.  Using the Stack 
> Properties  I can set these values and save my project.  However 
> whenever I quit and reopen this stack it opens up to 800X600 pixels!  
> Can anyone tell me why this is happening and what to do about it?
> 
> Thanks, Roger
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 





More information about the use-livecode mailing list