How to make a TForm with no caption [SOLVED] lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- carl_caulkett · 2017-07-12 19:18 Lazarus 1.8.0 RC3 FPC 3.0.2 macOS 10.12.5 Hello, I am trying to make a TForm with no caption. I've tried setting Caption := ''; and setting BorderIcons := [];, as I've seen it suggested that that works on some platforms. It doesn't work on macOS 10.12.5, however. Obviously Win32 solutions like playing around with SetWindowsLong, GWL_STYLE and WS_CAPTION are not available here, so I really don't know where else to look. Can anyone help? ---------------------------------------------------------------------- carl_caulkett · 2017-07-12 20:10 I have found a solution, and it was surprisingly easy. In an overidden Create method or an OnCreate event handler, set the following properties: BorderIcons := []; BorderStyle := bsNone; FormStyle := fsStayOnTop; ShowInTaskBar := stNever; ControlStyle := ControlStyle - [csSetCaption]; I'm using the form as the drop down part of a do-it-yr-self combobox type thing so the vertical positioning has to be done carefully but this can easily be done relative to the underlying control's ClientOrigin.Y property. ---------------------------------------------------------------------- howardpc · 2017-07-12 20:25 I think you would use less resources if you derived your drop-down combobox-type-thing from TCustomControl rather than from TForm or TCustomForm. ---------------------------------------------------------------------- carl_caulkett · 2017-07-13 10:10 I may well do that next, Howard. I was just after a quick win!