When my main window is a global floating window, whenever it loses focus (ie i click on another window) it loses its menu for good - Even when getting focus again (ie I’m clicking on it’s title) the menu never comes back.
I use a declare in Window.1.Activate
maybe there is something similar for windows
declare function NSClassFromString lib "Cocoa" ( inName as CFStringRef ) as Ptr
declare function sharedApplication lib "Cocoa" selector "sharedApplication" ( classRef as Ptr ) as Ptr
Dim myApplication as Ptr = sharedApplication( NSClassFromString( "NSApplication" ) )
declare sub activateIgnoringOtherApps lib "Cocoa" selector "activateIgnoringOtherApps:" ( appRef as Ptr, flag as boolean )
activateIgnoringOtherApps( myApplication, True )
At least on OS X this is as far as I know the correct behavior. A global floating window is to be used as a tool palette window while a document window from another application has the keyboard focus. Similar to a “floating window”, where another window window has the keyboard focus within your application.