# Get Maximized Dimensions

**URL:** <https://forum.xojo.com/t/get-maximized-dimensions/20179>\
**Category:** General\
**Created:** [November 4, 2014, 10:48pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179 "2014-11-04T22:48:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Scott-Brown](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/8baadc/32.png) [@Oliver\_Scott-Brown](https://forum.xojo.com/u/Oliver_Scott-Brown)\
**Post date:** [November 4, 2014, 10:48pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179/1 "2014-11-04T22:48:06Z")

</div>

Hey there,

Best way to get dimensions of window if it was maximized?

Is there anyway I could calculate the width and height of window, if it is in the maximized state.

I want to limit the size of window of it goes over the size of a maximized window. How would I best accomplish this?

I just wanted to make sure I am not overlooking anything important. What I am trying to accomplish is creating a centred window that can go up to the size that it can fit on the screen, excluding the taskbar or whatever else might get in the way of that. I want to make the window scrollable if it goes over the maximized window size.

Should I just create a module that creates an invisible maximized window and it takes the width and height of that? Any tips for managing the size and positions of windows?

Thanks

---

<div class="post-metadata">

**Author:** ![Jason\_King](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@Jason\_King](https://forum.xojo.com/u/Jason_King)\
**Post date:** [November 4, 2014, 10:51pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179/2 "2014-11-04T22:51:15Z")

</div>

[http://documentation.xojo.com/index.php/Screen](http://documentation.xojo.com/index.php/Screen)

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [November 4, 2014, 11:05pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179/3 "2014-11-04T23:05:36Z")

</div>

remember you may have to also deal with multiple monitors with varying resolutions… so on the same computer, the window may max out to differnt sizes depending on what screen the user has moved it to.

---

<div class="post-metadata">

**Author:** ![Oliver\_Scott-Brown](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/8baadc/32.png) [@Oliver\_Scott-Brown](https://forum.xojo.com/u/Oliver_Scott-Brown)\
**Post date:** [November 4, 2014, 11:29pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179/4 "2014-11-04T23:29:39Z")

</div>

Thanks people.

---

<div class="post-metadata">

**Author:** ![Oliver\_Scott-Brown](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/8baadc/32.png) [@Oliver\_Scott-Brown](https://forum.xojo.com/u/Oliver_Scott-Brown)\
**Post date:** [November 4, 2014, 11:30pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179/5 "2014-11-04T23:30:38Z")

</div>

> [@141395:@Jason King](#):
>
> [http://documentation.xojo.com/index.php/Screen](http://documentation.xojo.com/index.php/Screen)

Ah, I did not think there would be such a method as AvailableWidth.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:28pm UTC](https://forum.xojo.com/t/get-maximized-dimensions/20179/6 "2020-10-29T17:28:51Z")

</div>


