Hi, I’m using the following code in a windows open event to make it have no title bar:
Const AppKit = "AppKit"
Const NSWindowTitleHidden = 1
Const NSFullSizeContentViewWindowMask = 32768
Declare Sub titleVisibility Lib AppKit Selector "setTitleVisibility:" (handle As Integer, value As Integer)
titleVisibility(me.TrueWindow.Handle, NSWindowTitleHidden)
Declare Sub setStyleMask Lib AppKit Selector "setStyleMask:" (handle As Integer, value As Integer)
Declare Function styleMask Lib AppKit Selector "styleMask" (handle As Integer) As Integer
setStyleMAsk(me.TrueWindow.Handle, styleMask(me.TrueWindow.Handle) + NSFullSizeContentViewWindowMask)
Declare Sub titlebarAppearsTransparent Lib AppKit Selector "setTitlebarAppearsTransparent:" (handle As Integer, value As Boolean)
titleBarAppearsTransparent(me.TrueWindow.Handle, True)
However, when swapping from Light to Dark mode, the windows backgrounds to not update. Any help from someone in the know on this stuff would be greatly appreciated.
Many thanks, Dave.