Window Style

 

Customise window appearance on Mac; for 4D v19.

miyako/4d-plugin-window-style

SET WINDOW STYLE(window;params)
Parameter
Type
Description
window
LONGINT
params
OBJECT

Params

Property Type Description
opaque Boolean setOpaque:
titlebarAppearsTransparent Boolean NSWindowStyleMaskFullSizeContentView setTitlebarAppearsTransparent:
movableByWindowBackground Boolean setMovableByWindowBackground:
backgroundColor Object red green blue alpha
backgroundImage Picture  
backgroundImagePath Text  

Discussions

It seems like setStyleMask: with the NSWindowStyleMaskFullSizeContentView no longer has effect on v19. The content view is always places below the title bar, no under it.

To remove the title bar design in v19, it is necessary to assign an opaque colour to the window background or else add an image layer.