Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 335197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:07:35+00:00 2026-05-12T10:07:35+00:00

I noticed that in Windows, if you maximize a window you can not resize

  • 0

I noticed that in Windows, if you maximize a window you can not resize it until you un-maximized it again. This appears to be a normal behaviour, so I would like to remove my resize gripper when the window is maximised.

At the moment I can’t find a property to detect if a window is maximized, and although I could add a boolean in my controller, it wouldn’t necessarily catch requests to maximize from the OS.

So if you know of a reliable way to test if a window is maximized please let me know.

On a related note, I am using custom chrome, and when I maximize a window it overlaps the windows task bar. I can think of hacks to detect available screen size (using a transparent system chrome window), but it would be good to know of a better method.

Thanks

Rob

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:07:35+00:00Added an answer on May 12, 2026 at 10:07 am

    I have figured out how this can best be done thanks to some pointers from TheBrain.

    Firstly you need to watch for resize events to the window your want to control:

    NativeApplication.nativeApplication.activeWindow.addEventListener(NativeWindowBoundsEvent.RESIZE, onWindowResize);
    

    Then handle that event to decide if the window is maximised or not:

    public function onWindowResize(event:NativeWindowBoundsEvent):void
    {
        if (event.afterBounds.height >= Screen.mainScreen.visibleBounds.height && event.afterBounds.width >= Screen.mainScreen.visibleBounds.width)
            isMaximised = true;
        else
            isMaximised = false;
    }
    

    You then need to catch or create your own maximize button, and when clicked perform the following code:

                if (isMaximised)
                {
                    var bounds:Rectangle = Screen.mainScreen.visibleBounds;
                    NativeApplication.nativeApplication.activeWindow.bounds = bounds;
                }
                else
                {
                    NativeApplication.nativeApplication.activeWindow.bounds = new Rectangle(100, 100, 500, 600);
                }
    

    You can modify the bounds to over maximize (which is handy for custom chrome windows with shadows), and you can also set the application to reset to a default size if the maximize button is clicked when it’s already maximized (or do nothing).

    I had issues about when to assign the window resize listner, and ended up removing and adding it every time the maximize button was clicked. It’s a bit of overkill, but not too bad.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just noticed that the style of the navigation menu on windows.com is just what
I noticed that you can call Queue.Synchronize to get a thread-safe queue object, but
i noticed that paypal displays a very different favicon, one that's not just a
When debugging my WPF programs I have noticed that when the window is the
How can I make a window in WPF that looks like the attached (notice
I notice that Windows XP Event Viewer show a list of typical actions under
In almost any Windows application, I notice that holding the mouse button down in
I noticed that Google maps is providing directions in my local language (hungarian) when
I noticed that my Designer.vb file of one of my forms has a lot
We noticed that lots of bugs in our software developed in C# (or Java)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.