Is there a way to remove the bottom line when using a Toolbar?
See screenshot - line below the Add button.
Is there a way to remove the bottom line when using a Toolbar?
See screenshot - line below the Add button.
Found this:
Declaration
SWIFT
var showsBaselineSeparator: Bool
OBJECTIVE-C
@property BOOL showsBaselineSeparator
Return Value
YES if the toolbar shows the separator between the toolbar and the main window contents, otherwise NO. The default is YES.
Import Statement
import AppKit
and
setShowsBaselineSeparator:
Sets whether the toolbar shows the separator between the toolbar and the main window contents.
Declaration
SWIFT
var showsBaselineSeparator: Bool
OBJECTIVE-C
@property BOOL showsBaselineSeparator
Parameters
flag
YES if the toolbar should show the separator between the toolbar and the main window contents, otherwise NO.
Import Statement
import AppKit
Availability
Available in OS X v10.4 and later.
See Also
So I tried to put this in the Open event of the Toolbar:
declare sub showsBaselineSeparator lib "AppKit" selector "showsBaselineSeparator:" ( NSButtonHandle as integer, value as boolean )
showsBaselineSeparator( me.handle, false )
But this doesn’t work.
I noticed a error in the Apple Dev for setShowsBaselineSeparator
It shows the same declare as showsBaselineSeparator
So I tried:
declare sub setShowsBaselineSeparator lib "AppKit" selector "setShowsBaselineSeparator:" ( NSButtonHandle as integer, value as boolean )
setShowsBaselineSeparator( me.handle, false )
But this still doesn’t work.
Could it be the Xojo toolbar isn’t native? That could explain why the declare isn’t working.
Cool. Works fine. Thank you