Mac TitleBar Height?

Anyone know the declares or MBS calls to get a Window’s Title Bar height?

(That’s different to the menubar or toolbar. It’s the space where the name of the Window goes.)

Why do you need this information separated from the Toolbar? On Mac, Toolbars are in the Titlebar. You can find this information by checking the difference between Window.Bounds.Top and Window.Top but it’s going to include the toolbar height if applicable.

Thanks Tim. That works well. I’m not using a toolbar so it’s all I need.

Var titleBarHeight As Integer = Self.Bounds.top - Self.top
1 Like

Posted that backwards. Here’s the correct version.

Var titleBarHeight As Integer = Self.top - Self.Bounds.top
2 Likes