Is it possible to get the metal window appearance for a floating window (OS X Cocoa)?
To answer my own question, this method, called from the Open event, does the trick:
declare sub setStyleMask lib CocoaLib selector “setStyleMask:” (handle as Integer, mask as Integer)
setStyleMask(w.Handle, mask)
To call:
const NSTexturedBackgroundWindowMask = 256
const NSResizableWindowMask = 8
const NSClosableWindowMask = 2
const NSMiniaturizableWindowMask = 4
const NSTitledWindowMask = 1
setWindowMask(self, NSTexturedBackgroundWindowMask + NSResizableWindowMask + NSClosableWindowMask + NSMiniaturizableWindowMask + NSTitledWindowMask)
Hi,
where can I found CocoaLib library ? And where I have to put it ? In my folder project ?
Thanks
[quote=20877:@luicano monti]Hi,
where can I found CocoaLib library ? And where I have to put it ? In my folder project ?
Thanks[/quote]
It’s a constant defined in macoslib, but you can replace it with the string literal “AppKit.framework”.