# Modern macos window

**URL:** <https://forum.xojo.com/t/modern-macos-window/84759>\
**Category:** General\
**Created:** [March 27, 2025, 10:40am UTC](https://forum.xojo.com/t/modern-macos-window/84759 "2025-03-27T10:40:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide\_Pagano](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/f14d63/32.png) [@Davide\_Pagano](https://forum.xojo.com/u/Davide_Pagano)\
**Post date:** [March 27, 2025, 10:40am UTC](https://forum.xojo.com/t/modern-macos-window/84759/1 "2025-03-27T10:40:10Z")

</div>

Hi,

is there a way to get a window like this?

Thanks

 ![Screenshot 2025-03-27 alle 07.51.48](https://forum.xojo.com/uploads/default/original/3X/b/3/b3729466945556b413661ed336595bfc56b0cef2.png)

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [March 27, 2025, 12:51pm UTC](https://forum.xojo.com/t/modern-macos-window/84759/2 "2025-03-27T12:51:10Z")

</div>

Not as standard. You can build it yourself, or use Declares to enable it. However, it’s not straight forward. There may well be plug-ins to do it.

---

<div class="post-metadata">

**Author:** ![Davide\_Pagano](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/f14d63/32.png) [@Davide\_Pagano](https://forum.xojo.com/u/Davide_Pagano)\
**Post date:** [March 27, 2025, 1:08pm UTC](https://forum.xojo.com/t/modern-macos-window/84759/3 "2025-03-27T13:08:32Z")

</div>

I was looking for declares but I could not find the right one. It’s pity because all modern applications use that kind of look for the windows.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [March 27, 2025, 1:12pm UTC](https://forum.xojo.com/t/modern-macos-window/84759/4 "2025-03-27T13:12:00Z")

</div>

[Ohanaware’s AppKit](https://ohanaware.com/appkit/) has this, but it’s API 1.0 only and will never be updated. Hard to recommend, but if you wanted the feature right now it is available.

---

<div class="post-metadata">

**Author:** ![Alain\_Clausen](https://forum.xojo.com/user_avatar/forum.xojo.com/alain_clausen/32/877_2.png) [@Alain\_Clausen](https://forum.xojo.com/u/Alain_Clausen)\
**Post date:** [March 27, 2025, 2:12pm UTC](https://forum.xojo.com/t/modern-macos-window/84759/5 "2025-03-27T14:12:00Z")

</div>

Hi Davide,  
You can do this simply with declares to set the window mask, the title and the titlebar visibility.

```auto
Try
  Declare Function NSClassFromString Lib "Foundation" (aClassName As CFStringRef) As Ptr
  If NSClassFromString( "NSVisualEffectView" ) <> Nil Then
    Const AppKit = "AppKit"
    Const NSWindowTitleHidden = 1
    Const NSWindowStyleMaskFullSizeContentView = 32768
    
    Declare Sub titleVisibility Lib AppKit Selector "setTitleVisibility:" (handle As Ptr, value As Integer)
    titleVisibility(Me.Handle, NSWindowTitleHidden)
    
    Declare Sub setStyleMask Lib AppKit Selector "setStyleMask:" (handle As Ptr, value As Integer)
    Declare Function styleMask Lib AppKit Selector "styleMask" (handle As Ptr) As Integer
    setStyleMAsk(Me.Handle, styleMask(Me.Handle) + NSWindowStyleMaskFullSizeContentView)
    
    Declare Sub titlebarAppearsTransparent Lib AppKit Selector "setTitlebarAppearsTransparent:" (handle As Ptr, value As Boolean)
    titleBarAppearsTransparent(Me.Handle, True)
  End If
End Try

```

 ![MacWindow](https://forum.xojo.com/uploads/default/original/3X/4/7/47ec703bffa862190a1b9f487897a5a2c02ae9d8.png)

Here is an example:  
[MacWindow.zip](https://forum.xojo.com/uploads/short-url/mVsYhYygnwofq5ekBOScnlKcvbu.zip) (4.7 KB)

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [March 27, 2025, 2:22pm UTC](https://forum.xojo.com/t/modern-macos-window/84759/6 "2025-03-27T14:22:30Z")

</div>

Maybe there’s something in [macoslib/macoslib at master · macoslib/macoslib · GitHub](https://github.com/macoslib/macoslib/tree/master/macoslib)  
Like here: [Search for TitleBar in Repo](https://github.com/search?q=repo%3Amacoslib%2Fmacoslib+titlebar+path%3A%2F%5Emacoslib%5C%2FCocoa%5C%2F%2F&type=code)

---

<div class="post-metadata">

**Author:** ![Davide\_Pagano](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/f14d63/32.png) [@Davide\_Pagano](https://forum.xojo.com/u/Davide_Pagano)\
**Post date:** [March 27, 2025, 4:57pm UTC](https://forum.xojo.com/t/modern-macos-window/84759/7 "2025-03-27T16:57:31Z")

</div>

Thank you very much @Alain_Clausen. Exactly what I was looking for.
