realbasic-nug
[Top] [All Lists]

Re: How to tell if a window IS maximized

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How to tell if a window IS maximized
From: Arnaud Nicolet <arnaud at tribu dot ch>
Date: Wed, 28 Mar 2007 01:22:14 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <4609A5CD dot 5010602 at kinnor dot com>
Le 28 mars 07 à 01:16 Matin, tbuchler a écrit:

> How can I tell that a window is currently maximized (i.e. at some time
> in the past, Window.Maximize was called -- not FullScreen)?

A window can be maximized without the FullScreen property set to on.
If FullScreen is off, an user can still click on the zoom button and  
the window becomes maximized.

> I can't even see how to set a variable for this: I see an event for  
> when
> the window just became maximized and one for when the window just  
> became
> minimized, but no event for when the window just became windowed.

In RB2007, there's a Restore, a Minimize and a Maximize event.

Create a property (e.g IsMaximized As Boolean) and put:

IsMaximized=True
in the maximize event

and

IsMaximized=False
in the restore event and in the minimize event

Then, refer to that property.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>