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         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to