How know if a stack is maximized ?

J. Landman Gay jacque at hyperactivesw.com
Tue Oct 9 12:30:29 EDT 2007


Trevor DeVore wrote:
> On Oct 9, 2007, at 12:11 PM, Richard Gaskin wrote:
> 
>> Wouldn't a stack be maximized when it's rect equals the current 
>> windowBoundingRect?
> 
> It might be maximized in the sense that the stack is the maximum 
> height/width of the windowBoundingRect but it might not be maximized in 
> terms of whether or not the user clicked the zoom button on OS X or the 
> Maximize button on Windows.
> 
> Take this for example -
> 
> I open Notepad on Windows. I resize the window with my document just how 
> I want it. I close Notepad and the next time I reopen it the window is 
> just how I left it. I then click the Maximize button and the Notepad 
> window fills the screen. If I quit Notepad and relaunch the window does 
> not reopen to fill the entire screen but rather that size it was before 
> I clicked the maximize button.
> 
> Is there an easy way to reproduce this behavior with Revolution since 
> there is no property which reports that a stack is 'maximized' (though 
> we do have an 'iconic' property)? The user may have manually resize the 
> window to fill the screen, in which case you should restore the window 
> to that size the next time your app launches, or they may have used the 
> maximize button to fill the screen in which case you should restore the 
> window to the size it was prior to clicking the maximize button.

I do this in one of my projects by storing the stack rect every time the 
resizeStack message fires. When the stack is reopened, I just set its 
rect to the stored property.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list