# Windows.Frame Type different on Windows and Mac

**URL:** <https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373>\
**Category:** Windows\
**Created:** [September 25, 2019, 3:12am UTC](https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373 "2019-09-25T03:12:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariano\_Poli](https://forum.xojo.com/user_avatar/forum.xojo.com/mariano_poli/32/340_2.png) [@Mariano\_Poli](https://forum.xojo.com/u/Mariano_Poli)\
**Post date:** [September 25, 2019, 3:12am UTC](https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373/1 "2019-09-25T03:12:07Z")

</div>

I know that Windows.Frame is a property that can only be set in the Inspector and is not available in code, but is there any chance to set it different for a windows compilation than on a Mac one in order to have the same code for both enviroments and use the #If TargetWindows comand ?  
I want to have Sheet Window on Mac and a Modal dialog on Windows to avoi the windows title area… Is that possible by any trick anyone knows ?  
Thanks

---

<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:** [September 25, 2019, 3:16am UTC](https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373/2 "2019-09-25T03:16:27Z")

</div>

Sheet windows behave as such only on OS X. On other platforms, they behave as ordinary movable modal dialog boxes.

---

<div class="post-metadata">

**Author:** ![Norman\_Palardy](https://forum.xojo.com/user_avatar/forum.xojo.com/norman_palardy/32/169_2.png) [@Norman\_Palardy](https://forum.xojo.com/u/Norman_Palardy)\
**Post date:** [September 25, 2019, 3:32am UTC](https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373/3 "2019-09-25T03:32:25Z")

</div>

IF you could assign a constant for the frame type that constant could have different values for macOS and Windows  
But thats not possible

But, as Dave notes, if you make this a sheet window then on non-Mac platforms it will be a movable modal - the closest equivalent Windows has for a sheet.

---

<div class="post-metadata">

**Author:** ![Mariano\_Poli](https://forum.xojo.com/user_avatar/forum.xojo.com/mariano_poli/32/340_2.png) [@Mariano\_Poli](https://forum.xojo.com/u/Mariano_Poli)\
**Post date:** [September 26, 2019, 6:43pm UTC](https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373/4 "2019-09-26T18:43:06Z")

</div>

Thanks to both of you, Norman and Dave.

---

<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:** [April 29, 2021, 4:06pm UTC](https://forum.xojo.com/t/windows-frame-type-different-on-windows-and-mac/50373/5 "2021-04-29T16:06:04Z")

</div>


